From cdfd90f2d499e8fe2d59ad8aeb08fdf0fb71a1b8 Mon Sep 17 00:00:00 2001 From: fanfan Date: Tue, 30 Apr 2024 14:49:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/news3/JoinDistribution.vue | 15 +++++++++------ pages/serve/index.vue | 2 +- pages/user/index.vue | 2 +- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/pages/news3/JoinDistribution.vue b/pages/news3/JoinDistribution.vue index 4e4d1e1..5d72924 100644 --- a/pages/news3/JoinDistribution.vue +++ b/pages/news3/JoinDistribution.vue @@ -118,13 +118,16 @@ app.isLoading = true Api.center() .then(result => { + if(result.data.length>0){ + const data = result.data + app.isDealer = data.isDealer + app.user = data.user + app.dealer = data.dealer + app.refereeName = data.refereeName + app.setting = data.setting + } // api数据赋值 - const data = result.data - app.isDealer = data.isDealer - app.user = data.user - app.dealer = data.dealer - app.refereeName = data.refereeName - app.setting = data.setting + // 设置当前页面标题 app.setPageTitle() app.isLoading = false diff --git a/pages/serve/index.vue b/pages/serve/index.vue index 4b66db9..9ae3d73 100644 --- a/pages/serve/index.vue +++ b/pages/serve/index.vue @@ -91,7 +91,7 @@ return ; } uni.navigateTo({ - url: "/pages/member/index?type=hy" + url: '/pages/member/index1?type=hy' }) }, getMemberList() { diff --git a/pages/user/index.vue b/pages/user/index.vue index 42b5b30..9f2a051 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -765,7 +765,7 @@ // icon: 'none', // duration: 2000 // }) - this.goJump('/pages/member/index1'); + this.goJump('/pages/member/index'); } }, openScrollTo() {