Feat(个人中心): 海报改轮播图,对接后台配属的图片&链接
This commit is contained in:
@@ -203,13 +203,18 @@
|
||||
</view>
|
||||
</view>
|
||||
<!-- 我的服务结束 -->
|
||||
<view v-if="bannerBgUrl" class="banner-wrap">
|
||||
<image
|
||||
<view v-if="userCenterCarouselShow== 1" class="banner-wrap">
|
||||
<!-- <image
|
||||
:src="bannerBgUrl"
|
||||
mode="widthFix"
|
||||
class="bg"
|
||||
@click="bannerClickHandle"
|
||||
/>
|
||||
/> -->
|
||||
<u-swiper
|
||||
:list="userCenterCarousel"
|
||||
keyName="image"
|
||||
@click="handleSwiper"
|
||||
></u-swiper>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -264,6 +269,8 @@ export default {
|
||||
mixins: [pageListenMixins],
|
||||
data() {
|
||||
return {
|
||||
userCenterCarousel:[],
|
||||
userCenterCarouselShow: 0,
|
||||
statusBarHeight: uni.getSystemInfoSync().statusBarHeight,
|
||||
webUrl: this.$VUE_APP_RESOURCES_URL,
|
||||
isWeixin: false,
|
||||
@@ -372,6 +379,10 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
...mapMutations(['updateAuthorizationPage']),
|
||||
handleSwiper(e) {
|
||||
const url = this.userCenterCarousel[e].url
|
||||
this.linkTo(url)
|
||||
},
|
||||
goRoomLogs() {
|
||||
uni.navigateTo({
|
||||
url: '/pkg_common/views/roomLogs'
|
||||
@@ -447,6 +458,8 @@ export default {
|
||||
getUserCenterBanner().then(res => {
|
||||
const { success, data } = res
|
||||
if (success) {
|
||||
this.userCenterCarousel = data.userCenterCarousel || []
|
||||
this.userCenterCarouselShow = data.userCenterCarouselShow
|
||||
if (data.userCenterBanner) {
|
||||
this.bannerBgUrl = data.userCenterBanner
|
||||
this.userCenterBannerUrl = data.userCenterBannerUrl || ''
|
||||
|
||||
Reference in New Issue
Block a user