From 2c55efc945cefa4fa17a19535a1b9f1e1d5c9e9f Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Thu, 27 Jun 2024 09:51:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=82=80=E8=AF=B7=E6=8E=A8?= =?UTF-8?q?=E5=B9=BF=E5=A4=B4=E5=83=8F=E5=B1=95=E7=A4=BA=E7=AD=89=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bundle/pages/user_spread/user_spread.vue | 46 +++++++++++++++++++----- 1 file changed, 37 insertions(+), 9 deletions(-) diff --git a/bundle/pages/user_spread/user_spread.vue b/bundle/pages/user_spread/user_spread.vue index d1db446..a9b960e 100644 --- a/bundle/pages/user_spread/user_spread.vue +++ b/bundle/pages/user_spread/user_spread.vue @@ -7,7 +7,7 @@ - + @@ -103,7 +103,7 @@ - 重新申请 + 重新申请 提交成功后,我们将会在1-2个工作日内给您回复 @@ -156,12 +156,12 @@ - + 我的粉丝 {{distributionInfo.fans}} @@ -232,6 +232,7 @@ veryfiyDistribute } from "@/api/user"; import area from '@/utils/area' + import {mapGetters} from 'vuex'; import { copy } from '@/utils/tools' @@ -243,7 +244,6 @@ showLoading: true, // 弹窗展示 showPop: false, - inviteCode: '', mobile: '', realName: '', id_card: '', @@ -340,8 +340,12 @@ this.cityId = region[1].value; this.districtId = region[2].value }, + + formClick() { + uni.$u.throttle(this.formSubmit, 500) + }, - async formSubmit() { + async formSubmit() { let { provinceId, cityId, @@ -392,11 +396,16 @@ this.$toast({ title: msg }); - this.applyDetailFun(); + setTimeout(() => { + uni.switchTab({ + url: '/pages/user/user' + }); + }, 500) + // this.applyDetailFun(); } }, - - + + // 填写邀请码 bindSuperiorFun() { bindSuperior({ @@ -411,6 +420,21 @@ } }); }, + + // 原版本 填写邀请码 + // bindSuperiorFun() { + // bindSuperior({ + // invite_code: this.inviteCode + // }).then(res => { + // this.$toast({ + // title: res.msg + // }) + // if (res.code == 1) { + // this.showPop = false + // this.getSuperiorInfoFun(); + // } + // }); + // }, showInvitePop() { this.showPop = true; @@ -436,9 +460,13 @@ onShareAppMessage() { return { title: '分销推广', + imageUrl: 'https://dlh.hainings.com/uploads/images/20230707152122b9d182544.jpg', path: '/pages/index/index?invite_code=' + this.userInfo.procurement.distribution_code } } + }, + computed: { + ...mapGetters(['appConfig']), } };