diff --git a/pages/invite/index.vue b/pages/invite/index.vue index e0acbd2..338ceaa 100644 --- a/pages/invite/index.vue +++ b/pages/invite/index.vue @@ -102,9 +102,7 @@ - + {{a.successful}} @@ -130,7 +128,8 @@


-


级 + + 立


@@ -166,29 +165,25 @@ list: [], devicePixelRatio: 750 / uni.getSystemInfoSync().windowHeight, activity_rules: '', - storysList:[] + storysList: [], } }, onLoad(options) {}, onShow() { - if (uni.getStorageSync("AccessToken")) { - this.userInfo = uni.getStorageSync("userInfo"); - } else { - this.userInfo = {} - } + this.userInfo = uni.getStorageSync("userInfo"); }, onReady() { this.getCarousel() this.getCarouselList() }, methods: { - previewImage(image_url) { - // 调用预览图片API - uni.previewImage({ - current: 0, // 当前显示图片索引 - urls: [image_url] // 需要预览的图片URL列表 - }); - }, + previewImage(image_url) { + // 调用预览图片API + uni.previewImage({ + current: 0, // 当前显示图片索引 + urls: [image_url] // 需要预览的图片URL列表 + }); + }, getCarouselList() { const app = this; Api.getAgreement({ @@ -209,7 +204,7 @@ app.list = [] Api.storyList() .then(result => { - this.storysList=result.data.list.data + this.storysList = result.data.list.data console.log(this.storysList) }) .finally(() => app.isLoading = false) diff --git a/pages/invite/upgrade.vue b/pages/invite/upgrade.vue index 6041ba9..8c80238 100644 --- a/pages/invite/upgrade.vue +++ b/pages/invite/upgrade.vue @@ -1,5 +1,8 @@