云员工头像处理

main
lijingyu007 6 months ago
parent 37400b3c44
commit b0ac7537ff
  1. 13
      pages/index/outsourcing/moreCloud.vue
  2. 6
      pages/personal/personal.vue

@ -58,6 +58,7 @@
pageSize: 10, pageSize: 10,
keyword: '', keyword: '',
}, },
base: this.http.baseUrl
}; };
}, },
onLoad() { onLoad() {
@ -77,6 +78,11 @@
true).then(res => { true).then(res => {
this.peopleList = [...this.peopleList, ...res.data.rows] this.peopleList = [...this.peopleList, ...res.data.rows]
this.total = res.data.total this.total = res.data.total
this.peopleList.forEach(it => {
if (it.avatar.indexOf('/prod-api') == -1) {
it.avatar = this.base + it.avatar
}
})
}) })
}, },
@ -270,15 +276,16 @@
font-weight: 500; font-weight: 500;
font-size: 20rpx; font-size: 20rpx;
color: #808080; color: #808080;
} }
.jlboxbottoml text { .jlboxbottoml text {
max-width: 120rpx; max-width: 120rpx;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.jlboxbottomlbor { .jlboxbottomlbor {
box-sizing: border-box; box-sizing: border-box;

@ -169,6 +169,9 @@
} }
}, },
onShow() { onShow() {
},
onLoad() {
let Token = uni.getStorageSync('accessToken'); let Token = uni.getStorageSync('accessToken');
if (Token) { if (Token) {
this.phoneuserinfo = uni.getStorageSync('wxUserInfo'); this.phoneuserinfo = uni.getStorageSync('wxUserInfo');
@ -188,14 +191,13 @@
} }
}) })
this.getNum() this.getNum()
} else { } else {
this.phoneuserinfo = null this.phoneuserinfo = null
this.signuplistLength = 0 this.signuplistLength = 0
this.useListLength = 0 this.useListLength = 0
} }
}, },
onLoad() {},
methods: { methods: {
// //
async getNum() { async getNum() {

Loading…
Cancel
Save