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 @@ + + + 切换旗舰店 + + + 切换当地店 + +