wangxiaohua 3 years ago
parent
commit
9e6148cafe
12 changed files with 397 additions and 342 deletions
  1. +5
    -0
      App.vue
  2. +2
    -0
      config.js
  3. +378
    -342
      pages/index/index.vue
  4. +6
    -0
      pages/login/index.vue
  5. +6
    -0
      pages/login/yinzhongmalogin.vue
  6. BIN
      static/images/function1.png
  7. BIN
      static/images/function2.png
  8. BIN
      static/images/function3.png
  9. BIN
      static/images/function4.png
  10. BIN
      static/images/function5.png
  11. BIN
      static/images/function6.png
  12. BIN
      static/images/function7.png

+ 5
- 0
App.vue View File

@@ -46,6 +46,11 @@
this.$u.get("/user/getUser").then(data => {
uni.setStorageSync("weapp_session_userInfo_data", data)
})
this.$u.get("/user/getMenu").then(data => {
uni.setStorageSync("weapp_session_Menu_data", data)
})
wx.setInnerAudioOption({
obeyMuteSwitch: false
});


+ 2
- 0
config.js View File

@@ -22,6 +22,8 @@ var config = {
login: `${host}/user/login`,
//获取用户信息
getUser: `${host}/user/getUser`,
//获取权限
getMenu:`${host}/user/getMenu`,
//发送验证码
sendCode:`${host}/user/sendCode`,
//验证码校验


+ 378
- 342
pages/index/index.vue View File

@@ -1,6 +1,6 @@
<template>
<view class="cented-box">
<view class="Switchingbox">
<view class="Switchingbox">
<view class="Switching1">
<image class="Switching1-img" src="../../static/images/building.png" mode=""></image>
</view>
@@ -8,9 +8,9 @@
<view class="Switching3">{{buildingname}}</view>
<view class="Switching4" v-if="buildingishow" @click="piskbuilding()">切换楼盘</view>
</view>
<view class="title" style="margin-top: 30rpx;" v-if="Myworkcard">我的工牌</view>
<view v-if="Myworkcard">
<view v-if="Myworkcard">
<view class="Workcard" v-if="Whetheroffline==true">
<view class="Workcard-box">
<view class="Workcardimg">
@@ -23,19 +23,27 @@
</view>
<view class="Workcard-box">
<view class="Workcardimg">
<image v-if="signalDevice==''" class="Workcardimg2" src="../../static/images/signal0.png" mode=""></image>
<image v-else-if="signalDevice<20 && signalDevice>0" class="Workcardimg2" src="../../static/images/signal1.png" mode=""></image>
<image v-else-if="signalDevice<50 && signalDevice>20" class="Workcardimg2" src="../../static/images/signal2.png" mode=""></image>
<image v-else-if="signalDevice<70 && signalDevice>50" class="Workcardimg2" src="../../static/images/signal3.png" mode=""></image>
<image v-else-if="signalDevice<90 && signalDevice>70" class="Workcardimg2" src="../../static/images/signal4.png" mode=""></image>
<image v-else-if="signalDevice<=100 && signalDevice>90" class="Workcardimg2" src="../../static/images/signal5.png" mode=""></image>
<image v-if="signalDevice==''" class="Workcardimg2" src="../../static/images/signal0.png"
mode=""></image>
<image v-else-if="signalDevice<20 && signalDevice>0" class="Workcardimg2"
src="../../static/images/signal1.png" mode=""></image>
<image v-else-if="signalDevice<50 && signalDevice>20" class="Workcardimg2"
src="../../static/images/signal2.png" mode=""></image>
<image v-else-if="signalDevice<70 && signalDevice>50" class="Workcardimg2"
src="../../static/images/signal3.png" mode=""></image>
<image v-else-if="signalDevice<90 && signalDevice>70" class="Workcardimg2"
src="../../static/images/signal4.png" mode=""></image>
<image v-else-if="signalDevice<=100 && signalDevice>90" class="Workcardimg2"
src="../../static/images/signal5.png" mode=""></image>
</view>
<view class="Workcardtext">信号:{{signalDevicetext}}</view>
</view>
<view class="Workcard-box">
<view class="Workcardimg">
<image v-if="audioStatus=='true'" class="Workcardimg3" src="../../static/images/Thtapedrive1.png" mode=""></image>
<image v-if="audioStatus=='false'" class="Workcardimg3" src="../../static/images/Thtapedrive2.png" mode=""></image>
<image v-if="audioStatus=='true'" class="Workcardimg3"
src="../../static/images/Thtapedrive1.png" mode=""></image>
<image v-if="audioStatus=='false'" class="Workcardimg3"
src="../../static/images/Thtapedrive2.png" mode=""></image>
</view>
<view v-if="audioStatus=='true'" class="Workcardtext">录音:已开启</view>
<view v-if="audioStatus=='false'" class="Workcardtext">录音:未开启</view>
@@ -50,9 +58,9 @@
</view>
</view>
</view>
<view class="title" v-if="equipmentisshow">设备</view>
<view class="shebenbox" v-if="equipmentisshow">
<view class="shebenche">
@@ -72,40 +80,40 @@
<view class="shebenchetext">急需充电</view>
</view>
</view>
<view class="title">实时统计</view>
<view class="real-timebox">
<view class="timebox">
<view class="real">
<view class="realnum">44</view>
<view class="realnum">{{realtimeobj.sumCustomer}}</view>
<view class="realtext">接待量</view>
</view>
<view class="real">
<view class="realnum">44</view>
<view class="realnum">{{realtimeobj.receivingCustomer}}</view>
<view class="realtext">正在接待</view>
</view>
<view class="real">
<view class="realnum">44</view>
<view class="realnum">{{realtimeobj.activeCustomer}}</view>
<view class="realtext">接待客户</view>
</view>
<view class="real">
<view class="realnum">44</view>
<view class="realnum">{{realtimeobj.sumDuration}}</view>
<view class="realtext">录音时长</view>
</view>
</view>
<view class="timebox">
<view class="real">
<view class="realnum">44</view>
<view class="realnum">{{realtimeobj.tagCustomer}}</view>
<view class="realtext">未标顾问</view>
</view>
<view class="real">
<view class="realnum">44</view>
<view class="realnum">{{realtimeobj.fraction}}</view>
<view class="realtext">平均执行率</view>
</view>
<view class="real">
<view class="realnum">44</view>
<view class="realnum">{{realtimeobj.fraction}}</view>
<view class="realtext">平均得分</view>
</view>
<view class="real">
@@ -114,31 +122,31 @@
</view>
</view>
</view>
<view class="title">本周工作</view>
<view class="real-timebox">
<view class="timebox">
<view class="real">
<view class="realnum">44</view>
<view class="realnum">{{Thisweekobj.sumCustomer}}</view>
<view class="realtext">接待量</view>
</view>
<view class="real">
<view class="realnum">44</view>
<view class="realnum">{{Thisweekobj.activeCustomer}}</view>
<view class="realtext">接待客户</view>
</view>
<view class="real">
<view class="realnum">44</view>
<view class="realnum">{{Thisweekobj.sumDuration}}</view>
<view class="realtext">录音时长</view>
</view>
</view>
<view class="timebox">
<view class="real">
<view class="realnum">44</view>
<view class="realnum">{{Thisweekobj.fraction}}</view>
<view class="realtext">平均执行率</view>
</view>
<view class="real">
<view class="realnum">44</view>
<view class="realnum">{{Thisweekobj.fraction}}</view>
<view class="realtext">平均得分</view>
</view>
<view class="real">
@@ -147,59 +155,31 @@
</view>
</view>
</view>
<view class="title">常用功能</view>
<view class="commonly-box">
<view class="commonly" @click="Piabodata()">
<view class="commonly-img">
<image class="commonly-img1" src="../../static/images/building.png" mode=""></image>
</view>
<view class="commonly-text">销讲数据</view>
</view>
<view class="commonly" @click="record">
<view class="commonly-img">
<image class="commonly-img1" src="../../static/images/building.png" mode=""></image>
</view>
<view class="commonly-text">接待记录</view>
</view>
<view class="commonly" @click="toequipment()">
<view class="commonly-img">
<image class="commonly-img1" src="../../static/images/building.png" mode=""></image>
</view>
<view class="commonly-text">设备管理</view>
</view>
<view class="commonly" @click="toconsultanonduty()">
<view class="commonly-img">
<image class="commonly-img1" src="../../static/images/building.png" mode=""></image>
</view>
<view class="commonly-text">值班顾问</view>
</view>
<view class="commonly" @click="goConsumer()">
<view class="commonly-img">
<image class="commonly-img1" src="../../static/images/building.png" mode=""></image>
</view>
<view class="commonly-text">客户管理</view>
</view>
<view class="commonly">
<view class="commonly-img">
<image class="commonly-img1" src="../../static/images/building.png" mode=""></image>
</view>
<view class="commonly-text">客户管理</view>
</view>
<view class="commonly">
<view class="commonly" @click="Piabodata(item.name)" v-for="(item,index) in Menulist" :key='index'>
<view class="commonly-img">
<image class="commonly-img1" src="../../static/images/building.png" mode=""></image>
<image v-if="item.name=='客户管理'" class="commonly-img1" src="../../static/images/function1.png"
mode=""></image>
<image v-if="item.name=='接待记录'" class="commonly-img1" src="../../static/images/function2.png"
mode=""></image>
<image v-if="item.name=='销讲数据'" class="commonly-img1" src="../../static/images/function4.png"
mode=""></image>
<image v-if="item.name=='设备管理'" class="commonly-img1" src="../../static/images/function5.png"
mode=""></image>
<image v-if="item.name=='值班顾问'" class="commonly-img1" src="../../static/images/function6.png"
mode=""></image>
</view>
<view class="commonly-text">客户管理</view>
<view class="commonly-text">{{item.name}}</view>
</view>
</view>


<!-- 楼盘切换 -->
<view v-if="Showhiddenunits">
<u-select :mask-close-able="false" v-model="Showhiddenunits" mode="single-column" :list="lpanlist" @cancel="cancel" @confirm="confirm"></u-select>
<u-select :mask-close-able="false" v-model="Showhiddenunits" mode="single-column" :list="lpanlist"
@cancel="cancel" @confirm="confirm"></u-select>
</view>
</view>
</template>
@@ -209,58 +189,76 @@
export default {
data() {
return {
userInfo:{},
Showhiddenunits:false,
lpanlist:[],//楼盘列表
buildingname:'',//楼盘名
buildingID:'',//楼盘id
buildingishow:false,//是否选择楼盘
Myworkcard:false,
percentage:'',//设备电量
Whetheroffline:false,//是否离线
signalDevice:0,//信号
signalDevicetext:"",
audioStatus:false,
equipmentisshow:false,
equipmentobj:{
totalNum:'',
onlineNum:'',
activeNum:'',
lowPowerNum:'',
userInfo: {},
Showhiddenunits: false,
lpanlist: [], //楼盘列表
buildingname: '', //楼盘名
buildingID: '', //楼盘id
buildingishow: false, //是否选择楼盘
Myworkcard: false,
percentage: '', //设备电量
Whetheroffline: false, //是否离线
signalDevice: 0, //信号
signalDevicetext: "",
audioStatus: false,
equipmentisshow: false,
equipmentobj: {
totalNum: '',
onlineNum: '',
activeNum: '',
lowPowerNum: '',
},
Menulist: [],
realtimeobj: {
sumCustomer: '',
receivingCustomer: '',
activeCustomer: '',
sumDuration: '',
tagCustomer: '',
fraction: '',
},
Thisweekobj: {
sumCustomer: '',
receivingCustomer: '',
activeCustomer: '',
sumDuration: '',
tagCustomer: '',
fraction: '',
}
};
},
components: {},
onShow() {
this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
if(this.userInfo.zkProperties.length==1){
this.buildingID=uni.getStorageSync('buildingID').id;
this.buildingname=uni.getStorageSync('buildingID').name;
this.buildingishow=false;
}else{
this.buildingishow=true;
this.buildingname=uni.getStorageSync('buildingID').name;
this.buildingID=uni.getStorageSync('buildingID').id;
this.userInfo.zkProperties.forEach(item=>{
item.label=item.propertyName;
item.value=item.id
this.Menulist = uni.getStorageSync('weapp_session_Menu_data');
if (this.userInfo.zkProperties.length == 1) {
this.buildingID = uni.getStorageSync('buildingID').id;
this.buildingname = uni.getStorageSync('buildingID').name;
this.buildingishow = false;
} else {
this.buildingishow = true;
this.buildingname = uni.getStorageSync('buildingID').name;
this.buildingID = uni.getStorageSync('buildingID').id;
this.userInfo.zkProperties.forEach(item => {
item.label = item.propertyName;
item.value = item.id
})
this.lpanlist=this.userInfo.zkProperties
this.lpanlist = this.userInfo.zkProperties
}
if (this.userInfo.dataCode == 6) {
this.Myworkcard=true;
this.equipmentisshow=false;
this.Myworkcard = true;
this.equipmentisshow = false;
this.iniodianloang()
}else{
this.equipmentisshow=true;
this.Myworkcard=false;
} else {
this.equipmentisshow = true;
this.Myworkcard = false;
this.initequipment()
}
this.initworkThisWeek()
// this.initrealTimeStatistics()
this.initrealTimeStatistics()
},
methods: {
initworkThisWeek(){
initworkThisWeek() {
uni.request({
url: config.service.workThisWeek,
method: "POST",
@@ -269,19 +267,26 @@
'Access-Token': uni.getStorageSync('weapp_session_login_data').token
},
data: {
houseId:this.buildingID
houseId: this.buildingID
},
success: (data) => {
if (data.data.data == null) {
return
}else{
} else {
this.Thisweekobj = {
sumCustomer: data.data.data.sumCustomer,
receivingCustomer: data.data.data.receivingCustomer,
activeCustomer: data.data.data.activeCustomer,
sumDuration: data.data.data.sumDuration,
tagCustomer: data.data.data.tagCustomer,
fraction: data.data.data.fraction,
}
}
}
})
},
//实时统计
initrealTimeStatistics(){
initrealTimeStatistics() {
uni.request({
url: config.service.realTimeStatistics,
method: "POST",
@@ -290,19 +295,26 @@
'Access-Token': uni.getStorageSync('weapp_session_login_data').token
},
data: {
houseId:this.buildingID
houseId: this.buildingID
},
success: (data) => {
if (data.data.data == null) {
return
}else{
} else {
this.realtimeobj = {
sumCustomer: data.data.data.sumCustomer,
receivingCustomer: data.data.data.receivingCustomer,
activeCustomer: data.data.data.activeCustomer,
sumDuration: data.data.data.sumDuration,
tagCustomer: data.data.data.tagCustomer,
fraction: data.data.data.fraction,
}
}
}
})
},
//设备
initequipment(){
initequipment() {
uni.request({
url: config.service.findEquipmentState,
method: "POST",
@@ -311,17 +323,17 @@
'Access-Token': uni.getStorageSync('weapp_session_login_data').token
},
data: {
propertyId:this.buildingID
propertyId: this.buildingID
},
success: (data) => {
if (data.data.data == null) {
return
}else{
this.equipmentobj={
totalNum:'0',
onlineNum:'0',
activeNum:'0',
lowPowerNum:'0',
} else {
this.equipmentobj = {
totalNum: data.data.data.totalNum,
onlineNum: data.data.data.onlineNum,
activeNum: data.data.data.activeNum,
lowPowerNum: data.data.data.lowPowerNum,
}
}
}
@@ -344,229 +356,212 @@
if (data.data.data > 100) {
this.percentage = 100;
} else {
if(data.data.data.onLine==0){
this.Whetheroffline=false;
}else{
this.Whetheroffline=true;
if (data.data.data.onLine == 0) {
this.Whetheroffline = false;
} else {
this.Whetheroffline = true;
this.percentage = data.data.data.electricity;
this.signalDevice=data.data.data.signalDevice/1;
this.signalDevice = data.data.data.signalDevice / 1;
console.log(this.signalDevice)
this.audioStatus=data.data.data.audioStatus;
if(this.signalDevice>80){
this.signalDevicetext='高';
}else{
if(this.signalDevice==0){
this.signalDevicetext='无';
}else{
this.signalDevicetext='低';
this.audioStatus = data.data.data.audioStatus;
if (this.signalDevice > 80) {
this.signalDevicetext = '高';
} else {
if (this.signalDevice == 0) {
this.signalDevicetext = '无';
} else {
this.signalDevicetext = '低';
}
}
}
}
}
}
}
}
})
},
//选择楼盘弹框
piskbuilding(){
this.Showhiddenunits=true;
piskbuilding() {
this.Showhiddenunits = true;
},
// 楼盘选择确认
confirm(e) {
this.buildingname=e[0].label;
this.buildingID=e[0].value;
let lopan={
id:e[0].value,
name:e[0].label
this.buildingname = e[0].label;
this.buildingID = e[0].value;
let lopan = {
id: e[0].value,
name: e[0].label
}
uni.setStorageSync("buildingID", lopan); //楼盘id写入缓存
},
// 楼盘选择取消
cancel(){
this.Showhiddenunits=false;
},
//销讲数据
Piabodata(){
uni.navigateTo({
url: '/pages/center/Piabodata/index'
});
},
// 接待记录
record(){
uni.navigateTo({
url: '/pages/center/records/index'
});
cancel() {
this.Showhiddenunits = false;
},
//值班顾问
toconsultanonduty(){
uni.navigateTo({
url: '/pages/mine/consultanonduty/index'
});
},
//设备
toequipment(){
uni.navigateTo({
url: '/pages/mine/equipment/index'
});
},
// 客户管理
goConsumer(){
uni.navigateTo({
url: '/pages/center/consumer/index'
});
Piabodata(item) {
if (item == '销讲数据') {
uni.navigateTo({
url: '/pages/center/Piabodata/index'
});
} else if (item == '接待记录') {
uni.navigateTo({
url: '/pages/center/records/index'
});
} else if (item == '值班顾问') {
uni.navigateTo({
url: '/pages/mine/consultanonduty/index'
});
} else if (item == '设备管理') {
uni.navigateTo({
url: '/pages/mine/equipment/index'
});
} else {
uni.navigateTo({
url: '/pages/center/consumer/index'
});
}
},
},
};
</script>

<style lang="scss" scoped>
.cented-box{
padding: 30rpx;
background: #F8F8F8;
width: 100%;
height: 100%;
}
.Switchingbox{
width: 100%;
height: 44rpx;
display: flex;
align-items: center;
.Switching1{
width: 44rpx;
.cented-box {
padding: 30rpx;
background: #F8F8F8;
width: 100%;
height: 100%;
}

.Switchingbox {
width: 100%;
height: 44rpx;
.Switching1-img{
display: flex;
align-items: center;

.Switching1 {
width: 44rpx;
height: 44rpx;
}
}
.Switching2{
margin-left: 12rpx;
font-size: 32rpx;
color: #303030;
font-weight: 500;
}
.Switching3{
width: calc(100% - 280rpx);
font-size: 32rpx;
color: #303030;
font-weight: 500;
}
.Switching4{
width: 112rpx;
font-size: 28rpx;
color: #303030;
font-weight: 400;
text-align: right;
text-decoration:underline
}
}
.Workcard{
width: 100%;
background: #FFFFFF;
height: 154rpx;
box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
border-radius: 12rpx;
display: flex;
.Workcard-box{
flex: 1;
height: 100%;
.Workcardimg{
width: 100%;
display: flex;
justify-content: center;
margin-top: 42rpx;
.Workcardimg1{
width: 64rpx;
height: 36rpx;
background-image: url(../../static/images/battery.png);
background-size: 100% 100%;
padding: 8rpx;
.bar {
background-color: #43CD80;
height: 100%;
border-radius: 4rpx;
}
.bar1 {
background-color: red;
height: 100%;
border-radius: 4rpx;
}
}
.Workcardimg2{
width: 56rpx;
height: 36rpx;
}
.Workcardimg3{
width: 34rpx;
height: 36rpx;
}
.Workcardimg4{
width: 50rpx;
height: 40rpx;

.Switching1-img {
width: 44rpx;
height: 44rpx;
}
}
.Workcardtext{
width: 100%;
text-align: center;
font-size: 24rpx;
font-weight: 400;
color: #666666;
margin-top: 20rpx;

.Switching2 {
margin-left: 12rpx;
font-size: 32rpx;
color: #303030;
font-weight: 500;
}
}
}
.title{
width: 100%;
height: 30rpx;
font-size: 30rpx;
font-weight: 600;
color: #333333;
margin-top: 40rpx;
margin-bottom: 24rpx;
}
.shebenbox{
width: 100%;
height: 156rpx;
background: #FFFFFF;
box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
border-radius: 12rpx;
display: flex;
.shebenche{
width: 25%;
height: 100%;
.shebenchenum{
width: 100%;
font-size: 36rpx;
font-weight: 600;
color: #333333;
text-align: center;
margin-top: 36rpx;

.Switching3 {
width: calc(100% - 280rpx);
font-size: 32rpx;
color: #303030;
font-weight: 500;
}
.shebenchetext{
width: 100%;
font-size: 24rpx;

.Switching4 {
width: 112rpx;
font-size: 28rpx;
color: #303030;
font-weight: 400;
color: #666666;
text-align: center;
margin-top: 24rpx;
text-align: right;
text-decoration: underline
}
}
}
.real-timebox{
width: 100%;
background: #FFFFFF;
box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
border-radius: 12rpx;
padding-bottom: 36rpx;
.timebox{

.Workcard {
width: 100%;
background: #FFFFFF;
height: 154rpx;
box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
border-radius: 12rpx;
display: flex;
.real{

.Workcard-box {
flex: 1;
height: 100%;
.realnum{

.Workcardimg {
width: 100%;
display: flex;
justify-content: center;
margin-top: 42rpx;

.Workcardimg1 {
width: 64rpx;
height: 36rpx;
background-image: url(../../static/images/battery.png);
background-size: 100% 100%;
padding: 8rpx;

.bar {
background-color: #43CD80;
height: 100%;
border-radius: 4rpx;
}

.bar1 {
background-color: red;
height: 100%;
border-radius: 4rpx;
}
}

.Workcardimg2 {
width: 56rpx;
height: 36rpx;
}

.Workcardimg3 {
width: 34rpx;
height: 36rpx;
}

.Workcardimg4 {
width: 50rpx;
height: 40rpx;
}
}

.Workcardtext {
width: 100%;
text-align: center;
font-size: 24rpx;
font-weight: 400;
color: #666666;
margin-top: 20rpx;
}
}
}

.title {
width: 100%;
height: 30rpx;
font-size: 30rpx;
font-weight: 600;
color: #333333;
margin-top: 40rpx;
margin-bottom: 24rpx;
}

.shebenbox {
width: 100%;
height: 156rpx;
background: #FFFFFF;
box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
border-radius: 12rpx;
display: flex;

.shebenche {
width: 25%;
height: 100%;

.shebenchenum {
width: 100%;
font-size: 36rpx;
font-weight: 600;
@@ -574,7 +569,8 @@
text-align: center;
margin-top: 36rpx;
}
.realtext{

.shebenchetext {
width: 100%;
font-size: 24rpx;
font-weight: 400;
@@ -585,36 +581,76 @@
}
}

}
.commonly-box{
width: 100%;
background: #FFFFFF;
box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
border-radius: 12rpx;
display: flex;
flex-wrap: wrap;
padding-bottom: 36rpx;
.commonly{
width: 25%;
margin-top: 36rpx;
.commonly-img{
.real-timebox {
width: 100%;
background: #FFFFFF;
box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
border-radius: 12rpx;
padding-bottom: 36rpx;

.timebox {
width: 100%;
height: 68rpx;
text-align: center;
.commonly-img1{
width: 68rpx;
height: 68rpx;
border-radius: 50%;
display: flex;

.real {
flex: 1;
height: 100%;

.realnum {
width: 100%;
font-size: 36rpx;
font-weight: 600;
color: #333333;
text-align: center;
margin-top: 36rpx;
}

.realtext {
width: 100%;
font-size: 24rpx;
font-weight: 400;
color: #666666;
text-align: center;
margin-top: 24rpx;
}
}
}
.commonly-text{
width: 100%;
text-align: center;
font-size: 24rpx;
font-weight: 400;
color: #333333;
margin-top: 16rpx;

}

.commonly-box {
width: 100%;
background: #FFFFFF;
box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
border-radius: 12rpx;
display: flex;
flex-wrap: wrap;
padding-bottom: 36rpx;

.commonly {
width: 25%;
margin-top: 36rpx;

.commonly-img {
width: 100%;
height: 68rpx;
text-align: center;

.commonly-img1 {
width: 68rpx;
height: 68rpx;
border-radius: 50%;
}
}

.commonly-text {
width: 100%;
text-align: center;
font-size: 24rpx;
font-weight: 400;
color: #333333;
margin-top: 16rpx;
}
}
}
}
</style>

+ 6
- 0
pages/login/index.vue View File

@@ -105,6 +105,7 @@
'token': res
};
uni.setStorageSync(WXB_SESSION_LOGIN_DATA, data); //写入缓存
that.getMenu()
that.getUser();
util.showSuccess('登录成功');
} else {
@@ -145,6 +146,11 @@
url: '/pages/index/index'
});
});
},
getMenu(){
this.$u.get("/user/getMenu").then(data => {
uni.setStorageSync("weapp_session_Menu_data", data)
})
}


+ 6
- 0
pages/login/yinzhongmalogin.vue View File

@@ -120,6 +120,7 @@
'token': data.data.data
};
uni.setStorageSync(WXB_SESSION_LOGIN_DATA, token); //写入缓存
this.getMenu()
this.getUser()
} else {
util.showNone(data.data.message);
@@ -134,6 +135,11 @@
});
}
},
getMenu(){
this.$u.get("/user/getMenu").then(data => {
uni.setStorageSync("weapp_session_Menu_data", data)
})
},
getUser(){
util.getRequestPromise(config.service.getUser, {}, false, "GET").then(data => {
if (data.zkProperties) {


BIN
static/images/function1.png View File

Before After
Width: 136  |  Height: 136  |  Size: 9.2 KiB

BIN
static/images/function2.png View File

Before After
Width: 136  |  Height: 136  |  Size: 8.5 KiB

BIN
static/images/function3.png View File

Before After
Width: 136  |  Height: 136  |  Size: 7.9 KiB

BIN
static/images/function4.png View File

Before After
Width: 136  |  Height: 136  |  Size: 7.5 KiB

BIN
static/images/function5.png View File

Before After
Width: 136  |  Height: 136  |  Size: 9.9 KiB

BIN
static/images/function6.png View File

Before After
Width: 136  |  Height: 136  |  Size: 7.5 KiB

BIN
static/images/function7.png View File

Before After
Width: 136  |  Height: 136  |  Size: 8.6 KiB

Loading…
Cancel
Save