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