| @@ -29,8 +29,8 @@ | |||||
| <view class="Workcard" v-if="item.status==1&&item.zkEquipmentState.onLine==0">设备状态:<text class="shizai" style="color: red;">离线</text></view> | <view class="Workcard" v-if="item.status==1&&item.zkEquipmentState.onLine==0">设备状态:<text class="shizai" style="color: red;">离线</text></view> | ||||
| <view class="Workcard" v-if="item.status==1&&item.zkEquipmentState.onLine!=0">工牌电量:<text class="shizai" style="color: #333333;">{{item.zkEquipmentState.electricity}}%</text></view> | <view class="Workcard" v-if="item.status==1&&item.zkEquipmentState.onLine!=0">工牌电量:<text class="shizai" style="color: #333333;">{{item.zkEquipmentState.electricity}}%</text></view> | ||||
| <view class="Workcard" v-if="item.status==1&&item.zkEquipmentState.onLine==1">录音状态: | <view class="Workcard" v-if="item.status==1&&item.zkEquipmentState.onLine==1">录音状态: | ||||
| <text v-if="item.zkEquipmentState.audioStatus=='true'" class="shizai" style="color: #333333;">使用中</text> | |||||
| <text v-if="item.zkEquipmentState.audioStatus=='false'" class="shizai" style="color: #333333;">未使用</text> | |||||
| <text v-if="item.zkEquipmentState.simAudioStatus=='true'" class="shizai" style="color: #333333;">使用中</text> | |||||
| <text v-if="item.zkEquipmentState.simAudioStatus=='false'" class="shizai" style="color: #333333;">未使用</text> | |||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| @@ -407,7 +407,7 @@ | |||||
| receivingCustomer: data.data.data.receivingCustomer, | receivingCustomer: data.data.data.receivingCustomer, | ||||
| activeCustomer: data.data.data.activeCustomer, | activeCustomer: data.data.data.activeCustomer, | ||||
| prohibitedCustomer: data.data.data.prohibitedCustomer, | prohibitedCustomer: data.data.data.prohibitedCustomer, | ||||
| avgDuration: Math.floor(data.data.data.avgDuration/60) ||0, | |||||
| avgDuration: data.data.data.avgDuration ||0, | |||||
| tagCustomer: data.data.data.tagCustomer, | tagCustomer: data.data.data.tagCustomer, | ||||
| fraction: data.data.data.fraction, | fraction: data.data.data.fraction, | ||||
| receptionCount:data.data.data.receptionCount | receptionCount:data.data.data.receptionCount | ||||
| @@ -437,7 +437,7 @@ | |||||
| receivingCustomer: data.data.data.receivingCustomer, | receivingCustomer: data.data.data.receivingCustomer, | ||||
| activeCustomer: data.data.data.activeCustomer, | activeCustomer: data.data.data.activeCustomer, | ||||
| prohibitedCustomer: data.data.data.prohibitedCustomer, | prohibitedCustomer: data.data.data.prohibitedCustomer, | ||||
| avgDuration: Math.floor(data.data.data.avgDuration/60) ||0, | |||||
| avgDuration: data.data.data.avgDuration ||0, | |||||
| tagCustomer: data.data.data.tagCustomer, | tagCustomer: data.data.data.tagCustomer, | ||||
| fraction: data.data.data.fraction, | fraction: data.data.data.fraction, | ||||
| receptionCount:data.data.data.receptionCount | receptionCount:data.data.data.receptionCount | ||||
| @@ -72,7 +72,7 @@ | |||||
| onShow: function() { | onShow: function() { | ||||
| var userInfos = uni.getStorageSync('weapp_session_userInfo_data'); | var userInfos = uni.getStorageSync('weapp_session_userInfo_data'); | ||||
| this.name = userInfos.name, | this.name = userInfos.name, | ||||
| this.photo = userInfos.picUrl, | |||||
| this.photo = userInfos.avatar, | |||||
| this.mobile = userInfos.loginName | this.mobile = userInfos.loginName | ||||
| }, | }, | ||||
| methods: { | methods: { | ||||
| @@ -64,9 +64,9 @@ | |||||
| } else if (this.newPassword == this.queryPassword) { | } else if (this.newPassword == this.queryPassword) { | ||||
| var params = { | var params = { | ||||
| oldPassword: this.password, | |||||
| newPassword: this.newPassword, | |||||
| qPassword: this.queryPassword | |||||
| password: this.password, | |||||
| newpassword: this.newPassword, | |||||
| newpassword1: this.queryPassword | |||||
| }; | }; | ||||
| util.getRequestPromise(config.service.updatePassword, params).then(data => { | util.getRequestPromise(config.service.updatePassword, params).then(data => { | ||||
| uni.clearStorage(); | uni.clearStorage(); | ||||
| @@ -6,7 +6,7 @@ | |||||
| <image src="/static/images/arrow.png" class="more"> | <image src="/static/images/arrow.png" class="more"> | ||||
| </image> | </image> | ||||
| <image | <image | ||||
| :src="picUrl||'https://qufang.oss-cn-beijing.aliyuncs.com/upload/icon/xcx/zkgj/headPicture.png'" | |||||
| :src="avatar||'https://qufang.oss-cn-beijing.aliyuncs.com/upload/icon/xcx/zkgj/headPicture.png'" | |||||
| class="headPicture"></image> | class="headPicture"></image> | ||||
| </view> | </view> | ||||
| <view> | <view> | ||||
| @@ -17,11 +17,11 @@ | |||||
| <text class="userName">{{name||"暂无昵称"}}</text> | <text class="userName">{{name||"暂无昵称"}}</text> | ||||
| </navigator> | </navigator> | ||||
| <navigator class="setList" url="/pages/mine/signature"> | |||||
| <!-- <navigator class="setList" url="/pages/mine/signature"> | |||||
| <text style="font-size: 30rpx;color: #333333;">签名</text> | <text style="font-size: 30rpx;color: #333333;">签名</text> | ||||
| <image src="/static/images/arrow.png" class="more"></image> | <image src="/static/images/arrow.png" class="more"></image> | ||||
| <text class="userName">{{personalProfile||"暂无签名"}}</text> | <text class="userName">{{personalProfile||"暂无签名"}}</text> | ||||
| </navigator> | |||||
| </navigator> --> | |||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| @@ -36,7 +36,7 @@ | |||||
| data() { | data() { | ||||
| return { | return { | ||||
| userInfo: {}, | userInfo: {}, | ||||
| picUrl: "", | |||||
| avatar: "", | |||||
| name: "", | name: "", | ||||
| personalProfile: "" | personalProfile: "" | ||||
| }; | }; | ||||
| @@ -44,7 +44,7 @@ | |||||
| onShow: function() { | onShow: function() { | ||||
| const userInfo = uni.getStorageSync("weapp_session_userInfo_data"); | const userInfo = uni.getStorageSync("weapp_session_userInfo_data"); | ||||
| this.userInfo = userInfo; | this.userInfo = userInfo; | ||||
| this.picUrl = userInfo.picUrl; | |||||
| this.avatar = userInfo.avatar; | |||||
| this.name = userInfo.name; | this.name = userInfo.name; | ||||
| this.personalProfile = userInfo.personalProfile; | this.personalProfile = userInfo.personalProfile; | ||||
| }, | }, | ||||
| @@ -94,8 +94,8 @@ | |||||
| const result = JSON.parse(res.data); | const result = JSON.parse(res.data); | ||||
| if (result.code == 10000) { | if (result.code == 10000) { | ||||
| console.log(result.data); | console.log(result.data); | ||||
| that.picUrl = result.data; | |||||
| that.userInfo.picUrl = result.data; | |||||
| that.avatar = result.data; | |||||
| that.userInfo.avatar = result.data; | |||||
| uni.setStorageSync("weapp_session_userInfo_data", that.userInfo); | uni.setStorageSync("weapp_session_userInfo_data", that.userInfo); | ||||
| util.showSuccess('修改成功'); | util.showSuccess('修改成功'); | ||||
| } else { | } else { | ||||