|
@@ -9,9 +9,9 @@
|
|
|
</view>
|
|
|
<view class="main">
|
|
|
<view class="status_bar" :style="{height: statusBarHeight}"></view>
|
|
|
- <u-alert fontSize="16" description = "尊敬的用户,您好!
|
|
|
- 为了您的健康,请认真填写以下内容,以便为您更好的定制健康管理方案"></u-alert>
|
|
|
- <view class="chose-patient">
|
|
|
+ <u-alert fontSize="16" description = "尊敬的用户,您好!
|
|
|
+ 为了您的健康,请认真填写以下内容,以便药师为您更好的分析,提供更有针对性的解决方案!"></u-alert>
|
|
|
+ <view class="chose-patient">
|
|
|
<view class="title-box" @click="addPatient()" v-if="patient==null">
|
|
|
<text class="title">选择就诊人</text>
|
|
|
<view class="right" >
|
|
@@ -36,7 +36,7 @@
|
|
|
</view>
|
|
|
<view class="cont">
|
|
|
<u-form :rules="rules" :model="form" ref="uForm" labelPosition="left">
|
|
|
- <view class="title-box">
|
|
|
+ <!-- <view class="title-box">
|
|
|
<view class="line"></view>
|
|
|
<view class="title">您的基本情况填写</view>
|
|
|
</view>
|
|
@@ -49,14 +49,14 @@
|
|
|
</u-form-item>
|
|
|
<u-form-item :required="true" labelWidth="200rpx" maxlength="11" borderBottom label="联系电话" prop="mobile">
|
|
|
<u-input type="number" border="none" placeholder="请输入电话" v-model="form.mobile" />
|
|
|
- </u-form-item>
|
|
|
+ </u-form-item> -->
|
|
|
<!-- <u-form-item :required="true" labelWidth="200rpx" borderBottom label="学习进度" prop="study">
|
|
|
<u-input border="none" placeholder="请输入第几期第几课" v-model="form.study" />
|
|
|
</u-form-item> -->
|
|
|
- <u-form-item :required="true" labelWidth="200rpx" borderBottom label="用药情况" prop="medication">
|
|
|
+ <!-- <u-form-item :required="true" labelWidth="200rpx" borderBottom label="用药情况" prop="medication">
|
|
|
<u--textarea v-model="form.medication" placeholder="请输入用药情况" count ></u--textarea>
|
|
|
</u-form-item>
|
|
|
- <u-form-item :required="true" @click="usageShow = true;" labelWidth="200rpx" label="期望咨询方式" prop="usage">
|
|
|
+ <u-form-item :required="true" @click="usageShow = true;" labelWidth="200rpx" label="期望会诊方式" prop="usage">
|
|
|
|
|
|
<u-input
|
|
|
v-model="form.usage"
|
|
@@ -81,7 +81,7 @@
|
|
|
>
|
|
|
</u-action-sheet>
|
|
|
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
<!-- <view class="title-box">
|
|
|
<view class="line"></view>
|
|
|
<view class="title">您的头面部健康状况自我检查</view>
|
|
@@ -93,9 +93,9 @@
|
|
|
<view class="options">
|
|
|
<u-checkbox-group
|
|
|
v-if="item.tempType==1"
|
|
|
- v-model="item.checks"
|
|
|
- placement="column"
|
|
|
- >
|
|
|
+ v-model="item.checks"
|
|
|
+ placement="column"
|
|
|
+ >
|
|
|
<u-checkbox
|
|
|
size="28"
|
|
|
shape="circle"
|
|
@@ -123,9 +123,9 @@
|
|
|
<view class="options">
|
|
|
<u-checkbox-group
|
|
|
v-if="item.tempType==2"
|
|
|
- v-model="item.checks"
|
|
|
- placement="column"
|
|
|
- >
|
|
|
+ v-model="item.checks"
|
|
|
+ placement="column"
|
|
|
+ >
|
|
|
<u-checkbox
|
|
|
size="28"
|
|
|
shape="circle"
|
|
@@ -155,9 +155,9 @@
|
|
|
<view class="options">
|
|
|
<u-checkbox-group
|
|
|
v-if="item.tempType==3"
|
|
|
- v-model="item.checks"
|
|
|
- placement="column"
|
|
|
- >
|
|
|
+ v-model="item.checks"
|
|
|
+ placement="column"
|
|
|
+ >
|
|
|
<u-checkbox
|
|
|
size="28"
|
|
|
shape="circle"
|
|
@@ -185,9 +185,9 @@
|
|
|
<view class="options">
|
|
|
<u-checkbox-group
|
|
|
v-if="item.tempType==4"
|
|
|
- v-model="item.checks"
|
|
|
- placement="column"
|
|
|
- >
|
|
|
+ v-model="item.checks"
|
|
|
+ placement="column"
|
|
|
+ >
|
|
|
<u-checkbox
|
|
|
size="28"
|
|
|
shape="circle"
|
|
@@ -205,12 +205,13 @@
|
|
|
</view>
|
|
|
|
|
|
</view> -->
|
|
|
- <view class="title-box">
|
|
|
+
|
|
|
+ <!-- <view class="title-box">
|
|
|
<view class="line"></view>
|
|
|
<view class="title">补充信息</view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
<view class="form">
|
|
|
- <u-form-item labelWidth="140rpx" borderBottom label="舌苔照片" prop="avatar">
|
|
|
+ <!-- <u-form-item labelWidth="140rpx" borderBottom label="舌苔照片" prop="avatar">
|
|
|
<view class="form-item">
|
|
|
<image @click="showImg(1)" class="icon" src="/static/images/question.png"></image>
|
|
|
|
|
@@ -255,23 +256,46 @@
|
|
|
>
|
|
|
</u-upload>
|
|
|
</view>
|
|
|
- </u-form-item>
|
|
|
+ </u-form-item> -->
|
|
|
<u-form-item :required="true" labelWidth="200rpx" label="您最想咨询医生的问题是什么?" prop="title">
|
|
|
<u--textarea v-model="form.title" placeholder="请输入内容" count ></u--textarea>
|
|
|
</u-form-item>
|
|
|
+ <u-form-item :required="true" labelWidth="200rpx" borderBottom label="此次病情是否去医院就诊过" prop="isVisit">
|
|
|
+ <u-radio-group
|
|
|
+ v-model="form.isVisit"
|
|
|
+ iconPlacement="left">
|
|
|
+ <u-radio :customStyle="{marginRight: '5px'}"
|
|
|
+ v-for="(item, index) in isVisits"
|
|
|
+ :key="index"
|
|
|
+ :label="item.name"
|
|
|
+ :name="item.name" activeColor="#FF5C03"
|
|
|
+ ></u-radio>
|
|
|
+ </u-radio-group>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item labelWidth="200rpx" borderBottom label="上传检测报告或患处照片" >
|
|
|
+
|
|
|
+ <view class="form-item">
|
|
|
+ <view class="icon"></view>
|
|
|
+ <u-upload
|
|
|
+ :fileList="fileList3"
|
|
|
+ @afterRead="afterRead"
|
|
|
+ @delete="deletePic"
|
|
|
+ name="3"
|
|
|
+ multiple
|
|
|
+ :maxCount="4"
|
|
|
+ >
|
|
|
+ </u-upload>
|
|
|
+ </view>
|
|
|
+ </u-form-item>
|
|
|
</view>
|
|
|
</u-form>
|
|
|
-
|
|
|
-
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
<view class="btn-box">
|
|
|
- <view class="btn" @click="submitOrder()">预约咨询</view>
|
|
|
+ <view class="btn" @click="submitOrder()">预约会诊</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
-
|
|
|
<script>
|
|
|
|
|
|
import {bindCompanyUser} from '@/api/companyUser.js'
|
|
@@ -287,11 +311,21 @@
|
|
|
usageShow:false,
|
|
|
usages: [
|
|
|
{
|
|
|
- name: '图文咨询',
|
|
|
+ name: '图文问诊',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '语音问诊',
|
|
|
},
|
|
|
+ ],
|
|
|
+ isVisits: [
|
|
|
{
|
|
|
- name: '语音咨询',
|
|
|
+ name: '未就诊',
|
|
|
+ disabled: false
|
|
|
},
|
|
|
+ {
|
|
|
+ name: '就诊过',
|
|
|
+ disabled: false
|
|
|
+ }
|
|
|
],
|
|
|
orderKey:null,
|
|
|
patient:null,
|
|
@@ -303,6 +337,7 @@
|
|
|
fileList3: [],
|
|
|
form:{
|
|
|
title:"",
|
|
|
+ isVisit:"就诊过",
|
|
|
},
|
|
|
rules: {
|
|
|
height: [
|
|
@@ -328,7 +363,15 @@
|
|
|
// 可以单个或者同时写两个触发验证方式
|
|
|
trigger: ['change','blur'],
|
|
|
}
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ isVisit: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: '请选择是否去医院就诊过',
|
|
|
+ // 可以单个或者同时写两个触发验证方式
|
|
|
+ trigger: ['change','blur'],
|
|
|
+ }
|
|
|
+ ],
|
|
|
|
|
|
}
|
|
|
}
|
|
@@ -338,13 +381,13 @@
|
|
|
this.isShare=options.isShare
|
|
|
}
|
|
|
else{
|
|
|
- uni.hideShareMenu()
|
|
|
+ //uni.hideShareMenu()
|
|
|
}
|
|
|
if(!this.$isEmpty(options.companyId)){
|
|
|
- this.companyId=options.companyId
|
|
|
+ this.companyId=options.companyId == 'undefined' || options.companyId == 'null' ? null: options.companyId
|
|
|
}
|
|
|
if(!this.$isEmpty(options.companyUserId)){
|
|
|
- this.companyUserId=options.companyUserId
|
|
|
+ this.companyUserId=options.companyUserId == 'undefined' || options.companyUserId == 'null'? null: options.companyUserId
|
|
|
}
|
|
|
console.log(this.companyId)
|
|
|
console.log(this.companyUserId)
|
|
@@ -392,10 +435,12 @@
|
|
|
//禁止二次转发--end
|
|
|
return {
|
|
|
title: "御君方互联网医院--健康会诊",
|
|
|
- path: "/pages_order/inquiryForm2_1?inquiryType=2&orderType=2&inquirySubType="+this.inquirySubType+"&companyId="+this.companyId+"&companyUserId="+this.companyUserId
|
|
|
+ path: "/pages_order/inquiryForm2_1?inquiryType=2&orderType=1&inquirySubType="+this.inquirySubType+"&companyId="+this.companyId+"&companyUserId="+this.companyUserId
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
showImg(type){
|
|
@@ -437,6 +482,7 @@
|
|
|
res => {
|
|
|
if(res.code==200){
|
|
|
this.orderKey=res.orderKey
|
|
|
+ console.log("this.orderKey==111",this.orderKey)
|
|
|
}
|
|
|
},
|
|
|
rej => {}
|
|
@@ -454,6 +500,15 @@
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
+ console.log(this.form.isVisit)
|
|
|
+ if(this.form.isVisit!='就诊过'){
|
|
|
+ uni.showToast({
|
|
|
+ icon:'none',
|
|
|
+ title: '仅支持复诊',
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ console.log("this.orderKey==",this.orderKey)
|
|
|
if(this.orderKey==null){
|
|
|
this.confirm();
|
|
|
}
|
|
@@ -477,6 +532,7 @@
|
|
|
// }
|
|
|
// forms.push(item)
|
|
|
// });
|
|
|
+ console.log("2222",this.orderKey)
|
|
|
var that=this;
|
|
|
this.$refs.uForm.validate().then(res => {
|
|
|
var data={
|
|
@@ -487,7 +543,7 @@
|
|
|
title:that.form.title,
|
|
|
inquiryType:that.inquiryType,
|
|
|
inquirySubType:that.inquirySubType,
|
|
|
- orderType:that.orderType,
|
|
|
+ orderType: 1, // 1图文 2语音
|
|
|
doctorId:that.doctorId,
|
|
|
height:that.form.height,
|
|
|
weight:that.form.weight,
|
|
@@ -498,8 +554,16 @@
|
|
|
reportImages:reportImages.toString(),
|
|
|
tongueImages:tongueImages.toString(),
|
|
|
faceImages:faceImages.toString(),
|
|
|
- // formJson:JSON.stringify(forms)
|
|
|
+ isVisit:that.form.isVisit,
|
|
|
+ // formJson:JSON.stringify(forms)
|
|
|
}
|
|
|
+ console.log("2222",this.orderKey)
|
|
|
+ //#ifdef APP-PLUS
|
|
|
+ data.source=2;
|
|
|
+ //#endif
|
|
|
+ //#ifdef H5
|
|
|
+ data.source=3;
|
|
|
+ //#endif
|
|
|
uni.showLoading({
|
|
|
title: '正在处理中...'
|
|
|
});
|
|
@@ -507,24 +571,11 @@
|
|
|
res => {
|
|
|
uni.hideLoading()
|
|
|
if(res.code==200){
|
|
|
- var temps=['YyaBF62vH1GPKY0tume8C2C5UETxcKrVsaTKdBW5eok']
|
|
|
- uni.requestSubscribeMessage({
|
|
|
- tmplIds: temps,
|
|
|
- success(e) {
|
|
|
- setTimeout(function(){
|
|
|
- uni.redirectTo({
|
|
|
- url: './inquiryPay?orderId='+res.order.orderId
|
|
|
- })
|
|
|
- },200);
|
|
|
- },
|
|
|
- fail(e) {
|
|
|
- setTimeout(function(){
|
|
|
- uni.redirectTo({
|
|
|
- url: './inquiryPay?orderId='+res.order.orderId
|
|
|
- })
|
|
|
- },200);
|
|
|
- }
|
|
|
- })
|
|
|
+ setTimeout(function(){
|
|
|
+ uni.redirectTo({
|
|
|
+ url: './inquiryPay?orderId='+res.order.orderId
|
|
|
+ })
|
|
|
+ },200);
|
|
|
|
|
|
return;
|
|
|
}
|