|
@@ -1,5 +1,6 @@
|
|
|
<template>
|
|
|
- <view class="container register">
|
|
|
+ <view class="container register" :style="{paddingTop:CustomBar+'px'}">
|
|
|
+ <cu-custom :navbar-data='nvabarData' @navigateBack="hanldNavigateBack"></cu-custom>
|
|
|
<view class="register-tab">
|
|
|
<view class="nav-item" :class="{ current: tabCurrentIndex === 1 }" >
|
|
|
账户信息<view class="line"></view>
|
|
@@ -35,13 +36,13 @@
|
|
|
<view class="register-row clearfix">
|
|
|
<view class="register-from">
|
|
|
<view class="label">登录密码:</view>
|
|
|
- <input class="row-input" type="password" name="input" v-model="password" placeholder="密码必须为8-16位字母数字组合" maxlength="20"/>
|
|
|
+ <input class="row-input" type="password" name="input" v-model="password" placeholder="密码必须为8-16位字母数字组合" maxlength="16"/>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="register-row clearfix">
|
|
|
<view class="register-from">
|
|
|
<view class="label">确认密码:</view>
|
|
|
- <input class="row-input" type="password" name="input" v-model="passwordCheck" placeholder="请确认密码" maxlength="20"/>
|
|
|
+ <input class="row-input" type="password" name="input" v-model="passwordCheck" placeholder="请确认密码" maxlength="16"/>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="register-row clearfix">
|
|
@@ -70,7 +71,7 @@
|
|
|
<view class="register-row clearfix">
|
|
|
<view class="register-from imgcode">
|
|
|
<view class="label">图形验证码:</view>
|
|
|
- <input class="row-input" type="text" name="input" v-model="imageCode" placeholder="请输入图形验证码" maxlength="6"/>
|
|
|
+ <input class="row-input" type="text" name="input" v-model="imageCode" placeholder="请输入图形验证码" maxlength="4"/>
|
|
|
</view>
|
|
|
<view class="register-from img-btn">
|
|
|
<view class="vscodeimg">
|
|
@@ -305,6 +306,12 @@
|
|
|
},
|
|
|
data() {
|
|
|
return{
|
|
|
+ nvabarData: { //顶部自定义导航
|
|
|
+ showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
|
|
|
+ showSearch: 0,
|
|
|
+ title: '注册', // 导航栏 中间的标题
|
|
|
+ },
|
|
|
+ CustomBar:this.CustomBar,// 顶部导航栏高度
|
|
|
tabCurrentIndex:1, //显示step
|
|
|
isPreviewImage:false, //预览图片开关
|
|
|
isEmialDisabled: false, //验证码按钮控制
|
|
@@ -369,7 +376,19 @@
|
|
|
console.log(option)
|
|
|
},
|
|
|
methods:{
|
|
|
-
|
|
|
+ hanldNavigateBack(){
|
|
|
+ if(this.tabCurrentIndex == 1){
|
|
|
+ this.$util.modal('','注册尚未完成,确定放弃注册吗?','确定','取消',true,() =>{
|
|
|
+ uni.navigateBack({
|
|
|
+ delta: 1
|
|
|
+ });
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ uni.navigateBack({
|
|
|
+ delta: 1
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
registerStepsfirst(){
|
|
|
let params ={
|
|
|
email:this.registerEmail,
|
|
@@ -403,6 +422,10 @@
|
|
|
})
|
|
|
},
|
|
|
registerStepsSub(){
|
|
|
+ if(!this.isCheck){
|
|
|
+ this.$util.msg('请勾选同意协议',2000);
|
|
|
+ return
|
|
|
+ }
|
|
|
let params ={
|
|
|
email:this.registerEmail,
|
|
|
mailboxCode:this.regEmailCode,
|
|
@@ -684,7 +707,6 @@
|
|
|
.register{
|
|
|
width: 100%;
|
|
|
height: auto;
|
|
|
- border-top: 1px solid #F7F7F7;
|
|
|
.model-warp.none{
|
|
|
display: none;
|
|
|
}
|
|
@@ -720,7 +742,7 @@
|
|
|
}
|
|
|
&.current{
|
|
|
color:#FFFFFF;
|
|
|
- background: $color-system;
|
|
|
+ background: $btn-confirm;
|
|
|
|
|
|
}
|
|
|
}
|