baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)
This commit is contained in:
commit
c2b0e7be0d
6522 files changed
+3530643
No files matched your search
Executable
+534
@@ -0,0 +1,534 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<view class="topBar">所有应用</view>
|
||||
<scroll-view class="scroll-x" scroll-x="true" @scroll='_scrollX' scroll-with-animation :scroll-left="scrollLeft">
|
||||
<view class="scroll-x-listcontent" :style="{width:scrollWidth}">
|
||||
<view class="nav-list" v-for="(item,index) in navMenus">
|
||||
<view :class="[currSelectIndex == index?'nav-item-select':'nav-item-unselect']"
|
||||
@click="goAnchor('#anchor-'+index,index)">
|
||||
{{item.NAME}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view class="take-postion" style="height: 110px;width: 100%;"></view>
|
||||
|
||||
<scroll-view class="scroll-y" scroll-y="true" @scroll="_scrollY" scroll-with-animation :scroll-top="scrollTop" :style="{height:scrollHeight}">
|
||||
<view id="outside" class="list-content">
|
||||
<view :id="'anchor-'+index" class="list-item" v-for="(item,index) in allMenu">
|
||||
<view class="list-item-title" v-if="item.isOpenMenu">{{item.NAME}}</view>
|
||||
<view class="example-body" v-if="item.isOpenMenu">
|
||||
<uni-grid :column="4" :show-border="false" :square="false">
|
||||
<uni-grid-item v-for="(subitem ,subindex) in item.SubMenus" :key="subindex" v-if="subitem.isOpenMenu">
|
||||
<view class="grid-item-box" @click="NavigateApplyKanban(subitem)" v-if="subitem.FTYPE==4">
|
||||
<image class="image" src="../../../static/icon/unchecked.png" />
|
||||
<text class="text">{{subitem.NAME}}</text>
|
||||
</view>
|
||||
|
||||
<view class="grid-item-box" @click="NavigateApply(subitem.KEY)" v-if="subitem.FTYPE==3">
|
||||
<!-- <image class="image" :src="subitem.src" /> -->
|
||||
<view class="image" :style="{backgroundImage:'url('+subitem.src+')'}"/>
|
||||
<text class="text">{{subitem.NAME}}</text>
|
||||
</view>
|
||||
</uni-grid-item>
|
||||
</uni-grid>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
<view class="tabBar">
|
||||
<view class="tabBar-item" @click="mainSelectF">
|
||||
<view v-show="mainSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/main2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">首页</text>
|
||||
</view>
|
||||
<view v-show="!mainSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/main2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">首页</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tabBar-item" @click="applySelectF">
|
||||
<view v-show="applySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/apply2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">应用</text>
|
||||
</view>
|
||||
<view v-show="!applySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/apply2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">应用</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tabBar-item" @click="cleandarSelectF">
|
||||
<view v-show="cleandarSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/cleandar2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">日程</text>
|
||||
</view>
|
||||
<view v-show="!cleandarSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/cleandar2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">日程</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tabBar-item" @click="mySelectF">
|
||||
<view v-show="mySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/my2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">我的</text>
|
||||
</view>
|
||||
<view v-show="!mySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/my2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">我的</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<opsoft-dialog-notice
|
||||
:dialogNoticeShow="showDialog"
|
||||
:dialogNoticeType="dialogNoticeType"
|
||||
:dialogNoticeTitle="dialogNoticeTitle"
|
||||
:dialogNoticeContent="dialogNoticeContent"
|
||||
@dialogNoticeConfirmClick="dialogNoticeConfirmClick"
|
||||
>
|
||||
</opsoft-dialog-notice>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import uniGrid from '@/components/uni-grid/uni-grid.vue'
|
||||
import uniGridItem from '@/components/uni-grid-item/uni-grid-item.vue'
|
||||
import faIcon from '@/components/fa-icon/fa-icon.vue'
|
||||
import opsoftDialogNotice from '@/components/opsoft-dialog-notice/opsoft-dialog-notice.vue';
|
||||
import errorStrUntil from '@/common/errorStrUntil.js';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
faIcon,
|
||||
uniGrid,
|
||||
uniGridItem,
|
||||
opsoftDialogNotice
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
allMenu: [],
|
||||
navMenus: [],
|
||||
storageSelAllMenu:[],
|
||||
curParentIndex:0,
|
||||
curChildrenIndex:0,
|
||||
dialogNoticeContent:'',
|
||||
dialogNoticeTitle:'',
|
||||
dialogNoticeType:'',
|
||||
showDialog:false,
|
||||
|
||||
scrollWidth:'',
|
||||
scrollLeft:0,
|
||||
scrollHeight:'',
|
||||
scrollTop:0,
|
||||
old: {
|
||||
scrollTop: 0
|
||||
},
|
||||
currSelectIndex:0,
|
||||
currScrollTop:0,
|
||||
scrollToTopArray:[],
|
||||
mainSelect:false,
|
||||
applySelect:true,
|
||||
cleandarSelect:false,
|
||||
mySelect:false,
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.getAllMenu();
|
||||
this.scrollWidth = (this.allMenu.length * 120).toString() + 'px';
|
||||
this.scrollHeight = (uni.getSystemInfoSync().windowHeight-170).toString()+'px';
|
||||
},
|
||||
methods: {
|
||||
getAllMenu(){
|
||||
let _self = this;
|
||||
this.$request.post('/Service/GetAllMenu')
|
||||
.then(res => {
|
||||
let data = res.MainMenu;
|
||||
if(data&&data.length>0){
|
||||
data = data.filter(e => {
|
||||
return e.NAME != "生产汇报"
|
||||
});
|
||||
data = data.filter(e => {
|
||||
return e.NAME != "生产检验"
|
||||
});
|
||||
data = data.filter(e => {
|
||||
return e.NAME != "安灯预警"
|
||||
});
|
||||
data = data.filter(e => {
|
||||
return e.NAME != "预警平台"
|
||||
});
|
||||
}
|
||||
|
||||
data.forEach((item,index) => {
|
||||
item.isOpenMenu = false;
|
||||
item.showSubItem = false;
|
||||
item.SubMenus.forEach((el,elindex) => {
|
||||
el.isOpenMenu = false;
|
||||
el.src = '../../../static/icon/'+el.KEY+'.png';
|
||||
});
|
||||
|
||||
});
|
||||
this.allMenu = data;
|
||||
this.storageSelAllMenu = uni.getStorageSync('selMenus');
|
||||
if(this.storageSelAllMenu){
|
||||
let selAllMenus = this.storageSelAllMenu.filter(e => {return e.isOpenMenu});
|
||||
this.navMenus = selAllMenus;
|
||||
let selAllSubMenus = new Array();
|
||||
|
||||
selAllMenus.forEach(e => {
|
||||
|
||||
e.SubMenus.forEach(eSub => {
|
||||
if(eSub.isOpenMenu){
|
||||
selAllSubMenus.push(eSub)
|
||||
}
|
||||
})
|
||||
|
||||
_self.allMenu.forEach((allMenu,allMenuIndex) => {
|
||||
if(e.ID == allMenu.ID){
|
||||
allMenu.isOpenMenu = true;
|
||||
allMenu.SubMenus.forEach(allSub => {
|
||||
selAllSubMenus.forEach(selAllSub => {
|
||||
if(selAllSub.ID == allSub.ID){
|
||||
allSub.isOpenMenu = true;
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
})
|
||||
this.scrollWidth = (selAllMenus.length * 120).toString() + 'px';
|
||||
}else{
|
||||
this.allMenu.forEach((item,index) => {
|
||||
item.isOpenMenu = true;
|
||||
item.showSubItem = false;
|
||||
item.SubMenus.forEach((el,elindex) => {
|
||||
el.isOpenMenu = true;
|
||||
el.src = '../../../static/icon/'+el.KEY+'.png';
|
||||
});
|
||||
|
||||
});
|
||||
this.navMenus = this.allMenu.filter(e => {return e.isOpenMenu});
|
||||
this.scrollWidth = (this.navMenus.length * 120).toString() + 'px';
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
uni.hideLoading();
|
||||
this.dialogProps(err)
|
||||
});
|
||||
},
|
||||
dialogNoticeConfirmClick(){
|
||||
this.showDialog = false;
|
||||
},
|
||||
dialogProps(err){
|
||||
err = errorStrUntil.handle(err);
|
||||
this.showDialog = true;
|
||||
this.dialogNoticeType = 'error';
|
||||
this.dialogNoticeTitle = '异常提示';
|
||||
this.dialogNoticeContent = err;
|
||||
},
|
||||
//横向偏移
|
||||
_scrollX(e) {
|
||||
let _self = this;
|
||||
this.scrollLeft = (this.currSelectIndex) * 120;
|
||||
},
|
||||
//纵向偏移
|
||||
_scrollY(e){
|
||||
let _self = this;
|
||||
if(!e){
|
||||
this.scrollTop = this.currScrollTop;
|
||||
}else{
|
||||
console.log(e.detail.scrollTop);
|
||||
this._scrollX()
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
//nav-item click纵向滚动
|
||||
goAnchor(selector, index) {
|
||||
let _self = this;
|
||||
console.log('anchorIndex' + index);
|
||||
this.currSelectIndex = index;
|
||||
//#ifdef H5
|
||||
document.querySelector(selector).scrollIntoView(true);
|
||||
//#endif
|
||||
|
||||
//#ifdef APP
|
||||
uni.createSelectorQuery().select(selector).boundingClientRect(data => {
|
||||
console.log("in" + data.top);
|
||||
|
||||
uni.createSelectorQuery().select("#outside").boundingClientRect(res => {
|
||||
console.log("out" + res.top);
|
||||
_self.currScrollTop = data.top-res.top;
|
||||
_self._scrollY()
|
||||
}).exec()
|
||||
|
||||
}).exec();
|
||||
//#endif
|
||||
},
|
||||
//获取初始状态所有节点距顶部滚动高度
|
||||
initAllScrollToTop(){
|
||||
let _self = this;
|
||||
let scrollToTopArray = [];
|
||||
//#ifdef APP
|
||||
if(this.allMenu.length>0){
|
||||
this.allMenu.forEach((e,index) => {
|
||||
uni.createSelectorQuery().select('#anchor-' + index).boundingClientRect(data => {
|
||||
console.log("scIndex"+data.top)
|
||||
let arr = {
|
||||
anchor:index,
|
||||
scrollToTop:data.top
|
||||
}
|
||||
scrollToTopArray.push(arr);
|
||||
}).exec()
|
||||
})
|
||||
}
|
||||
//#endif
|
||||
},
|
||||
mainSelectF(){
|
||||
this.mainSelect = true;
|
||||
this.applySelect = false;
|
||||
this.cleandarSelect = false;
|
||||
this.mySelect = false;
|
||||
uni.redirectTo({
|
||||
url:'../home/home'
|
||||
});
|
||||
},
|
||||
applySelectF(){
|
||||
this.mainSelect = false;
|
||||
this.applySelect = true;
|
||||
this.cleandarSelect = false;
|
||||
this.mySelect = false;
|
||||
},
|
||||
cleandarSelectF(){
|
||||
this.mainSelect = false;
|
||||
this.applySelect = false;
|
||||
this.cleandarSelect = true;
|
||||
this.mySelect = false;
|
||||
uni.redirectTo({
|
||||
url:'../calendar/calender'
|
||||
});
|
||||
},
|
||||
mySelectF(){
|
||||
this.mainSelect = false;
|
||||
this.applySelect = false;
|
||||
this.cleandarSelect = false;
|
||||
this.mySelect = true;
|
||||
uni.redirectTo({
|
||||
url:'../myinfo/myinfo'
|
||||
})
|
||||
},
|
||||
NavigateApply(page) {
|
||||
console.log(page)
|
||||
if (page) {
|
||||
if(page=="STK_InventorySeach"){
|
||||
uni.navigateTo({
|
||||
url: '../../views/' + page + '/' + page + '?prepage=moreapply'
|
||||
});
|
||||
}
|
||||
else {
|
||||
uni.navigateTo({
|
||||
url: '../../views/' + page + '/' + page
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
LongTap: function() {
|
||||
uni.navigateTo({
|
||||
url: '../applymanage/applymanage'
|
||||
});
|
||||
},
|
||||
// 点击跳转
|
||||
NavigateApplyKanban(subitem) {
|
||||
let billNo = subitem.FWEBBILL;
|
||||
if (billNo) {
|
||||
let tempurl='../../kanban/kanban' + '?billNo=' + billNo + '&title=' + subitem.NAME;
|
||||
uni.navigateTo({
|
||||
url: tempurl
|
||||
});
|
||||
}
|
||||
else {
|
||||
uni.showToast({
|
||||
title: '看板菜单表单配置有问题,请联系系统管理员!',
|
||||
icon:'none',
|
||||
});
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@import url("../../../common/iconindex.css");
|
||||
.page {
|
||||
height: 100%;
|
||||
/* overflow-x: hidden; */
|
||||
}
|
||||
.topBar{
|
||||
height: 60px;
|
||||
line-height: 60px;
|
||||
width: 100%;
|
||||
/* height: var(--status-bar-height);
|
||||
width: 100%; */
|
||||
position: fixed;
|
||||
z-index: 999;
|
||||
background: #2560C9;
|
||||
/* padding-left: 43.47rpx; */
|
||||
text-align: center;
|
||||
|
||||
font-size: 32.6rpx;
|
||||
font-family: PingFangSC-Semibold, PingFang SC;
|
||||
font-weight: 600;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.scroll-x{
|
||||
width: 100%;height: 40px;background: #FFFFFF;z-index: 9;
|
||||
display: flex;flex-direction: row;position: fixed;top: 60px;
|
||||
}
|
||||
.scroll-x-listcontent{
|
||||
align-items: center;justify-content: center;
|
||||
display: flex;flex-direction: row;
|
||||
}
|
||||
.nav-list{
|
||||
width: 120px;height: 40px;line-height: 40px;text-align: center;
|
||||
}
|
||||
.nav-item-select{
|
||||
position: relative;
|
||||
height: 38px;line-height: 38px;
|
||||
font-size: 16px;font-weight: bold;color: #409EFF;
|
||||
}
|
||||
.nav-item-select::after{
|
||||
position: absolute;
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -2px;
|
||||
top: auto;
|
||||
left: 45px;
|
||||
height: 4px;
|
||||
width: 30px;
|
||||
background-color: #409EFF;
|
||||
}
|
||||
.nav-item-unselect{
|
||||
height: 40px;line-height: 40px;
|
||||
font-size: 16px;font-weight: normal;color: #000000;
|
||||
}
|
||||
.scroll-y{}
|
||||
.list-content{
|
||||
/* background: #FFFFFF;margin-top: 10px; */
|
||||
}
|
||||
.list-item{
|
||||
background: #FFFFFF;margin-top: 10px;
|
||||
}
|
||||
.list-item-title{
|
||||
padding: 10px 10px;font-size: 18px;color: #000000;font-weight: 300;
|
||||
}
|
||||
.main{
|
||||
padding-top: 43.47rpx;
|
||||
margin-top: 0;
|
||||
margin-bottom: 117.75rpx;
|
||||
}
|
||||
.main-item{
|
||||
padding-top: 43.47rpx;
|
||||
}
|
||||
.m-title{
|
||||
margin-left: 43.47rpx;
|
||||
|
||||
font-size: 32.6rpx;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
/* font-weight: 500; */
|
||||
color: #000000;
|
||||
}
|
||||
.example-body {
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
background-color: #ffffff;
|
||||
|
||||
font-size: 13px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.grid-item-box {
|
||||
flex: 1;
|
||||
/* position: relative;
|
||||
*/
|
||||
/* #ifndef APP-NVUE */
|
||||
display: flex;
|
||||
/* #endif */
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 15px 0;
|
||||
}
|
||||
|
||||
.text {
|
||||
padding: 10upx 0;
|
||||
word-break: break-all;
|
||||
text-align: center;
|
||||
line-height: 16px;
|
||||
width: 64px;
|
||||
}
|
||||
|
||||
.m-bottom {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
/* margin: 2% 5%;
|
||||
margin-bottom: 5%; */
|
||||
border: 1upx dotted #CCCCCC;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
/* height: 160upx; */
|
||||
}
|
||||
.tabBar{
|
||||
display: flex;
|
||||
position: fixed;
|
||||
flex-direction: row;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
height: 60px;
|
||||
|
||||
background: rgba(255, 255, 255, 1);
|
||||
box-shadow:2px 2px 3px rgba(0, 0, 0, 1);
|
||||
}
|
||||
.tabBar-item{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 1;
|
||||
flex-grow: 1;
|
||||
align-items: center ;
|
||||
width: 100%;
|
||||
}
|
||||
.tabBar-item-view{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 1;
|
||||
flex-grow: 1;
|
||||
align-items: center ;
|
||||
}
|
||||
.tabBar-item-img{
|
||||
height: 54.34rpx;
|
||||
width: 54.34rpx;
|
||||
margin-top: 16.3rpx;
|
||||
}
|
||||
.tabBar-item-text{
|
||||
text-align: center;
|
||||
|
||||
height: 28.98rpx;
|
||||
font-size: 28.98rpx;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #515151;
|
||||
line-height: 28.98rpx;
|
||||
}
|
||||
.image{
|
||||
height: 79.71rpx;
|
||||
width: 79.71rpx;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
}
|
||||
</style>
|
||||
+819
@@ -0,0 +1,819 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<!-- 时间助手 -->
|
||||
<view class="main">
|
||||
<text class="title">时间助手</text>
|
||||
</view>
|
||||
<view class="page-body">
|
||||
<lxCalendar @change="changeCalender" style="margin-top: 60px;"></lxCalendar>
|
||||
<view class="arrange" v-if="clickDayList.length==0">暂无日程</view>
|
||||
<view class="arrange-detail" v-else>
|
||||
<text class="arrange-date">{{dateDetail[1]}}月{{dateDetail[2]}}日</text>
|
||||
<scroll-view
|
||||
scroll-y="true"
|
||||
scroll-x="true"
|
||||
style="height: auto;scroll-behavior: smooth;"
|
||||
v-for="(item,index) in clickDayList" :key="index">
|
||||
<view class="container"
|
||||
@touchstart="touchS($event,index,item)"
|
||||
@touchmove="touchM($event,index,item)"
|
||||
@touchend="touchE($event,index,item)"
|
||||
:style="{'left': (currIndex==index?leftStyle + 'rpx':'')}">
|
||||
|
||||
<view class="detail-table-class"
|
||||
style="display: flex;flex-direction: row;margin-left: 18px;">
|
||||
<view style="height: 160rpx;flex-shrink: 0;
|
||||
box-shadow: 0px 0px 18px rgba(0, 0, 0, 0.05);
|
||||
background: rgba(255, 255, 255, 1)
|
||||
border-radius: 7.25px;"
|
||||
:style="{width:sildWidth+'px'}"
|
||||
@click="arrangeClick(item,index)">
|
||||
<view class="arrange-time">
|
||||
<image class="img" src="../../../static/tabbar/cleandar.png"></image>
|
||||
<text class="time">{{item.FSTARTTIME}}~{{item.FENDTIME}}</text>
|
||||
</view>
|
||||
<view class="detail-info" :style="{width:(sildWidth-60)+'px'}">{{item.FCONTENT ? item.FCONTENT : ''}}</view>
|
||||
</view>
|
||||
|
||||
<view class="delete-icon" v-show="item.iconDel"
|
||||
style="height: 160rpx;width: 80px;flex-shrink: 0;
|
||||
box-shadow: 0px 0px 18px rgba(0, 0, 0, 0.05);
|
||||
background: rgba(255, 255, 255, 1)
|
||||
border-radius: 7.25px;"
|
||||
@click="delItem(item,index)">
|
||||
<img src="../../../static/tabbar/iconDel.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view style="height: 10px;width:100%;margin-left: 18px;box-shadow: 0px 0px 18px rgba(0, 0, 0, 0.05);" :style="{width:sildWidth+'px'}"></view>
|
||||
</view>
|
||||
</view>
|
||||
<image class="add" src="../../../static/home/add.png" @click="addSchedule"></image>
|
||||
|
||||
<view class="alter" v-if="otherShow" @click="hideAlter"></view>
|
||||
<view class="sparePart" v-show="addShow">
|
||||
<view class="top-row-class" style="border-bottom: solid rgba(235, 237, 240, 1) 1px;">
|
||||
<!-- <input class="selCondition-alter" style="height: 60rpx;" placeholder="新建日程" v-model="FTitle"
|
||||
placeholder-style="color: #666666;font-size:28rpx;color:#666666"/> -->
|
||||
<view class="selCondition-alter" style="height: 60rpx;" v-if="!isAddarrange">编辑日程</view>
|
||||
<view class="selCondition-alter" style="height: 60rpx;" v-if="isAddarrange">新建日程</view>
|
||||
</view>
|
||||
|
||||
<view class="top-row-class">
|
||||
<view class="selCondition-date" @click="creatDatePicker()">{{creatlist[0].detail}}</view>
|
||||
-
|
||||
<view class="selCondition-date" @click="happenDatePicker()">{{happenlist[0].detail}}</view>
|
||||
</view>
|
||||
<date-time-picker ref='creatTime' :indicatorStyle='indicatorStyle'
|
||||
:type='type' :datestring='dateString' @change='creatTimeChange'>
|
||||
</date-time-picker>
|
||||
<date-time-picker ref='happenTime' :indicatorStyle='indicatorStyle'
|
||||
:type='type' :datestring='dateString' @change='happenTimeChange'>
|
||||
</date-time-picker>
|
||||
|
||||
<view class="top-row-class" style="display: flex;flex-direction: column;align-items: flex-start;">
|
||||
<!-- <text class="top-row-title-class-add">内容:</text> -->
|
||||
<textarea class="selCondition-alter" placeholder="" v-model="FCondition"
|
||||
placeholder-style="color: #666666;padding: 5rpx 10rpx;font-size:28rpx"
|
||||
style="text-align: left;background: rgba(247, 247, 247, 1);"></textarea>
|
||||
</view>
|
||||
<view class="confirmBtn" @click="confirm">保存</view>
|
||||
</view>
|
||||
|
||||
<view class="tabBar">
|
||||
<view class="tabBar-item" @click="mainSelectF">
|
||||
<view v-show="mainSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/main2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">首页</text>
|
||||
</view>
|
||||
<view v-show="!mainSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/main2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">首页</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tabBar-item" @click="applySelectF">
|
||||
<view v-show="applySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/apply2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">应用</text>
|
||||
</view>
|
||||
<view v-show="!applySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/apply2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">应用</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tabBar-item" @click="cleandarSelectF">
|
||||
<view v-show="cleandarSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/cleandar2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">日程</text>
|
||||
</view>
|
||||
<view v-show="!cleandarSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/cleandar2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">日程</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tabBar-item" @click="mySelectF">
|
||||
<view v-show="mySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/my2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">我的</text>
|
||||
</view>
|
||||
<view v-show="!mySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/my2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">我的</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<opsoft-dialog-notice
|
||||
:dialogNoticeShow="showDialog"
|
||||
:dialogNoticeType="dialogNoticeType"
|
||||
:dialogNoticeTitle="dialogNoticeTitle"
|
||||
:dialogNoticeContent="dialogNoticeContent"
|
||||
@dialogNoticeConfirmClick="dialogNoticeConfirmClick"
|
||||
>
|
||||
</opsoft-dialog-notice>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Vue from 'vue';
|
||||
import {
|
||||
mapState
|
||||
} from 'vuex';
|
||||
import uniGrid from '@/components/uni-grid/uni-grid.vue'
|
||||
import uniGridItem from '@/components/uni-grid-item/uni-grid-item.vue'
|
||||
import uniCalendar from '@/components/uni-calendar/uni-calendar.vue'
|
||||
import uniList from '@/components/uni-list/uni-list.vue'
|
||||
import uniListItem from '@/components/uni-list-item/uni-list-item.vue'
|
||||
import yomolUpgrade from '@/components/yomol-upgrade/yomol-upgrade.vue';
|
||||
import lxCalendar from '@/components/lx-calendar/lx-calendar.vue';
|
||||
import DateTimePicker from '@/components/bory-dateTimePicker/bory-dateTimePicker.vue';
|
||||
import opsoftDialogNotice from '@/components/opsoft-dialog-notice/opsoft-dialog-notice.vue';
|
||||
import errorStrUntil from '@/common/errorStrUntil.js';
|
||||
// import log from "@/common/log.js";
|
||||
export default {
|
||||
components: {
|
||||
uniList,
|
||||
uniCalendar,
|
||||
uniListItem,
|
||||
uniGrid,
|
||||
uniGridItem,
|
||||
yomolUpgrade,
|
||||
lxCalendar,
|
||||
DateTimePicker,
|
||||
opsoftDialogNotice
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
sildWidth:'',
|
||||
leftStyle: 0,
|
||||
startX: 0,
|
||||
hiddenFlag: true,
|
||||
delBtnWidth: 80,
|
||||
currIndex:0,
|
||||
mainSelect: false,
|
||||
applySelect: false,
|
||||
cleandarSelect: true,
|
||||
mySelect: false,
|
||||
clickDay: '',
|
||||
dateDetail: [],
|
||||
arrangeList: [],
|
||||
clickDayList: [],
|
||||
otherShow:false,
|
||||
addShow:false,
|
||||
dateString: '',
|
||||
type: 'hour-minute',
|
||||
creatlist: [{
|
||||
type: 'hour-minute',
|
||||
detail: '选择开始时间'
|
||||
}],
|
||||
happenlist: [{
|
||||
type: 'hour-minute',
|
||||
detail: '选择结束时间'
|
||||
}],
|
||||
FTitle:"",
|
||||
FCondition:"",
|
||||
isAddarrange:false,
|
||||
|
||||
dialogNoticeContent:'',
|
||||
dialogNoticeTitle:'',
|
||||
dialogNoticeType:'',
|
||||
showDialog:false,
|
||||
FINTERID:'',
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
indicatorStyle() {
|
||||
return {
|
||||
background: 'rgba(255,0,0,.2)',
|
||||
height: '40px',
|
||||
};
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
const res = uni.getSystemInfoSync();
|
||||
this.sildWidth = (res.windowWidth - 36)
|
||||
let date = new Date;
|
||||
let curDate = date.getFullYear()+'/'+(date.getMonth()+1)+'/'+date.getDate();
|
||||
this.clickDay = curDate;
|
||||
this.dateDetail = curDate.split('/');
|
||||
this.getPersonalInfo(curDate);
|
||||
|
||||
},
|
||||
methods: {
|
||||
dialogNoticeConfirmClick(){
|
||||
this.showDialog = false;
|
||||
},
|
||||
dialogProps(err){
|
||||
err = errorStrUntil.handle(err);
|
||||
this.showDialog = true;
|
||||
this.dialogNoticeType = 'error';
|
||||
this.dialogNoticeTitle = '异常提示';
|
||||
this.dialogNoticeContent = err;
|
||||
},
|
||||
addSchedule() {
|
||||
this.isAddarrange = false;
|
||||
this.addShow = true;
|
||||
this.otherShow = true;
|
||||
this.isAddarrange = true;
|
||||
this.selectFINTERID = '';
|
||||
this.creatlist[0].detail = '选择开始时间';
|
||||
this.happenlist[0].detail = '选择结束时间';
|
||||
this.FTitle = '';
|
||||
this.FCondition = '';
|
||||
|
||||
},
|
||||
arrangeClick:function(item,index){
|
||||
this.isAddarrange = true;
|
||||
this.addShow = true;
|
||||
this.otherShow = true;
|
||||
this.isAddarrange = false;
|
||||
this.selectFINTERID = item.FINTERID;
|
||||
this.creatlist[0].detail = item.FSTARTTIME;
|
||||
this.happenlist[0].detail = item.FENDTIME;
|
||||
this.FTitle = item.FNAME;
|
||||
this.FCondition = item.FCONTENT;
|
||||
},
|
||||
hideAlter(){
|
||||
this.addShow = false;
|
||||
this.otherShow = false;
|
||||
},
|
||||
creatDatePicker() {
|
||||
this.type = 'hour-minute';
|
||||
this.$refs['creatTime'].show();
|
||||
},
|
||||
creatTimeChange(value) {
|
||||
let item = this.creatlist[0];
|
||||
item['detail'] = value;
|
||||
},
|
||||
happenDatePicker() {
|
||||
this.type = 'hour-minute';
|
||||
this.$refs['happenTime'].show();
|
||||
},
|
||||
happenTimeChange(value) {
|
||||
let item = this.happenlist[0];
|
||||
item['detail'] = value;
|
||||
},
|
||||
changeCalender(e) {
|
||||
let _self = this;
|
||||
this.dateDetail = e.fulldate.replace(/-(\d)(?!\d)/g, '-0$1').trim().split("-");
|
||||
this.clickDay = e.fulldate.replace(/\-/g, "\/");
|
||||
this.getPersonalInfo(this.clickDay);
|
||||
},
|
||||
|
||||
getPersonalInfo(curDate) {
|
||||
let _self = this;
|
||||
let requestParams = {
|
||||
"dateTime":curDate,
|
||||
"fInterID":this.FINTERID ? this.FINTERID : "''"
|
||||
};
|
||||
uni.showLoading({
|
||||
title:'加载中……',
|
||||
mask:true
|
||||
})
|
||||
// log.writeLog(requestParams, false);
|
||||
this.$request.get('/SysConfigData/PersonDiary',{params:requestParams})
|
||||
.then(res => {
|
||||
uni.hideLoading();
|
||||
let datalist = res;
|
||||
|
||||
this.clickDayList = datalist;
|
||||
this.clickDayList.forEach(
|
||||
function(el){
|
||||
let sTime = el.FSTARTTIME.split(" ");
|
||||
let eTime = el.FENDTIME.split(" ");
|
||||
sTime = sTime[1].split(":");
|
||||
eTime = eTime[1].split(":");
|
||||
el.FSTARTTIME = sTime[0]+":"+sTime[1];
|
||||
el.FENDTIME = eTime[0]+":"+eTime[1];
|
||||
el.iconDel = false;
|
||||
}
|
||||
);
|
||||
this.arrangeList = datalist;
|
||||
})
|
||||
.catch(err => {
|
||||
uni.hideLoading();
|
||||
console.log()
|
||||
if(err.message == '未找到日志信息'){
|
||||
this.arrangeList = [];
|
||||
this.clickDayList = [];
|
||||
}else{
|
||||
this.dialogProps(err)
|
||||
}
|
||||
|
||||
});
|
||||
},
|
||||
confirm() {
|
||||
this.addShow = false;
|
||||
this.otherShow = false;
|
||||
let requestParams = {
|
||||
FDATE:this.clickDay,
|
||||
FNAME:this.FTitle,
|
||||
FCONTENT:this.FCondition,
|
||||
FSTARTTIME:this.creatlist[0].detail.replace(/\-/g, "\/"),
|
||||
FENDTIME:this.happenlist[0].detail.replace(/\-/g, "\/"),
|
||||
FINTERID:this.selectFINTERID ? this.selectFINTERID : ''
|
||||
}
|
||||
uni.showLoading({
|
||||
title:'加载中……',
|
||||
mask:true
|
||||
})
|
||||
// log.writeLog(requestParams, false);
|
||||
this.$request.post('/SysConfigData/EditPersonDiary',requestParams)
|
||||
.then(res => {
|
||||
this.isAddarrange = false;
|
||||
uni.hideLoading();
|
||||
this.getPersonalInfo(this.clickDay)
|
||||
|
||||
})
|
||||
.catch(err => {
|
||||
uni.hideLoading();
|
||||
this.dialogProps(err)
|
||||
});
|
||||
},
|
||||
delItem:function(item,index){
|
||||
let requestParams = {
|
||||
"interId": item.FINTERID ? item.FINTERID : ''
|
||||
};
|
||||
uni.showLoading({
|
||||
title:'加载中……',
|
||||
mask:true
|
||||
})
|
||||
this.$request.get('/SysConfigData/DelPersonDiary',{params:requestParams})
|
||||
.then(res => {
|
||||
uni.hideLoading();
|
||||
this.clickDayList.splice(index,1);
|
||||
this.leftStyle = 0;
|
||||
uni.showToast({
|
||||
title:"删除成功",
|
||||
icon:'none'
|
||||
})
|
||||
})
|
||||
.catch(err => {
|
||||
uni.hideLoading();
|
||||
this.dialogProps(err)
|
||||
});
|
||||
|
||||
},
|
||||
mainSelectF() {
|
||||
this.mainSelect = true;
|
||||
this.applySelect = false;
|
||||
this.cleandarSelect = false;
|
||||
this.mySelect = false;
|
||||
uni.redirectTo({
|
||||
url: '../home/home'
|
||||
});
|
||||
},
|
||||
|
||||
applySelectF() {
|
||||
this.mainSelect = false;
|
||||
this.applySelect = true;
|
||||
this.cleandarSelect = false;
|
||||
this.mySelect = false;
|
||||
uni.redirectTo({
|
||||
url: '../apply/apply'
|
||||
});
|
||||
},
|
||||
|
||||
cleandarSelectF() {
|
||||
this.mainSelect = false;
|
||||
this.applySelect = false;
|
||||
this.cleandarSelect = true;
|
||||
this.mySelect = false;
|
||||
},
|
||||
|
||||
mySelectF() {
|
||||
this.mainSelect = false;
|
||||
this.applySelect = false;
|
||||
this.cleandarSelect = false;
|
||||
this.mySelect = true;
|
||||
uni.redirectTo({
|
||||
url: '../myinfo/myinfo'
|
||||
});
|
||||
},
|
||||
// 开始移动时
|
||||
touchS($event,index,item) {
|
||||
item.iconDel = true
|
||||
// startX记录开始移动的位置
|
||||
this.currIndex = index;
|
||||
if($event.touches.length === 1) {
|
||||
this.startX = $event.touches[0].clientX;
|
||||
}
|
||||
// hiddenFlag为true则是从右向左,为false则是从左向右
|
||||
if(this.leftStyle === 0) {
|
||||
this.hiddenFlag = true;
|
||||
} else {
|
||||
this.hiddenFlag = false;
|
||||
}
|
||||
},
|
||||
touchM($event,index) {
|
||||
if($event.touches.length === 1) {
|
||||
//手指移动时水平方向位置
|
||||
const moveX = $event.touches[0].clientX;
|
||||
this.moveFunc(moveX);
|
||||
}
|
||||
},
|
||||
touchE($event,index,item) {
|
||||
const { leftStyle } = this;
|
||||
const { delBtnWidth } = this;
|
||||
// 如果停止滑动的距离大于二分之一则直接弹出删除按钮,不然则left为0
|
||||
if(-leftStyle >= delBtnWidth) {
|
||||
item.iconDel = true;
|
||||
this.leftStyle = -116;
|
||||
} else {
|
||||
item.iconDel = false;
|
||||
this.leftStyle = 0;
|
||||
}
|
||||
},
|
||||
moveFunc(moveX) {
|
||||
// 原始位置向左,leftStyle为小于0;原始位置向右,leftStyle为大于0
|
||||
// disX为相对最初位置的左右距离
|
||||
// 大于0为向右,小于0为向左
|
||||
const disX = moveX - this.startX;
|
||||
const delBtnWidth = this.delBtnWidth;
|
||||
let offsetNum = 0;
|
||||
if(-disX >= delBtnWidth && this.leftStyle === -delBtnWidth) {
|
||||
return;
|
||||
}
|
||||
console.log(disX, this.hiddenFlag);
|
||||
// this.hiddenFlag为true则是从左到右,则应该将container向左移动
|
||||
// this.hiddenFlag为false则是从右向左,则应该将container向右移动
|
||||
if(this.hiddenFlag) {
|
||||
// 此时container为最右边,则应该将container向左移动
|
||||
// disX大于0为相对原始位置的向右移动,则直接将offsetNum置为0
|
||||
// 否则为向左移动,offsetNum为disX相反的值,判断是否超过设置的最大位置
|
||||
if(disX == 0 || disX > 0) {
|
||||
offsetNum = 0;
|
||||
} else {
|
||||
offsetNum = disX;
|
||||
if (disX <= -delBtnWidth) {
|
||||
//控制手指移动距离最大值为删除按钮的宽度
|
||||
offsetNum = -delBtnWidth;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// 此时container为最左边,应该向右移动
|
||||
// disX小于0为相对原始位置的向左移动,则直接将offsetNum置为-this.delBtnWidth
|
||||
// 否则为相对原始位置的向右移动,此时应该将最大位置与向右位置的差值为此刻位置,判断是否为大于0
|
||||
if(disX < 0) {
|
||||
offsetNum = -this.delBtnWidth;
|
||||
} else {
|
||||
offsetNum = -this.delBtnWidth + disX;
|
||||
if(offsetNum > 0) {
|
||||
offsetNum = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.leftStyle = offsetNum;
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import url("../../../common/iconindex.css");
|
||||
|
||||
.main {
|
||||
background: #2560C9;
|
||||
position: fixed;
|
||||
z-index: 999;
|
||||
height: 60px;
|
||||
width: 100%;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.title {
|
||||
height: 60px;
|
||||
font-size: 32.6rpx;
|
||||
font-family: PingFangSC-Semibold, PingFang SC;
|
||||
font-weight: 600;
|
||||
color: #FFFFFF;
|
||||
line-height: 60px;
|
||||
padding-left: 40rpx;
|
||||
/* text-align: center; */
|
||||
}
|
||||
|
||||
.page-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.arrange {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
flex: 1;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
.arrange-detail {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
background-color: rgba(255, 255, 255, 1);
|
||||
overflow-y: auto;
|
||||
padding-bottom: 100px;
|
||||
}
|
||||
|
||||
.arrange-date {
|
||||
height: 45.28rpx;
|
||||
font-size: 32.6rpx;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #000000;
|
||||
line-height: 45.28rpx;
|
||||
margin: 40rpx 0 0 40rpx;
|
||||
}
|
||||
|
||||
.arrange-time {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
margin-left: 40rpx;
|
||||
margin-top: 40rpx;
|
||||
}
|
||||
|
||||
.img {
|
||||
height: 54.34rpx;
|
||||
width: 54.34rpx;
|
||||
}
|
||||
|
||||
.time {
|
||||
height: 54.34rpx;
|
||||
line-height: 54.34rpx;
|
||||
font-size: 28.98rpx;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #000000;
|
||||
margin-left: 21.73rpx;
|
||||
}
|
||||
|
||||
.detail-info {
|
||||
height: 45.28rpx;
|
||||
line-height: 45.28rpx;
|
||||
font-size: 32.6rpx;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #000000;
|
||||
margin-left: 119.56rpx;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.add {
|
||||
height: 79.71rpx;
|
||||
width: 79.71rpx;
|
||||
position: fixed;
|
||||
right: 9.05rpx;
|
||||
bottom: 135.86rpx;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
.tabBar {
|
||||
display: flex;
|
||||
position: fixed;
|
||||
flex-direction: row;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
height: 119.56rpx;
|
||||
|
||||
background: rgba(255, 255, 255, 1);
|
||||
box-shadow: 2px 2px 3px rgba(0, 0, 0, 1);
|
||||
}
|
||||
|
||||
.tabBar-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 1;
|
||||
flex-grow: 1;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.tabBar-item-view {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 1;
|
||||
flex-grow: 1;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.tabBar-item-img {
|
||||
height: 54.34rpx;
|
||||
width: 54.34rpx;
|
||||
margin-top: 16.3rpx;
|
||||
}
|
||||
|
||||
.tabBar-item-text {
|
||||
text-align: center;
|
||||
|
||||
height: 28.98rpx;
|
||||
font-size: 28.98rpx;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #515151;
|
||||
line-height: 28.98rpx;
|
||||
}
|
||||
|
||||
.page {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
/* overflow-y: hidden; */
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
/* ********日历********** */
|
||||
.calendar-view {
|
||||
background-color: #FFFFFF;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding-bottom: 20%;
|
||||
padding-top: 10%;
|
||||
}
|
||||
|
||||
.calendar-btn {
|
||||
width: 25%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 1upx solid #CCCCCC;
|
||||
border-radius: 30upx;
|
||||
padding: 1.5% 8%;
|
||||
margin-bottom: 5%;
|
||||
}
|
||||
|
||||
.calendar-view view {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
|
||||
.calendar-event {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
border-top: 1upx solid #007AFF;
|
||||
}
|
||||
|
||||
/* ********日历****结束******** */
|
||||
/******常用事项*******/
|
||||
.example-body {
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
font-size: 14px;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
.grid-item-box {
|
||||
flex: 1;
|
||||
/* position: relative;
|
||||
*/
|
||||
/* #ifndef APP-NVUE */
|
||||
display: flex;
|
||||
/* #endif */
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 15px 0;
|
||||
}
|
||||
|
||||
.text {
|
||||
padding: 10upx 0;
|
||||
}
|
||||
|
||||
/******常用事项**结束******/
|
||||
|
||||
.alter{
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top:0;
|
||||
bottom: 0;
|
||||
background-color: #333333;
|
||||
opacity: 0.5;
|
||||
}
|
||||
.sparePart{
|
||||
height: 460rpx;
|
||||
width: calc(100% - 80rpx);
|
||||
position: fixed;
|
||||
left: 40rpx;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: #FFFFFF;
|
||||
border-radius: 24rpx;
|
||||
border: solid 1px #007AFF;
|
||||
z-index: 999;
|
||||
}
|
||||
.top-row-class{
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
width: calc(100% - 112rpx);
|
||||
/* padding-left: 24rpx; */
|
||||
margin-left: 56rpx;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
.top-row-title-class{
|
||||
text-align: end;
|
||||
font-size: 30rpx;
|
||||
font-style: auto;
|
||||
color: #666666;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
line-height: 50rpx;
|
||||
height: 50rpx;
|
||||
width: 150rpx;
|
||||
}
|
||||
.top-row-title-class-add{
|
||||
font-size: 30rpx;
|
||||
font-style: auto;
|
||||
color: #666666;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
line-height: 50rpx;
|
||||
height: 50rpx;
|
||||
}
|
||||
.top-row-title-class-add-text{
|
||||
|
||||
}
|
||||
.selCondition{
|
||||
width: 100%;
|
||||
}
|
||||
.selCondition-date{
|
||||
width: 100%;
|
||||
color: #2560C9;
|
||||
padding: 5rpx 10rpx;
|
||||
font-size:28rpx;
|
||||
/* border: 1px solid #D8D8D8; */
|
||||
border-radius: 10rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.selCondition-alter{
|
||||
width: 100%;
|
||||
height: 180rpx; line-height: 60rpx;
|
||||
border-radius: 10rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.confirmBtn{
|
||||
height: 64rpx;
|
||||
line-height: 64rpx;
|
||||
width: calc(100% - 64rpx);
|
||||
font-size: 32rpx;
|
||||
color: #FFFFFF;
|
||||
text-align: center;
|
||||
border-radius: 40rpx;
|
||||
background-color: #2560C9;
|
||||
position: absolute;
|
||||
bottom: 32rpx;
|
||||
left: 32rpx;
|
||||
}
|
||||
.container {
|
||||
/* position: relative;
|
||||
overflow-x: auto; */
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
.delete-icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
img{
|
||||
height: 25px;
|
||||
width: 25px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Executable
+839
@@ -0,0 +1,839 @@
|
||||
<template>
|
||||
<view class="home">
|
||||
<view class="topBar">
|
||||
<view class="topBar-text">首页</view>
|
||||
<view class="msg" @click="msgClick">
|
||||
<image class="msg-img" src="../../../static/home/msg.png"/>
|
||||
<text class="msg-text" v-show="count !== 0">{{count}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="home-apply">
|
||||
<view class="home-news-title">
|
||||
<text class="news-info">常用应用</text>
|
||||
</view>
|
||||
<view class="home-apply-item">
|
||||
<uni-grid :column="4" :show-border="false" :square="false">
|
||||
<uni-grid-item v-for="(subitem ,subindex) in comList" :key="subindex">
|
||||
<view class="grid-item-box" @click="NavigateApplyKanban(subitem)" v-if="subitem.PrgType==4">
|
||||
<image class="image" src="../../../static/icon/unchecked.png" />
|
||||
<text class="text">{{subitem.NAME}}</text>
|
||||
</view>
|
||||
<view class="grid-item-box" @click="NavigateApply(subitem.KEY)" v-else>
|
||||
<view class="image" :style="{backgroundImage:'url('+subitem.src+')'}"/>
|
||||
<text class="text">{{subitem.NAME}}</text>
|
||||
</view>
|
||||
</uni-grid-item>
|
||||
<uni-grid-item>
|
||||
<view class="grid-item-box" @click="PageNavigate('../../apply/applymanage/applymanage')">
|
||||
<image class="image" src="../../../static/home/more_apply.png" />
|
||||
<text class="text">应用设置</text>
|
||||
</view>
|
||||
</uni-grid-item>
|
||||
</uni-grid>
|
||||
</view>
|
||||
</view>
|
||||
<view class="divider"></view>
|
||||
<view class="home-card">
|
||||
<view class="home-news-title">
|
||||
<text class="news-info">新闻资讯</text>
|
||||
<text class="news-more" @click="loadMore()">更多</text>
|
||||
</view>
|
||||
<view class="home-news-detail">
|
||||
<scroll-view scroll-x="true" show-scrollbar="false">
|
||||
<view class="home-news-detail-outline">
|
||||
<view class="home-news-detail-item" v-if="listNews.length>0"
|
||||
v-for="(item,index) in listNews" :key='index'>
|
||||
<view class="home-news-detail-item-img"
|
||||
:style="{'height':newsHeight+'px','width':newsWidth+'px',backgroundImage: 'url(' + item.FImageBase64 + ')'}"
|
||||
@click="goDetail(item,index)"></view>
|
||||
<view class="home-news-detail-item-text" :style="{'width':newsWidth-2+'px'}" @click="goDetail(item,index)">
|
||||
<text class="home-news-detail-item-text-title">{{item.FName}}</text>
|
||||
<text class="home-news-detail-item-text-time">{{item.C_YMD}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="home-news-detail-item" v-if="listNews.length==0"
|
||||
v-for="(item,index) in listNewsBlank" :key='index'>
|
||||
<view class="home-news-detail-item-img"
|
||||
:style="{'height':newsHeight+'px','width':newsWidth+'px',backgroundImage: 'url(' + item.FImageBase64 + ')'}"
|
||||
@click="goDetail(item,index)"></view>
|
||||
<view class="home-news-detail-item-text" :style="{'width':newsWidth-2+'px'}" @click="goDetail(item,index)">
|
||||
<text class="home-news-detail-item-text-title">{{item.FName}}</text>
|
||||
<text class="home-news-detail-item-text-time">{{item.C_YMD}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="divider"></view>
|
||||
<view class="home-card" style="margin-bottom: 70px;padding-bottom: 30rpx;">
|
||||
<view class="home-news-title">
|
||||
<text class="news-info">我的待办</text>
|
||||
</view>
|
||||
<view class="home-news-title" v-if="arrangeList.length==0">
|
||||
<text class="news-info-none">当前无待办事项</text>
|
||||
</view>
|
||||
<view v-for="(item,index) in arrangeList" v-else>
|
||||
<view class="home-news-detail">
|
||||
<view class="card-date">
|
||||
<view class="date-item">
|
||||
<view class="arrange-time">
|
||||
<image class="img-date" src="../../../static/tabbar/cleandar.png"></image>
|
||||
<text class="time">{{item.FSTARTTIME}}~{{item.FENDTIME}}</text>
|
||||
</view>
|
||||
<view class="detail-info">{{item.FCONTENT ? item.FCONTENT : ''}}</view>
|
||||
</view>
|
||||
<checkbox class="checkbox" :checked="item.isDel" @click="arrangeDel(item,index)" :key="keys"></checkbox>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="tabBar">
|
||||
<view class="tabBar-item" @click="mainSelectF">
|
||||
<view v-show="mainSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/main2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">首页</text>
|
||||
</view>
|
||||
<view v-show="!mainSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/main2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">首页</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tabBar-item" @click="applySelectF">
|
||||
<view v-show="applySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/apply2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">应用</text>
|
||||
</view>
|
||||
<view v-show="!applySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/apply2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">应用</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tabBar-item" @click="cleandarSelectF">
|
||||
<view v-show="cleandarSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/cleandar2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">日程</text>
|
||||
</view>
|
||||
<view v-show="!cleandarSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/cleandar2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">日程</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tabBar-item" @click="mySelectF">
|
||||
<view v-show="mySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/my2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">我的</text>
|
||||
</view>
|
||||
<view v-show="!mySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/my2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">我的</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 系统升级 -->
|
||||
<yomol-upgrade ref="yomolUpgrade"></yomol-upgrade>
|
||||
<opsoft-dialog-notice
|
||||
:dialogNoticeShow="showDialog"
|
||||
:dialogNoticeType="dialogNoticeType"
|
||||
:dialogNoticeTitle="dialogNoticeTitle"
|
||||
:dialogNoticeContent="dialogNoticeContent"
|
||||
@dialogNoticeConfirmClick="dialogNoticeConfirmClick"
|
||||
>
|
||||
</opsoft-dialog-notice>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import uniBadge from "@/components/uni-badge/uni-badge.vue"
|
||||
import faIcon from "@/components/fa-icon/fa-icon.vue";
|
||||
import mediaList from '@/components/tab-nvue/mediaList.vue';
|
||||
import navigationTitle from '@/components/navigation-title/navigation-title.vue';
|
||||
import uniGrid from '@/components/uni-grid/uni-grid.vue';
|
||||
import uniGridItem from '@/components/uni-grid-item/uni-grid-item.vue';
|
||||
import yomolUpgrade from '@/components/yomol-upgrade/yomol-upgrade.vue';
|
||||
import opsoftDialogNotice from '@/components/opsoft-dialog-notice/opsoft-dialog-notice.vue';
|
||||
import errorStrUntil from '@/common/errorStrUntil.js';
|
||||
import version from '@/common/version.js';
|
||||
import Vue from 'vue';
|
||||
import { mapState } from 'vuex';
|
||||
export default {
|
||||
components: {
|
||||
faIcon,
|
||||
mediaList,
|
||||
navigationTitle,
|
||||
yomolUpgrade,
|
||||
uniBadge,
|
||||
opsoftDialogNotice
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
keys:0,
|
||||
infoList:[],
|
||||
count:0,
|
||||
orgid:"",
|
||||
windowWidth:"",
|
||||
windowHeight:"",
|
||||
bannerHeight:"",
|
||||
bannerWidth:"",
|
||||
newsHeight:"",
|
||||
newsWidth:"",
|
||||
currentBanner:'',
|
||||
mainSelect:true,
|
||||
applySelect:false,
|
||||
cleandarSelect:false,
|
||||
mySelect:false,
|
||||
listBanner: [],
|
||||
listBannerBlank:[
|
||||
{"url":'../../../static/home/banner1.png'},
|
||||
{"url":'../../../static/home/banner2.png'},
|
||||
{"url":'../../../static/home/banner3.png'},
|
||||
],
|
||||
listNews: [],
|
||||
listNewsBlank:[
|
||||
{"FImageBase64":'../../../static/home/big_1.png',"FName":"电子公司引入WMS解决仓储诸点","C_YMD":"2021-1-11 18:00:00"},
|
||||
{"FImageBase64":'../../../static/home/big_2.png',"FName":"WMS管理软件如实现精细化管理","C_YMD":"2021-1-11 18:00:00"},
|
||||
{"FImageBase64":'../../../static/home/big_3.png',"FName":"智能仓储管理系统的设计方案","C_YMD":"2021-1-11 18:00:00"},
|
||||
],
|
||||
list:[],
|
||||
pageIndex: 0,
|
||||
loadingText: '下拉加载',
|
||||
comList: [],
|
||||
dialogNoticeContent:'',
|
||||
dialogNoticeTitle:'',
|
||||
dialogNoticeType:'',
|
||||
showDialog:false,
|
||||
arrangeList: [],
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['hasLogin', 'userInfo'])
|
||||
},
|
||||
onShow() {
|
||||
setTimeout(() => {
|
||||
this.getFavoritesMenu();
|
||||
this.getInfoNumber();
|
||||
},400)
|
||||
|
||||
let date = new Date();
|
||||
let curDate = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate();
|
||||
this.getPersonalInfo(curDate);
|
||||
},
|
||||
onLoad() {
|
||||
const res = uni.getSystemInfoSync();
|
||||
this.windowHeight = res.windowHeight;
|
||||
this.windowWidth = res.windowWidth;
|
||||
let sWindow = this.windowHeight*this.windowWidth;
|
||||
let sBaseBanner = 366*200;
|
||||
let sBaseWindow = 414*896;
|
||||
let basePrecent = sBaseBanner/sBaseWindow;
|
||||
let baseWHprecent = 366/200;233
|
||||
let sWindowBanner = sWindow*basePrecent;
|
||||
this.bannerHeight = Math.sqrt((sWindowBanner/baseWHprecent));
|
||||
this.bannerWidth = this.bannerHeight*baseWHprecent;
|
||||
let sBaseNews = 140*90;
|
||||
let basePrecentNews = sBaseNews/sBaseWindow;
|
||||
let baseWHprecentNews = 140/90;
|
||||
let sWindowNews = sWindow*basePrecentNews;
|
||||
this.newsHeight = Math.sqrt((sWindowNews/baseWHprecentNews));
|
||||
this.newsWidth = this.newsHeight*baseWHprecentNews;
|
||||
this.getAllMenu();
|
||||
this.getFavoritesMenu();
|
||||
this.GetOrgInfo();
|
||||
this.checkVersion();
|
||||
this.getUnReadCount();
|
||||
},
|
||||
methods: {
|
||||
getPersonalInfo(curDate) {
|
||||
let _self = this;
|
||||
let requestParams = {
|
||||
"dateTime":curDate,
|
||||
"fInterID":this.FINTERID ? this.FINTERID : "''"
|
||||
};
|
||||
uni.showLoading({
|
||||
title:'加载中……',
|
||||
mask:true
|
||||
})
|
||||
// log.writeLog(requestParams, false);
|
||||
this.$request.get('/SysConfigData/PersonDiary',{params:requestParams})
|
||||
.then(res => {
|
||||
uni.hideLoading();
|
||||
let datalist = res;
|
||||
if (datalist) {
|
||||
this.arrangeList = datalist;
|
||||
this.arrangeList.forEach(
|
||||
function(el){
|
||||
let sTime = el.FSTARTTIME.split(" ");
|
||||
let eTime = el.FENDTIME.split(" ");
|
||||
sTime = sTime[1].split(":");
|
||||
eTime = eTime[1].split(":");
|
||||
el.FSTARTTIME = sTime[0]+":"+sTime[1];
|
||||
el.FENDTIME = eTime[0]+":"+eTime[1];
|
||||
el.isDel = false;
|
||||
}
|
||||
);
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
uni.hideLoading();
|
||||
console.log()
|
||||
if(err.message == '未找到日志信息'){
|
||||
this.arrangeList = [];
|
||||
this.clickDayList = [];
|
||||
}else{
|
||||
this.dialogProps(err)
|
||||
}
|
||||
|
||||
});
|
||||
},
|
||||
arrangeDel(item,index){
|
||||
let requestParams = {
|
||||
"interId": item.FINTERID ? item.FINTERID : ''
|
||||
};
|
||||
uni.showLoading({
|
||||
title:'加载中……',
|
||||
mask:true
|
||||
})
|
||||
this.$request.get('/SysConfigData/DelPersonDiary',{params:requestParams})
|
||||
.then(res => {
|
||||
uni.hideLoading();
|
||||
this.arrangeList.splice(index,1);
|
||||
this.arrangeList.forEach(e => {
|
||||
e.isDel = false
|
||||
})
|
||||
uni.showToast({
|
||||
title:"删除成功",
|
||||
icon:'none'
|
||||
})
|
||||
this.keys++
|
||||
})
|
||||
.catch(err => {
|
||||
uni.hideLoading();
|
||||
this.dialogProps(err)
|
||||
});
|
||||
},
|
||||
dialogNoticeConfirmClick(){
|
||||
this.showDialog = false;
|
||||
},
|
||||
getUnReadCount(){
|
||||
let _self = this;
|
||||
let loginId = uni.getStorageSync('userName')
|
||||
let requestParams = {
|
||||
userId: loginId,
|
||||
};
|
||||
this.$request.get('/PersonalMessage/GetCountUnReadPersonalMessage',{params:requestParams})
|
||||
.then(res => {
|
||||
_self.count = res.SumCount;
|
||||
}).catch(err => {
|
||||
uni.hideLoading();
|
||||
this.dialogProps(err)
|
||||
});
|
||||
},
|
||||
|
||||
getInfoNumber(){
|
||||
let _self = this;
|
||||
let loginId = uni.getStorageSync('userName');
|
||||
let requestParams;
|
||||
},
|
||||
|
||||
msgClick(){
|
||||
uni.navigateTo({
|
||||
url:'./msg'
|
||||
});
|
||||
},
|
||||
bannerChange(event) {
|
||||
let current = event.detail.current;
|
||||
this.currentBanner = current;
|
||||
},
|
||||
NavigateApplyKanban(subitem) {
|
||||
let page=subitem.KEY;
|
||||
if (page) {
|
||||
let tempurl='../../views/KanBan/KanBan'+'?pageNumber='+page;
|
||||
uni.navigateTo({
|
||||
url: tempurl
|
||||
});
|
||||
}
|
||||
},
|
||||
NavigateApply(page) {
|
||||
// #ifdef APP-PLUS || H5
|
||||
uni.navigateTo({
|
||||
url: '../../views/' + page + '/' + page
|
||||
|
||||
});
|
||||
// #endif
|
||||
},
|
||||
PageNavigate: function(url) {
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
});
|
||||
},
|
||||
mainSelectF(){
|
||||
this.mainSelect = true;
|
||||
this.applySelect = false;
|
||||
this.cleandarSelect = false;
|
||||
this.mySelect = false;
|
||||
},
|
||||
applySelectF(){
|
||||
this.mainSelect = false;
|
||||
this.applySelect = true;
|
||||
this.cleandarSelect = false;
|
||||
this.mySelect = false;
|
||||
uni.redirectTo({
|
||||
url:'../apply/apply'
|
||||
});
|
||||
},
|
||||
cleandarSelectF(){
|
||||
this.mainSelect = false;
|
||||
this.applySelect = false;
|
||||
this.cleandarSelect = true;
|
||||
this.mySelect = false;
|
||||
uni.redirectTo({
|
||||
url:'../calendar/calender'
|
||||
});
|
||||
},
|
||||
mySelectF(){
|
||||
this.mainSelect = false;
|
||||
this.applySelect = false;
|
||||
this.cleandarSelect = false;
|
||||
this.mySelect = true;
|
||||
uni.redirectTo({
|
||||
url:'../myinfo/myinfo'
|
||||
});
|
||||
},
|
||||
//更多
|
||||
loadMore: function() {
|
||||
uni.navigateTo({
|
||||
url: `./moerNews`
|
||||
});
|
||||
},
|
||||
//新闻详情
|
||||
goDetail(item, index) {
|
||||
uni.setStorageSync('newsDetail',item);
|
||||
uni.navigateTo({
|
||||
url: `./newsDetail`
|
||||
});
|
||||
},
|
||||
|
||||
//系统升级
|
||||
checkVersion() {
|
||||
let verCode = version.versionCode;
|
||||
// #ifdef APP-PLUS
|
||||
plus.runtime.getProperty(plus.runtime.appid,(wgtinfo)=>{
|
||||
verCode = wgtinfo.versionCode;
|
||||
});
|
||||
// #endif
|
||||
let requestParams = {
|
||||
"appType":2
|
||||
};
|
||||
|
||||
this.$request.get('/SysConfigData/GetLatestAppInfo',{params: requestParams}).then(res => {
|
||||
let data = res;
|
||||
if (data && data.Fversioncode) {
|
||||
let urlVerCode = parseInt(data.Fversioncode);
|
||||
if(urlVerCode > verCode ){
|
||||
this.$refs.yomolUpgrade.show(data);
|
||||
}
|
||||
}
|
||||
else {
|
||||
uni.hideLoading();
|
||||
}
|
||||
}).catch(err => {
|
||||
uni.hideLoading();
|
||||
this.dialogProps(err)
|
||||
});
|
||||
},
|
||||
|
||||
getAllMenu(){
|
||||
this.$request.post('/Service/GetAllMenu')
|
||||
.then(res => {
|
||||
let data = res.MainMenu;
|
||||
if(data&&data.length>0){
|
||||
data = data.filter(e => {
|
||||
return e.NAME != "生产汇报"
|
||||
});
|
||||
data = data.filter(e => {
|
||||
return e.NAME != "生产检验"
|
||||
});
|
||||
data = data.filter(e => {
|
||||
return e.NAME != "安灯预警"
|
||||
});
|
||||
data = data.filter(e => {
|
||||
return e.NAME != "预警平台"
|
||||
});
|
||||
}
|
||||
|
||||
data.forEach(
|
||||
function(item){
|
||||
item.SubMenus.forEach(
|
||||
function(el) {
|
||||
el.src = '../../../static/icon/'+el.KEY+'.png';
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
uni.setStorageSync('AllMenu',data);
|
||||
})
|
||||
.catch(err => {
|
||||
uni.hideLoading();
|
||||
this.dialogProps(err)
|
||||
});
|
||||
},
|
||||
getFavoritesMenu(){
|
||||
this.$request.post('/Service/GetFavoritesMenu')
|
||||
.then(res => {
|
||||
let datas = res;
|
||||
datas.forEach((item, index) => {
|
||||
let subdata = item.SubMenus
|
||||
subdata.forEach((item, index) => {
|
||||
if (item.NAME.length > 6) {
|
||||
item.NAME = item.NAME.substr(0, 6)
|
||||
}
|
||||
});
|
||||
});
|
||||
this.comList = datas;
|
||||
|
||||
|
||||
this.comList.forEach(
|
||||
function(el) {
|
||||
el.src = '../../../static/icon/'+el.KEY+'.png';
|
||||
}
|
||||
);
|
||||
uni.setStorageSync('ComMenu',this.comList);
|
||||
})
|
||||
.catch(err => {
|
||||
uni.hideLoading();
|
||||
this.dialogProps(err)
|
||||
});
|
||||
},
|
||||
|
||||
GetOrgInfo:function(){
|
||||
uni.showLoading({
|
||||
mask: true
|
||||
});
|
||||
|
||||
this.$request.get('/Service/GetSysOrgForUser').then(res => {
|
||||
uni.hideLoading()
|
||||
let orgInfo = res;
|
||||
orgInfo.forEach((item) => {
|
||||
item.FItemID = item.FINTERID
|
||||
});
|
||||
uni.setStorageSync('orgInfo',orgInfo);
|
||||
}).catch(err => {
|
||||
uni.hideLoading();
|
||||
this.dialogProps(err)
|
||||
});
|
||||
},
|
||||
dialogProps(err){
|
||||
err = errorStrUntil.handle(err);
|
||||
this.showDialog = true;
|
||||
this.dialogNoticeType = 'error';
|
||||
this.dialogNoticeTitle = '异常提示';
|
||||
this.dialogNoticeContent = err;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
page{background: #FFFFFF;}
|
||||
.home {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
.topBar{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 120rpx;
|
||||
line-height: 120rpx;
|
||||
width: 100%;
|
||||
background: #2560C9;
|
||||
|
||||
font-size: 32.6rpx;
|
||||
font-family: PingFangSC-Semibold, PingFang SC;
|
||||
font-weight: 600;
|
||||
color: #FFFFFF;
|
||||
text-align: center;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
z-index: 999;
|
||||
}
|
||||
.topBar-text{
|
||||
width: 100%;
|
||||
height: 120rpx;
|
||||
line-height: 120rpx;
|
||||
font-size: 32.6rpx;
|
||||
font-family: PingFangSC-Semibold, PingFang SC;
|
||||
font-weight: 600;
|
||||
color: #FFFFFF;
|
||||
/* margin-left: 48rpx; */
|
||||
text-align: center;
|
||||
}
|
||||
.msg{
|
||||
position: relative;
|
||||
display: flex;
|
||||
margin-right: 48rpx;
|
||||
}
|
||||
.msg-img{
|
||||
height: 36.23rpx;
|
||||
width: 36.23rpx;
|
||||
}
|
||||
.msg-text{
|
||||
height: 13px;
|
||||
line-height: 13px;
|
||||
background: #FF5353;
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
border-radius: 90px;
|
||||
font-size: 12px;
|
||||
position: absolute;
|
||||
left: 21.73rpx;
|
||||
top: -12px;
|
||||
padding: 3px;
|
||||
}
|
||||
.home-swiper view {
|
||||
height: 100%;
|
||||
}
|
||||
.swiper-item{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.swiper-item-image {
|
||||
border-radius: 10upx;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
.swiper-item-banner{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.swiper-item-banner-image{
|
||||
border-radius: 10upx;
|
||||
height: 80%;
|
||||
width: 100%;
|
||||
}
|
||||
.divider{
|
||||
height: 20rpx;
|
||||
width: 100%;
|
||||
background: #e5e5e5;
|
||||
}
|
||||
.home-card{width: 100%;background: #FFFFFF;padding-bottom: 20rpx;}
|
||||
.home-news-title{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
align-items: center;
|
||||
background: #FFFFFF;
|
||||
padding: 30rpx 0;
|
||||
}
|
||||
.news-info{
|
||||
height: 45.28rpx;
|
||||
line-height: 45.28rpx;
|
||||
width: 100%;
|
||||
|
||||
font-size: 32.6rpx;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #000000;
|
||||
margin-left: 48rpx;
|
||||
}
|
||||
.news-info-none{
|
||||
height: 45.28rpx;
|
||||
line-height: 45.28rpx;
|
||||
width: 100%;
|
||||
|
||||
color: rgba(120, 120, 120, 1);
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
margin-left: 48rpx;
|
||||
}
|
||||
.news-more{
|
||||
height: 45.28rpx;
|
||||
line-height: 45.28rpx;
|
||||
width: 72.46rpx;
|
||||
|
||||
font-size: 25.36rpx;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #4688FD;
|
||||
margin-right: 48rpx;
|
||||
|
||||
}
|
||||
.home-news-detail{
|
||||
margin-left: 48rpx;margin-right: 48rpx;
|
||||
}
|
||||
.home-news-detail-outline{
|
||||
display: flex;flex-direction: row;
|
||||
}
|
||||
.home-news-detail-item{
|
||||
display: flex;flex-direction: column;margin-right: 48rpx;margin-left: 1px;margin-bottom: 48rpx;
|
||||
}
|
||||
.home-news-detail-item-img{
|
||||
border-radius: 9.05rpx 9.05rpx 0 0;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
}
|
||||
.home-news-detail-item-text{
|
||||
display: flex;flex-direction: column;border-radius: 0 0 9.05rpx 9.05rpx;
|
||||
/* border: #333333 solid 1.81rpx; */
|
||||
background: #FFFFFF;
|
||||
|
||||
/* border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
||||
border-left: 1px solid rgba(0, 0, 0, 0.1);
|
||||
border-right: 1px solid rgba(0, 0, 0, 0.1); */
|
||||
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1)
|
||||
}
|
||||
.home-news-detail-item-text-title{
|
||||
font-size: 21.73rpx;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #000000;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
/* white-space: nowrap; */
|
||||
word-break: break-all;
|
||||
width: 90%;
|
||||
margin-left: 5%;
|
||||
margin-right: 5%;
|
||||
margin-top: 21.73rpx;
|
||||
}
|
||||
.home-news-detail-item-text-time{
|
||||
font-size: 18.11rpx;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #787878;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
word-break: break-all;
|
||||
width: 90%;
|
||||
margin-left: 5%;
|
||||
margin-right: 5%;
|
||||
}
|
||||
.home-apply{width: 100%;margin-top: 60px;}
|
||||
.home-apply-item{
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
font-size: 14px;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
.grid-item-box {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding-bottom: 30rpx;
|
||||
}
|
||||
.image{
|
||||
height: 79.71rpx;
|
||||
width: 79.71rpx;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
}
|
||||
.text {
|
||||
padding: 10upx 0;
|
||||
word-break: break-all;
|
||||
text-align: center;
|
||||
line-height: 16px;
|
||||
width: 64px;
|
||||
}
|
||||
.card-date{
|
||||
height: 180rpx;
|
||||
background: #e5e5e5;
|
||||
/* padding: 20rpx 0; */
|
||||
border-radius: 7.25px;
|
||||
margin-bottom: 10rpx;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
.date-item{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: calc(100% - 80rpx);
|
||||
}
|
||||
.arrange-time {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
margin-left: 40rpx;
|
||||
}
|
||||
|
||||
.img-date {
|
||||
height: 54.34rpx;
|
||||
width: 54.34rpx;
|
||||
}
|
||||
|
||||
.time {
|
||||
height: 54.34rpx;
|
||||
line-height: 54.34rpx;
|
||||
font-size: 28.98rpx;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #000000;
|
||||
margin-left: 21.73rpx;
|
||||
}
|
||||
|
||||
.detail-info {
|
||||
height: 45.28rpx;
|
||||
line-height: 45.28rpx;
|
||||
font-size: 32.6rpx;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #000000;
|
||||
margin-left: 119.56rpx;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.checkbox{margin-right: 0;}
|
||||
.tabBar{
|
||||
display: flex;
|
||||
position: fixed;
|
||||
flex-direction: row;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
height: 119.56rpx;
|
||||
|
||||
background: rgba(255, 255, 255, 1);
|
||||
box-shadow:2px 2px 3px rgba(0, 0, 0, 1);
|
||||
}
|
||||
.tabBar-item{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 1;
|
||||
flex-grow: 1;
|
||||
align-items: center ;
|
||||
width: 100%;
|
||||
}
|
||||
.tabBar-item-view{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 1;
|
||||
flex-grow: 1;
|
||||
align-items: center ;
|
||||
}
|
||||
.tabBar-item-img{
|
||||
height: 54.34rpx;
|
||||
width: 54.34rpx;
|
||||
margin-top: 16.3rpx;
|
||||
}
|
||||
.tabBar-item-text{
|
||||
text-align: center;
|
||||
|
||||
height: 28.98rpx;
|
||||
font-size: 28.98rpx;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #515151;
|
||||
line-height: 28.98rpx;
|
||||
}
|
||||
|
||||
</style>
|
||||
Executable
+166
@@ -0,0 +1,166 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<view class="msg" v-for="(item,index) in listNewsBlank" :key='index' @click="Detail(item)" v-if="list.length == 0">
|
||||
<view class="my-body">
|
||||
<view class="item-card">
|
||||
<view class="item-card-left">
|
||||
<text class='left-title'>{{item.FName}}</text>
|
||||
<text class="left-date">日期:{{item.C_YMD}}</text>
|
||||
</view>
|
||||
<view class="item-card-right" :style="{backgroundImage: 'url(' + item.FImageBase64 + ')'}"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="msg" v-for="(item,index) in list" :key='index' @click="Detail(item)" v-if="list.length > 0">
|
||||
<view class="my-body">
|
||||
<view class="item-card">
|
||||
<view class="item-card-left">
|
||||
<text class='left-title'>{{item.FName}}</text>
|
||||
<text class="left-date">日期:{{item.C_YMD}}</text>
|
||||
</view>
|
||||
<view class="item-card-right" :style="{backgroundImage: 'url(' + item.FImageBase64 + ')'}"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import errorUtil from '@/common/errorutil.js';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
orgid:'',
|
||||
list:[],
|
||||
pageIndex:1,
|
||||
pageSize:6,
|
||||
showTips:false,
|
||||
listNewsBlank:[
|
||||
{"FImageBase64":'../../../static/home/big_1.png',"FName":"电子公司引入WMS解决仓储诸多痛点","C_YMD":"2021-1-11 18:00:00"},
|
||||
{"FImageBase64":'../../../static/home/big_2.png',"FName":"WMS仓库管理软件如何实现精细化管理","C_YMD":"2021-1-11 18:00:00"},
|
||||
{"FImageBase64":'../../../static/home/big_3.png',"FName":"智能仓储管理系统的设计方案","C_YMD":"2021-1-11 18:00:00"},
|
||||
],
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
onLoad() {
|
||||
this.pageIndex = 1;
|
||||
this.getNews(1, 6);
|
||||
|
||||
},
|
||||
onShow() {
|
||||
this.list = uni.getStorageSync('infoList')
|
||||
},
|
||||
onPullDownRefresh:function(){
|
||||
this.showTips = false;
|
||||
this.getNews(1, 6);
|
||||
setTimeout(()=>{
|
||||
//停止下拉样式
|
||||
uni.stopPullDownRefresh();
|
||||
//隐藏标题读取
|
||||
uni.hideNavigationBarLoading();
|
||||
},
|
||||
500);
|
||||
},
|
||||
|
||||
onReachBottom:function(){
|
||||
if(!this.showTips) {
|
||||
this.getInfo(this.pageIndex, this.pageSize);
|
||||
}
|
||||
else {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '已经到底了'
|
||||
});
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getNews(pageIndex,pageSize){
|
||||
let _self = this;
|
||||
let requestParams = {
|
||||
basicType:2,
|
||||
pageSize:pageSize,
|
||||
pageIndex:pageIndex,
|
||||
UID:''
|
||||
};
|
||||
this.$request.get('/SysMessage/Notice',{params:requestParams})
|
||||
.then(res => {
|
||||
_self.listNews = res;
|
||||
}).catch(err => {
|
||||
uni.hideLoading();
|
||||
this.dialogProps(err)
|
||||
});
|
||||
},
|
||||
Detail:function(item){
|
||||
uni.setStorageSync('newsDetail',item);
|
||||
uni.navigateTo({
|
||||
url:'./newsDetail'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
page{
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
.msg{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-left: 40rpx;
|
||||
margin-right: 40rpx;
|
||||
background: #FFFFFF;
|
||||
height: 240rpx;
|
||||
border-bottom: solid 2rpx rgba(243, 243, 243, 1);
|
||||
}
|
||||
.my-body{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
background: #FFFFFF;
|
||||
align-items: center;
|
||||
}
|
||||
.item-card{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
height: 240rpx;
|
||||
width: 100%;
|
||||
align-items: center;
|
||||
.item-card-left{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
height: 140rpx;
|
||||
width: calc(100% - 240rpx);
|
||||
.left-title{
|
||||
height: 55px;
|
||||
line-height: 25px;
|
||||
color: rgba(0, 0, 0, 1);
|
||||
letter-spacing: 1px;
|
||||
font-size: 18px;
|
||||
font-weight: 400;
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.left-date{
|
||||
height: 15px;
|
||||
color: rgba(120, 120, 120, 1);
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
.item-card-right{
|
||||
height: 140rpx;width: 240rpx;flex-shrink: 0;
|
||||
background-image: url('../../../static/home/banner2.png');
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
Executable
+242
@@ -0,0 +1,242 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<view class="msg" v-for="(item,index) in list" :key='index'>
|
||||
<view class="my-body">
|
||||
<view>
|
||||
<image v-if="item.FINFOSTATUS==2" class="dot" src="../../../static/home/dot.png"/>
|
||||
<text class="dot-text">{{item.FNAME}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if='!item.show' class="detail detail-ellipsis">{{item.FCONTENT}}</view>
|
||||
<view v-if='item.show' class="detail">{{item.FCONTENT}}</view>
|
||||
|
||||
<view class="time">日期:  {{item.C_YMD}}</view>
|
||||
<view style="border-style:solid;border-width:1px 0px 0px 0px;border-color:rgba(240, 240, 240, 1);"/>
|
||||
<view v-if='item.show' class="look-Class" @click="showDetail(item)">收起</view>
|
||||
<view v-if='!item.show' :class="['look-Class',item.FINFOSTATUS==2?'look-unRead-Class':'']" @click="showDetail(item)">
|
||||
查看详情
|
||||
</view>
|
||||
</view>
|
||||
<view style="height: 20px;"></view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
mapState
|
||||
} from 'vuex';
|
||||
import errorUtil from '@/common/errorutil.js';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
orgid:'',
|
||||
list:[],
|
||||
pageIndex:1,
|
||||
pageSize:20,
|
||||
showTips:false,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['hasLogin', 'userInfo'])
|
||||
},
|
||||
onLoad() {
|
||||
this.getInfo(1, this.pageSize);
|
||||
this.pageIndex = 1;
|
||||
},
|
||||
onShow() {
|
||||
this.list = uni.getStorageSync('infoList')
|
||||
},
|
||||
onPullDownRefresh:function(){
|
||||
this.showTips = false;
|
||||
this.getInfo(1, this.pageSize);
|
||||
setTimeout(()=>{
|
||||
//停止下拉样式
|
||||
uni.stopPullDownRefresh();
|
||||
//隐藏标题读取
|
||||
uni.hideNavigationBarLoading();
|
||||
},
|
||||
500);
|
||||
},
|
||||
|
||||
onReachBottom:function(){
|
||||
if(!this.showTips) {
|
||||
this.getInfo(this.pageIndex, this.pageSize);
|
||||
}
|
||||
else {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '已经到底了'
|
||||
});
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getInfo(index,size) {
|
||||
let _self = this;
|
||||
let loginId = uni.getStorageSync('userName')
|
||||
this.pageIndex = index;
|
||||
this.$request.get('/PersonalMessage/GetAllPersonalMessage',{
|
||||
params:{
|
||||
userId:loginId,
|
||||
pageNum:this.pageIndex,
|
||||
pageCount:size
|
||||
}
|
||||
}).then(res => {
|
||||
console.log('res', res.Data);
|
||||
let datalist = res.Data;
|
||||
if(this.pageIndex == 1) {
|
||||
this.list = datalist;
|
||||
this.pageIndex = this.pageIndex+1;
|
||||
} else {
|
||||
if(datalist.length != 0) {
|
||||
let newArray = this.list.concat(datalist);
|
||||
this.list = newArray;
|
||||
this.pageIndex = this.pageIndex+1;
|
||||
if(datalist.length < 6) {
|
||||
_self.showTips = true;
|
||||
}
|
||||
} else {
|
||||
_self.showTips = true;
|
||||
}
|
||||
}
|
||||
|
||||
datalist.forEach(function(item) {
|
||||
item.show = false;
|
||||
});
|
||||
}).catch(err => {
|
||||
errorUtil.handle(err);
|
||||
});
|
||||
|
||||
},
|
||||
showDetail(item) {
|
||||
item.show = !item.show;
|
||||
if (item.FINFOSTATUS == 2) {
|
||||
let requestParams = { MessageNoList:[], Type:3 };
|
||||
requestParams.MessageNoList.push(item.FNUMBER);
|
||||
this.$request.post('/PersonalMessage/UpdatePersonalMessage',requestParams);
|
||||
}
|
||||
item.FINFOSTATUS = 3;
|
||||
this.$forceUpdate();
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.page {
|
||||
background-color: #F2F2F2;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
view{
|
||||
display: flex;
|
||||
}
|
||||
.msg{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-left: 43.47rpx;
|
||||
margin-right: 43.47rpx;
|
||||
margin-top: 43.47rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 9.05rpx;
|
||||
padding: 36rpx 36rpx 20rpx 36rpx;
|
||||
}
|
||||
.my-body{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: start;
|
||||
height: 39.85rpx;
|
||||
line-height: 39.85rpx;
|
||||
/* margin-bottom: 14.49rpx; */
|
||||
background: #FFFFFF;
|
||||
border-radius: 9.05rpx;
|
||||
font-size: 16px;
|
||||
}
|
||||
.dot{
|
||||
height: 10.86rpx;
|
||||
width: 10.86rpx;
|
||||
margin-right: 10rpx;
|
||||
background: #E24848;
|
||||
border-radius: 50%;
|
||||
margin-right: 16rpx;
|
||||
}
|
||||
.dot-text {
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
max-width: 70%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
word-break: break-all;
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
color: rgba(26, 26, 26, 1)
|
||||
}
|
||||
.end{
|
||||
height: 32.6rpx;
|
||||
width: 32.6rpx;
|
||||
}
|
||||
.my-body view{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 16px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #4688FD;
|
||||
}
|
||||
.detail{
|
||||
margin-top: 14.49rpx;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: rgba(88, 88, 88, 1);
|
||||
}
|
||||
.detail-ellipsis {
|
||||
height: 50px;
|
||||
text-overflow:ellipsis;
|
||||
overflow:hidden;
|
||||
display: -webkit-box;
|
||||
/* 弹性盒子元素垂直排列 */
|
||||
-webkit-box-orient: vertical;
|
||||
/* 控制要显示的行数 */
|
||||
-webkit-line-clamp: 2;
|
||||
}
|
||||
.sender{
|
||||
margin-top: 14.49rpx;
|
||||
width: 100%;
|
||||
font-size: 14px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #585858;
|
||||
}
|
||||
.time{
|
||||
width: 100%;
|
||||
font-size: 12px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: rgba(131, 131, 131, 1);
|
||||
margin-top: 14rpx;
|
||||
margin-bottom: 14rpx;
|
||||
}
|
||||
|
||||
.list-title{
|
||||
font-weight: bold;
|
||||
font-size: 16px;
|
||||
/* 文字不换行 */
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap; //文本不换行,这样超出一行的部分被截取,显示...
|
||||
}
|
||||
.look-Class {
|
||||
width:100%;
|
||||
margin-top:20rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: rgba(131, 131, 131, 1);
|
||||
font-size: 14px;
|
||||
}
|
||||
.look-unRead-Class {
|
||||
color: rgba(70, 136, 253, 1);
|
||||
}
|
||||
</style>
|
||||
Executable
+81
@@ -0,0 +1,81 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<view class="title">{{FName}}</view>
|
||||
<view class="sub-title">
|
||||
<text class="date">发稿日期:{{C_YMD}}</text>
|
||||
</view>
|
||||
<view class="img" :style="{backgroundImage: 'url(' + FImageBase64 + ')'}"></view>
|
||||
<view class="content">
|
||||
{{FContent}}
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
detailInfo:[],
|
||||
FName:'',
|
||||
C_YMD:'',
|
||||
FContent:'',
|
||||
FImageBase64:''
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
|
||||
onLoad() {
|
||||
this.detailInfo = uni.getStorageSync('newsDetail');
|
||||
this.FName = this.detailInfo.FName;
|
||||
this.C_YMD = this.detailInfo.C_YMD;
|
||||
this.FContent = this.detailInfo.FContent;
|
||||
this.FImageBase64 = this.detailInfo.FImageBase64;
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.page{
|
||||
overflow-x: hidden;
|
||||
}
|
||||
.title{
|
||||
// height: 100rpx;
|
||||
// line-height: 100rpx;
|
||||
width: calc(100% - 80rpx);
|
||||
margin-left: 40rpx;
|
||||
color: rgba(0, 0, 0, 1);
|
||||
letter-spacing: 1px;
|
||||
font-size: 20px;
|
||||
font-weight: 400;
|
||||
padding: 32rpx 0;
|
||||
}
|
||||
.sub-title{
|
||||
height: 30rpx;
|
||||
line-height: 30rpx;
|
||||
margin-left: 40rpx;
|
||||
color: rgba(120, 120, 120, 1);
|
||||
font-size: 11px;
|
||||
font-weight: 400;
|
||||
}
|
||||
.img{
|
||||
height: 225px;
|
||||
width: calc(100% - 80rpx);
|
||||
margin-top: 40rpx;
|
||||
margin-left: 40rpx;
|
||||
background-image: url('../../../static/home/big_2.png');
|
||||
background-repeat: no-repeat;
|
||||
background-size: contain;
|
||||
}
|
||||
.content{
|
||||
width: calc(100% - 80rpx);
|
||||
margin-left: 40rpx;
|
||||
color: rgba(56, 56, 56, 1);
|
||||
letter-spacing: 1px;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
}
|
||||
</style>
|
||||
Executable
+730
@@ -0,0 +1,730 @@
|
||||
<template>
|
||||
<view class="main">
|
||||
<view class="bg" :style="{'height':bannerHeight+'px'}"></view>
|
||||
<view class="my-info">
|
||||
<view class="my-info-left"></view>
|
||||
<view class="my-info-right">
|
||||
<view class="my-info-right-up">
|
||||
<text class="my-info-name">{{userInfo.UserName==null?'用户昵称':userInfo.UserName}}</text>
|
||||
<image class="my-info-edit" src="../../../static/myinfo/editwithe.png" @click="editClick"></image>
|
||||
</view>
|
||||
<view class="my-info-right-down">{{dataBase}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="my-body-outline" style="margin-top: 121.01rpx;"
|
||||
@click="PageNavigate('../../myinfo/loginmanage/loginmanage')">
|
||||
<image class="left-img" src="../../../static/myinfo/login.png"
|
||||
:style="{'height':leftIconWidth+'px','width':leftIconWidth+'px'}"></image>
|
||||
<view class="my-body">
|
||||
<view>登录管理</view>
|
||||
<image src="../../../static/myinfo/right-arrow.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="my-body-outline" @click="clickClearCache">
|
||||
<image class="left-img" src="../../../static/myinfo/refresh.png"
|
||||
:style="{'height':leftIconWidth+'px','width':leftIconWidth+'px'}"></image>
|
||||
<view class="my-body">
|
||||
<view>刷新缓存</view>
|
||||
<!-- <image src="../../../static/myinfo/right-arrow.png"></image> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="my-body-outline" @click="PageNavigate('../../myinfo/system/system')">
|
||||
<image class="left-img" src="../../../static/myinfo/system-version.png"
|
||||
:style="{'height':leftIconWidth+'px','width':leftIconWidth+'px'}"></image>
|
||||
<view class="my-body">
|
||||
<view>系统版本</view>
|
||||
<image src="../../../static/myinfo/right-arrow.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="my-body-outline" @click="PageNavigate('../../myinfo/parameter/parameter')">
|
||||
<image class="left-img" src="../../../static/myinfo/system-parameter.png"
|
||||
:style="{'height':leftIconWidth+'px','width':leftIconWidth+'px'}"></image>
|
||||
<view class="my-body">
|
||||
<view>系统参数</view>
|
||||
<image src="../../../static/myinfo/right-arrow.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="my-body-outline" @click="PageNavigate('../../myinfo/applyparamsmanage/applyparamsmanage')">
|
||||
<image class="left-img" src="../../../static/myinfo/system-parameter.png"
|
||||
:style="{'height':leftIconWidth+'px','width':leftIconWidth+'px'}"></image>
|
||||
<view class="my-body">
|
||||
<view>应用配置管理</view>
|
||||
<image src="../../../static/myinfo/right-arrow.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="my-body-outline" @click="PageNavigate('../../myinfo/logparamsmanage/logparamsmanage')">
|
||||
<image class="left-img" src="../../../static/myinfo/system-parameter.png"
|
||||
:style="{'height':leftIconWidth+'px','width':leftIconWidth+'px'}"></image>
|
||||
<view class="my-body">
|
||||
<view>日志管理</view>
|
||||
<image src="../../../static/myinfo/right-arrow.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="my-body-outline" @click="showShareDialog">
|
||||
<image class="left-img" src="../../../static/myinfo/system-share.png"
|
||||
:style="{'height':leftIconWidth+'px','width':leftIconWidth+'px'}"></image>
|
||||
<view class="my-body">
|
||||
<view>分享应用</view>
|
||||
<image src="../../../static/myinfo/right-arrow.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view style="height:126.81rpx;" />
|
||||
<view class="tabBar">
|
||||
<view class="tabBar-item" @click="mainSelectF">
|
||||
<view v-show="mainSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/main2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">首页</text>
|
||||
</view>
|
||||
<view v-show="!mainSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/main2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">首页</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tabBar-item" @click="applySelectF">
|
||||
<view v-show="applySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/apply2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">应用</text>
|
||||
</view>
|
||||
<view v-show="!applySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/apply2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">应用</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tabBar-item" @click="cleandarSelectF">
|
||||
<view v-show="cleandarSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/cleandar2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">日程</text>
|
||||
</view>
|
||||
<view v-show="!cleandarSelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/cleandar2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">日程</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tabBar-item" @click="mySelectF">
|
||||
<view v-show="mySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/my2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color:#007AFF">我的</text>
|
||||
</view>
|
||||
<view v-show="!mySelect" class="tabBar-item-view">
|
||||
<image class="tabBar-item-img" src="../../../static/tabbar/my2x.png"></image>
|
||||
<text class="tabBar-item-text" style="color: #666666;">我的</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 分享应用弹窗 -->
|
||||
<view class="opsoft-card-dialog card-shadow" v-if="dialogShow">
|
||||
<view class="opsoft-card-title">
|
||||
<view class="text">PDA端WMS应用程序安装包</view>
|
||||
<view class="icon" @click="dialogShow = false">x</view>
|
||||
</view>
|
||||
|
||||
<view class="opsoft-card-content">
|
||||
<view class="" style="display: flex;flex-direction: column;justify-content: center;align-items: center">
|
||||
<!--<canvas canvas-id="qrcode" style="opacity: 0;position: absolute;left: 0;top: 0;" />-->
|
||||
<uqrcode ref="uQRCode" :text="apkDownloadUrl" cid="asdfsdf" mode="canvas" :size="140" style="z-index: 10000"/>
|
||||
|
||||
<view style="margin-top: 15px">扫一扫, 立即下载PDA端安装包</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="opsoft-card-footer">
|
||||
<view class="button" @click="saveBarcode">保存二维码</view>
|
||||
<view class="button" @click="dialogShow = false">取消</view>
|
||||
<!--<view class="button" @click="toTempFilePath">取消</view>-->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import faIcon from "@/components/fa-icon/fa-icon.vue";
|
||||
import {
|
||||
mapState,
|
||||
mapMutations
|
||||
} from 'vuex';
|
||||
export default {
|
||||
components: {
|
||||
// faIcon
|
||||
},
|
||||
computed: {
|
||||
...mapState(['hasLogin', 'userInfo'])
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
apkDownloadUrl: '',
|
||||
windowWidth:"",
|
||||
windowHeight:"",
|
||||
bannerHeight:"",
|
||||
bannerWidth:"",
|
||||
leftIconHeight:"",
|
||||
leftIconWidth:"",
|
||||
mainSelect:false,
|
||||
applySelect:false,
|
||||
cleandarSelect:false,
|
||||
mySelect:true,
|
||||
avatar: '',
|
||||
dataBase:'',
|
||||
dialogShow: false,
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
if(this.userInfo.avatarUrl)
|
||||
{
|
||||
this.avatar=this.userInfo.avatarUrl
|
||||
}
|
||||
if(this.userInfo.dbAlise){
|
||||
this.dataBase = this.userInfo.dbAlise
|
||||
}
|
||||
|
||||
const res = uni.getSystemInfoSync();
|
||||
this.windowHeight = res.windowHeight;
|
||||
this.windowWidth = res.windowWidth;
|
||||
let sWindow = this.windowHeight*this.windowWidth;
|
||||
let sBaseWindow = 414*896;
|
||||
let sBaseBanner = 414*270;
|
||||
|
||||
let basePrecent = sBaseBanner/sBaseWindow;
|
||||
let baseWHprecent = 414/270;
|
||||
let sWindowBanner = sWindow*basePrecent;
|
||||
this.bannerHeight = Math.sqrt((sWindowBanner/baseWHprecent));
|
||||
this.bannerWidth = this.bannerHeight*baseWHprecent;
|
||||
|
||||
this.getApkUrl();
|
||||
|
||||
},
|
||||
methods: {
|
||||
getApkUrl() {
|
||||
let requestParams = {
|
||||
"appType":2
|
||||
};
|
||||
this.$request.get('/SysConfigData/GetLatestAppInfo',{params: requestParams}).then(res => {
|
||||
let data = res;
|
||||
this.apkDownloadUrl = data.Fversiondownloadurl ? data.Fversiondownloadurl : '下载地址获取出错'
|
||||
});
|
||||
},
|
||||
editClick(){
|
||||
uni.navigateTo({
|
||||
url:'../../myinfo/selfinfo/selfinfo'
|
||||
})
|
||||
},
|
||||
mainSelectF(){
|
||||
this.mainSelect = true;
|
||||
this.applySelect = false;
|
||||
this.cleandarSelect = false;
|
||||
this.mySelect = false;
|
||||
uni.redirectTo({
|
||||
url:'../home/home'
|
||||
})
|
||||
},
|
||||
applySelectF(){
|
||||
this.mainSelect = false;
|
||||
this.applySelect = true;
|
||||
this.cleandarSelect = false;
|
||||
this.mySelect = false;
|
||||
uni.redirectTo({
|
||||
url:'../apply/apply'
|
||||
})
|
||||
},
|
||||
cleandarSelectF(){
|
||||
this.mainSelect = false;
|
||||
this.applySelect = false;
|
||||
this.cleandarSelect = true;
|
||||
this.mySelect = false;
|
||||
uni.redirectTo({
|
||||
url:'../calendar/calender'
|
||||
})
|
||||
},
|
||||
mySelectF(){
|
||||
this.mainSelect = false;
|
||||
this.applySelect = false;
|
||||
this.cleandarSelect = false;
|
||||
this.mySelect = true;
|
||||
},
|
||||
|
||||
PageNavigate:function(urls){
|
||||
uni.navigateTo({
|
||||
url: urls,
|
||||
});
|
||||
// if(this.hasLogin)
|
||||
// {
|
||||
// uni.navigateTo({
|
||||
// url: urls,
|
||||
// });
|
||||
// }
|
||||
// else{
|
||||
// this.clickRePage();
|
||||
// }
|
||||
},
|
||||
|
||||
clickRePage:function(){
|
||||
uni.navigateTo({
|
||||
url: '../../myinfo/login/login'
|
||||
});
|
||||
},
|
||||
|
||||
//清除缓存
|
||||
clickClearCache: function() {
|
||||
//方便测试后续删除
|
||||
let requestUrl = this.$global.globalData.requestUrl;
|
||||
//缓存账套配置
|
||||
this.$global.setGlobalObj({
|
||||
requestUrl: requestUrl
|
||||
});
|
||||
this.clearServerCache();
|
||||
this.getSupplierList(this.userInfo);
|
||||
this.getCustomerList(this.userInfo);
|
||||
this.getDeptList(this.userInfo);
|
||||
this.getSysParameters(this.userInfo);
|
||||
this.$global.GetAllMenu(this.userInfo);
|
||||
|
||||
uni.showToast({
|
||||
title: '缓存已刷新!',
|
||||
duration: 2000,
|
||||
icon: 'none',
|
||||
complete:function() {
|
||||
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
getDeptList: function(userInfo){
|
||||
let requestParams = {
|
||||
"id": userInfo.token,
|
||||
"basicType": 1,
|
||||
orgid:userInfo.orgid
|
||||
};
|
||||
|
||||
this.$request.post(
|
||||
{
|
||||
data: {
|
||||
action: 'QueryBasicData',
|
||||
params: requestParams
|
||||
}
|
||||
}
|
||||
).then(res => {
|
||||
console.log("----getDeptList---- requestsuccess");
|
||||
let datalist = JSON.parse(res);
|
||||
this.saveDeptInfos(datalist);
|
||||
});
|
||||
},
|
||||
|
||||
getCustomerList: function(userInfo){
|
||||
//客户
|
||||
let requestParams = {
|
||||
"id": userInfo.token,
|
||||
"basicType": 3,
|
||||
orgid:userInfo.orgid
|
||||
};
|
||||
|
||||
this.$request.post(
|
||||
{
|
||||
data: {
|
||||
action: 'QueryBasicData',
|
||||
params: requestParams
|
||||
}
|
||||
}
|
||||
).then(res => {
|
||||
console.log("----getCustomerList---- requestsuccess");
|
||||
let datalist = JSON.parse(res);
|
||||
this.saveCustomerInfos(datalist);
|
||||
});
|
||||
},
|
||||
|
||||
getSupplierList: function(userInfo){
|
||||
let requestParams = {
|
||||
"id": userInfo.token,
|
||||
"basicType": 2,
|
||||
orgid:userInfo.orgid
|
||||
};
|
||||
|
||||
this.$request.post(
|
||||
{
|
||||
data: {
|
||||
action: 'QueryBasicData',
|
||||
params: requestParams
|
||||
}
|
||||
}
|
||||
).then(res => {
|
||||
console.log("----getSupplierList---- requestsuccess");
|
||||
let datalist = JSON.parse(res);
|
||||
this.saveSupplierInfos(datalist);
|
||||
});
|
||||
},
|
||||
|
||||
getSysParameters: function(userInfo){
|
||||
this.getSysParameter(userInfo, "BarcodeRuleForVerification");
|
||||
let _self = this;
|
||||
setTimeout(
|
||||
function(){
|
||||
_self.getSysParameter(userInfo, "STOCKPLACECHAR");
|
||||
}, 1000);
|
||||
},
|
||||
|
||||
getSysParameter: function(userInfo, sysKey){
|
||||
let updateFlag = !this.sysParameters;
|
||||
if(!updateFlag) {
|
||||
if(!this.sysParameters.hasOwnProperty(sysKey)) {
|
||||
updateFlag = true;
|
||||
}
|
||||
}
|
||||
|
||||
let requestParams = {
|
||||
"id": userInfo.token,
|
||||
"sysKey": sysKey
|
||||
};
|
||||
|
||||
this.$request.post(
|
||||
{
|
||||
data: {
|
||||
action: 'GetSysParams',
|
||||
params: requestParams
|
||||
}
|
||||
}
|
||||
).then(res => {
|
||||
console.log("----getSysParameters---- requestsuccess");
|
||||
//返回的是字符串
|
||||
let data = res;
|
||||
this.saveSysParameters({value:data, key:sysKey});
|
||||
});
|
||||
},
|
||||
|
||||
clearServerCache: function(){
|
||||
let requestParams = {
|
||||
"id": this.userInfo.token,
|
||||
"sysYN":1,
|
||||
"billYN":1,
|
||||
"deptYN":1,
|
||||
"suppYN":1,
|
||||
"custYN":1,
|
||||
"stockYN":1
|
||||
};
|
||||
|
||||
this.$request.post(
|
||||
{
|
||||
data: {
|
||||
action: 'ArrangeCache',
|
||||
params: requestParams
|
||||
}
|
||||
}
|
||||
).then(res => {
|
||||
let data = JSON.parse(res);
|
||||
console.log("----clearServerCache success----");
|
||||
});
|
||||
},
|
||||
|
||||
showShareDialog() {
|
||||
this.dialogShow = true;
|
||||
// this.$nextTick(() => {
|
||||
// this.$refs.uQRCode.make();
|
||||
// });
|
||||
},
|
||||
toTempFilePath() {
|
||||
uni.showToast({
|
||||
title: 'toTempFilePath',
|
||||
icon: 'none'
|
||||
})
|
||||
this.$refs.uQRCode.toTempFilePath({
|
||||
success: res => {
|
||||
console.log(res)
|
||||
uni.showToast({
|
||||
title: res,
|
||||
icon: 'none'
|
||||
})
|
||||
},
|
||||
fail: res => {
|
||||
console.log(res)
|
||||
uni.showToast({
|
||||
title: res,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 保存二维码
|
||||
saveBarcode() {
|
||||
// uni.showToast({
|
||||
// title: this.$refs.uQRCode.makeing,
|
||||
// icon: 'none'
|
||||
// })
|
||||
this.$refs.uQRCode.save({
|
||||
success: res => {
|
||||
// console.log('makeing', this.$refs.uQRCode.makeing)
|
||||
uni.showToast({
|
||||
title: '保存成功',
|
||||
icon: 'none'
|
||||
})
|
||||
},
|
||||
fail: res => {
|
||||
console.log(res)
|
||||
// console.log('makeing', this.$refs.uQRCode.makeing)
|
||||
uni.showToast({
|
||||
title: '保存失败',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
...mapMutations(['clearCache', 'saveCustomerInfos', 'saveDeptInfos',
|
||||
'saveSysParameters', 'saveSupplierInfos',"deptInfos",
|
||||
"customerInfos", "supplierInfos", "sysParameters"])
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.bg{
|
||||
width: 100%;
|
||||
background-image: url('../../../static/myinfo/mybg.png');
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
}
|
||||
.my-info{
|
||||
position:fixed;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
padding-left: 43.47rpx;
|
||||
align-items: center;
|
||||
z-index: 100;
|
||||
top:150rpx;
|
||||
}
|
||||
.my-info-left{
|
||||
height: 181.15rpx;
|
||||
width: 181.15rpx;
|
||||
background-image: url('../../../static/headNew.png');
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
}
|
||||
.my-info-right{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-left: 43.47rpx;
|
||||
}
|
||||
.my-info-right-up{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
.my-info-name{
|
||||
height: 59.78rpx;
|
||||
font-size: 43.47rpx;
|
||||
font-family: PingFangSC-Semibold, PingFang SC;
|
||||
font-weight: 600;
|
||||
color: #FFFFFF;
|
||||
line-height: 59.78rpx;
|
||||
z-index: 10;
|
||||
}
|
||||
.my-info-edit{
|
||||
height: 43.47rpx;
|
||||
width: 43.47rpx;
|
||||
margin-left: 18.11rpx;
|
||||
z-index: 10;
|
||||
}
|
||||
.my-info-right-down{
|
||||
height: 36.23rpx;
|
||||
font-size: 25.36rpx;
|
||||
font-family: PingFang-SC-Regular, PingFang-SC;
|
||||
font-weight: 400;
|
||||
color: #FFFFFF;
|
||||
line-height: 36.23rpx;
|
||||
z-index: 10;
|
||||
}
|
||||
.my-body-outline{
|
||||
height: 108.69rpx;
|
||||
display: flex;
|
||||
flex-direction:
|
||||
row;align-items: center;
|
||||
}
|
||||
.left-img{
|
||||
height: 50.72rpx;
|
||||
width: 50.72rpx;
|
||||
margin-left: 43.47rpx;
|
||||
}
|
||||
.my-body{
|
||||
width: 80%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: start;
|
||||
height: 108.69rpx;
|
||||
line-height: 108.69rpx;
|
||||
margin-left: 43.47rpx;
|
||||
margin-right: 43.47rpx;
|
||||
border-bottom: #F1F1F1 solid 1.81rpx;
|
||||
}
|
||||
.my-body image{
|
||||
height: 32.6rpx;
|
||||
width: 32.6rpx;
|
||||
}
|
||||
.my-body view{
|
||||
margin-left: 21.73rpx;
|
||||
width: 100%;
|
||||
font-size: 32.6rpx;
|
||||
}
|
||||
.tabBar{
|
||||
display: flex;
|
||||
position: fixed;
|
||||
flex-direction: row;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
height: 119.56rpx;
|
||||
|
||||
background: rgba(255, 255, 255, 1);
|
||||
box-shadow:2px 2px 3px rgba(0, 0, 0, 1);
|
||||
}
|
||||
.tabBar-item{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 1;
|
||||
flex-grow: 1;
|
||||
align-items: center ;
|
||||
width: 100%;
|
||||
}
|
||||
.tabBar-item-view{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 1;
|
||||
flex-grow: 1;
|
||||
align-items: center ;
|
||||
}
|
||||
.tabBar-item-img{
|
||||
height: 54.34rpx;
|
||||
width: 54.34rpx;
|
||||
margin-top: 16.3rpx;
|
||||
}
|
||||
.tabBar-item-text{
|
||||
text-align: center;
|
||||
|
||||
height: 28.98rpx;
|
||||
font-size:28.98rpx;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #515151;
|
||||
line-height: 28.98rpx;
|
||||
}
|
||||
|
||||
.main {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.topBar{
|
||||
/* position: absolute; */
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 181.15rpx;
|
||||
line-height: 181.15rpx;
|
||||
width: 100%;
|
||||
background: #2560C9;
|
||||
|
||||
font-size: 32.6rpx;
|
||||
font-family: PingFangSC-Semibold, PingFang SC;
|
||||
font-weight: 600;
|
||||
color: #FFFFFF;
|
||||
text-align: center;
|
||||
position: fixed;
|
||||
z-index: 999;
|
||||
}
|
||||
.topBar-text{
|
||||
width: 100%;
|
||||
height: 181.15rpx;
|
||||
line-height: 181.15rpx;
|
||||
font-size: 32.6rpx;
|
||||
font-family: PingFangSC-Semibold, PingFang SC;
|
||||
font-weight: 600;
|
||||
color: #FFFFFF;
|
||||
margin-left: 43.47rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<style scoped lang="scss">
|
||||
$pagePadding: 20px;
|
||||
$primaryColor: #4662ff; // 按钮颜色
|
||||
.opsoft-card-dialog {
|
||||
position: absolute;
|
||||
margin: auto auto;
|
||||
width: 550rpx;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
|
||||
min-height: 200px;
|
||||
background-color: #fff;
|
||||
border-radius: 16px;
|
||||
/* width: 434.78rpx; */
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
|
||||
.opsoft-card-title {
|
||||
text-align: left;
|
||||
padding: 0 30rpx;
|
||||
|
||||
height: 72.46rpx;
|
||||
// line-height: 72.46rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid #d7d7d7;
|
||||
|
||||
.text {
|
||||
font-size: 32.61rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.opsoft-card-content {
|
||||
margin: 10px;
|
||||
font-size: 25.36rpx;
|
||||
|
||||
.box {
|
||||
border: 1px solid #d7d7d7;
|
||||
text-align: center;
|
||||
height: 150rpx;
|
||||
line-height: 150rpx;
|
||||
// color: #d7d7d7;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
.img {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.opsoft-card-footer {
|
||||
display: flex;
|
||||
// flex: 1;
|
||||
justify-content: space-around;
|
||||
margin-bottom: 15rpx;
|
||||
|
||||
.button {
|
||||
// width: 50%;
|
||||
padding: 0 15rpx;
|
||||
text-align: center;
|
||||
height: 72.46rpx;
|
||||
line-height: 66.23rpx;
|
||||
border-radius: 0;
|
||||
background-color: $primaryColor;
|
||||
color: #fff;
|
||||
border-radius: 15rpx;
|
||||
// border: 0.5px solid rgba(235, 237, 240, 1);
|
||||
font-family: 思源黑体;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.card-shadow {
|
||||
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user