|
@@ -97,7 +97,7 @@ |
|
|
<view class="conmsg-msg"> |
|
|
<view class="conmsg-msg"> |
|
|
<view v-for="(item,index) in allList" :key="index"> |
|
|
<view v-for="(item,index) in allList" :key="index"> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<view class="conmsg-msg-lab" style="border: none;"> |
|
|
|
|
|
|
|
|
<view class="conmsg-msg-lab" :class="{mustSe: item.level == 1 && item.mustSelected == 0 }" style="border: none;"> |
|
|
<view class="conmsg-msg-lab-1"> |
|
|
<view class="conmsg-msg-lab-1"> |
|
|
{{item.name}} |
|
|
{{item.name}} |
|
|
</view> |
|
|
</view> |
|
@@ -179,15 +179,14 @@ |
|
|
userInfo: {}, // 用户信息 |
|
|
userInfo: {}, // 用户信息 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
computed: {}, |
|
|
|
|
|
|
|
|
onLoad(e) { |
|
|
onLoad(e) { |
|
|
const { |
|
|
const { |
|
|
dataCode |
|
|
dataCode |
|
|
} = uni.getStorageSync("weapp_session_userInfo_data"); |
|
|
} = uni.getStorageSync("weapp_session_userInfo_data"); |
|
|
this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); |
|
|
this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.dataCode = dataCode |
|
|
this.dataCode = dataCode |
|
|
console.log(this.userInfo.showPhoneStatus) |
|
|
console.log(this.userInfo.showPhoneStatus) |
|
|
// 先调用借口查询数据 |
|
|
// 先调用借口查询数据 |
|
@@ -200,7 +199,7 @@ |
|
|
// 获取置业需求 |
|
|
// 获取置业需求 |
|
|
this.getListByType() |
|
|
this.getListByType() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Edittag(item, item1, index, i) { |
|
|
Edittag(item, item1, index, i) { |
|
|
if (this.allList[index].children[i].selected == 0) { |
|
|
if (this.allList[index].children[i].selected == 0) { |
|
|
this.allList[index].children[i].selected = 1; |
|
|
this.allList[index].children[i].selected = 1; |
|
@@ -237,7 +236,7 @@ |
|
|
if (this.userInfo.showPhoneStatus == 1) { |
|
|
if (this.userInfo.showPhoneStatus == 1) { |
|
|
this.showPhone = this.form.phone |
|
|
this.showPhone = this.form.phone |
|
|
this.form.phone = this.form.phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2') |
|
|
this.form.phone = this.form.phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2') |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
// 给客户等级赋值 |
|
|
// 给客户等级赋值 |
|
|
let idx = this.levellist.findIndex(item => item.value == res.level) |
|
|
let idx = this.levellist.findIndex(item => item.value == res.level) |
|
|
if (idx != -1) { |
|
|
if (idx != -1) { |
|
@@ -248,7 +247,7 @@ |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 字典表接口 |
|
|
// 字典表接口 |
|
|
getListByType() { |
|
|
getListByType() { |
|
|
this.$u.get("/matchKeywords/findPersonalMatchData", { |
|
|
this.$u.get("/matchKeywords/findPersonalMatchData", { |
|
@@ -260,11 +259,11 @@ |
|
|
item1.children.map(item => { |
|
|
item1.children.map(item => { |
|
|
if (item.isInterval == 0) { |
|
|
if (item.isInterval == 0) { |
|
|
item.label = item.name + item.unit + '-' + item.endName + item |
|
|
item.label = item.name + item.unit + '-' + item.endName + item |
|
|
.unit; |
|
|
|
|
|
|
|
|
.unit; |
|
|
} else { |
|
|
} else { |
|
|
item.label = item.name |
|
|
item.label = item.name |
|
|
} |
|
|
} |
|
|
item.value = item.id; |
|
|
|
|
|
|
|
|
item.value = item.id; |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
// console.log(res) |
|
|
// console.log(res) |
|
@@ -290,7 +289,7 @@ |
|
|
// }) |
|
|
// }) |
|
|
// return |
|
|
// return |
|
|
// } |
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if(!(/^1[3456789]\d{9}$/.test(this.form.phone))){ |
|
|
// if(!(/^1[3456789]\d{9}$/.test(this.form.phone))){ |
|
|
// uni.showToast({ |
|
|
// uni.showToast({ |
|
|
// title: "请检查手机号码格式", |
|
|
// title: "请检查手机号码格式", |
|
@@ -313,14 +312,28 @@ |
|
|
// }) |
|
|
// }) |
|
|
// return; |
|
|
// return; |
|
|
// } |
|
|
// } |
|
|
|
|
|
|
|
|
this.allList.map(item => { |
|
|
|
|
|
item.children.map(item1 => { |
|
|
|
|
|
if (item1.selected == 0) { |
|
|
|
|
|
str.push(item1.keywordsId) |
|
|
|
|
|
|
|
|
try { |
|
|
|
|
|
this.allList.forEach(item => { |
|
|
|
|
|
if (item.mustSelected == 0) { |
|
|
|
|
|
if (item.children.findIndex(item => item.selected == 0) == -1) { |
|
|
|
|
|
throw new Error(item.name) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
item.children.map(item1 => { |
|
|
|
|
|
if (item1.selected == 0) { |
|
|
|
|
|
str.push(item1.keywordsId) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
} catch (e) { |
|
|
|
|
|
console.log(e) |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: `${e.message}为必选项~`, |
|
|
|
|
|
icon: 'none', |
|
|
|
|
|
duration: 2000 |
|
|
|
|
|
}) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
str = str.join(',') |
|
|
str = str.join(',') |
|
|
param = this.form |
|
|
param = this.form |
|
|
// 如果是禁用状态就传入明文手机号,如果没禁用则不用更改 |
|
|
// 如果是禁用状态就传入明文手机号,如果没禁用则不用更改 |
|
@@ -378,6 +391,7 @@ |
|
|
padding: 0 30rpx; |
|
|
padding: 0 30rpx; |
|
|
|
|
|
|
|
|
.conmsg-msg-lab { |
|
|
.conmsg-msg-lab { |
|
|
|
|
|
position: relative; |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
height: 102rpx; |
|
|
height: 102rpx; |
|
|
display: flex; |
|
|
display: flex; |
|
@@ -388,6 +402,15 @@ |
|
|
display: flex; |
|
|
display: flex; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
|
|
|
|
|
|
|
|
|
&.mustSe::before { |
|
|
|
|
|
content: '*'; |
|
|
|
|
|
color: red; |
|
|
|
|
|
position: absolute; |
|
|
|
|
|
left: -10rpx; |
|
|
|
|
|
right: -10rpx; |
|
|
|
|
|
z-index: 10; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.conmsg-msg-lab-1 { |
|
|
.conmsg-msg-lab-1 { |
|
|
flex-shrink: 0; |
|
|
flex-shrink: 0; |
|
|
display: flex; |
|
|
display: flex; |
|
@@ -402,7 +425,7 @@ |
|
|
margin-left: 44rpx; |
|
|
margin-left: 44rpx; |
|
|
flex-grow: 1; |
|
|
flex-grow: 1; |
|
|
display: flex; |
|
|
display: flex; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
input { |
|
|
input { |
|
|
flex-grow: 1; |
|
|
flex-grow: 1; |
|
|
} |
|
|
} |
|
|