Commit a9898dde authored by agping's avatar agping

app邀请注册修改

parent a13ff3f6
<template>
<div id="regi">
<div class="agree">
<a class="ps-back" href="javascript:(history.length>1?history.go(-1):window.location='/');" id="back_btn"></a>
<h2 id="title">用户协议</h2>
<div class="agree">
<p class="agree-p">
一、同联商业用户协议的生效
</p>
......@@ -250,4 +250,17 @@
text-overflow: ellipsis;
color: #333;
}
a.ps-back{
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: .88rem;
height: .88rem;
background: url(images/ic_back_black@2x.png) no-repeat 0.3rem center/.36rem .28rem;
/*background: url(images/ic_back_black@2x.png) no-repeat 0.3rem center;
background-size: .36rem .28rem;*/
}
</style>
\ No newline at end of file
......@@ -119,11 +119,23 @@
},
submitOk() {
let _this = this;
if(_this.common.isMobile(_this.phone)){
if(_this.isGetImg){
layer.tipsX('你还未阅读《同联商业服务协议》');
};
_this.axios({
if(_this.phone==''){
layer.tipsX('手机号码不能为空');
return
};
if(!_this.common.isMobile(_this.phone)){
layer.tipsX('手机号码格式不正确');
return
};
if(_this.code==''){
layer.tipsX('验证码不能为空');
return
};
if(_this.isGetImg){
layer.tipsX('请勾选协议');
return
};
_this.axios({
method: 'post',
url: '/api/userVerify',
responseType: 'json',
......@@ -145,16 +157,14 @@
})
.catch(function(error) {
layer.tipsX(error);
});
}else{
layer.tipsX('手机号码格式不正确');
}
}
},
})
}
},
computed: {
}
}
}
</script>
<style scoped>
......@@ -308,6 +318,5 @@ input::-webkit-input-placeholder{
.clear{
clear: both;
}
</style>
\ No newline at end of file
</style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment