flx:修复图片不显示问题
This commit is contained in:
parent
1c1cdaeec3
commit
e21d8f0289
3
main.js
3
main.js
@ -134,7 +134,8 @@ export function createApp() {
|
||||
// app.config.globalProperties.url_config = 'http://huli.zjzhiliao.com/jxjgdapi'//金林湾测试
|
||||
// app.config.globalProperties.url_config = 'http://8.136.222.164:8808/'//中科安信
|
||||
// app.config.globalProperties.url_config = 'http://101.43.164.214:11111/'// 百色三标段
|
||||
|
||||
app.config.globalProperties.url_config = 'http://101.43.164.214:11000/' // 包头(外网)
|
||||
app.config.globalProperties.work_url = 'http://101.43.164.214:11000/wflowApp/#/' // 包头(外网)
|
||||
|
||||
} else {
|
||||
// 生产环境
|
||||
|
||||
@ -229,7 +229,14 @@
|
||||
}
|
||||
// console.log('--------')
|
||||
// this.listData = res.result.records
|
||||
this.listData = [...this.listData, ...res.result.records]
|
||||
const dataList = res.result.records.map(item => {
|
||||
return {
|
||||
...item,
|
||||
imageUrl: item.imageUrl.includes("http") ? item.imageUrl : this.url_config+'image/'+item.imageUrl,
|
||||
}
|
||||
})
|
||||
|
||||
this.listData = [...this.listData, ...dataList]
|
||||
uni.hideLoading() //关闭加载中
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user