fix bug
This commit is contained in:
parent
52caeef425
commit
89ddba5321
@ -27,7 +27,7 @@ import storeViwe from './storeConcerns'
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
list: [{ name: "商家" }, { name: "达人" }],
|
list: [{ name: "店铺" }, { name: "达人" }],
|
||||||
daren: [],
|
daren: [],
|
||||||
shangjia:[],
|
shangjia:[],
|
||||||
height: 0,
|
height: 0,
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
<view class="personal" v-show="type==1">
|
<view class="personal" v-show="type==1">
|
||||||
<view class="info-item">
|
<view class="info-item">
|
||||||
<view class="title">手机号</view>
|
<view class="title">手机号</view>
|
||||||
<input type="number" placeholder="请输入您的手机号" maxlength="11" v-model="personalPhone" />
|
<input type="text" placeholder="请输入您的手机号" maxlength="11" v-model="personalPhone" />
|
||||||
</view>
|
</view>
|
||||||
<view class="info-item">
|
<view class="info-item">
|
||||||
<view class="title">身份证号</view>
|
<view class="title">身份证号</view>
|
||||||
@ -37,7 +37,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="info-item">
|
<view class="info-item">
|
||||||
<view class="title">电话号码</view>
|
<view class="title">电话号码</view>
|
||||||
<input type="number" placeholder="请输入公司电话" maxlength="11" v-model="companyPhone" />
|
<input type="text" placeholder="请输入公司电话" maxlength="11" v-model="companyPhone" />
|
||||||
</view>
|
</view>
|
||||||
<view class="info-item">
|
<view class="info-item">
|
||||||
<view class="title">开户银行</view>
|
<view class="title">开户银行</view>
|
||||||
@ -91,6 +91,7 @@ export default {
|
|||||||
this.action == 1 ? this.invoiceAdd() : this.invoiceEdit();
|
this.action == 1 ? this.invoiceAdd() : this.invoiceEdit();
|
||||||
},
|
},
|
||||||
verificationParams() {
|
verificationParams() {
|
||||||
|
const phone = /^0\d{2,3}-?\d{7,8}$/;
|
||||||
if(this.type == 1) {
|
if(this.type == 1) {
|
||||||
if(this.$u.test.isEmpty(this.title)) {
|
if(this.$u.test.isEmpty(this.title)) {
|
||||||
this.$u.toast('发票抬头不可为空');
|
this.$u.toast('发票抬头不可为空');
|
||||||
@ -100,7 +101,8 @@ export default {
|
|||||||
this.$u.toast('手机号不可为空');
|
this.$u.toast('手机号不可为空');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(!this.$u.test.mobile(this.personalPhone)) {
|
console.log(phone.test(this.personalPhone));
|
||||||
|
if(!this.$u.test.mobile(this.personalPhone) && !phone.test(this.personalPhone)) {
|
||||||
this.$u.toast('请正确填写手机号');
|
this.$u.toast('请正确填写手机号');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -129,7 +131,7 @@ export default {
|
|||||||
this.$u.toast('电话号码不可为空');
|
this.$u.toast('电话号码不可为空');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(!this.$u.test.mobile(this.companyPhone)) {
|
if(!this.$u.test.mobile(this.companyPhone) && !phone.test(this.companyPhone)) {
|
||||||
this.$u.toast('请正确填写电话号码');
|
this.$u.toast('请正确填写电话号码');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -166,7 +166,7 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'refund',
|
name: 'refund',
|
||||||
title: '售后',
|
title: '退款售后',
|
||||||
img: '/static/image/mine/9.png',
|
img: '/static/image/mine/9.png',
|
||||||
link: '/order/Index?current=7',
|
link: '/order/Index?current=7',
|
||||||
number: '',
|
number: '',
|
||||||
@ -437,7 +437,7 @@ export default {
|
|||||||
> view:nth-child(6){
|
> view:nth-child(6){
|
||||||
@include image-size($image-width: 33rpx, $image-height: 35rpx);
|
@include image-size($image-width: 33rpx, $image-height: 35rpx);
|
||||||
.order-num {
|
.order-num {
|
||||||
left: 24rpx;
|
left: 44rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user