Fix(我的):[#995]底部广告图增加点击跳转到页面链接
This commit is contained in:
@@ -206,6 +206,7 @@
|
||||
:src="bannerBgUrl"
|
||||
mode="widthFix"
|
||||
class="bg"
|
||||
@click="bannerClickHandle"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
@@ -328,7 +329,8 @@ export default {
|
||||
allowEnter: true
|
||||
}
|
||||
],
|
||||
bannerBgUrl: ''
|
||||
bannerBgUrl: '',
|
||||
userCenterBannerUrl: ''
|
||||
}
|
||||
},
|
||||
computed: mapGetters(['userInfo']),
|
||||
@@ -436,6 +438,7 @@ export default {
|
||||
if (success) {
|
||||
if (data.userCenterBanner) {
|
||||
this.bannerBgUrl = data.userCenterBanner
|
||||
this.userCenterBannerUrl = data.userCenterBannerUrl || ''
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -485,6 +488,12 @@ export default {
|
||||
return
|
||||
}
|
||||
uni.navigateTo({ url })
|
||||
},
|
||||
bannerClickHandle() {
|
||||
if (!this.userCenterBannerUrl) {
|
||||
return
|
||||
}
|
||||
this.linkTo(this.userCenterBannerUrl)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user