Sfoglia il codice sorgente

yanjie部分接口对接

yanjie 4 anni fa
parent
commit
ee802cb536

+ 0 - 1
common/request.js

xqd
@@ -187,7 +187,6 @@ const upload = function(url, file, data, showloading) {
 			formData: data,
 			header: header,
 			success: (res) => {
-				console.info(res)
 				resolve(res.data);
 			},
 			fail: (err) => {

+ 12 - 5
pages/archives/add_archives.vue

xqd xqd xqd xqd
@@ -36,7 +36,6 @@
 			</view>
 			<view class="cu-form-group margin-top">
 				<view class="title">就诊信息(非必填)</view>
-				<input v-model="jiuzheninfo" placeholder-style="text-align:right" placeholder="请输入"></input>
 			</view>
 			<view class="cu-form-group">
 				<view class="title">就诊人身份证:</view>
@@ -109,7 +108,8 @@
 						label: '叔侄'
 					}
 				],
-				idcrad: ""
+				idcrad: "",
+				touxiang: ""
 			}
 		},
 		methods: {
@@ -120,6 +120,14 @@
 					sourceType: ['album', 'camera'], //从相册选择
 					success: (res) => {
 						this.imgList = res.tempFilePaths
+						this.$request.upload("/api/v1/common/uploadFile", this.imgList[0]).then(data => {
+							let re = JSON.parse(data)
+							if (re.status == 0) {
+								this.touxiang = re.data.url
+								console.log(this.touxiang)
+							}
+						})
+
 					}
 				});
 			},
@@ -143,12 +151,11 @@
 				} else {
 					num = 2
 				}
-				if (this.imgList[0] !== undefined && this.name != "" && this.date != "请选择出生日期" && this.guanxiindex != -1 && this.idcrad !=
-					"" && this.$util.isIdCard(this.idcrad)) {
+				if (this.imgList[0] !== undefined && this.name != "" && this.date != "请选择出生日期" && this.guanxiindex != -1) {
 					let res = await this.$request.post("/api/v1/patient/createPatient", {
 						name: this.name,
 						sex: num,
-						avatar: this.imgList[0],
+						avatar: this.touxiang,
 						birthday: this.date,
 						relationship_type: this.guanxiindex,
 						card_type: 1,

+ 2 - 1
pages/archives/my_archives.vue

xqd xqd
@@ -10,7 +10,7 @@
 							{{item.sex==1?'男':'女'}}
 						</text>
 						<text class="text-cut margin-left-sm">
-							{{}}
+							{{item.age}}
 						</text>
 					</view>
 				</view>
@@ -45,6 +45,7 @@
 		methods: {
 			getarchives: async function() {
 				let res = await this.$request.post("/api/v1/patient/patientList")
+				console.log(res)
 				if (res.status == 0) {
 					this.patientList = res.data.data
 					if (this.patientList.length == 0) {

+ 19 - 13
pages/doctor_related/doctor_info.vue

xqd xqd xqd xqd xqd
@@ -41,19 +41,22 @@
 				<u-grid :col="3" :border="false">
 					<view @click="gotoxuanze" data-index="1">
 						<u-grid-item>
-							<u-image width="120rpx" height="120rpx" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/toolimg/indexphone.png" shape="circle"></u-image>
+							<u-image width="120rpx" height="120rpx" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/toolimg/indexphone.png"
+							 shape="circle"></u-image>
 							<view class="grid-text margin-top-sm">电话咨询</view>
 						</u-grid-item>
 					</view>
 					<view class="" @click="gotoxuanze" data-index="2">
 						<u-grid-item>
-							<u-image width="120rpx" height="120rpx" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/toolimg/indextu.png" shape="circle"></u-image>
+							<u-image width="120rpx" height="120rpx" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/toolimg/indextu.png"
+							 shape="circle"></u-image>
 							<view class="grid-text margin-top-sm">图文咨询</view>
 						</u-grid-item>
 					</view>
 					<view class="" @click="gotoxuanze" data-index="3">
 						<u-grid-item>
-							<u-image width="120rpx" height="120rpx" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/toolimg/indexmen.png" shape="circle"></u-image>
+							<u-image width="120rpx" height="120rpx" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/toolimg/indexmen.png"
+							 shape="circle"></u-image>
 							<view class="grid-text margin-top-sm">门诊预约</view>
 						</u-grid-item>
 					</view>
@@ -121,8 +124,8 @@
 				分享
 			</button>
 			<view v-if="barindex==1" class="submit text-white" @click="phonezixun" style="background-color: rgb(11,115,186);">电话咨询</view>
-			<view v-else-if="barindex==2" class="submit text-white" style="background-color: rgb(11,115,186)">图文咨询</view>
-			<view v-else class="submit text-white" style="background-color: rgb(11,115,186)">门诊预约</view>
+			<view v-else-if="barindex==2" class="submit text-white" @click="phonezixun" style="background-color: rgb(11,115,186)">图文咨询</view>
+			<view v-else class="submit text-white" @click="phonezixun" style="background-color: rgb(11,115,186)">门诊预约</view>
 		</view>
 	</view>
 </template>
@@ -136,6 +139,7 @@
 		},
 		mounted() {
 			this.getdoctorInfo()
+			this.gettime()
 		},
 		data() {
 			return {
@@ -196,15 +200,17 @@
 				}
 			},
 			gettime: async function() {
-				let res = await this.$request.post("/api/v1/docter/timePeriodList")
+				let res = await this.$request.post("/api/v1/docter/schedulePeriodList", {
+					docter_id: this.doctorid
+				})
 				console.log(res)
 				if (res.status == 0) {
-					res.data.list.forEach(item => {
-						item.start_time_period = item.start_time_period + '-' + item.end_time_period
-					})
-					this.multiSelector.push(res.data.dates)
-					this.multiSelector.push(res.data.list)
-					this.showtime = res.data.dates[0] + ' ' + res.data.list[0].start_time_period
+					// res.data.list.forEach(item => {
+					// 	item.start_time_period = item.start_time_period + '-' + item.end_time_period
+					// })
+					// this.multiSelector.push(res.data.dates)
+					// this.multiSelector.push(res.data.list)
+					// this.showtime = res.data.dates[0] + ' ' + res.data.list[0].start_time_period
 				}
 			},
 			gotoxuanze(e) {
@@ -217,7 +223,7 @@
 			},
 			phonezixun() {
 				uni.navigateTo({
-					url: "info_write?doctor=" + JSON.stringify(this.doctor)
+					url: "info_write?doctor=" + JSON.stringify(this.doctor) + "&type=" + this.barindex + "&time=" + this.daytime
 				})
 			},
 			xuantime() {

+ 178 - 29
pages/doctor_related/info_write.vue

xqd xqd xqd xqd xqd xqd xqd xqd xqd xqd xqd xqd
@@ -17,15 +17,15 @@
 			</view>
 		</view>
 		<view class="cu-list menu">
-			<view class="cu-item arrow" @click="openhuanzhe">
+			<view class="cu-item arrow" v-if="type==1||type==2||type==3" @click="openhuanzhe">
 				<view class="content">
-					<text class="text-grey">咨询患者</text>
+					<text class="text-grey">{{type==3?'预约患者':'咨询患者'}}</text>
 				</view>
 				<view class="action">
 					<text class="text-grey text-sm">{{value}}</text>
 				</view>
 			</view>
-			<view class="cu-item arrow" @click="openphone">
+			<view class="cu-item arrow" v-if="type==1" @click="openphone">
 				<view class="content">
 					<text class="text-grey">接听号码</text>
 				</view>
@@ -33,7 +33,7 @@
 					<text class="text-grey text-sm">{{phonenum}}</text>
 				</view>
 			</view>
-			<view class="cu-item">
+			<view class="cu-item" v-if="type==1">
 				<view class="content">
 					<text class="text-grey">咨询时间</text>
 				</view>
@@ -41,15 +41,74 @@
 					<text class="text-grey text-sm">{{doctor.phone_minutes}}分钟</text>
 				</view>
 			</view>
-			<view class="cu-item">
+			<view class="cu-item" v-if="type==1||type==2">
 				<view class="content">
 					<text class="text-grey">咨询费用</text>
 				</view>
 				<view class="action">
-					<text class="text-grey text-sm">{{doctor.phone_price}}元</text>
+					<text class="text-grey text-sm">{{type==1?doctor.phone_price/100:type==2?doctor.chat_price/100:doctor.appoint_price/100}}元</text>
+				</view>
+			</view>
+			<view class="cu-item" v-if="type==3">
+				<view class="content">
+					<text class="text-grey">门诊医院</text>
+				</view>
+				<view class="action">
+					<text class="text-grey text-sm">门诊医院地址</text>
+				</view>
+			</view>
+			<view class="cu-item" v-if="type==3">
+				<view class="content">
+					<text class="text-grey">预约时间</text>
+				</view>
+				<view class="action">
+					<text class="text-grey text-sm">{{time}}</text>
+				</view>
+			</view>
+			<view class="cu-item" v-if="type==3">
+				<view class="content">
+					<text class="text-grey">身份证</text>
+				</view>
+				<view class="action">
+					<input type="text" v-model="idcrad" placeholder="请输入身份证号码" placeholder-style="text-align:right" />
+				</view>
+			</view>
+			<view class="cu-item" v-if="type==2">
+				<view class="content">
+					<text class="text-grey">症状描述</text>
+				</view>
+				<view class="action">
+					<text class="text-grey text-sm">查看范例</text>
+				</view>
+			</view>
+			<textarea v-if="type==2" v-model="zhengzhuang" value="" class="textareasty" placeholder="我有病,我还病得不轻" />
+			</view>
+			<view class="" v-if="type==2">
+				<view class="cu-bar bg-white margin-top">
+					<view class="action text-lg text-black text-bold">
+						病情照片
+					</view>
+					<view class="action">
+						{{imgList.length}}/4
+					</view>
+				</view>
+				<view class="bg-white padding-sm text-gray">
+					请上传病例照片,若是皮肤或外伤问题,请建议对准患处拍摄清晰照片(照片仅自己和医生可见)
+				</view>
+				<view class="cu-form-group">
+					<view class="grid col-4 grid-square flex-sub">
+						<view class="bg-img" v-for="(item,index) in imgList" :key="index" :data-url="imgList[index]">
+							<image :src='imgList[index]' mode='aspectFill'></image>
+							<view class="cu-tag bg-red" @click="DelImg" :data-index="index">
+								<text class="cuIcon-close"></text>
+							</view>
+						</view>
+						<view class="solids" @click="ChooseImage" v-if="imgList.length<4">
+							<text class="cuIcon-cameraadd"></text>
+						</view>
+					</view>
 				</view>
 			</view>
-		</view>
 		<view class="cu-bar bg-white tabbar" style="position: fixed;bottom: 0;width: 100%;">
 			<view class="submit" style="background-color: #0B73B9;color: white;" @click="gotopay">
 				立即咨询
@@ -63,7 +122,7 @@
 				<view class="popup_title_text">选择就诊人</view>
 			</view>
 			<scroll-view style="height: 70%;" scroll-y="true">
-				<view class="popup_list" v-for="(item, index) in patientList" :key="index" :data-index="index" @click="value=item.name,showpeople=false">
+				<view class="popup_list" v-for="(item, index) in patientList" :key="index" :data-index="index" @click="xuanzehuanzhe(item)">
 					<view class="popup_list_title">
 						<view class="title">{{item.name}}</view>
 						<view class="body">
@@ -80,7 +139,8 @@
 			</scroll-view>
 			<u-gap height="10" bg-color="#f9f9f9"></u-gap>
 			<view class="popup_button">
-				<image style="width: 32rpx;height: 32rpx;margin-right: 15rpx;" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/img/addjiu.png" mode=""></image>
+				<image style="width: 32rpx;height: 32rpx;margin-right: 15rpx;" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/img/addjiu.png"
+				 mode=""></image>
 				<view class="" @click="addPeople">
 					添加就诊人档案
 				</view>
@@ -94,12 +154,12 @@
 			</view>
 			<scroll-view style="height: 70%;" scroll-y="true">
 				<view class="phone" v-for="(item, index) in phoneList">
-					<view class="list" @click="phoneValue=item.name">
+					<view class="list" @click="xuanzephone(item)">
 						<view class="title">{{item.name}}</view>
 						<view class="phone">{{item.num}}</view>
 						<view class="button">
 							<u-radio-group v-model="phoneValue">
-								<u-radio @change="peopleRadioChange" :key="index" :name="item.name" :disabled="item.disabled">
+								<u-radio @change="phoneRadioChange" :key="index" :name="item.name" :disabled="item.disabled">
 								</u-radio>
 							</u-radio-group>
 						</view>
@@ -115,6 +175,8 @@
 				<u-button type="primary" shape="circle" @click="confirmphone">确认</u-button>
 			</view>
 		</u-popup>
+		<view class="cu-tabbar-height"></view>
+		<view class="cu-tabbar-height"></view>
 	</view>
 </template>
 
@@ -123,7 +185,15 @@
 		onLoad(options) {
 			this.phonenum = this.phoneList[0].num
 			this.doctor = JSON.parse(options.doctor)
-			console.log(this.doctor)
+			this.type = options.type
+			this.time=options.time
+			if(options.type==1){
+				this.price = this.doctor.phone_price
+			}else if(options.type==2){
+				this.price = this.doctor.chat_price
+			}else{
+				this.price = this.doctor.appoint_price
+			}
 		},
 		onShow() {
 			this.getarchives()
@@ -149,12 +219,19 @@
 						disabled: false
 					}
 				],
+				idcrad:"",//身份证
+				zhengzhuang:"", //症状
 				phoneValue: '',
 				showinput: '其他手机号',
 				phonenum: "",
 				phonedata: "",
 				patientList: [],
-				doctor: {}
+				doctor: {},
+				imgList:[],
+				type:"",//咨询状态
+				time:"",
+				huanzheID:"",
+				price:""
 			}
 		},
 		methods: {
@@ -173,26 +250,26 @@
 			phoneRadioChange(e) {
 				console.log(e);
 			},
-			phoneListchange(item) {
-				this.phoneValue = item
-				console.log(this.phoneValue)
+			xuanzephone(item){
+				this.phoneValue=item.name
+				this.phonenum = item.num
 			},
-			peopleListchange(item) {
-				this.value = item
+			xuanzehuanzhe(item){
+				this.huanzheID = item.id
+				this.value=item.name
+				this.showpeople=false
 			},
 			//添加就诊人
 			addPeople(e) {
-
-			},
-			//添加手机号
-			addPhone(e) {
-
-			},
-			a(e) {
-				console.log(this.value);
+				
 			},
 			confirmphone() {
-				this.phonenum = this.phonedata
+				if(this.phoneValue=="其他手机号"){
+					this.phonenum = this.phonedata
+				}else{
+					this.phonedata = ""
+				}
+				
 				this.showphone = !this.showphone
 			},
 			getarchives: async function() {
@@ -201,8 +278,73 @@
 					this.patientList = res.data.data
 				}
 			},
-			gotopay(){
-				
+			gotopay:async function() {
+				if(this.type==1){
+					if(this.value!=""&&this.phonenum!=""&&this.$util.isPhoneNumber(this.phonenum)){
+						console.log(this.type)
+						console.log(this.doctor.id)
+						console.log(this.huanzheID)
+						console.log(this.price)
+						console.log(this.phonenum)
+						console.log(this.doctor.phone_minutes)
+						let obj={
+							doctorname:this.doctor.name,
+							product_type:this.type,
+							docter_id:this.doctor.id,
+							patient_id:this.huanzheID,
+							total_amount:this.price/100,
+							phone:this.phonenum,
+							phone_minutes:this.doctor.phone_minutes,
+							payment_type:2
+						}
+						uni.navigateTo({
+							url:"../order/payment?data="+JSON.stringify(obj)
+						})
+						// let res = await this.$request.post("/api/v1/order/consultPlaceOrder",{
+						// 	product_type:this.type,
+						// 	docter_id:this.doctor.id,
+						// 	patient_id:this.huanzheID,
+						// 	total_amount:this.price,
+						// 	phone:this.phonenum,
+						// 	phone_minutes:this.doctor.phone_minutes,
+						// 	payment_type:2
+						// })
+					}else{
+						uni.showToast({
+							title:"请选择完整",
+							icon:"none"
+						})
+					}
+				}
+			},
+			ChooseImage() {
+				uni.chooseImage({
+					count: 4, //默认9
+					sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
+					sourceType: ['album', 'camera'], //从相册选择
+					success: async (res) => {
+						if (this.imgList.length != 0) {
+							this.imgList = this.imgList.concat(res.tempFilePaths)
+			
+						} else {
+							this.imgList = res.tempFilePaths
+						}
+					}
+				});
+			},
+			DelImg(e) {
+				uni.showModal({
+					title: '提示',
+					content: '确定要删除吗?',
+					cancelText: '再想想',
+					confirmText: '删除',
+					success: res => {
+						if (res.confirm) {
+							this.imgList.splice(e.currentTarget.dataset.index, 1);
+							this.imgList = this.imgList
+						}
+					}
+				})
 			}
 		}
 	};
@@ -219,6 +361,13 @@
 		align-items: center;
 		border-bottom: 1rpx solid #f9f9f9;
 	}
+	.textareasty{
+		background-color: white;
+		border: 1px solid #efefef;
+		border-radius: 16rpx;
+		padding: 15rpx;
+		margin: 15rpx auto;
+	}
 
 	.popup_title_text {
 		width: auto;

+ 1 - 1
pages/doctor_related/select_doctor.vue

xqd
@@ -70,7 +70,7 @@
 												<view class="jisu">急速响应</view>
 												<view class="">
 													服务
-													<text class="text-red text-bold text-xl">¥19.90</text>
+													<text class="text-red text-bold text-xl">¥{{item.phone_price/100}}</text>
 												</view>
 											</view>

+ 1 - 1
pages/index/index.vue

xqd
@@ -196,7 +196,7 @@
 										<view class="jisu">急速响应</view>
 										<view class="">
 											服务
-											<text class="text-red text-bold text-xl">¥19.90</text>
+											<text class="text-red text-bold text-xl">¥{{item.phone_price/100}}</text>
 										</view>
 									</view>

+ 22 - 7
pages/index/mine.vue

xqd xqd xqd
@@ -22,11 +22,11 @@
 						</view>
 						<view class="pr m-xcenter plr20 header-box" style="padding: 40rpx 40rpx;background-color: #fff;border-radius: 16rpx;">
 							<navigator class="m-flex tl f14 m-ycenter dpb" hoverClass="none">
-								<view class="m-gray-big f20 fb pr10">{{info.balance}}</view>
+								<view class="m-gray-big f20 fb pr10">{{info.balance/100}}</view>
 								<view class="m-gray-letter mt5 f12">余额(元)</view>
 							</navigator>
 							<view bindtap="" class="m-flex tl f14 m-ycenter">
-								<view class="m-gray-big f20 fb">0</view>
+								<view class="m-gray-big f20 fb">{{info.coupon_num}}</view>
 								<view class="m-gray-letter mt5 f12">优惠券(张)</view>
 							</view>
 						</view>
@@ -36,22 +36,26 @@
 			<view class="fb f18 plr20">我的订单</view>
 			<view class="margin-lr-sm m-dpflex m-justify-start m-align-center overflow bg-white margin-top-sm" style="padding-top: 40rpx;padding-bottom: 40rpx;border-radius: 16rpx;box-shadow: 0 0 50rpx 0 rgba(0, 0, 0, 0.1);">
 				<navigator class="width25 m-ycenter overflow pr" hoverClass="none">
-					<image style="width: 76rpx;height: 76rpx;" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/img/myzixun.png" mode=""></image>
+					<image style="width: 76rpx;height: 76rpx;" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/img/myzixun.png"
+					 mode=""></image>
 					<view class="tip"></view>
 					<view class="f14 m-gray-small mt10 line1">我的咨询</view>
 				</navigator>
 				<navigator class="width25 m-ycenter overflow pr" hoverClass="none">
-					<image style="width: 76rpx;height: 76rpx;" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/img/myyuyue.png" mode=""></image>
+					<image style="width: 76rpx;height: 76rpx;" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/img/myyuyue.png"
+					 mode=""></image>
 					<view class="tip"></view>
 					<view class="f14 m-gray-small mt10 line1">我的预约</view>
 				</navigator>
 				<navigator class="width25 m-ycenter overflow pr" hoverClass="none">
-					<image style="width: 76rpx;height: 76rpx;" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/img/myyijian.png" mode=""></image>
+					<image style="width: 76rpx;height: 76rpx;" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/img/myyijian.png"
+					 mode=""></image>
 					<view class="tip"></view>
 					<view class="f14 m-gray-small mt10 line1">我的意见单</view>
 				</navigator>
 				<navigator class="width25 m-ycenter overflow pr" hoverClass="none">
-					<image style="width: 76rpx;height: 76rpx;" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/img/myservice.png" mode=""></image>
+					<image style="width: 76rpx;height: 76rpx;" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/img/myservice.png"
+					 mode=""></image>
 					<view class="tip"></view>
 					<view class="f14 m-gray-small mt10 line1">服务包订单</view>
 				</navigator>
@@ -158,8 +162,19 @@
 				let res = await this.$request.post('/api/v1/user/userInfo')
 				if (res.status == 0) {
 					this.info = res.data
+					console.log(this.info)
 				}
-			}
+			},
+			getarchives: async function() {
+				let res = await this.$request.post("/api/v1/patient/patientList")
+				console.log(res)
+				if (res.status == 0) {
+					this.patientList = res.data.data
+					if (this.patientList.length == 0) {
+						this.istrue = true
+					}
+				}
+			},
 		}
 	};
 </script>

+ 1 - 0
pages/login/login.vue

xqd
@@ -167,6 +167,7 @@
 					}
 					user.loginByWeixin(e.detail.userInfo)
 						.then(res => {
+							console.log(res)
 							if (res.status == 0) {
 								uni.showToast({
 									title: "登录成功",

+ 20 - 27
pages/order/payment.vue

xqd xqd xqd xqd xqd xqd xqd
@@ -1,15 +1,8 @@
 <template>
 	<view>
 		<!-- 弹窗  v-model双向绑定值 mode弹出位置 border-radius弹出层圆角-->
-		<u-popup
-		v-model="popupShow"
-		mode="center" 
-		border-radius="14"
-		width="80%" 
-		height="40%" 
-		close-icon-pos="top-left" 
-		:closeable="true"
-		close-icon-color="#333333" >
+		<u-popup v-model="popupShow" mode="center" border-radius="14" width="80%" height="40%" close-icon-pos="top-left"
+		 :closeable="true" close-icon-color="#333333">
 			<view style="padding: 0 10%;height: 100%;width: 100%;">
 				<!-- 标题占20% -->
 				<view style="height: 20%;width: auto;">
@@ -22,8 +15,8 @@
 				<!-- 支付方式占20% -->
 				<view style="height: 20%;width: auto;">
 					<view style="font-size: 30rpx;display: flex;align-items: center;height: 100%;">
-						<text v-if="value=='钱包余额支付'">余额支付 (余额¥50.00元)</text>
-						<text v-else>微信支付</text>
+						<text>余额支付 (余额¥50.00元)</text>
+						<!-- <text v-else>微信支付</text> -->
 					</view>
 				</view>
 				<!-- 按钮占25% -->
@@ -32,7 +25,7 @@
 						<u-button type="primary" style="width: 100%;" @click="payment">确认支付</u-button>
 					</view>
 				</view>
-				
+
 			</view>
 		</u-popup>
 
@@ -40,13 +33,12 @@
 			<image src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/caixian.png" style="width: 100%; height: 5rpx; background-color: #FFFFFF;"></image>
 			<uni-list-item :border="false">
 				<view slot="header" style="color:#666666 ; font-size: 28rpx;">
-					<text v-if="product_type == '1' ">{{doctorName}} 电话咨询</text>
-					<text v-if="product_type == '2' ">疫苗图文咨询</text>
-					<text v-if="product_type == '3' ">门诊预约</text>
-					<text v-if="product_type == '4' ">疫苗接种预约</text>
-					<text v-if="product_type == '5' ">儿保预约</text>
-					<text v-if="product_type == '6' ">服务包</text>
-					<text v-if="product_type == '7' ">充值</text>
+					<text v-if="infodata.product_type == '1' ">{{infodata.doctorname}} 电话咨询</text>
+					<text v-if="infodata.product_type == '2' ">{{infodata.doctorname}} 图文咨询</text>
+					<text v-if="infodata.product_type == '3' ">{{infodata.doctorname}} 门诊预约</text>
+					<text v-if="infodata.product_type == '4' ">疫苗接种预约</text>
+					<text v-if="infodata.product_type == '5' ">儿保预约</text>
+					<text v-if="infodata.product_type == '6' ">服务包</text>
 				</view>
 				<view slot="footer" style="color:#FF4F61 ;font-weight: 500;">
 					{{orderAmount}}
@@ -96,6 +88,10 @@
 
 <script>
 	export default {
+		onLoad(op) {
+			this.infodata = JSON.parse(op.data)
+			this.norderAmount = this.infodata.total_amount
+		},
 		data() {
 			return {
 				//医生名称
@@ -110,18 +106,16 @@
 				money: '',
 				nmoney: 0.00,
 				// u-radio-group的v-model绑定的值如果设置为某个radio的name,就会被默认选中
-				value: '微信支付',
+				value: '钱包余额支付',
 				paymenMethod: [{
-					name: '微信支付',
-					disabled: false
-				}, {
 					name: '钱包余额支付',
 					disabled: false
 				}],
 				//弹出层控制
-				popupShow:false,
+				popupShow: false,
 				//订单类型
-				product_type:'1'
+				//支付数据类型
+				infodata: {}
 			}
 		},
 		methods: {
@@ -141,14 +135,13 @@
 				console.log(e)
 			},
 			//点击确认支付
-			payment(e){
+			payment(e) {
 				uni.navigateTo({
 					url: '/pages/order/order'
 				});
 			}
 		},
 		onShow() {
-			
 			this.orderAmount = this.norderAmount + "元"
 			this.money = "  ¥" + this.nmoney + "元"
 		},

BIN
static/caixian.png


BIN
static/img/addjiu.png


BIN
static/img/doctorbanner.png


BIN
static/img/loginlogo.png


BIN
static/img/mybanner.png


BIN
static/img/myservice.png


BIN
static/img/myyijian.png


BIN
static/img/myyuyue.png


BIN
static/img/myzixun.png


BIN
static/img/qb.png


BIN
static/img/wxzf.png


BIN
static/img/xieyi.png


BIN
static/img/xieyixuan.png


BIN
static/img/zhen.png


BIN
static/order/1.png


BIN
static/order/2.png


BIN
static/order/3.png


BIN
static/order/4.png


BIN
static/order/5.png


BIN
static/order/6.png


BIN
static/order/7.png


BIN
static/头像.png


BIN
static/服务包.png


BIN
static/横占位图.png


BIN
static/竖占位图.png