From 8242632cb0a5918d3fe912d7e3fbde9be11e2870 Mon Sep 17 00:00:00 2001 From: linxi Date: Wed, 4 Sep 2024 10:51:34 +0800 Subject: [PATCH] =?UTF-8?q?Feat(=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83):=20?= =?UTF-8?q?=E6=B5=B7=E6=8A=A5=E6=94=B9=E8=BD=AE=E6=92=AD=E5=9B=BE=EF=BC=8C?= =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E5=90=8E=E5=8F=B0=E9=85=8D=E5=B1=9E=E7=9A=84?= =?UTF-8?q?=E5=9B=BE=E7=89=87&=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/user/User/index.vue | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/pages/user/User/index.vue b/pages/user/User/index.vue index 3871592..ba3f521 100644 --- a/pages/user/User/index.vue +++ b/pages/user/User/index.vue @@ -203,13 +203,18 @@ - @@ -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 || ''