From b0ac7537ff464615e27f58f4102e2d3aa3cd63df Mon Sep 17 00:00:00 2001 From: lijingyu007 <904564792@qq.com> Date: Wed, 29 May 2024 17:26:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=91=E5=91=98=E5=B7=A5=E5=A4=B4=E5=83=8F?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/outsourcing/moreCloud.vue | 13 ++++++++++--- pages/personal/personal.vue | 6 ++++-- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/pages/index/outsourcing/moreCloud.vue b/pages/index/outsourcing/moreCloud.vue index 88b82fc..cd947c6 100644 --- a/pages/index/outsourcing/moreCloud.vue +++ b/pages/index/outsourcing/moreCloud.vue @@ -58,6 +58,7 @@ pageSize: 10, keyword: '', }, + base: this.http.baseUrl }; }, onLoad() { @@ -77,6 +78,11 @@ true).then(res => { this.peopleList = [...this.peopleList, ...res.data.rows] 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-size: 20rpx; color: #808080; - + } + .jlboxbottoml text { max-width: 120rpx; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; - } - + } + .jlboxbottomlbor { box-sizing: border-box; diff --git a/pages/personal/personal.vue b/pages/personal/personal.vue index 0d8511e..2d1515d 100644 --- a/pages/personal/personal.vue +++ b/pages/personal/personal.vue @@ -169,6 +169,9 @@ } }, onShow() { + + }, + onLoad() { let Token = uni.getStorageSync('accessToken'); if (Token) { this.phoneuserinfo = uni.getStorageSync('wxUserInfo'); @@ -188,14 +191,13 @@ } }) this.getNum() - + } else { this.phoneuserinfo = null this.signuplistLength = 0 this.useListLength = 0 } }, - onLoad() {}, methods: { // 培训班 async getNum() {