Commit f6aef79d by 李伟康

com

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