Files
2025-04-30 14:08:39 +08:00

183 lines
6.8 KiB
Vue

<template>
<view class="page" :style="themeColor">
<view class="flex benben-position-layout flex flex-wrap align-center Bindphonenumber_flex_0" :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
<view class='flex flex-wrap align-center justify-between flex-sub Bindphonenumber_fd0_0' >
<view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="back" data-url="1" >
<text class='fu-iconfont2 Bindphonenumber_fd0_0_c0_c0' >&#xE794;</text>
</view>
<view class='flex flex-wrap align-stretch justify-center flex-sub' >
<text class='Bindphonenumber_fd0_0_c1_c0' >绑定手机号</text>
</view>
<view class='flex flex-wrap align-center Bindphonenumber_fd0_0_c2' >
</view>
</view>
</view>
<view :style="{height: (88+StatusBarRpx)+'rpx'}" ></view>
<view class="flex flex-direction flex-wrap align-stretch Bindphonenumber_flex_1" >
<view class='flex flex-wrap align-center Bindphonenumber_fd1_0' >
<input class='flex-sub Bindphonenumber_fd1_0_c0' type="number" :focus='true' placeholder="请输入手机号" confirm-type="done" :maxlength="12" :password='true' placeholder-style="color:rgba(156, 156, 156, 1);font-size:32rpx" v-model="phone" />
</view>
<view class='flex flex-wrap align-center justify-between Bindphonenumber_fd1_1' >
<input class='Bindphonenumber_fd1_1_c0' type="number" placeholder="请输入您的验证码" confirm-type="done" :maxlength="4" :password='true' placeholder-style="color:rgba(153, 153, 153, 1);font-size:32rpx" v-model="code" />
<benben-send-verification-code class='flex Bindphonenumber_fd1_1_c1' after-text='后重新获取' before-text='发送验证码' type='5' :phone="phone"></benben-send-verification-code>
</view>
<view class='flex flex-wrap align-center Bindphonenumber_fd1_2' >
<benben-flex-password-diy v-model="Passworld" class-name="flex align-center flex Bindphonenumber_fd1_2_c0" :placeholder="'请输入密码(6~12位字母+数字)'" :maxlength="12" :default-type='true' placeholder-style="color:#999;font-size:32rpx" >
<template #show>
<text class='fu-iconfont2 Bindphonenumber_fd1_2_c0_icon1' data-type="show">&#xE837;</text>
</template>
<template #hide>
<text class='fu-iconfont2 Bindphonenumber_fd1_2_c0_icon2' data-type="hide">&#xEBCC;</text>
</template>
</benben-flex-password-diy>
</view>
</view>
<!---flex布局flex布局开始-->
<view class="flex flex-wrap align-center justify-center benben-flex-layout" >
<button class='Bindphonenumber_fd2_0' @tap.stop="bindPhoneFunc()" >提交</button>
</view>
<!---flex布局flex布局结束-->
</view>
</template>
<script>
import {validate} from '@/common/utils/validate.js'
export default {
components:{},
data(){
return {"phone":"","code":"","Passworld":""};
},
computed:{
themeColor() {
return this.$store.getters.themeColor
},
},
watch:{},
onLoad(options){
},
onUnload() {
},
onReady(){
},
onShow(){
},
onHide(){
},
onResize(){
},
onPullDownRefresh(){
},
onReachBottom(e){
},
onPageScroll(e){
},
methods:{
//绑定手机号
bindPhoneFunc(){
if(!validate(this.phone,'require')){
this.$message.info('手机号不能为空');
return false;
}
if(!validate(this.phone,'phone')){
this.$message.info('请输入正确的手机号');
return false;
}
if(!validate(this.code,'require')){
this.$message.info('验证码不能为空');
return false;
}
if(!validate(this.code,'length','4')){
this.$message.info('请输入四位验证码数字');
return false;
}
if(!validate(this.code,'captcha')){
this.$message.info('请输入正确的验证码');
return false;
}
if(!validate(this.Passworld,'require')){
this.$message.info('密码不能为空');
return false;
}
if(!validate(this.Passworld,'password')){
this.$message.info('请输入正确的密码格式');
return false;
}
this.$urouter.navigateTo(`/pages/dl/certifiedMerchant/certifiedMerchant`);
}
}
};
</script>
<style lang="scss" scoped>
.page{
width: 100vw;
overflow-x: hidden;
min-height: calc(100vh - var(--window-bottom));
background:#fff;background-size: 100% auto !important;
}
.Bindphonenumber_flex_0{
border-bottom:1px solid #eee;background:#fff;width:750rpx;height:88rpx;overflow:hidden;z-index:10;top:0rpx;background-size:100% auto !important;
}
.Bindphonenumber_fd0_0_c2{
width:32rpx;height:32rpx;
}
.Bindphonenumber_fd0_0_c1_c0{
font-size:36rpx;font-weight:500;color:#333;line-height:88rpx;
}
.Bindphonenumber_fd0_0_c0_c0{
font-size:32rpx;font-weight:500;color:#333;line-height:88rpx;
}
.Bindphonenumber_fd0_0{
margin:0rpx 32rpx 0rpx 32rpx;
}
.Bindphonenumber_flex_1{
background:#fff;font-size:32rpx;background-size:100% auto !important;padding:0rpx 32rpx 0rpx 32rpx;
}
.Bindphonenumber_fd1_2_c0_icon2{
width:88rpx;line-height:88rpx;text-align:center;font-size:40rpx;
}
.Bindphonenumber_fd1_2_c0_icon1{
width:88rpx;line-height:88rpx;text-align:center;font-size:40rpx;
}
::v-deep .Bindphonenumber_fd1_2_c0{
font-size:32rpx;width:686rpx;
}
.Bindphonenumber_fd1_2{
border-bottom:1px solid rgba(238, 238, 238, 1);padding:32rpx 0rpx 32rpx 0rpx;
}
.Bindphonenumber_fd1_1_c1{
line-height:30rpx;text-align:center;font-size:28rpx;color:#FF7F1E;font-weight:400;
}
.Bindphonenumber_fd1_1_c0{
line-height:45rpx;font-size:32rpx;font-weight:400;color:#333;
}
.Bindphonenumber_fd1_1{
border-bottom:1px solid #eee;padding:32rpx 0rpx 32rpx 0rpx;
}
.Bindphonenumber_fd1_0_c0{
line-height:45rpx;font-size:32rpx;font-weight:400;color:#333;
}
.Bindphonenumber_fd1_0{
border-bottom:1px solid #eee;padding:32rpx 0rpx 32rpx 0rpx;
}
.Bindphonenumber_fd2_0{
background:rgba(255, 147, 0, 1);border-radius:44rpx 44rpx 44rpx 44rpx;font-size:32rpx;color:#fff;width:686rpx;height:88rpx;line-height:88rpx;font-weight:500;margin:88rpx 0rpx 0rpx 0rpx;
}
</style>