uniapp 手机号正则修改
parent
89b9155679
commit
b11b71be2e
|
@ -396,11 +396,9 @@ export default {
|
||||||
logistics.shippingNodelivery({ tempId: this.tempId }).then(res => {
|
logistics.shippingNodelivery({ tempId: this.tempId }).then(res => {
|
||||||
res.data.forEach((item, index) => {
|
res.data.forEach((item, index) => {
|
||||||
// item.title = JSON.parse(item.title)
|
// item.title = JSON.parse(item.title)
|
||||||
item.city_ids = item.cityId.split(',')
|
item.city_ids = JSON.parse(item.title)
|
||||||
})
|
})
|
||||||
this.ruleForm.noDelivery = res.data
|
this.ruleForm.noDelivery = res.data
|
||||||
console.log(this.ruleForm.noDelivery )
|
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
removeChild(list){
|
removeChild(list){
|
||||||
|
@ -507,13 +505,10 @@ export default {
|
||||||
// })
|
// })
|
||||||
}
|
}
|
||||||
if (this.ruleForm.noDelivery) {
|
if (this.ruleForm.noDelivery) {
|
||||||
param.shippingTemplatesNoDeliveryRespVOS = [{
|
param.shippingTemplatesNoDeliveryRespVOS = {
|
||||||
cityId:[],
|
title:JSON.stringify(this.ruleForm.noRegion),
|
||||||
}]
|
cityId:this.ruleForm.noRegion.join(','),
|
||||||
this.ruleForm.noRegion.forEach((item,index) => {
|
}
|
||||||
param.shippingTemplatesNoDeliveryRespVOS[0].cityId.push(item[2])
|
|
||||||
})
|
|
||||||
param.shippingTemplatesNoDeliveryRespVOS[0].cityId = param.shippingTemplatesNoDeliveryRespVOS[0].cityId.join(",")
|
|
||||||
}
|
}
|
||||||
if (this.type === 0) {
|
if (this.type === 0) {
|
||||||
logistics.shippingSave(param).then(res => {
|
logistics.shippingSave(param).then(res => {
|
||||||
|
|
|
@ -216,7 +216,7 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-radius: 16rpx 16rpx 0 0;
|
border-radius: 16rpx 16rpx 0 0;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
padding-bottom: 100rpx;
|
padding-bottom: 20%;
|
||||||
z-index: 99;
|
z-index: 99;
|
||||||
transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
|
transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
|
||||||
transform: translate3d(0, 100%, 0);
|
transform: translate3d(0, 100%, 0);
|
||||||
|
|
|
@ -22,6 +22,12 @@
|
||||||
"navigationBarTitleText": "权益明细"
|
"navigationBarTitleText": "权益明细"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/member_back/index",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "话费返回"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/member_equity/index",
|
"path": "pages/member_equity/index",
|
||||||
"style": {
|
"style": {
|
||||||
|
|
|
@ -257,11 +257,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
|
border-radius: 18rpx;
|
||||||
margin-top: 10rpx;
|
margin-top: 10rpx;
|
||||||
padding: 7rpx 16rpx;
|
padding: 7rpx 16rpx;
|
||||||
background: #F22E60;
|
background: #F22E60;
|
||||||
border-image: linear-gradient(0deg, #A8052E, #FFFFFF) 10 10;
|
border-image: linear-gradient(0deg, #A8052E, #FFFFFF) 10 10;
|
||||||
border-radius: 18rpx;
|
|
||||||
font-size: 22rpx;
|
font-size: 22rpx;
|
||||||
font-family: PingFang SC;
|
font-family: PingFang SC;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
|
|
@ -43,7 +43,6 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
memberGradeInfo,
|
|
||||||
memberByHomeGradeInfo
|
memberByHomeGradeInfo
|
||||||
} from '@/api/member.js';
|
} from '@/api/member.js';
|
||||||
import paymentMember from '@/components/paymentMember';
|
import paymentMember from '@/components/paymentMember';
|
||||||
|
@ -120,11 +119,11 @@
|
||||||
mask: true
|
mask: true
|
||||||
});
|
});
|
||||||
try{
|
try{
|
||||||
const res = await memberGradeInfo()
|
const res = await memberByHomeGradeInfo()
|
||||||
this.memberData = res.data
|
this.memberData = res.data
|
||||||
} finally{
|
} finally{
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch:{
|
watch:{
|
||||||
'form.confirmPhone' (){
|
'form.confirmPhone' (){
|
||||||
|
|
|
@ -55,7 +55,6 @@
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleBack(item){
|
handleBack(item){
|
||||||
console.log(item)
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:`/pages/member_back/index?userPhone=${item.userPhone}&grade=${item.grade}`
|
url:`/pages/member_back/index?userPhone=${item.userPhone}&grade=${item.grade}`
|
||||||
})
|
})
|
||||||
|
@ -87,7 +86,13 @@
|
||||||
.box {
|
.box {
|
||||||
margin-top: 10%;
|
margin-top: 10%;
|
||||||
padding: 20% 40rpx;
|
padding: 20% 40rpx;
|
||||||
|
height: 100vh;
|
||||||
|
background: url(../../static/images/memberBg.png);
|
||||||
|
background-size: cover;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-attachment: fixed;
|
||||||
.box-seach{
|
.box-seach{
|
||||||
|
z-index: 999;
|
||||||
padding: 10% 40rpx;
|
padding: 10% 40rpx;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|
|
@ -115,7 +115,7 @@
|
||||||
if (!that.mobile) return that.$util.Tips({
|
if (!that.mobile) return that.$util.Tips({
|
||||||
title: '请填写手机号码'
|
title: '请填写手机号码'
|
||||||
});
|
});
|
||||||
if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(that.mobile)) return that.$util.Tips({
|
if (/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(that.mobile)) return that.$util.Tips({
|
||||||
title: '请输入正确的手机号码'
|
title: '请输入正确的手机号码'
|
||||||
});
|
});
|
||||||
if (!that.captcha) return that.$util.Tips({
|
if (!that.captcha) return that.$util.Tips({
|
||||||
|
@ -156,7 +156,7 @@
|
||||||
if (!that.mobile) return that.$util.Tips({
|
if (!that.mobile) return that.$util.Tips({
|
||||||
title: '请填写手机号码'
|
title: '请填写手机号码'
|
||||||
});
|
});
|
||||||
if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(that.mobile)) return that.$util.Tips({
|
if (/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(that.mobile)) return that.$util.Tips({
|
||||||
title: '请输入正确的手机号码'
|
title: '请输入正确的手机号码'
|
||||||
});
|
});
|
||||||
if (!that.captcha) return that.$util.Tips({
|
if (!that.captcha) return that.$util.Tips({
|
||||||
|
@ -204,7 +204,7 @@
|
||||||
if (!that.mobile) return that.$util.Tips({
|
if (!that.mobile) return that.$util.Tips({
|
||||||
title: '请填写手机号码'
|
title: '请填写手机号码'
|
||||||
});
|
});
|
||||||
if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(that.mobile)) return that.$util.Tips({
|
if (/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(that.mobile)) return that.$util.Tips({
|
||||||
title: '请输入正确的手机号码'
|
title: '请输入正确的手机号码'
|
||||||
});
|
});
|
||||||
await registerVerify(that.mobile, 1)
|
await registerVerify(that.mobile, 1)
|
||||||
|
|
|
@ -88,7 +88,7 @@
|
||||||
if (!this.registerForm.mobile) return this.$util.Tips({
|
if (!this.registerForm.mobile) return this.$util.Tips({
|
||||||
title: '请填写手机号码'
|
title: '请填写手机号码'
|
||||||
});
|
});
|
||||||
if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(this.registerForm.mobile)) return this.$util.Tips({
|
if (/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[1-25-9])\d{8}$/g.test(this.registerForm.mobile)) return this.$util.Tips({
|
||||||
title: '请输入正确的手机号码'
|
title: '请输入正确的手机号码'
|
||||||
});
|
});
|
||||||
if(this.checked.length === 0) return this.$util.Tips({
|
if(this.checked.length === 0) return this.$util.Tips({
|
||||||
|
|
|
@ -85,7 +85,7 @@
|
||||||
if (!that.account) return that.$util.Tips({
|
if (!that.account) return that.$util.Tips({
|
||||||
title: '请填写手机号码'
|
title: '请填写手机号码'
|
||||||
});
|
});
|
||||||
if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(that.account)) return that.$util.Tips({
|
if (/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(that.account)) return that.$util.Tips({
|
||||||
title: '请输入正确的手机号码'
|
title: '请输入正确的手机号码'
|
||||||
});
|
});
|
||||||
if (!that.captcha) return that.$util.Tips({
|
if (!that.captcha) return that.$util.Tips({
|
||||||
|
@ -114,7 +114,7 @@
|
||||||
if (!that.account) return that.$util.Tips({
|
if (!that.account) return that.$util.Tips({
|
||||||
title: '请填写手机号码'
|
title: '请填写手机号码'
|
||||||
});
|
});
|
||||||
if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(that.account)) return that.$util.Tips({
|
if (/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(that.account)) return that.$util.Tips({
|
||||||
title: '请输入正确的手机号码'
|
title: '请输入正确的手机号码'
|
||||||
});
|
});
|
||||||
await registerVerify(that.account, 3)
|
await registerVerify(that.account, 3)
|
||||||
|
|
Loading…
Reference in New Issue