|
@@ -7,7 +7,7 @@
|
|
|
<!--姓名-->
|
|
|
<div class="weui-cell">
|
|
|
<div class="weui-cell__hd"><label class="weui-label">姓名</label></div>
|
|
|
- <div class="weui-cell__bd"><input v-model="userName" class="weui-input" type="text" required="" maxlength="11"
|
|
|
+ <div class="weui-cell__bd"><input v-model="userName" class="weui-input" type="text" required=""
|
|
|
placeholder="输入您的姓名">
|
|
|
</div>
|
|
|
<div class="weui-cell__ft"><i class="weui-icon-warn"></i></div>
|
|
@@ -101,15 +101,15 @@
|
|
|
return
|
|
|
}
|
|
|
// 检验手机号码
|
|
|
- if (that.iCode !== that.code || that.iCode == '') {
|
|
|
+ if (Number.parseInt(that.iCode) !== that.code) {
|
|
|
weui.alert('您手机号码未通过验证,请重新操作!');
|
|
|
return
|
|
|
}
|
|
|
// 提交数据
|
|
|
axios.post(_.apiPath + 'j/HouseKeeping/AddUserInfo&user_id=' + _.user_id + '&mobile=' + that.mobile + '&name=' + that.userName).then(res => {
|
|
|
- if(res.data.success){
|
|
|
+ if (res.data.success) {
|
|
|
weui.alert('注册成功', function () {
|
|
|
- that.$router.push({path:'/'});
|
|
|
+ that.$router.push({path: '/'});
|
|
|
return
|
|
|
});
|
|
|
}
|
|
@@ -124,15 +124,15 @@
|
|
|
return
|
|
|
}
|
|
|
if (this.iCreateCode === this.createCode) {
|
|
|
- axios.get(_.apiPath + '/moonclub/reserve/code&number=' + this.mobile).then(res => {
|
|
|
+ axios.get(_.apiPath + '/moonclub/reserve/code&mobile=' + this.mobile).then(res => {
|
|
|
// 短信发送成功
|
|
|
if (res.data.success) {
|
|
|
weui.alert('短信已发送,请留意查收!');
|
|
|
// 绑定短信验证码
|
|
|
this.code = res.data.data.code;
|
|
|
// this.iCode = this.code // 系统调试时开启
|
|
|
- this.iCreateCode = '';// 清空已输入验证码
|
|
|
- this.createCode = createCode(); // 重置验证码
|
|
|
+ // this.iCreateCode = '';// 清空已输入验证码
|
|
|
+ // this.createCode = createCode(); // 重置验证码
|
|
|
} else {
|
|
|
weui.alert('短信发送发送失败,请稍后再试!');
|
|
|
}
|