图片显示修改
Some checks are pending
Uniapp 自动化打包 CI/CD / 打包 Uniapp 项目 (push) Waiting to run

This commit is contained in:
2025-09-16 09:14:44 +08:00
parent 70d7b2081c
commit 9da52525ac
9 changed files with 9 additions and 7 deletions

View File

@@ -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;

View File

@@ -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);
}
});
}

View File

@@ -134,7 +134,7 @@
this.loading = true;
let params = {
type: "1952989217332658178",
// type: "1952989217332658178",
pageNum: this.pageNum,
pageSize: this.pageSize
};

View File

@@ -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);

View File

@@ -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) {

View File

@@ -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;

View File

@@ -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);

View File

@@ -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'
},

BIN
static/aaaa_gzxj.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB