From b940b7f96e03accaba6299704e6a0b924b8bb365 Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期六, 03 八月 2024 20:32:12 +0800 Subject: [PATCH] update 花店注册流程变化(2步化为一步) --- App.vue | 57 ++++++++++++++++++++++++++++++++++++++++----------------- 1 files changed, 40 insertions(+), 17 deletions(-) diff --git a/App.vue b/App.vue index 157231c..f858281 100644 --- a/App.vue +++ b/App.vue @@ -6,6 +6,21 @@ export default { onLaunch: function(options) { + var query = options.q && decodeURIComponent(options.q) || '' + var querydto = {} + if (query) { + try { + var keyvalues = query.split("?")[1].split("&") + for (var item of keyvalues) { + var tarr = item.split("=") + querydto[tarr[0]] = tarr[1] + } + } catch (e) { + console.error('error', e) + } + } + console.log('app query222',options, query,'\n@@\n ', querydto) + console.warn('当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!') console.log('App Launch') @@ -25,17 +40,17 @@ setTimeout(async () => { const res = await this.$store.dispatch('getCurrentInfo'); // #ifndef PUB_CUSTOMER - if (this.currentInfo && this.currentInfo.id && !this.currentInfo.openId) { - if(this.currentInfo.type==='admin'){ - uni.reLaunch({ - url: '/sub_pages/partner/delivery/delivery-home' - }) - }else{ - uni.reLaunch({ - url: '/pages/home/supplier-home' - }) + if (this.currentInfo && this.currentInfo.id && !this.currentInfo.openId) { + if (this.currentInfo.type === 'admin') { + uni.reLaunch({ + url: '/sub_pages/partner/delivery/delivery-home' + }) + } else { + uni.reLaunch({ + url: '/pages/home/supplier-home' + }) } - + } else { uni.reLaunch({ url: '/pages/login/supplier-login' @@ -52,9 +67,17 @@ } // #endif // #ifdef PUB_CUSTOMER - uni.reLaunch({ - url: '/pages/home/home' - }) + // 需要处理一下,判断是跳转登录还是原封不动 + if (!!querydto.partnerUserId) { + //需要去注册页面 + console.log('options', options) + + } else { + // uni.reLaunch({ + // url: '/pages/home/home' + // }) + } + // #endif }, @@ -401,6 +424,10 @@ .m-t-15 { margin-top: 30rpx; + } + + .p-t-12 { + padding-top: 30rpx; } .m-t-icon { @@ -774,7 +801,6 @@ .msg-tip { font-size: 24rpx; - font-family: PingFangSC, PingFang SC; font-weight: 400; color: #999999; line-height: 34rpx; @@ -892,7 +918,6 @@ border-radius: 62rpx; font-size: 32rpx; - font-family: PingFangSC, PingFang SC; font-weight: 600; color: #FFFFFF; line-height: 80rpx; @@ -909,7 +934,6 @@ border-radius: 62rpx; border: 2rpx solid #666666; font-size: 32rpx; - font-family: PingFangSC, PingFang SC; font-weight: 400; color: #666666; line-height: 92rpx; @@ -920,7 +944,6 @@ .close-parent { position: relative; font-size: 28rpx; - font-family: PingFangSC, PingFang SC; font-weight: 600; color: #000000; line-height: 40rpx; -- Gitblit v1.9.3