|
|
|
@ -457,7 +457,7 @@
|
|
|
|
<view class="formCol">
|
|
|
|
<view class="formCol">
|
|
|
|
<view>性别<text style="color:red">*</text></view>
|
|
|
|
<view>性别<text style="color:red">*</text></view>
|
|
|
|
<view class="formRight">
|
|
|
|
<view class="formRight">
|
|
|
|
<radio-group @change="e => form.sex = ['男','女'][e]"
|
|
|
|
<radio-group @change="changeSex"
|
|
|
|
style="display: flex;align-items: center;">
|
|
|
|
style="display: flex;align-items: center;">
|
|
|
|
<label v-for="(item, index) in ['男','女']" :key="index"
|
|
|
|
<label v-for="(item, index) in ['男','女']" :key="index"
|
|
|
|
style="display: flex;align-items: center;margin-right: 30rpx;">
|
|
|
|
style="display: flex;align-items: center;margin-right: 30rpx;">
|
|
|
|
@ -694,7 +694,10 @@
|
|
|
|
this.openWeChatCustomerService("https://work.weixin.qq.com/kfid/kfccc6609d51a87324d?enc_scene=ENC5n1b6XBY2paqReUMjwNmTGay8jwTZQuyn17jL8n5xK9T7ZwfJx36T5EHqVbFWTzP8s", "wwe480a61872b54394");
|
|
|
|
this.openWeChatCustomerService("https://work.weixin.qq.com/kfid/kfccc6609d51a87324d?enc_scene=ENC5n1b6XBY2paqReUMjwNmTGay8jwTZQuyn17jL8n5xK9T7ZwfJx36T5EHqVbFWTzP8s", "wwe480a61872b54394");
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
changeSex(e){
|
|
|
|
|
|
|
|
// console.log("e",e)
|
|
|
|
|
|
|
|
this.form.sex = e.detail.value
|
|
|
|
|
|
|
|
},
|
|
|
|
// 打开微信客服
|
|
|
|
// 打开微信客服
|
|
|
|
openWeChatCustomerService (
|
|
|
|
openWeChatCustomerService (
|
|
|
|
weiXinCustomerServiceUrl = "",
|
|
|
|
weiXinCustomerServiceUrl = "",
|
|
|
|
@ -1085,9 +1088,11 @@
|
|
|
|
return ((new Date(d1.replace(reg, '/'))) > (new Date(d2.replace(reg, '/'))))
|
|
|
|
return ((new Date(d1.replace(reg, '/'))) > (new Date(d2.replace(reg, '/'))))
|
|
|
|
},
|
|
|
|
},
|
|
|
|
toBuy() {
|
|
|
|
toBuy() {
|
|
|
|
|
|
|
|
|
|
|
|
if(!this.isOrder){
|
|
|
|
if(!this.isOrder){
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let user_info = weixin.getUserInfoCache();
|
|
|
|
let user_info = weixin.getUserInfoCache();
|
|
|
|
|
|
|
|
|
|
|
|
if (weixin.isNull(user_info.user_info.phone)) {
|
|
|
|
if (weixin.isNull(user_info.user_info.phone)) {
|
|
|
|
@ -1096,13 +1101,10 @@
|
|
|
|
//this.getUserProfile();
|
|
|
|
//this.getUserProfile();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (weixin.isNull(this.form.name) || weixin.isNull(this.form.budget_date)
|
|
|
|
if (weixin.isNull(this.form.name) || weixin.isNull(this.form.address) || weixin.isNull(this.form
|
|
|
|
|| weixin.isNull(this.form.phone) || weixin.isNull(this.form.sex)
|
|
|
|
.budget_date) || weixin.isNull(this.form
|
|
|
|
|| weixin.isNull(this.form.area) || weixin.isNull(this.form.hospital)) {
|
|
|
|
.phone)) {
|
|
|
|
|
|
|
|
this.showPop = true;
|
|
|
|
this.showPop = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (weixin.isNull(this.form.name)||this.form.name=='微信用户') {
|
|
|
|
if (weixin.isNull(this.form.name)||this.form.name=='微信用户') {
|
|
|
|
this.alert('请输入真实会员姓名')
|
|
|
|
this.alert('请输入真实会员姓名')
|
|
|
|
return
|
|
|
|
return
|
|
|
|
@ -1111,18 +1113,19 @@
|
|
|
|
this.alert('请选择性别')
|
|
|
|
this.alert('请选择性别')
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (weixin.isNull(this.form.area)) {
|
|
|
|
if (weixin.isNull(this.form.budget_date)) {
|
|
|
|
this.alert('请选择区域')
|
|
|
|
this.alert('请选择预产日期')
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (weixin.isNull(this.form.hospital)) {
|
|
|
|
if (weixin.isNull(this.form.area) || this.form.area=='请选择区域') {
|
|
|
|
this.alert('请选择建卡医院')
|
|
|
|
this.alert('请选择区域')
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (weixin.isNull(this.form.budget_date)) {
|
|
|
|
if (weixin.isNull(this.form.hospital) || this.form.hospital=='请选择建卡医院') {
|
|
|
|
this.alert('请选择预产日期')
|
|
|
|
this.alert('请选择建卡医院')
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (weixin.isNull(this.form.phone)) {
|
|
|
|
if (weixin.isNull(this.form.phone)) {
|
|
|
|
this.alert('请填写手机号')
|
|
|
|
this.alert('请填写手机号')
|
|
|
|
@ -1135,7 +1138,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 此处用法为在js中调用,需要写uni.$u.throttle()
|
|
|
|
// 此处用法为在js中调用,需要写uni.$u.throttle()
|
|
|
|
uni.$u.throttle(this.joinActive, 1000);
|
|
|
|
uni.$u.throttle(this.joinActive, 1000);
|
|
|
|
|
|
|
|
|
|
|
|
|