mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-21 05:26:44 +08:00
Merge branch 'dev' of 112.124.100.131:GFRS/ebiz-h5 into dev
This commit is contained in:
@@ -1,8 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<!-- 基本信息 -->
|
<!-- 基本信息 -->
|
||||||
<p class="title pl10 pv5">基本信息</p>
|
<p class="title pl10 pv12 mt10">基本信息</p>
|
||||||
<van-field v-model="userInfo.customerName" required clearable label="姓名" name="姓名" placeholder="请输入" v-validate="'required|name'" />
|
<van-field
|
||||||
|
v-model="userInfo.customerName"
|
||||||
|
required
|
||||||
|
clearable
|
||||||
|
label="姓名"
|
||||||
|
name="姓名"
|
||||||
|
placeholder="请输入"
|
||||||
|
v-validate="'required|name'"
|
||||||
|
/>
|
||||||
<van-field
|
<van-field
|
||||||
v-model="userInfo.customerPhone"
|
v-model="userInfo.customerPhone"
|
||||||
required
|
required
|
||||||
@@ -118,9 +126,15 @@ export default {
|
|||||||
return
|
return
|
||||||
} else if (this.userInfo.customerIdNumber) {
|
} else if (this.userInfo.customerIdNumber) {
|
||||||
this.$refs.formBlock.validateIdType()
|
this.$refs.formBlock.validateIdType()
|
||||||
|
} else if (this.userInfo.birthday && this.userInfo.marriage) {
|
||||||
|
this.$refs.formBlock.validateMarr()
|
||||||
|
} else {
|
||||||
|
if (this.userInfo.birthday && this.userInfo.marriage) {
|
||||||
|
this.$refs.formBlock.validateMarr()
|
||||||
} else {
|
} else {
|
||||||
this.updateCustomerInfo()
|
this.updateCustomerInfo()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$toast(this.$validator.errors.all()[0])
|
this.$toast(this.$validator.errors.all()[0])
|
||||||
@@ -210,7 +224,9 @@ export default {
|
|||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
.title {
|
.title {
|
||||||
font-weight: 600;
|
font-size: 15px;
|
||||||
|
font-weight: bold;
|
||||||
|
background: #fff;
|
||||||
border-bottom: 1px solid #ebedf0;
|
border-bottom: 1px solid #ebedf0;
|
||||||
}
|
}
|
||||||
.sex-radio {
|
.sex-radio {
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ export default {
|
|||||||
className: 'dialog-delete',
|
className: 'dialog-delete',
|
||||||
title: '提示',
|
title: '提示',
|
||||||
message: '确认删除当前客户?',
|
message: '确认删除当前客户?',
|
||||||
cancelButtonColor: '#E9332E',
|
cancelButtonColor: '#4FC6B3',
|
||||||
confirmButtonColor: '#FFFFFF'
|
confirmButtonColor: '#FFFFFF'
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="customerList.length <= 0 || isFlag" class="text-center">
|
<div v-if="customerList.length <= 0 || isFlag" class="text-center">
|
||||||
<img class="mt40 w200" src="@/assets/images/pic_page-non.png" />
|
<img class="mt40" src="@/assets/images/pic_page-non.png" />
|
||||||
<div class="fs17 mt40">暂无客户</div>
|
<div class="fs17 mt40">暂无客户</div>
|
||||||
</div>
|
</div>
|
||||||
<van-popup v-model="show1" position="right" :style="{ width: '70%', height: '100%' }">
|
<van-popup v-model="show1" position="right" :style="{ width: '70%', height: '100%' }">
|
||||||
@@ -170,7 +170,6 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
filterBtn() {
|
filterBtn() {
|
||||||
// 筛选按钮的显示
|
// 筛选按钮的显示
|
||||||
setTimeout(()=> {
|
|
||||||
EWebBridge.webCallAppInJs('webview_right_button', {
|
EWebBridge.webCallAppInJs('webview_right_button', {
|
||||||
btns: [
|
btns: [
|
||||||
{
|
{
|
||||||
@@ -181,7 +180,6 @@ export default {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
}, 500)
|
|
||||||
},
|
},
|
||||||
|
|
||||||
appCallBack(data) {
|
appCallBack(data) {
|
||||||
@@ -387,7 +385,7 @@ export default {
|
|||||||
background: #f5f5f5;
|
background: #f5f5f5;
|
||||||
color: #333;
|
color: #333;
|
||||||
&.active {
|
&.active {
|
||||||
background: E9332E;
|
background: #4fc6b3;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
@@ -410,7 +408,7 @@ export default {
|
|||||||
border: none !important;
|
border: none !important;
|
||||||
}
|
}
|
||||||
button:first-child {
|
button:first-child {
|
||||||
color: E9332E;
|
color: #4fc6b3;
|
||||||
background: #bbe2ef !important;
|
background: #bbe2ef !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<p class="title pl10 pv5">基本信息</p>
|
<p class="title pl10 pv12 mt10">基本信息</p>
|
||||||
<div v-if="source == 'app'">
|
<div v-if="source == 'app'">
|
||||||
<van-field
|
<van-field
|
||||||
v-model="userInfo.customerName"
|
v-model="userInfo.customerName"
|
||||||
@@ -202,9 +202,13 @@ export default {
|
|||||||
return
|
return
|
||||||
} else if (this.userInfo.customerIdNumber) {
|
} else if (this.userInfo.customerIdNumber) {
|
||||||
this.$refs.formBlock.validateIdType()
|
this.$refs.formBlock.validateIdType()
|
||||||
|
} else {
|
||||||
|
if (this.userInfo.birthday && this.userInfo.marriage) {
|
||||||
|
this.$refs.formBlock.validateMarr()
|
||||||
} else {
|
} else {
|
||||||
this.updateCustomerInfo()
|
this.updateCustomerInfo()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$toast(this.$validator.errors.all()[0])
|
this.$toast(this.$validator.errors.all()[0])
|
||||||
@@ -316,8 +320,9 @@ export default {
|
|||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
.title {
|
.title {
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: bold;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
font-weight: 600;
|
|
||||||
border-bottom: 1px solid #ebedf0;
|
border-bottom: 1px solid #ebedf0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user