|
|
@@ -33,8 +33,7 @@
|
|
|
<view class="item">
|
|
|
<view class="acea-row row-middle">
|
|
|
<image src="../static/code_2.png" style="width: 28rpx; height: 32rpx;"></image>
|
|
|
- <input type="text" :placeholder="$t(`填写邀请码`)" class="codeIput"
|
|
|
- v-model="spread" />
|
|
|
+ <input type="text" :placeholder="$t(`填写邀请码`)" class="codeIput" v-model="spread" />
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="item">
|
|
|
@@ -130,7 +129,7 @@
|
|
|
inAnimation: false,
|
|
|
protocol: false,
|
|
|
current: 1,
|
|
|
- spread:'',
|
|
|
+ spread: '',
|
|
|
account: "",
|
|
|
password: "",
|
|
|
captcha: "",
|
|
|
@@ -194,10 +193,12 @@
|
|
|
this.$refs.verify.hide()
|
|
|
getCodeApi()
|
|
|
.then(res => {
|
|
|
+ // console.log('get', res);
|
|
|
this.keyCode = res.data.key;
|
|
|
this.getCode(data);
|
|
|
})
|
|
|
.catch(res => {
|
|
|
+ console.log('res','res');
|
|
|
this.$util.Tips({
|
|
|
title: res
|
|
|
});
|
|
|
@@ -328,6 +329,7 @@
|
|
|
that.formItem = 1;
|
|
|
})
|
|
|
.catch(res => {
|
|
|
+ console.log('错误1', res);
|
|
|
that.$util.Tips({
|
|
|
title: res
|
|
|
});
|
|
|
@@ -348,14 +350,15 @@
|
|
|
title: that.$t(`请输入正确的手机号码`)
|
|
|
});
|
|
|
if (that.formItem == 2) that.type = "register";
|
|
|
-
|
|
|
- await registerVerify({
|
|
|
- phone: that.account,
|
|
|
- type: that.type,
|
|
|
- key: that.keyCode,
|
|
|
- captchaType: this.captchaType,
|
|
|
- captchaVerification: data.captchaVerification
|
|
|
- })
|
|
|
+ const updata = {
|
|
|
+ phone: that.account,
|
|
|
+ type: that.type,
|
|
|
+ key: that.keyCode,
|
|
|
+ captchaType: this.captchaType,
|
|
|
+ captchaVerification: data.captchaVerification
|
|
|
+ };
|
|
|
+ // console.log(updata);
|
|
|
+ await registerVerify(updata)
|
|
|
.then(res => {
|
|
|
this.sendCode()
|
|
|
that.$util.Tips({
|
|
|
@@ -363,9 +366,11 @@
|
|
|
});
|
|
|
})
|
|
|
.catch(res => {
|
|
|
- that.$util.Tips({
|
|
|
- title: res
|
|
|
- });
|
|
|
+ if(res!='参数错误!'){
|
|
|
+ that.$util.Tips({
|
|
|
+ title: res
|
|
|
+ });
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
navTap: function(index) {
|