pifa
fanfan 4 months ago
parent b3179879f9
commit dcc22eedef
  1. 17
      pages/news1/MerchantSettlement.vue

@ -57,7 +57,8 @@
@click="actionSheetCallback(5, $event)"></u-action-sheet> @click="actionSheetCallback(5, $event)"></u-action-sheet>
</u-form-item> </u-form-item>
<u-form-item label="联系人手机号" required> <u-form-item label="联系人手机号" required>
<u-input border placeholder="请输入手机号" type="numer" v-model="form.user_mobile" /> <u-input border placeholder="请输入手机号" @blur="isPhone(form.user_mobile);" type="numer"
v-model="form.user_mobile" />
</u-form-item> </u-form-item>
<u-form-item label="联系人微信号" required> <u-form-item label="联系人微信号" required>
<u-input border placeholder="请输入微信号" v-model="form.user_wx" /> <u-input border placeholder="请输入微信号" v-model="form.user_wx" />
@ -289,6 +290,20 @@
this.getStoreList() this.getStoreList()
}, },
methods: { methods: {
isPhone(phone) {
if (null == phone || "" == phone || undefined == phone) {
this.onShowToast('请输入手机号!')
return
} else {
var RegCellPhone = /^[1][3,4,5,6,7,8,9][0-9]{9}$/;
var falg = phone.search(RegCellPhone);
if (falg == -1) {
this.form.user_mobile=''
this.onShowToast('手机号格式不正确!')
return
}
}
},
actionSheetCallback(type, index) { actionSheetCallback(type, index) {
// console.log(type, index) // console.log(type, index)
if (type == 1) { // if (type == 1) { //

Loading…
Cancel
Save