diff --git a/common/config.js b/common/config.js index d32a67b..5609e5a 100644 --- a/common/config.js +++ b/common/config.js @@ -31,4 +31,6 @@ config.baseUrl = 'http://183.230.235.66:11010/api'; // config.baseUrl = 'http://3efb1a71.r28.cpolar.top'; + +config.imageUrl = 'http://183.230.235.66:11010'; export default config; diff --git a/pages/sys/home/home.vue b/pages/sys/home/home.vue index b3e9370..0d51b43 100644 --- a/pages/sys/home/home.vue +++ b/pages/sys/home/home.vue @@ -178,7 +178,7 @@ import toast from '../../../uview-ui/libs/function/toast'; imgRes.data.forEach(imgItem => { const mapping = imgIdToIndexMap.find(m => m.id === imgItem.ossId); if (mapping) { - this.$set(this.hotList[mapping.index], 'activityImgUrl', imgItem.url); + this.$set(this.hotList[mapping.index], 'activityImgUrl', this.vuex_config.imageUrl+imgItem.url); } }); } diff --git a/pages/sys/user/myRepair/myRepair.vue b/pages/sys/user/myRepair/myRepair.vue index 47ae8f4..ca8dff0 100644 --- a/pages/sys/user/myRepair/myRepair.vue +++ b/pages/sys/user/myRepair/myRepair.vue @@ -134,7 +134,7 @@ this.loading = true; let params = { - type: "1952989217332658178", + // type: "1952989217332658178", pageNum: this.pageNum, pageSize: this.pageSize }; diff --git a/pages/sys/user/myRepair/repairDetail.vue b/pages/sys/user/myRepair/repairDetail.vue index 3ae0688..fe41d64 100644 --- a/pages/sys/user/myRepair/repairDetail.vue +++ b/pages/sys/user/myRepair/repairDetail.vue @@ -108,7 +108,7 @@ export default { if (!this.detail.orderImgUrl) return; const imgIds = this.detail.orderImgUrl.split(','); const res = await this.$u.api.getImageUrl({}, imgIds.join(',')); - if (res.code == 200 && res.data) this.orderImgUrls = res.data.map(item => item.url); + if (res.code == 200 && res.data) this.orderImgUrls = res.data.map(item => this.vuex_config.imageUrl+item.url); }, async getHandler() { let handlers = await this.$u.api.getHandler3({}, this.detail.type); diff --git a/pages/sys/user/myRepair/repairEvaluate.vue b/pages/sys/user/myRepair/repairEvaluate.vue index 2a9c515..2d8b7bb 100644 --- a/pages/sys/user/myRepair/repairEvaluate.vue +++ b/pages/sys/user/myRepair/repairEvaluate.vue @@ -83,7 +83,7 @@ if (!this.detailItem.imgUrl) return; const imgIds = this.detailItem.imgUrl.split(','); const res = await this.$u.api.getImageUrl({}, imgIds.join(',')); - if (res.code == 200 && res.data) this.imageList = res.data.map(item => item.url); + if (res.code == 200 && res.data) this.imageList = res.data.map(item => this.vuex_config.imageUrl+item.url); }, // 设置评分 setRating(rating) { diff --git a/pages/sys/workbench/earlyWarning/warnDetail.vue b/pages/sys/workbench/earlyWarning/warnDetail.vue index baf22f6..bb24aba 100644 --- a/pages/sys/workbench/earlyWarning/warnDetail.vue +++ b/pages/sys/workbench/earlyWarning/warnDetail.vue @@ -171,7 +171,7 @@ export default { const result = await this.$u.api.getImageUrl({}, imgIds); if (result.code == 200 && result.data) { // 提取res.data数组中每个对象的url字段 - this.realImages = result.data.map(item => item.url); + this.realImages = result.data.map(item => this.vuex_config.imageUrl+item.url); } } this.loading = false; diff --git a/pages/sys/workbench/order/orderDetail.vue b/pages/sys/workbench/order/orderDetail.vue index e298f95..8d891eb 100644 --- a/pages/sys/workbench/order/orderDetail.vue +++ b/pages/sys/workbench/order/orderDetail.vue @@ -108,7 +108,7 @@ export default { if (!this.detail.orderImgUrl) return; const imgIds = this.detail.orderImgUrl.split(','); const res = await this.$u.api.getImageUrl({}, imgIds.join(',')); - if (res.code == 200 && res.data) this.orderImgUrls = res.data.map(item => item.url); + if (res.code == 200 && res.data) this.orderImgUrls = res.data.map(item => this.vuex_config.imageUrl+item.url); }, async getHandler() { let handlers = await this.$u.api.getHandler3({}, this.detail.type); diff --git a/pages/sys/workbench/workbench.vue b/pages/sys/workbench/workbench.vue index 3aa24ba..dea51ce 100644 --- a/pages/sys/workbench/workbench.vue +++ b/pages/sys/workbench/workbench.vue @@ -75,7 +75,7 @@ url:'/pages/sys/user/myRepair/myRepair' }, { - icon: 'https://picsum.photos/80/80?random=3', + icon: '/static/aaaa_gzxj.png', text: '工作巡检', url:'/pages/sys/workbench/inspection/inspection' }, diff --git a/static/aaaa_gzxj.png b/static/aaaa_gzxj.png new file mode 100644 index 0000000..015b085 Binary files /dev/null and b/static/aaaa_gzxj.png differ