xuxueyang
2024-07-17 51edf3ba7b1e5aa58220f90ee895835bbdfd922e
pages/login/supplier-reg.vue
文件名从 sub_pages/supplier/supplier-reg/supplier-reg.vue 修改
@@ -84,7 +84,14 @@
            getCodeBtnColor: "#20613D",
            getCodeisWaiting: false,
            Timer: undefined,
            protocal: false
            protocal: false,
            // #ifdef PUB_SUPPLIER
            apitype: 'supplier',
            // #endif
            // #ifdef PUB_PARTNER
            apitype: 'partner',
            // #endif
         };
      },
      methods: {
@@ -121,7 +128,7 @@
            } = await this.$http.request('post', '/api/sms/send/code', {
               data: {
                  tel: this.phoneNumber,
                  userType: 'supplier'
                  userType: this.apitype
               }
            })
            if (code == 0) {
@@ -203,12 +210,13 @@
               tel: this.phoneNumber,
               smsCode: this.smsCode,
               password: this.password,
               type: this.apitype
               // openId: '123456789'
            }
            // const {
            // code
            // } = await this.$http.request('get', '/api/login/admin')
            const resp = await this.$store.dispatch('regSupplier', post);
            const resp = await this.$store.dispatch('regUser', post);
            // uni.hideLoading()
            if (resp.code == 0) {
@@ -249,10 +257,12 @@
      border-radius: 50rpx;
      margin-bottom: 50rpx;
      border: 1px solid #e9e9e9;
      /deep/ .u-input{
         padding-left: 60rpx !important;
         padding-right: 40rpx !important;
      }
      /deep/ input {
         height: 70rpx;
         line-height: 70rpx;