Commit 7f00915d authored by agping's avatar agping

h5注册

parent a9898dde
...@@ -13,28 +13,20 @@ ...@@ -13,28 +13,20 @@
<input type="number" id="ranks" class="infos1" placeholder="请输入验证码" v-model.trim="code"> <input type="number" id="ranks" class="infos1" placeholder="请输入验证码" v-model.trim="code">
<a href="javascript:;" class="send1" @click="getCode" v-show="!isGetCode">获取验证码</a> <a href="javascript:;" class="send1" @click="getCode" v-show="!isGetCode">获取验证码</a>
<a href="javascript:;" class="send1" v-show="isGetCode">{{countSecond}}</a> <a href="javascript:;" class="send1" v-show="isGetCode">{{countSecond}}</a>
</div> </div>
<div class="register-div"> <div class="register-div">
<img class="zc_nor_button" :src="yueduImage" v-show="!isGetImg" @click="isGetImg=!isGetImg"> <img class="zc_nor_button" :src="yueduImage" v-show="!isGetImg" @click="isGetImg=!isGetImg">
<img class="zc_nor_button" :src="noyueduImage" v-show="isGetImg" @click="isGetImg=!isGetImg"> <img class="zc_nor_button" :src="noyueduImage" v-show="isGetImg" @click="isGetImg=!isGetImg">
<router-link to="/agreement" class='a-link'> <router-link to="/agreement" class='a-link'>
我已阅读 我已阅读
<span> <span>
《同联商业服务协议》 《同联商业服务协议》
</span> </span>
</router-link> </router-link>
</div> </div>
<div class="div-conform"> <div class="div-conform">
<a href="javascript:;" @click="submitOk" v-show="!isSaving" class="conform flex-center">提交</a> <a href="javascript:;" @click="submitOk" v-show="!isSaving" class="conform flex-center">提交</a>
<a href="javascript:;" v-show="isSaving" class="conform flex-center">提交中</a> <a href="javascript:;" v-show="isSaving" class="conform flex-center">提交中</a>
<!--<a class="conform">提交</a>-->
</div> </div>
<div class="clear"></div> <div class="clear"></div>
<div class="qr-code-area"> <div class="qr-code-area">
...@@ -45,14 +37,12 @@ ...@@ -45,14 +37,12 @@
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import '@/assets/js/layer041002.js'; import '@/assets/js/layer041002.js';
import bgImage from '@/components/inviteRegister/images/pic_yaoqingzhuce.jpg'; import bgImage from '@/components/inviteRegister/images/pic_yaoqingzhuce.jpg';
import yueduImage from '@/components/inviteRegister/images/but_yuedu-.png'; import yueduImage from '@/components/inviteRegister/images/but_yuedu-.png';
import noyueduImage from '@/components/inviteRegister/images/but_yuedu_nor.png'; import noyueduImage from '@/components/inviteRegister/images/but_yuedu_nor.png';
import qrCodeImg from '@/components/inviteRegister/images/img_saoma@2x.png'; import qrCodeImg from '@/components/inviteRegister/images/img_saoma@2x.png';
export default { export default {
name: '', name: '',
data: () => ({ data: () => ({
...@@ -81,11 +71,19 @@ ...@@ -81,11 +71,19 @@
}, },
mounted() { mounted() {
let _this = this; let _this = this;
}, },
methods: { methods: {
getCode() { getCode() {
let _this = this; let _this = this;
if(_this.phone==''){
layer.tipsX('手机号码不能为空');
return
};
if(!_this.common.isMobile(_this.phone)){
layer.tipsX('手机号码格式不正确');
return
};
_this.isGetCode = true; _this.isGetCode = true;
_this.axios({ _this.axios({
method: 'post', method: 'post',
......
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