Commit f6aef79d by 李伟康

com

1 parent 73a6dbcf
......@@ -62,7 +62,7 @@
@click.stop
>
<van-image
:src="detail.posterImg || posterImg"
:src="posterImg"
width="100%"
height="100%"
>
......@@ -121,7 +121,7 @@ export default {
payStatus: Date.now(),
envVersion: 'release',
shopmall_appid: 'gh_21f69fe893fc',
posterImg:''
posterImg: ''
}
},
mounted () {
......@@ -189,18 +189,15 @@ export default {
})
},
getPoster () {
let { posterImg, id } = this.detail
let { id } = this.detail
let { phone, nickName } = this.getUserInfo
if (!posterImg) {
this.showLoading()
shopmallApi.getPoster({ id, nickName, phone }).then(res => {
this.showLoading()
shopmallApi.getPoster({ id, nickName, phone }).then(res => {
console.log(res)
this.hideLoading()
this.posterImg = res
this.showPoster = true
})
}
else this.showPoster = true
}
}
}
......
......@@ -251,7 +251,7 @@ export default {
title: data.activityName,
desc: `限时大型众筹,活动时间${data.s_time}-${data.e_time}`,
link: `${redirectUrl}?id=${id}&staffUuid=${params.staffUuid}&userPhone=${userInfo.phone}&staffType=1`,
imgUrl: data.posterImg
imgUrl: data.posterImg || data.activityImg
})
if (data.activityAddressLat && data.activityAddressLng) {
wxConfig.getLocation().then(res => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!