修改
This commit is contained in:
parent
224e1dc7dc
commit
0159f37fb5
@ -1,20 +0,0 @@
|
|||||||
import request from "../../request.js"
|
|
||||||
|
|
||||||
//咨询预约时间
|
|
||||||
export function informationConfirmation(patientId) {
|
|
||||||
return request({
|
|
||||||
url: `/nurseApp/healthConsultation/informationConfirmation?patientId=${patientId}`,
|
|
||||||
method: 'GET'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//提交
|
|
||||||
export function addHealthConsultationOrder(data) {
|
|
||||||
return request({
|
|
||||||
url: `/nurseApp/healthConsultation/addHealthConsultationOrder`,
|
|
||||||
method: 'POST',
|
|
||||||
data
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -4,7 +4,10 @@ import request from "../../request.js"
|
|||||||
export function selectDepartment(pageNum,pageSize) {
|
export function selectDepartment(pageNum,pageSize) {
|
||||||
return request({
|
return request({
|
||||||
url: `/nurseApp/healthConsultation/selectDepartment?pageNum=${pageNum}&pageSize=${pageSize}`,
|
url: `/nurseApp/healthConsultation/selectDepartment?pageNum=${pageNum}&pageSize=${pageSize}`,
|
||||||
method: 'GET'
|
method: 'GET',
|
||||||
|
header: {
|
||||||
|
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||||
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -12,6 +15,9 @@ export function selectDepartment(pageNum,pageSize) {
|
|||||||
export function selectHospitalPerson(pageNum,pageSize,departmentId) {
|
export function selectHospitalPerson(pageNum,pageSize,departmentId) {
|
||||||
return request({
|
return request({
|
||||||
url: `/nurseApp/healthConsultation/selectHospitalPerson?pageNum=${pageNum}&pageSize=${pageSize}&departmentId=${departmentId}`,
|
url: `/nurseApp/healthConsultation/selectHospitalPerson?pageNum=${pageNum}&pageSize=${pageSize}&departmentId=${departmentId}`,
|
||||||
method: 'GET'
|
method: 'GET',
|
||||||
|
header: {
|
||||||
|
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||||
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -5,7 +5,7 @@
|
|||||||
我的
|
我的
|
||||||
</view> -->
|
</view> -->
|
||||||
<image src="../../static/pages/userbanner.png" mode="" class="userbanner"></image>
|
<image src="../../static/pages/userbanner.png" mode="" class="userbanner"></image>
|
||||||
<image src="/static/myinformation.png" mode="" class="headsculpture" @tap='updatainfo'
|
<image src="/static/headsculpture.png" mode="" class="headsculpture" @tap='updatainfo'
|
||||||
v-if="!appPersonallist.headPictureUrl">
|
v-if="!appPersonallist.headPictureUrl">
|
||||||
</image>
|
</image>
|
||||||
<image :src="baseurl+appPersonallist.headPictureUrl" mode="" class="headsculpture" @tap='updatainfo' v-else>
|
<image :src="baseurl+appPersonallist.headPictureUrl" mode="" class="headsculpture" @tap='updatainfo' v-else>
|
||||||
@ -14,7 +14,10 @@
|
|||||||
<span class="name" v-if="appPersonallist.patientName">
|
<span class="name" v-if="appPersonallist.patientName">
|
||||||
{{appPersonallist.patientName}}
|
{{appPersonallist.patientName}}
|
||||||
</span>
|
</span>
|
||||||
<view class="signing">
|
<span class="name" v-else>
|
||||||
|
请先登录!
|
||||||
|
</span>
|
||||||
|
<view class="signing" v-if="appPersonallist.patientName">
|
||||||
未签约
|
未签约
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -149,17 +152,17 @@
|
|||||||
</view>
|
</view>
|
||||||
<u-toast ref="uToast" />
|
<u-toast ref="uToast" />
|
||||||
|
|
||||||
<view class="mask" v-show="showhome" @click='maskhome'>
|
<view class="mask" v-show="showhome" @click.stop='showhome = false'>
|
||||||
<view class="masktext" @tap.stop=''>
|
<view class="masktext" @click.stop=''>
|
||||||
<view class="maskcontent">
|
<view class="maskcontent">
|
||||||
<template v-for="item in familyList">
|
<template v-for="item in familyList">
|
||||||
<view :class="item.identity === userInfo.identity ? 'p1' : 'p2'" @tap="changeFamilyInfo(item)">
|
<view :class="item.identity === userInfo.identity ? 'p1' : 'p2'" @click.stop="changeFamilyInfo(item)">
|
||||||
<text>{{item.residentName}}</text>
|
<text>{{item.residentName}}</text>
|
||||||
<text>{{item.identity.substring(0,4)}}************{{item.identity.substring(16,18)}}</text>
|
<text>{{item.identity.substring(0,4)}}************{{item.identity.substring(16,18)}}</text>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
</view>
|
</view>
|
||||||
<view class="add" @tap="addFamilyItem">
|
<view class="add" @click.stop="addFamilyItem">
|
||||||
添加家庭成员
|
添加家庭成员
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -188,7 +191,7 @@
|
|||||||
appPersonallist: null, //获取个人信息
|
appPersonallist: null, //获取个人信息
|
||||||
timer: null,
|
timer: null,
|
||||||
list: {},
|
list: {},
|
||||||
showhome: false,//切换
|
showhome: false, //切换
|
||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -389,7 +392,7 @@
|
|||||||
// 添加家庭成员
|
// 添加家庭成员
|
||||||
addFamilyItem() {
|
addFamilyItem() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/pagesB/AddMembers/AddMembers'
|
url: '/pagesB/AddMembers/AddMembers'
|
||||||
})
|
})
|
||||||
// if (!this.userInfo) {
|
// if (!this.userInfo) {
|
||||||
// uni.showModal({
|
// uni.showModal({
|
||||||
|
|||||||
178
pagesB/confirmation/confirmation.scss
Normal file
178
pagesB/confirmation/confirmation.scss
Normal file
@ -0,0 +1,178 @@
|
|||||||
|
.app {
|
||||||
|
padding-top: 10rpx;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
.btns {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
font-size: 31rpx;
|
||||||
|
justify-content: space-around;
|
||||||
|
text-align: center;
|
||||||
|
font-weight: 500;
|
||||||
|
margin-top: 80rpx;
|
||||||
|
padding-bottom: 50rpx;
|
||||||
|
|
||||||
|
.btnleft {
|
||||||
|
width: 290rpx;
|
||||||
|
height: 62rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border: 1px solid #26A888;
|
||||||
|
border-radius: 5rpx;
|
||||||
|
color: #26A888;
|
||||||
|
line-height: 62rpx
|
||||||
|
}
|
||||||
|
|
||||||
|
.btnright {
|
||||||
|
width: 289rpx;
|
||||||
|
height: 62rpx;
|
||||||
|
background: #26A888;
|
||||||
|
border-radius: 5rpx;
|
||||||
|
color: #FFFFFF;
|
||||||
|
line-height: 62rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.item {
|
||||||
|
width: 96%;
|
||||||
|
margin: 20rpx auto;
|
||||||
|
background-color: #fff;
|
||||||
|
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
|
||||||
|
border-radius: 5rpx;
|
||||||
|
padding-bottom: 50rpx;
|
||||||
|
|
||||||
|
.select {
|
||||||
|
width: 90%;
|
||||||
|
height: 80rpx;
|
||||||
|
background: #F6F6F6;
|
||||||
|
margin: 12rpx auto;
|
||||||
|
border-radius: 5rpx;
|
||||||
|
display: flex;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
text {
|
||||||
|
padding: 0 60rpx 0 20rpx;
|
||||||
|
line-height: 80rpx;
|
||||||
|
font-size: 22rpx;
|
||||||
|
font-weight: 400;
|
||||||
|
height: 80rpx;
|
||||||
|
color: #8E8E8E;
|
||||||
|
// text-overflow: -o-ellipsis-lastline;
|
||||||
|
// overflow: hidden;
|
||||||
|
// text-overflow: ellipsis;
|
||||||
|
// display: -webkit-box;
|
||||||
|
// -webkit-line-clamp: 1;
|
||||||
|
// line-clamp: 1;
|
||||||
|
// -webkit-box-orient: vertical;
|
||||||
|
// white-space:normal;
|
||||||
|
// word-break:break-all;
|
||||||
|
}
|
||||||
|
|
||||||
|
image {
|
||||||
|
width: 9rpx;
|
||||||
|
height: 17rpx;
|
||||||
|
position: absolute;
|
||||||
|
right: 40rpx;
|
||||||
|
top: 50%;
|
||||||
|
-webkit-transform: translateY(-50%);
|
||||||
|
transform: translateY(-50%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.textarea {
|
||||||
|
font-size: 18rpx;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #8E8E8E;
|
||||||
|
line-height: 42rpx;
|
||||||
|
padding: 30rpx 0 0 40rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text {
|
||||||
|
font-size: 30rpx;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #333333;
|
||||||
|
padding: 30rpx 0 0 40rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .u-upload {
|
||||||
|
padding: 30rpx 30rpx 0 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input {
|
||||||
|
width: 90%;
|
||||||
|
height: 80rpx;
|
||||||
|
border-radius: 5rpx;
|
||||||
|
background: #f6f6f6;
|
||||||
|
margin: 20rpx 0 0 40rpx;
|
||||||
|
position: relative;
|
||||||
|
padding-left: 10rpx;
|
||||||
|
|
||||||
|
image {
|
||||||
|
width: 10rpx;
|
||||||
|
height: 20rpx;
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
right: 5%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.uni-textarea-placeholder {
|
||||||
|
padding-left: 12rpx;
|
||||||
|
font-size: 22rpx;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #8E8E8E !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.phsy {
|
||||||
|
padding-left: 12rpx;
|
||||||
|
font-size: 22rpx;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #8E8E8E !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.inputtext {
|
||||||
|
padding-left: 12rpx;
|
||||||
|
color: black;
|
||||||
|
font-size: 26rpx;
|
||||||
|
width: 90%;
|
||||||
|
height: 80rpx;
|
||||||
|
line-height: 80rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.uinput {
|
||||||
|
color: black;
|
||||||
|
font-size: 26rpx;
|
||||||
|
width: 90%;
|
||||||
|
height: 80rpx;
|
||||||
|
line-height: 80rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.noimageuinput {
|
||||||
|
width: 98% !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
width: 100%;
|
||||||
|
padding: 10rpx 0 10rpx 35rpx;
|
||||||
|
|
||||||
|
.left {
|
||||||
|
vertical-align: middle;
|
||||||
|
display: inline-block;
|
||||||
|
width: 10rpx;
|
||||||
|
height: 30rpx;
|
||||||
|
background: #26A888;
|
||||||
|
border-radius: 1rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.right {
|
||||||
|
vertical-align: middle;
|
||||||
|
display: inline-block;
|
||||||
|
font-size: 30rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #26A888;
|
||||||
|
line-height: 30rpx;
|
||||||
|
margin-left: 20rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,401 +1,251 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="app">
|
<view class="app">
|
||||||
<view class="user">
|
<view class="title">
|
||||||
<view class="item">
|
<view class="left">
|
||||||
<span>姓名:</span>
|
</view>
|
||||||
<span class='addition' v-if="userlist.patientName">{{userlist.patientName}}</span>
|
<view class="right">
|
||||||
|
第一步:填写个人信息
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<span>电话:</span>
|
<view class="text">
|
||||||
<span class='addition' v-if="userlist.phone">{{userlist.phone}}</span>
|
现住址所在区
|
||||||
</view>
|
</view>
|
||||||
<view class="item" style="border: 0;">
|
<view class="input" @tap='showPicker'>
|
||||||
<span>时间:</span>
|
<view class="inputtext"
|
||||||
<span class='addition'>请选择</span>
|
:style="address=='请选择所属地区'?'font-size:22rpx;font-weight: 400;color: #8E8E8E !important;':''">
|
||||||
|
{{address}}
|
||||||
</view>
|
</view>
|
||||||
<view class="worditem">
|
<image src="../../static/huijiantou.png" mode=""></image>
|
||||||
<view class="today" @tap='taptoday(item,index)'
|
</view>
|
||||||
:style="todayindex==index?'background: #E6F8F3;border: 1px solid #26A888;color: #26A888;':''"
|
<view class="text">
|
||||||
v-for="(item,index) in userlist.appointmentTimeList" :key="index">
|
患者姓名
|
||||||
<span class="todaytime">
|
</view>
|
||||||
{{item.week}}
|
<view class="input">
|
||||||
</span>
|
<input v-model="formdata.patientName" class="uinput noimageuinput" placeholder="请输入患者姓名" type="text"
|
||||||
<span class="time">{{item.healthConsultationDate}}</span>
|
placeholder-class="phsy" />
|
||||||
|
</view>
|
||||||
|
<view class="text">
|
||||||
|
患者身份证号
|
||||||
|
</view>
|
||||||
|
<view class="input">
|
||||||
|
<input v-model="formdata.cardNo" class="uinput noimageuinput" placeholder="请输入患者身份证号" type="text"
|
||||||
|
placeholder-class="phsy" />
|
||||||
|
</view>
|
||||||
|
<view class="text">
|
||||||
|
患者联系电话
|
||||||
|
</view>
|
||||||
|
<view class="input">
|
||||||
|
<input v-model="formdata.phone" class="uinput noimageuinput" placeholder="请输入患者联系电话" type="text"
|
||||||
|
placeholder-class="phsy" />
|
||||||
|
</view>
|
||||||
|
<view class="text">
|
||||||
|
选择医生
|
||||||
|
</view>
|
||||||
|
<view class="select" @tap='gochoosedoctor'>
|
||||||
|
<text v-if="formdata.doctorName" style="font-size: 26rpx;color: #303133;">{{formdata.doctorName}}</text>
|
||||||
|
<text v-else>请选择医生</text>
|
||||||
|
<image src="../../static/huijiantou.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="title">
|
||||||
|
<view class="left">
|
||||||
</view>
|
</view>
|
||||||
<view class="pointout">
|
<view class="right">
|
||||||
<span class="">
|
第二步:填写问诊信息
|
||||||
【温馨提示】
|
</view>
|
||||||
</span>
|
</view>
|
||||||
|
<view class="item">
|
||||||
|
<view class="text">
|
||||||
|
问题简述
|
||||||
|
</view>
|
||||||
|
<view class="input">
|
||||||
|
<input v-model="formdata.problemDescription" class="uinput noimageuinput" placeholder="不多于五个字"
|
||||||
|
type="text" placeholder-class="phsy" />
|
||||||
|
</view>
|
||||||
|
<view class="text">
|
||||||
|
患者个体情况说明
|
||||||
|
</view>
|
||||||
|
<view class="input" style="height: 200rpx;overflow-Y: scroll;">
|
||||||
|
<u-input v-model="formdata.situationDescription" class="uinput noimageuinput" placeholder=" "
|
||||||
|
type="textarea" :maxlength="100" />
|
||||||
|
</view>
|
||||||
|
<view class="text">
|
||||||
|
问题描述
|
||||||
|
</view>
|
||||||
|
<view class="input" style="height: 200rpx;overflow-Y: scroll;">
|
||||||
|
<u-input v-model="formdata.problemStatement" class="uinput noimageuinput" placeholder=" "
|
||||||
|
type="textarea" :maxlength="500" />
|
||||||
|
</view>
|
||||||
|
<view class="text">
|
||||||
|
既往疾病史
|
||||||
|
</view>
|
||||||
|
<view class="input" style="height: 200rpx;overflow-Y: scroll;">
|
||||||
|
<u-input v-model="formdata.medicalRecord" class="uinput noimageuinput" placeholder=" " type="textarea"
|
||||||
|
:maxlength="100" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="title">
|
||||||
|
<view class="left">
|
||||||
|
</view>
|
||||||
|
<view class="right">
|
||||||
|
第三步:上传附件文件
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item">
|
||||||
|
<view class="text">
|
||||||
|
附件材料上传
|
||||||
|
</view>
|
||||||
|
<u-upload ref="uUpload" :max-count='9' :action="uoloadaction" :auto-upload="false" upload-text=' '
|
||||||
|
@on-choose-complete='onchoosecomplete' @on-success='onsuccess' @on-uploaded='onuploaded'></u-upload>
|
||||||
|
<view class="textarea">
|
||||||
<view class="">
|
<view class="">
|
||||||
1、下单后24h内我们会与您确认具体时间点,您也可以进入“首页”-“在线客服”联系客服
|
最多支持9个文件;
|
||||||
</view>
|
</view>
|
||||||
<view class="">
|
<view class="">
|
||||||
2、请提前准备好健康资料,以备专家参考
|
单个文件大小不允许超过10MB;
|
||||||
</view>
|
</view>
|
||||||
<view class="">
|
<view class="">
|
||||||
3、请提前下载“腾讯会议”APP
|
只支持上传照片图片、视频文件,后缀类型为:JPG.PNG.MP4
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="remarks">
|
|
||||||
<span>咨询内容:</span>
|
|
||||||
<u-input v-model="updata.healthConsultationContent" type="textarea" :clearable='false' />
|
|
||||||
</view>
|
</view>
|
||||||
<view class="bottomitem">
|
<view class="btns">
|
||||||
<span>¥{{updata.totalPrice}}</span>
|
<view class="btnleft">
|
||||||
<view class="submit" @tap='buyshow=true'>确认</view>
|
返回
|
||||||
</view>
|
</view>
|
||||||
<!-- 弹框 -->
|
<view class="btnright" @tap='updata'>
|
||||||
<u-popup v-model="buyshow" mode="bottom" length="45%" border-radius="30" :closeable='true'>
|
保存
|
||||||
<view class="payment">
|
|
||||||
请选择支付方式
|
|
||||||
</view>
|
</view>
|
||||||
<view class="chat">
|
|
||||||
<image src="/static/pagesB/chat.png" mode=""></image>
|
|
||||||
<span>微信支付</span>
|
|
||||||
</view>
|
</view>
|
||||||
<view class="submits" @tap='buy'>
|
<view class="">
|
||||||
确认支付¥{{updata.totalPrice}}
|
<m-city style='z-index: 10076;' :provinceData="list" headTitle="请选择所属地区" ref="cityPicker"
|
||||||
|
@funcValue="getpickerParentValue" pickerSize="4">
|
||||||
|
</m-city>
|
||||||
</view>
|
</view>
|
||||||
</u-popup>
|
|
||||||
<u-toast ref="uToast" />
|
<u-toast ref="uToast" />
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
informationConfirmation,
|
getSubordinateRegions,
|
||||||
addHealthConsultationOrder
|
} from '@/api/pagesB/modifyAddress/modifyAddress.js';
|
||||||
} from '@/api/pagesB/Informationconfirmation/index.js'
|
import gkcity from "../../components/m-city/m-city.vue";
|
||||||
|
import baseurl from '@/api/baseurl.js'
|
||||||
import {
|
import {
|
||||||
appletGoodsOrderPay
|
consultationInfo
|
||||||
} from '@/api/pagesB/confirmOrder/index.js'
|
} from '@/api/pagesB/createnewconsultation/createnewconsultation.js'
|
||||||
export default {
|
export default {
|
||||||
|
components: {
|
||||||
|
"m-city": gkcity
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
timer: null,
|
// 非真实地址
|
||||||
openid: null,
|
uoloadaction: '',
|
||||||
buyshow: false,
|
list: [],
|
||||||
price: 0,
|
addresslength: null,
|
||||||
userlist: {},
|
imglistlength: null,
|
||||||
todayindex: 0,
|
address: '请选择所属地区', //页面所属区域
|
||||||
updata: {
|
formdata: {
|
||||||
"orderChannel": "WECHAT_APPLET",
|
address: '请选择所属地区', //页面所属区域
|
||||||
"patientId": null,
|
patientId: 1,
|
||||||
"phone": null,
|
patientName: '李广君',
|
||||||
"receiver": null,
|
cardNo: '370882199909092123',
|
||||||
"healthAppointDate": null,
|
phone: '17615455437',
|
||||||
"totalPrice": null,
|
address: '',
|
||||||
"hospitalPersonId": null,
|
doctorId: 1,
|
||||||
"healthConsultationContent": '',
|
doctorName: '李医生',
|
||||||
"hospitalPersonName": null,
|
consultationType: 'IMAGE_TEXT_CONSULTATION',
|
||||||
},
|
problemDescription: '',
|
||||||
}
|
situationDescription: '',
|
||||||
},
|
problemStatement: '',
|
||||||
methods: {
|
medicalRecord: '',
|
||||||
taptoday(item, index) {
|
fileUrls: []
|
||||||
this.todayindex = index
|
|
||||||
this.updata.healthAppointDate = item.date
|
|
||||||
},
|
|
||||||
buy() {
|
|
||||||
var that = this
|
|
||||||
addHealthConsultationOrder(this.updata).then(res => {
|
|
||||||
if (res.code == 200) {
|
|
||||||
res.data.payType = "WECHAT_PAY"
|
|
||||||
res.data.paymentPrice = res.data.totalPrice
|
|
||||||
res.data.openid = this.openid
|
|
||||||
let id = res.data.id
|
|
||||||
appletGoodsOrderPay(res.data).then(response => {
|
|
||||||
if (response.code == 200) {
|
|
||||||
uni.requestPayment({
|
|
||||||
timeStamp: response.data.timeStamp,
|
|
||||||
nonceStr: response.data.nonceStr,
|
|
||||||
package: response.data.prepayId,
|
|
||||||
signType: response.data.signType,
|
|
||||||
paySign: response.data.paySign,
|
|
||||||
success: function(res) {
|
|
||||||
that.$refs.uToast.show({
|
|
||||||
title: '支付成功',
|
|
||||||
type: 'success',
|
|
||||||
duration: 1500,
|
|
||||||
})
|
|
||||||
if (that.timer) {
|
|
||||||
clearTimeout(that.timer)
|
|
||||||
}
|
|
||||||
that.timer = setTimeout(e => {
|
|
||||||
uni.redirectTo({
|
|
||||||
url: `/pagesB/CommodityOrder/CommodityOrder`
|
|
||||||
// url: `/pagesB/orderDetails/orderDetails?goodsOrderId=${id}`
|
|
||||||
})
|
|
||||||
}, 1500)
|
|
||||||
},
|
|
||||||
fail: function(err) {
|
|
||||||
that.$refs.uToast.show({
|
|
||||||
title: '取消支付',
|
|
||||||
type: 'error',
|
|
||||||
duration: 1500,
|
|
||||||
})
|
|
||||||
if (that.timer) {
|
|
||||||
clearTimeout(that.timer)
|
|
||||||
}
|
|
||||||
that.timer = setTimeout(e => {
|
|
||||||
uni.redirectTo({
|
|
||||||
url: `/pagesB/orderDetails/orderDetails?goodsOrderId=${id}`
|
|
||||||
})
|
|
||||||
}, 1500)
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
that.$refs.uToast.show({
|
|
||||||
title: response.msg,
|
|
||||||
type: 'error',
|
|
||||||
duration: 2000
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
that.$refs.uToast.show({
|
|
||||||
title: res.msg,
|
|
||||||
type: 'error',
|
|
||||||
duration: 2000
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
},
|
|
||||||
onShow() {
|
|
||||||
var that = this
|
|
||||||
const value = uni.getStorageSync('patientId');
|
|
||||||
const value2 = uni.getStorageSync('openid');
|
|
||||||
if (value2) {
|
|
||||||
that.openid = value2
|
|
||||||
}
|
|
||||||
if (value) {
|
|
||||||
that.updata.patientId = value
|
|
||||||
informationConfirmation(value).then(res => {
|
|
||||||
that.userlist = res.data
|
|
||||||
that.updata.phone = res.data.phone
|
|
||||||
that.updata.receiver = res.data.patientName
|
|
||||||
that.updata.healthAppointDate = res.data.appointmentTimeList[0].date
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
};
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
var that = this
|
this.uoloadaction = baseurl + '/nurseApplet/consultationInfo/uploadConsultationFile'
|
||||||
this.updata.hospitalPersonName = options.personName
|
},
|
||||||
this.updata.totalPrice = Number(options.price)
|
onShow() {
|
||||||
this.updata.hospitalPersonId = Number(options.hospitalPersonId)
|
this.areaInfo();
|
||||||
|
let that = this
|
||||||
|
uni.$on('doctordata', function(data) {
|
||||||
|
let item = JSON.parse(data.data)
|
||||||
|
that.formdata.doctorName = item.realname
|
||||||
|
that.formdata.doctorId = item.userNo
|
||||||
|
uni.$off('doctordata')
|
||||||
|
})
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
updata() {
|
||||||
|
if (this.imglistlength > 0) {
|
||||||
|
this.$refs.uUpload.upload()
|
||||||
|
} else {
|
||||||
|
this.info();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onchoosecomplete(lists, name) {
|
||||||
|
this.imglistlength = lists.length
|
||||||
|
},
|
||||||
|
onsuccess(data, index, lists, name) {
|
||||||
|
if (data.code == 200) {
|
||||||
|
this.formdata.fileUrls.push(data.fileUrl)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onuploaded() {
|
||||||
|
this.info();
|
||||||
|
},
|
||||||
|
info() {
|
||||||
|
consultationInfo(this.formdata).then(res => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: '新建图文问诊成功',
|
||||||
|
type: 'success',
|
||||||
|
duration: '1500',
|
||||||
|
back: 1
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 显示三级地址联动
|
||||||
|
showPicker() {
|
||||||
|
this.$refs.cityPicker.show();
|
||||||
|
},
|
||||||
|
//区街道
|
||||||
|
areaInfo() {
|
||||||
|
getSubordinateRegions().then(res => {
|
||||||
|
this.list = res.data;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 三级地址联动回调
|
||||||
|
getpickerParentValue(e) {
|
||||||
|
e = e.filter(ele => ele.localName != '暂不选择')
|
||||||
|
e = e.filter(ele => ele.localName != '暂无需选择')
|
||||||
|
this.addresslength = e
|
||||||
|
this.formdata.address = ''
|
||||||
|
this.address = ''
|
||||||
|
if (e && e.length >= 1) {
|
||||||
|
e.forEach(el => {
|
||||||
|
this.formdata.address = this.formdata.address + el.localName
|
||||||
|
this.address = this.address + el.localName
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.formdata.address = ''
|
||||||
|
this.address = '请选择所属地区'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
gochoosedoctor() {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pagesC/choosedoctor/choosedoctor'
|
||||||
|
})
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.app {
|
@import './confirmation.scss';
|
||||||
font-size: 34rpx;
|
|
||||||
padding-top: 10rpx;
|
|
||||||
height: 100%;
|
|
||||||
-webkit-overflow-scrolling: touch;
|
|
||||||
|
|
||||||
.determine {
|
|
||||||
height: 70rpx;
|
|
||||||
line-height: 70rpx;
|
|
||||||
font-size: 32rpx;
|
|
||||||
width: 50%;
|
|
||||||
color: #F4F5F7;
|
|
||||||
background: #26A888;
|
|
||||||
position: absolute;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.user {
|
|
||||||
background: #FFFFFF;
|
|
||||||
width: 94%;
|
|
||||||
height: 600rpx;
|
|
||||||
margin: 10rpx auto;
|
|
||||||
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
|
|
||||||
border-radius: 20rpx;
|
|
||||||
line-height: 93rpx;
|
|
||||||
|
|
||||||
.addressitem {
|
|
||||||
width: 97%;
|
|
||||||
border-bottom: 1rpx solid #D8D4D4;
|
|
||||||
margin-left: 3%;
|
|
||||||
// height: 100%;
|
|
||||||
|
|
||||||
.leftaddress {
|
|
||||||
width: 15%;
|
|
||||||
height: 100%;
|
|
||||||
display: flex;
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.addition {
|
|
||||||
color: #666666;
|
|
||||||
display: inline-block;
|
|
||||||
line-height: 50rpx;
|
|
||||||
font-size: 28rpx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.item {
|
|
||||||
width: 97%;
|
|
||||||
border-bottom: 1rpx solid #D8D4D4;
|
|
||||||
margin-left: 3%;
|
|
||||||
|
|
||||||
span:nth-child(1) {
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
.addition {
|
|
||||||
color: #666666;
|
|
||||||
line-height: 30rpx;
|
|
||||||
font-size: 32rpx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.worditem {
|
|
||||||
display: flex;
|
|
||||||
width: 100%;
|
|
||||||
justify-content: flex-start;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
|
|
||||||
.today {
|
|
||||||
width: 20%;
|
|
||||||
margin: 0 2.5% 0 2.5%;
|
|
||||||
margin-top: 20rpx;
|
|
||||||
height: 90rpx;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 26rpx;
|
|
||||||
border: 1px solid #DADADA;
|
|
||||||
border-radius: 5rpx;
|
|
||||||
|
|
||||||
.time {
|
|
||||||
font-size: 26rpx;
|
|
||||||
display: block;
|
|
||||||
line-height: 40rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.todaytime {
|
|
||||||
padding-top: 5rpx;
|
|
||||||
font-size: 26rpx;
|
|
||||||
display: block;
|
|
||||||
line-height: 40rpx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.pointout {
|
|
||||||
color: #666666;
|
|
||||||
width: 94%;
|
|
||||||
font-size: 28rpx;
|
|
||||||
margin: 20rpx auto;
|
|
||||||
|
|
||||||
span {
|
|
||||||
color: black;
|
|
||||||
font-size: 34rpx;
|
|
||||||
font-weight: 600;
|
|
||||||
display: block;
|
|
||||||
margin-bottom: 10rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
view {
|
|
||||||
padding-left: 30rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
view:nth-child(1) {
|
|
||||||
padding-top: 10rpx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.remarks {
|
|
||||||
width: 94%;
|
|
||||||
margin: 10rpx auto;
|
|
||||||
font-size: 34rpx;
|
|
||||||
height: 440rpx;
|
|
||||||
background: #FFFFFF;
|
|
||||||
border-radius: 20rpx;
|
|
||||||
padding: 30rpx 0 0 30rpx;
|
|
||||||
|
|
||||||
span {
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.bottomitem {
|
|
||||||
width: 100%;
|
|
||||||
height: 120rpx;
|
|
||||||
background: #FFFFFF;
|
|
||||||
bottom: 0;
|
|
||||||
position: fixed;
|
|
||||||
|
|
||||||
span {
|
|
||||||
font-size: 48rpx;
|
|
||||||
line-height: 120rpx;
|
|
||||||
color: #F44B2F;
|
|
||||||
margin: 0 0 0 30rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.submit {
|
|
||||||
width: 186rpx;
|
|
||||||
height: 70rpx;
|
|
||||||
background: #26A888;
|
|
||||||
color: #FFFFFF;
|
|
||||||
border-radius: 30rpx;
|
|
||||||
line-height: 70rpx;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 32rpx;
|
|
||||||
float: right;
|
|
||||||
margin: 25rpx 30rpx 0 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 弹框支付
|
|
||||||
.payment {
|
|
||||||
width: 100%;
|
|
||||||
height: 130rpx;
|
|
||||||
font-size: 42rpx;
|
|
||||||
color: #000000;
|
|
||||||
line-height: 130rpx;
|
|
||||||
text-align: center;
|
|
||||||
border-bottom: 1rpx solid #D8D4D4;
|
|
||||||
}
|
|
||||||
|
|
||||||
.chat {
|
|
||||||
position: relative;
|
|
||||||
height: 200rpx;
|
|
||||||
|
|
||||||
span {
|
|
||||||
position: absolute;
|
|
||||||
top: 50rpx;
|
|
||||||
left: 180rpx;
|
|
||||||
line-height: 70rpx;
|
|
||||||
font-size: 42rpx;
|
|
||||||
color: #000000;
|
|
||||||
}
|
|
||||||
|
|
||||||
image {
|
|
||||||
position: absolute;
|
|
||||||
top: 50rpx;
|
|
||||||
left: 70rpx;
|
|
||||||
width: 80rpx;
|
|
||||||
height: 70rpx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.submits {
|
|
||||||
background: #26A888;
|
|
||||||
width: 501rpx;
|
|
||||||
height: 71rpx;
|
|
||||||
line-height: 71rpx;
|
|
||||||
border-radius: 36rpx;
|
|
||||||
font-size: 34rpx;
|
|
||||||
color: #FFFFFF;
|
|
||||||
text-align: center;
|
|
||||||
position: fixed;
|
|
||||||
bottom: 50rpx;
|
|
||||||
left: 50%;
|
|
||||||
transform: translateX(-50%);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -221,35 +221,35 @@
|
|||||||
},
|
},
|
||||||
// 跳转预约医生界面
|
// 跳转预约医生界面
|
||||||
goappointment(item) {
|
goappointment(item) {
|
||||||
let that = this
|
// let that = this
|
||||||
const value = uni.getStorageSync('openid');
|
// const value = uni.getStorageSync('openid');
|
||||||
const value2 = uni.getStorageSync('patientId');
|
// const value2 = uni.getStorageSync('patientId');
|
||||||
if (value && value2) {
|
// if (value && value2) {
|
||||||
AppIdentification(value2).then(res => {
|
// AppIdentification(value2).then(res => {
|
||||||
if (res.code == 200) {
|
// if (res.code == 200) {
|
||||||
if (res.data.loginFlag) {
|
// if (res.data.loginFlag) {
|
||||||
that.usershow = false
|
// that.usershow = false
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pagesB/confirmation/confirmation?price=${item.consultingFee}&hospitalPersonId=${item.id}&&personName=${item.personName}`
|
url: `/pagesB/confirmation/confirmation?price=${item.consultingFee}&hospitalPersonId=${item.id}&&personName=${item.personName}`
|
||||||
})
|
})
|
||||||
} else {
|
// } else {
|
||||||
that.usershow = true
|
// that.usershow = true
|
||||||
}
|
// }
|
||||||
} else if (res.code == 9999) {} else {
|
// } else if (res.code == 9999) {} else {
|
||||||
that.$refs.uToast.show({
|
// that.$refs.uToast.show({
|
||||||
title: res.msg,
|
// title: res.msg,
|
||||||
type: 'error',
|
// type: 'error',
|
||||||
url: '/pages/login/login'
|
// url: '/pages/login/login'
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
} else {
|
// } else {
|
||||||
that.$refs.uToast.show({
|
// that.$refs.uToast.show({
|
||||||
title: '未登录,请先登录',
|
// title: '未登录,请先登录',
|
||||||
type: 'error',
|
// type: 'error',
|
||||||
url: '/pages/login/login'
|
// url: '/pages/login/login'
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
//跳转完善页面
|
//跳转完善页面
|
||||||
goinformation() {
|
goinformation() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user