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