Ver código fonte

bug

undefined
时佳豪 2 anos atrás
pai
commit
02ea27ebc7
5 arquivos alterados com 15 adições e 15 exclusões
  1. +2
    -2
      pages/index/customer.vue
  2. +2
    -2
      pages/index/index.vue
  3. +1
    -1
      pages/index/personal.vue
  4. +3
    -3
      pages/mine/Changehepassword.vue
  5. +7
    -7
      pages/mine/Myprofile.vue

+ 2
- 2
pages/index/customer.vue Ver arquivo

@@ -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: #333333;">{{item.zkEquipmentState.electricity}}%</text></view>
<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>


+ 2
- 2
pages/index/index.vue Ver arquivo

@@ -407,7 +407,7 @@
receivingCustomer: data.data.data.receivingCustomer,
activeCustomer: data.data.data.activeCustomer,
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,
fraction: data.data.data.fraction,
receptionCount:data.data.data.receptionCount
@@ -437,7 +437,7 @@
receivingCustomer: data.data.data.receivingCustomer,
activeCustomer: data.data.data.activeCustomer,
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,
fraction: data.data.data.fraction,
receptionCount:data.data.data.receptionCount


+ 1
- 1
pages/index/personal.vue Ver arquivo

@@ -72,7 +72,7 @@
onShow: function() {
var userInfos = uni.getStorageSync('weapp_session_userInfo_data');
this.name = userInfos.name,
this.photo = userInfos.picUrl,
this.photo = userInfos.avatar,
this.mobile = userInfos.loginName
},
methods: {


+ 3
- 3
pages/mine/Changehepassword.vue Ver arquivo

@@ -64,9 +64,9 @@

} else if (this.newPassword == this.queryPassword) {
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 => {
uni.clearStorage();


+ 7
- 7
pages/mine/Myprofile.vue Ver arquivo

@@ -6,7 +6,7 @@
<image src="/static/images/arrow.png" class="more">
</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>
</view>
<view>
@@ -17,11 +17,11 @@
<text class="userName">{{name||"暂无昵称"}}</text>
</navigator>
<navigator class="setList" url="/pages/mine/signature">
<!-- <navigator class="setList" url="/pages/mine/signature">
<text style="font-size: 30rpx;color: #333333;">签名</text>
<image src="/static/images/arrow.png" class="more"></image>
<text class="userName">{{personalProfile||"暂无签名"}}</text>
</navigator>
</navigator> -->
</view>
</view>
</view>
@@ -36,7 +36,7 @@
data() {
return {
userInfo: {},
picUrl: "",
avatar: "",
name: "",
personalProfile: ""
};
@@ -44,7 +44,7 @@
onShow: function() {
const userInfo = uni.getStorageSync("weapp_session_userInfo_data");
this.userInfo = userInfo;
this.picUrl = userInfo.picUrl;
this.avatar = userInfo.avatar;
this.name = userInfo.name;
this.personalProfile = userInfo.personalProfile;
},
@@ -94,8 +94,8 @@
const result = JSON.parse(res.data);
if (result.code == 10000) {
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);
util.showSuccess('修改成功');
} else {


Carregando…
Cancelar
Salvar