|
|
@@ -46,22 +46,23 @@ |
|
|
|
<image class="titleimg1" src="../../static/images/arrow.png" mode=""></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="title" style="border: none;" @click="Buildingselection()"> |
|
|
|
<!-- <view class="title" style="border: none;" @click="Buildingselection()"> |
|
|
|
<view class="titletext">咨询业务</view> |
|
|
|
<view class="titletext2" |
|
|
|
style="font-size: 30rpx;font-weight: 400;color: #B2B2B2;line-height: 110rpx;padding-left: 10rpx;"> |
|
|
|
<!-- {{parames.sourceName||'请选择客户来源'}} --> |
|
|
|
|
|
|
|
<text v-if="parames.sourceName" style="color: #333333;">{{parames.sourceName}}</text> |
|
|
|
<text v-else>请选择咨询业务</text> |
|
|
|
</view> |
|
|
|
<view class="titleimg"> |
|
|
|
<image class="titleimg1" src="../../static/images/arrow.png" mode=""></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="clive" @click="save">提交</view> |
|
|
|
<!-- <view class="clive" @click="save">提交</view> --> |
|
|
|
<button class="clive" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber" @click="save">提交</button> |
|
|
|
|
|
|
|
<view v-if="Showhiddenunits"> |
|
|
|
<u-select :mask-close-able="false" v-model="Showhiddenunits" mode="single-column" :list="list" |
|
|
@@ -96,7 +97,7 @@ |
|
|
|
howMany: 1, |
|
|
|
agentId: null, |
|
|
|
projectId: '', |
|
|
|
replaceReception: 0 |
|
|
|
phone:'' |
|
|
|
}, |
|
|
|
daitiReceptionobj: {}, |
|
|
|
}; |
|
|
@@ -104,10 +105,51 @@ |
|
|
|
onShow() { |
|
|
|
this.parames.projectId = uni.getStorageSync('buildingID').id; |
|
|
|
}, |
|
|
|
// agentId: null |
|
|
|
// howMany: 1 |
|
|
|
// name: "1111" |
|
|
|
// phone: "17622221111" |
|
|
|
// projectId: "256142e1e2cb47b4a979d56ec9644545" |
|
|
|
// sex: 1 |
|
|
|
// sourceName: "自然到访" |
|
|
|
methods: { |
|
|
|
save() { |
|
|
|
|
|
|
|
if (this.parames.name.length == 0) { |
|
|
|
uni.showToast({ |
|
|
|
icon: "none", |
|
|
|
title: "姓名不能为空" |
|
|
|
}) |
|
|
|
return; |
|
|
|
} |
|
|
|
// uni.getUserInfo({ |
|
|
|
// success(e) { |
|
|
|
// console.log(e) |
|
|
|
// } |
|
|
|
// }) |
|
|
|
}, |
|
|
|
getPhoneNumber(e){ |
|
|
|
if (this.parames.name.length == 0) { |
|
|
|
uni.showToast({ |
|
|
|
icon: "none", |
|
|
|
title: "姓名不能为空", |
|
|
|
}) |
|
|
|
return; |
|
|
|
}else{ |
|
|
|
if(e.detail.errMsg=="getPhoneNumber:ok"){ |
|
|
|
this.parames.phone = e.detail.errMsg |
|
|
|
this.$u.post("/customer/add", this.parames).then(res => { |
|
|
|
if(res.code == 10000){ |
|
|
|
uni.navigateTo({ |
|
|
|
url:'/pages/mine/registerResult' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
changeSex(sex) { |
|
|
|
this.parames.sex = sex; |
|
|
|
}, |
|
|
|