初始化万家商超用户端仓库
This commit is contained in:
183
pages/dl/bindPhone/bindPhone1.vue
Normal file
183
pages/dl/bindPhone/bindPhone1.vue
Normal file
@ -0,0 +1,183 @@
|
||||
<template>
|
||||
<view class="page" :style="themeColor">
|
||||
<view class="flex benben-position-layout flex flex-wrap align-center bindPhone_flex_0" :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
|
||||
<view class='flex flex-wrap align-center justify-between flex-sub bindPhone_fd0_0' >
|
||||
<view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="back" data-url="1" >
|
||||
<text class='fu-iconfont2 bindPhone_fd0_0_c0_c0' ></text>
|
||||
</view>
|
||||
<view class='flex flex-wrap align-stretch justify-center flex-sub' >
|
||||
<text class='bindPhone_fd0_0_c1_c0' >绑定手机号</text>
|
||||
</view>
|
||||
<view class='flex flex-wrap align-center bindPhone_fd0_0_c2' >
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view :style="{height: (88+StatusBarRpx)+'rpx'}" ></view>
|
||||
|
||||
<view class="flex flex-direction flex-wrap align-stretch bindPhone_flex_1" >
|
||||
<view class='flex flex-wrap align-center bindPhone_fd1_0' >
|
||||
<input class='flex-sub bindPhone_fd1_0_c0' type="number" placeholder="请输入手机号" confirm-type="done" :maxlength="12" placeholder-style="color:rgba(156, 156, 156, 1);font-size:32rpx" v-model="phone" />
|
||||
</view>
|
||||
<view class='flex flex-wrap align-center justify-between bindPhone_fd1_1' >
|
||||
<input class='bindPhone_fd1_1_c0' type="number" placeholder="请输入您的验证码" confirm-type="done" :maxlength="4" placeholder-style="color:rgba(153, 153, 153, 1);font-size:32rpx" v-model="code" />
|
||||
<benben-send-verification-code class='flex bindPhone_fd1_1_c1' after-text='后重新获取' before-text='发送验证码' type='5' :phone="phone"></benben-send-verification-code>
|
||||
</view>
|
||||
<view class='flex flex-wrap align-center bindPhone_fd1_2' >
|
||||
<benben-flex-password-diy v-model="Passworld" class-name="flex align-center flex bindPhone_fd1_2_c0" :placeholder="'请输入密码(6~12位字母+数字)'" :maxlength="12" :default-type='true' placeholder-style="color:#999;font-size:32rpx" >
|
||||
<template #show>
|
||||
<text class='fu-iconfont2 bindPhone_fd1_2_c0_icon1' data-type="show"></text>
|
||||
</template>
|
||||
<template #hide>
|
||||
<text class='fu-iconfont2 bindPhone_fd1_2_c0_icon2' data-type="hide"></text>
|
||||
</template>
|
||||
</benben-flex-password-diy>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<!---flex布局flex布局开始-->
|
||||
<view class="flex flex-wrap align-center justify-center benben-flex-layout" >
|
||||
<button class='bindPhone_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.switchTab(`/pages/tabBar/homePage/homePage`);
|
||||
}
|
||||
}
|
||||
};
|
||||
</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;
|
||||
}
|
||||
.bindPhone_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;
|
||||
}
|
||||
.bindPhone_fd0_0_c2{
|
||||
width:32rpx;height:32rpx;
|
||||
}
|
||||
.bindPhone_fd0_0_c1_c0{
|
||||
font-size:36rpx;font-weight:500;color:#333;line-height:88rpx;
|
||||
}
|
||||
.bindPhone_fd0_0_c0_c0{
|
||||
font-size:32rpx;font-weight:500;color:#333;line-height:88rpx;
|
||||
}
|
||||
.bindPhone_fd0_0{
|
||||
margin:0rpx 32rpx 0rpx 32rpx;
|
||||
}
|
||||
.bindPhone_flex_1{
|
||||
background:#fff;font-size:32rpx;background-size:100% auto !important;padding:0rpx 32rpx 0rpx 32rpx;
|
||||
}
|
||||
.bindPhone_fd1_2_c0_icon2{
|
||||
width:88rpx;line-height:88rpx;text-align:center;font-size:40rpx;
|
||||
}
|
||||
.bindPhone_fd1_2_c0_icon1{
|
||||
width:88rpx;line-height:88rpx;text-align:center;font-size:40rpx;
|
||||
}
|
||||
::v-deep .bindPhone_fd1_2_c0{
|
||||
font-size:32rpx;width:686rpx;
|
||||
}
|
||||
.bindPhone_fd1_2{
|
||||
border-bottom:1px solid rgba(238, 238, 238, 1);padding:32rpx 0rpx 32rpx 0rpx;
|
||||
}
|
||||
.bindPhone_fd1_1_c1{
|
||||
line-height:30rpx;text-align:center;font-size:28rpx;color:#FF7F1E;font-weight:400;
|
||||
}
|
||||
.bindPhone_fd1_1_c0{
|
||||
line-height:45rpx;font-size:32rpx;font-weight:400;color:#333;
|
||||
}
|
||||
.bindPhone_fd1_1{
|
||||
border-bottom:1px solid #eee;padding:32rpx 0rpx 32rpx 0rpx;
|
||||
}
|
||||
.bindPhone_fd1_0_c0{
|
||||
line-height:45rpx;font-size:32rpx;font-weight:400;color:#333;
|
||||
}
|
||||
.bindPhone_fd1_0{
|
||||
border-bottom:1px solid #eee;padding:32rpx 0rpx 32rpx 0rpx;
|
||||
}
|
||||
.bindPhone_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>
|
||||
Reference in New Issue
Block a user