|
|
@ -27,9 +27,9 @@ |
|
|
<view class="title" style="margin-top: 20rpx;">基础信息</view> |
|
|
<view class="title" style="margin-top: 20rpx;">基础信息</view> |
|
|
<view class="input-style"> |
|
|
<view class="input-style"> |
|
|
|
|
|
|
|
|
<!--来源渠道--> |
|
|
<!--来源--> |
|
|
<fui-form-item |
|
|
<fui-form-item |
|
|
label="来源渠道" |
|
|
label="来源" |
|
|
asterisk asteriskPosition="right" |
|
|
asterisk asteriskPosition="right" |
|
|
labelSize='26' |
|
|
labelSize='26' |
|
|
prop="" |
|
|
prop="" |
|
|
@ -41,14 +41,15 @@ |
|
|
<view |
|
|
<view |
|
|
class="input-title" |
|
|
class="input-title" |
|
|
style="margin-right:14rpx;" |
|
|
style="margin-right:14rpx;" |
|
|
@click="openCicker(`source_channel`)"> |
|
|
@click="openCicker(`source`)"> |
|
|
{{ (formData.source_channel) ? picker_config.source_channel.text : '点击选择' }} |
|
|
{{ (formData.source) ? picker_config.source.text : '点击选择' }} |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</fui-form-item> |
|
|
</fui-form-item> |
|
|
<!--来源--> |
|
|
<!--来源渠道--> |
|
|
<fui-form-item |
|
|
<fui-form-item |
|
|
label="来源" |
|
|
v-if="formData.source == 1" |
|
|
|
|
|
label="来源渠道" |
|
|
asterisk asteriskPosition="right" |
|
|
asterisk asteriskPosition="right" |
|
|
labelSize='26' |
|
|
labelSize='26' |
|
|
prop="" |
|
|
prop="" |
|
|
@ -60,11 +61,12 @@ |
|
|
<view |
|
|
<view |
|
|
class="input-title" |
|
|
class="input-title" |
|
|
style="margin-right:14rpx;" |
|
|
style="margin-right:14rpx;" |
|
|
@click="openCicker(`source`)"> |
|
|
@click="openCicker(`source_channel`)"> |
|
|
{{ (formData.source) ? picker_config.source.text : '点击选择' }} |
|
|
{{ (formData.source_channel) ? picker_config.source_channel.text : '点击选择' }} |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</fui-form-item> |
|
|
</fui-form-item> |
|
|
|
|
|
|
|
|
<!--顾问--> |
|
|
<!--顾问--> |
|
|
<!-- |
|
|
<!-- |
|
|
<fui-form-item |
|
|
<fui-form-item |
|
|
@ -87,6 +89,7 @@ |
|
|
</fui-form-item> |
|
|
</fui-form-item> |
|
|
--> |
|
|
--> |
|
|
<fui-form-item |
|
|
<fui-form-item |
|
|
|
|
|
v-show="false" |
|
|
label="顾问" |
|
|
label="顾问" |
|
|
asterisk asteriskPosition="right" |
|
|
asterisk asteriskPosition="right" |
|
|
labelSize='26' |
|
|
labelSize='26' |
|
|
@ -188,6 +191,7 @@ |
|
|
backgroundColor="#434544" |
|
|
backgroundColor="#434544" |
|
|
size="26" |
|
|
size="26" |
|
|
color="#fff" |
|
|
color="#fff" |
|
|
|
|
|
@blur="handlePhoneBlur" |
|
|
></fui-input> |
|
|
></fui-input> |
|
|
</view> |
|
|
</view> |
|
|
</fui-form-item> |
|
|
</fui-form-item> |
|
|
@ -448,8 +452,8 @@ |
|
|
|
|
|
|
|
|
<!--数据列表--> |
|
|
<!--数据列表--> |
|
|
<view class="ul" v-else> |
|
|
<view class="ul" v-else> |
|
|
<view class="li" v-for="(v,k) in clientUserList" :key="k"> |
|
|
<view class="li" v-for="(v,k) in clientUserList" :key="k" @click="openViewClueInfo(v)"> |
|
|
<view class="left_box" @click="openViewClueInfo(v)"> |
|
|
<view class="left_box"> |
|
|
<view class="box_1"> |
|
|
<view class="box_1"> |
|
|
<image |
|
|
<image |
|
|
class="img" |
|
|
class="img" |
|
|
@ -496,8 +500,8 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="right_box"> |
|
|
<view class="right_box"> |
|
|
<image v-if="v.member_id" class="img" :src="$util.img('/uniapp_src/static/images/index/message.png')" @click="openViewMyMessage(v)"></image> |
|
|
<!-- <image v-if="v.member_id" class="img" :src="$util.img('/uniapp_src/static/images/index/message.png')" @click="openViewMyMessage(v)"></image>--> |
|
|
<image v-if="v.phone_number" class="img" :src="$util.img('/uniapp_src/static/images/index/phone.png')" @click="dialTel(v)"></image> |
|
|
<!-- <image v-if="v.phone_number" class="img" :src="$util.img('/uniapp_src/static/images/index/phone.png')" @click="dialTel(v)"></image>--> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
@ -1006,7 +1010,32 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//联系电话失去焦点时间 |
|
|
|
|
|
async handlePhoneBlur(){ |
|
|
|
|
|
if(!this.formData.phone_number){ |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.clientUserList = [] |
|
|
|
|
|
|
|
|
|
|
|
let param = { |
|
|
|
|
|
phone_number:this.formData.phone_number |
|
|
|
|
|
} |
|
|
|
|
|
let res = await apiRoute.xs_getAllCustomerResources(param) |
|
|
|
|
|
if(res.code != 1){ |
|
|
|
|
|
if(res.msg == '暂无数据'){ |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: res.msg, |
|
|
|
|
|
icon: 'none' |
|
|
|
|
|
}) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
console.log('查重',res) |
|
|
|
|
|
this.clientUserList = res.data |
|
|
|
|
|
this.openDuplicateCheck() |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1110,6 +1139,15 @@ export default { |
|
|
let input_name = this.picker_input_name |
|
|
let input_name = this.picker_input_name |
|
|
this.formData[input_name] = e.value |
|
|
this.formData[input_name] = e.value |
|
|
this.picker_config[input_name]['text'] = e.text |
|
|
this.picker_config[input_name]['text'] = e.text |
|
|
|
|
|
|
|
|
|
|
|
if(input_name == 'source'){ |
|
|
|
|
|
if(e.value != 1){ |
|
|
|
|
|
this.formData.source_channel = '0'//0=线下 |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.formData.source_channel = ''//线下 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
this.cancelCicker() |
|
|
this.cancelCicker() |
|
|
}, |
|
|
}, |
|
|
//关闭下拉选择器 |
|
|
//关闭下拉选择器 |
|
|
|