xuxueyang
2024-07-25 96aeb2a232d85306ced2061f024a2ff491a92ff7
pages/login/supplier-reg.vue
@@ -1,7 +1,10 @@
<template>
   <view>
      <view v-if="source==='step'" style="padding: 20rpx 0rpx;color: red;;background-color: #e6e6e6;">
      <!-- #ifdef PUB_PARTNER -->
         <view style="padding: 20rpx;text-align: center;background-color: #fff;">仅限花满芫合伙人入驻</view>
      <!-- #endif -->e
         <view v-if="source==='step'" class="" style="background-color: #fff;margin-top: 20rpx;padding: 20rpx;">
            <u-steps current="1">
               <u-steps-item title="信息填写" class="u-steps-item">
@@ -66,8 +69,9 @@
                  <button @tap="login()" class="bottom-button">注 册</button>
                  <view class="flex">
                     <view class="topic-font m-l-0 m-r-a" @click="backInfoPage" v-if="source==='step'">返回填写</view>
              <view class="topic-font m-l-0 m-r-a" @click="backInfoPage" v-if="source==='step'">返回上一步</view>
                     <view class="topic-font m-l-a m-r-0" @click="toLogin">前往登录</view>
                  </view>
                  <view class="flex flex-wrap-normal"
                     style="position: fixed;bottom: 40rpx;left: 40rpx;right: 40rpx;" v-if="false">
@@ -113,6 +117,9 @@
            // #endif
            // #ifdef PUB_PARTNER
            apitype: 'partner',
      // #endif
      // #ifdef PUB_CUSTOMER
      apitype: 'customer',
            // #endif
         };
@@ -161,7 +168,7 @@
                  userType: this.apitype
               }
            })
            if (code == 0) {
      if (code === 0) {
               uni.showToast({
                  title: '验证码已发送',
                  icon: "none"
@@ -243,11 +250,17 @@
               type: this.apitype
               // openId: '123456789'
            }
            if (this.source == 'step') {
               var tjson = this.$storage.getItem('cache_partner_info')
      if (this.source === 'step') {
        var tjson = ''
        // #ifdef PUB_PARTNER
        tjson = this.$storage.getItem('cache_partner_info')
        // #endif
        // #ifdef PUB_CUSTOMER
        this.$storage.getItem('cache_customer_info')
        // #endif
               if (!tjson) {
                  this.$message.showToast('没有合伙人信息请返回重新填写')
          this.$message.showToast('没有填写用户信息请返回重新填写')
                  return
               }
               var dto = JSON.parse(tjson)
@@ -260,7 +273,7 @@
            const resp = await this.$store.dispatch('regUser', post);
            // uni.hideLoading()
            if (resp.code == 0) {
      if (resp.code === 0) {
               // myCache.cache("userToken", res.data.accessToken)
               // let userRes = await gzmzApi.getMemberInfo();
@@ -296,7 +309,6 @@
               //             this.toLogin()
               //          }, 1000);
               //       }
               //    } else {