From 6885e1679c7f3de03be5e0b38c3d42e49e418d6b Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Sat, 9 May 2026 11:23:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=B7=BB=E5=8A=A0=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E5=BA=97=E9=93=BA=E5=92=8C=E6=97=97=E8=88=B0=E5=BA=97?= =?UTF-8?q?=E7=9A=84=E5=88=87=E6=8D=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/user.js | 7 ++- bundle/pages/user_spread/user_spread.vue | 29 ++++++---- pages.json | 1 - pages/index/index.vue | 70 ++++++++++++++++++++++-- 4 files changed, 90 insertions(+), 17 deletions(-) diff --git a/api/user.js b/api/user.js index 700d811..4fce2d5 100644 --- a/api/user.js +++ b/api/user.js @@ -295,9 +295,12 @@ export function withdrawReceive(data) { return request.post('withdraw/receive', data) } - - // 分销推广扫码进入的提交申请 export function scanSubmit(data) { return request.post('distribution/wxCodeApply', data) } + +// 扫码进入首页需要请求的接口 +export function scanHome(data) { + return request.post('distribution/wxCode', data) +} diff --git a/bundle/pages/user_spread/user_spread.vue b/bundle/pages/user_spread/user_spread.vue index 25fc933..4ced784 100644 --- a/bundle/pages/user_spread/user_spread.vue +++ b/bundle/pages/user_spread/user_spread.vue @@ -16,9 +16,9 @@ {{distributionInfo.level_name}} 上级分销商:{{userInfo.leader.nickname ? userInfo.leader.nickname : '无'}} - 填写 - + --> @@ -155,15 +155,16 @@ - - - + 我的邀请码 - + + + + @@ -258,7 +259,9 @@ inviteStatus: false, showRegion: false, regionLists: area, - distributionInfo: {}, + distributionInfo: { + user: {} + }, isScanEntry: false }; }, @@ -427,6 +430,7 @@ this.$toast({ title: msg }); + this.getDistributionFun(); this.veryfiyDistributeFun(); this.applyDetailFun(); } @@ -465,6 +469,13 @@ copy(this.userInfo.user.distribution_code) }, + previewImage() { + uni.previewImage({ + urls: [this.distributionInfo.user.url], + current: 0 + }) + }, + } }; @@ -479,8 +490,6 @@ .user-info { .user-avatar { position: relative; - - } .avatar-tag { display: inline-block; diff --git a/pages.json b/pages.json index 4cc98ff..4c7bb05 100644 --- a/pages.json +++ b/pages.json @@ -12,7 +12,6 @@ "navigationBarTitleText": "首页", "navigationStyle": "custom", "navigationBarTextStyle": "white", - "disableScroll": true, "app-plus": { "bounce": "none" } diff --git a/pages/index/index.vue b/pages/index/index.vue index ce60e2e..6775c12 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -87,6 +87,14 @@ + + + 切换旗舰店 + + + 切换当地店 + +