|
|
|
@ -15,12 +15,15 @@ |
|
|
|
|
|
|
|
</view> |
|
|
|
<view class="gtbtnzone"> |
|
|
|
<button class="gtbtn" @click="next">下一步</button> |
|
|
|
<button class="gtbtn" @click="chkst">下一步</button> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import * as Verify from '@/utils/verify' |
|
|
|
import store from '@/store' |
|
|
|
|
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
@ -31,6 +34,37 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 点击登录 |
|
|
|
chkst() { |
|
|
|
const app = this |
|
|
|
if (!app.isLoading && app.formValidationName(app.rname) && app.formValidationPass(app.rid)) { |
|
|
|
//app.submitLogin() |
|
|
|
// 跳转到选择设备 |
|
|
|
this.$navTo("pages/verfiy/choosedev"); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//todo |
|
|
|
formValidationName(str){ |
|
|
|
if(Verify.isEmpty(str)){ |
|
|
|
this.$toast('手机号持有人姓名不能为空') |
|
|
|
return false |
|
|
|
} |
|
|
|
return true |
|
|
|
}, |
|
|
|
|
|
|
|
//check id |
|
|
|
formValidationId(str){ |
|
|
|
if(Verify.isEmpty(str)){ |
|
|
|
this.$toast('手机号持有人身份证号') |
|
|
|
return false |
|
|
|
} |
|
|
|
if(str.length<18 || str.length>18){ |
|
|
|
this.$toast("手机号持有人身份证号异常") |
|
|
|
return false |
|
|
|
} |
|
|
|
return true |
|
|
|
}, |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
@ -72,6 +106,7 @@ |
|
|
|
height: 126rpx; |
|
|
|
|
|
|
|
&--input { |
|
|
|
padding-left: 10rpx; |
|
|
|
font-size: 28rpx; |
|
|
|
letter-spacing: 1rpx; |
|
|
|
flex: 1; |
|
|
|
|