xuxueyang
2024-07-21 883ca635ebb2df1ccb9e7f6dc19a88c7ad374cb6
pages/login/supplier-reg.vue
@@ -85,6 +85,7 @@
            getCodeisWaiting: false,
            Timer: undefined,
            protocal: false,
            source: '',
            // #ifdef PUB_SUPPLIER
            apitype: 'supplier',
            // #endif
@@ -93,6 +94,9 @@
            // #endif
         };
      },
      onLoad(options) {
         this.source = options.source || ''
      },
      methods: {
         toProtocol() {
@@ -230,9 +234,42 @@
                  title: '注册成功!',
                  icon: 'none'
               });
               setTimeout(() => {
                  this.toLogin()
               }, 1000);
               if (this.source == 'step') {
                  // cache_partner_info
                  var tjson = this.$storage.getItem('cache_partner_info')
                  if (tjson) {
                     var dto = JSON.parse(tjson)
                     {
                        this.$message.showLoading()
                        const re = await this.$http.request('post', '/api/partner/addOrUpdate', {
                           data: dto
                        })
                        this.$message.hideLoading()
                        if (re.code == 2000 || re.code == 0) {
                           this.toLogin()
                        } else {
                           this.$message.showToast('合伙人信息失效,请登录后重新填写提交审核')
                           setTimeout(() => {
                                 this.toLogin()
                              }, 1000);
                           }
                        }
                     }
                  }else{
                     this.$message.showToast('合伙人信息失效,请登录后重新填写提交审核')
                     setTimeout(() => {
                        this.toLogin()
                     }, 1000);
                  }
               } else {
                  setTimeout(() => {
                     this.toLogin()
                  }, 1000);
               }
            } else {
               // uni.showToast({