Commit a9898dde authored by agping's avatar agping

app邀请注册修改

parent a13ff3f6
<template> <template>
<div id="regi"> <div id="regi">
<a class="ps-back" href="javascript:(history.length>1?history.go(-1):window.location='/');" id="back_btn"></a>
<div class="agree">
<h2 id="title">用户协议</h2> <h2 id="title">用户协议</h2>
<div class="agree">
<p class="agree-p"> <p class="agree-p">
一、同联商业用户协议的生效 一、同联商业用户协议的生效
</p> </p>
...@@ -250,4 +250,17 @@ ...@@ -250,4 +250,17 @@
text-overflow: ellipsis; text-overflow: ellipsis;
color: #333; 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> </style>
\ No newline at end of file
...@@ -119,9 +119,21 @@ ...@@ -119,9 +119,21 @@
}, },
submitOk() { submitOk() {
let _this = this; let _this = this;
if(_this.common.isMobile(_this.phone)){ if(_this.phone==''){
layer.tipsX('手机号码不能为空');
return
};
if(!_this.common.isMobile(_this.phone)){
layer.tipsX('手机号码格式不正确');
return
};
if(_this.code==''){
layer.tipsX('验证码不能为空');
return
};
if(_this.isGetImg){ if(_this.isGetImg){
layer.tipsX('你还未阅读《同联商业服务协议》'); layer.tipsX('请勾选协议');
return
}; };
_this.axios({ _this.axios({
method: 'post', method: 'post',
...@@ -145,16 +157,14 @@ ...@@ -145,16 +157,14 @@
}) })
.catch(function(error) { .catch(function(error) {
layer.tipsX(error); layer.tipsX(error);
}); })
}else{
layer.tipsX('手机号码格式不正确');
}
} }
}, },
computed: { computed: {
} }
}
}
</script> </script>
<style scoped> <style scoped>
...@@ -308,6 +318,5 @@ input::-webkit-input-placeholder{ ...@@ -308,6 +318,5 @@ input::-webkit-input-placeholder{
.clear{ .clear{
clear: both; clear: both;
} }
</style> </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