文件名从 sub_pages/supplier/supplier-reg/supplier-reg.vue 修改 |
| | |
| | | getCodeBtnColor: "#20613D",
|
| | | getCodeisWaiting: false,
|
| | | Timer: undefined,
|
| | | protocal: false
|
| | | protocal: false, |
| | | // #ifdef PUB_SUPPLIER |
| | | apitype: 'supplier', |
| | | // #endif |
| | | // #ifdef PUB_PARTNER |
| | | apitype: 'partner', |
| | | // #endif |
| | | |
| | | };
|
| | | },
|
| | | methods: {
|
| | |
| | | } = await this.$http.request('post', '/api/sms/send/code', {
|
| | | data: {
|
| | | tel: this.phoneNumber,
|
| | | userType: 'supplier'
|
| | | userType: this.apitype |
| | | }
|
| | | })
|
| | | if (code == 0) {
|
| | |
| | | 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) {
|
| | |
| | | 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; |