yanjie 4 lat temu
rodzic
commit
0173c5bd24

+ 35 - 5
pages/doctor_related/doctor_info.vue

xqd xqd xqd xqd xqd xqd
@@ -62,10 +62,11 @@
 				<view v-if="!isjigou" class="text-lg text-center margin-top-sm" style="color: rgb(238, 170, 63);">
 					平均回复低至1分钟
 				</view>
-				<view v-else class="text-lg margin-top-sm" style="color: rgb(238, 170, 63);border-bottom: 3rpx solid rgb(238, 170, 63); width: 375rpx;"
+				<view v-else class="text-lg margin-top-sm" style="color: rgb(238, 170, 63);border-bottom: 3rpx solid rgb(238, 170, 63); width: 410rpx;"
 				 @click="xuantime">
 					已选时间:{{daytime}}
-					<!-- <u-picker mode="multiSelector" v-model="show" @confirm="test" safe-area-inset-bottom :params="params"></u-picker> -->
+					<u-picker mode="multiSelector" @confirm="callbacktime" v-model="show" :default-selector='[0, 1]' range-key="start_time_period"
+					 :range="multiSelector"></u-picker>
 				</view>
 			</view>
 			<view v-if="isjigou" bindtap="goAdrPostion" class="pr pt10 pb10 margin-lr-sm margin-top-sm m-bg-white" style="border-radius: 16rpx;box-shadow: 0 0 50rpx 0 rgba(0, 0, 0, 0.1);">
@@ -86,7 +87,8 @@
 					</view>
 				</view>
 			</view>
-			<view class="margin-lr-sm mt30 bg-white" style="border-radius: 16rpx; box-shadow: 0 0 50rpx 0 rgba(0, 0, 0, 0.1);">
+			<view class="margin-lr-sm mt30 bg-white" style="border-radius: 16rpx; box-shadow: 0 0 50rpx 0 rgba(0, 0, 0, 0.1);"
+			 v-if="doctor.evaluate.length!=0">
 				<view class="f18 fb flex align-center plr15 pt15">患者评价 <text class="f12 m-gray-letter margin-left-xs">({{doctor.evaluate.length}})</text>
 				</view>
 				<view class="cu-list menu-avatar card-menu">
@@ -118,7 +120,7 @@
 				</view>
 				分享
 			</button>
-			<view v-if="barindex==1" class="submit text-white" style="background-color: rgb(11,115,186);">电话咨询</view>
+			<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>
@@ -148,7 +150,18 @@
 				},
 				isjigou: false,
 				barindex: 1, //显示按钮
-				daytime: ""
+				daytime: "",
+				multiSelector: [],
+				params: {
+					year: false,
+					month: true,
+					day: true,
+					hour: true,
+					minute: true,
+					second: false
+				},
+				show: false,
+				istime: false,
 			}
 		},
 		methods: {
@@ -182,6 +195,18 @@
 					}
 				}
 			},
+			gettime: async function() {
+				let res = await this.$request.post("/api/v1/docter/timePeriodList")
+				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
+				}
+			},
 			gotoxuanze(e) {
 				this.barindex = e.currentTarget.dataset.index
 				if (e.currentTarget.dataset.index == 3) {
@@ -190,6 +215,11 @@
 					this.isjigou = false
 				}
 			},
+			phonezixun() {
+				uni.navigateTo({
+					url: "info_write"
+				})
+			},
 			xuantime() {
 				this.show = !this.show
 			},

+ 12 - 5
pages/doctor_related/info_write.vue

xqd xqd xqd xqd xqd xqd
@@ -30,7 +30,7 @@
 					<text class="text-grey">接听号码</text>
 				</view>
 				<view class="action">
-					<text class="text-grey text-sm">13756797847</text>
+					<text class="text-grey text-sm">{{phonenum}}</text>
 				</view>
 			</view>
 			<view class="cu-item">
@@ -80,7 +80,7 @@
 			</scroll-view>
 			<u-gap height="10" bg-color="#f9f9f9"></u-gap>
 			<view class="popup_button">
-				<text class="" @click="addPeople">添加就诊人</text>
+				<text class="" @click="addPeople">添加就诊人</text>
 			</view>
 		</u-popup>
 
@@ -103,12 +103,13 @@
 					</view>
 				</view>
 				<view style="padding: 0 50rpx;">
-					<input style="border: 2rpx solid #a1a1a1; height:50rpx;" v-if="phoneValue==showinput" type="number" placeholder="请输入手机号" />
+					<input class="padding-lr-sm" v-model="phonedata" style="border: 2rpx solid #efefef; height:50rpx;" v-if="phoneValue==showinput"
+					 type="number" placeholder="请输入手机号" />
 				</view>
 			</scroll-view>
 			<u-gap height="10" bg-color="#f9f9f9"></u-gap>
 			<view style="padding: 0 10%; height: 100rpx;  ">
-				<u-button type="primary" shape="circle" @click="">确认</u-button>
+				<u-button type="primary" shape="circle" @click="confirmphone">确认</u-button>
 			</view>
 		</u-popup>
 	</view>
@@ -117,7 +118,7 @@
 <script>
 	export default {
 		onLoad(options) {
-
+			this.phonenum = this.phoneList[0].num
 		},
 		data() {
 			return {
@@ -163,6 +164,8 @@
 				],
 				phoneValue: '',
 				showinput: '其他手机号',
+				phonenum: "",
+				phonedata: ""
 			}
 		},
 		methods: {
@@ -198,6 +201,10 @@
 			},
 			a(e) {
 				console.log(this.value);
+			},
+			confirmphone() {
+				this.phonenum = this.phonedata
+				this.showphone = !this.showphone
 			}
 
 		}

+ 3 - 3
pages/index/index.vue

xqd xqd
@@ -141,8 +141,8 @@
 		</view>
 		<view style="width: 100%;">
 			<view class="recommendstyle margin-top-sm" v-for="(item,index) in doctorList" :key="index">
-				<view class="base_item" @click="gotoinfo" :data-id="item.id">
-					<view class="base_item_zi">
+				<view class="base_item">
+					<view class="base_item_zi" @click.stop="gotoinfo" :data-id="item.id">
 						<view class="base_item_zi_items">
 							<view class="base_item_zi_content">
 								<u-image :fade="true" duration="450" width="120rpx" height="120rpx" :src="item.avatar" shape="circle">
@@ -281,7 +281,7 @@
 			},
 			gotoinfo(e) {
 				uni.navigateTo({
-					url: "./doctor_info?id=" + e.currentTarget.dataset.id
+					url: "../doctor_related/doctor_info?id=" + e.currentTarget.dataset.id
 				})
 			},
 			getDoctorList: async function() {

+ 77 - 57
pages/index/mine.vue

xqd xqd xqd xqd xqd xqd
@@ -4,12 +4,12 @@
 			<view class="header-content">
 				<image src="http://file.supermm.me/miniProgram/images/personal/bg.png" style="width:100%;height:260rpx;"></image>
 			</view>
-			<view class="pr pt20" style="z-index:2">
+			<view class="pr" style="z-index:2">
 				<view class="plr15">
 					<view class="bdr4 pb20">
-						<view class="plr20 pt20 m-dpflex m-justify-start m-align-center">
+						<view class="m-dpflex m-justify-start m-align-center" style="height: 165rpx;">
 							<image binderror="_binderror" mode="scaleToFill" src="https://ossweb-img.qq.com/images/lol/web201310/skin/big84000.jpg"
-							 style="width: 60px;height: 60px;border-radius: 50%;"></image>
+							 style="width: 120rpx;height: 120rpx;border-radius: 50%;"></image>
 							<text class="line1 f20 fb plr15 text-white">落雨桐</text>
 							<navigator hoverClass="none">
 								<image class="header-img" src="http://file.supermm.me/miniProgram/images/personal/edit.png"></image>
@@ -21,7 +21,7 @@
 								</navigator>
 							</view>
 						</view>
-						<view class="pr m-xcenter plr20 header-box" style="padding: 60rpx 40rpx;background-color: #fff;border-radius: 16rpx;">
+						<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">0</view>
 								<view class="m-gray-letter mt5 f12">代币(个)</view>
@@ -34,8 +34,8 @@
 					</view>
 				</view>
 			</view>
-			<view class="fb f18 plr20 pt40">我的订单</view>
-			<view class="plr10 m-dpflex m-justify-start m-align-center overflow pt40">
+			<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="http://file.supermm.me/miniProgram/images/personal/menu_1.png"
 					 mode=""></image>
@@ -61,38 +61,33 @@
 					<view class="f14 m-gray-small mt10 line1">服务包订单</view>
 				</navigator>
 			</view>
-			<navigator class="pr m-xcenter plr20 pt40" hoverClass="none">
+			<navigator class="pr m-xcenter plr20 pt20" hoverClass="none">
 				<view class="fb f18 pr m-flex tl">健康档案</view>
 				<view class="pr m-gray-small">档案列表</view>
 				<label class="m-gray-letter iconfont icon-arrow-right f18 dpb"></label>
 			</navigator>
-			<!-- <view class="mt20 pr pb40">
-				<swiper bindchange="swiperChange" :current="{{swiperCurrent}}" duration="500" :indicatorDots="{{indicatorDots}}"
-				 interval="5000" nextMargin="20rpx" previousMargin="20rpx">
-					<swiper-item class="swiper-wrapper" wx:for="{{childList}}" wx:key="{{item.childId}}">
-						<view class="swiper-item br-gray bdr4">
-							<navigator class="m-ycenter pt40" hoverClass="none" url="/pages/add-child/add-child" wx:if="{{item.add}}">
+			<view class="mt20 pr pb40" style="margin-left: 20rpx;margin-right: 20rpx;">
+				<swiper duration="500" @change="swiperChange" :current="itemcurrent" interval="5000" style="height:380rpx;" class="swiper-box">
+					<swiper-item class="swiper-wrapper" style="" v-for="(item,index) in 4" :key="index">
+						<view class="bg-white" style="border-radius: 16rpx;height: 100%;">
+							<navigator class="m-ycenter pt40" hoverClass="none" url="" v-if="false">
 								<view class="bdr30 m-theme br-theme tc plr20 pt8 pb8 f14 width40">新增健康档案</view>
 								<view class="pt20 f12 m-gray-letter">点击添加新的健康档案</view>
 							</navigator>
-							<navigator class="m-ycenter pt40" hoverClass="none" url="/pages/personal/childList/childList" wx:if="{{item.more}}">
-								<view class="bdr30 m-theme br-theme tc plr20 pt8 pb8 f14 width40">更多</view>
-								<view class="pt20 f12 m-gray-letter">点击查看更多健康档案</view>
-							</navigator>
-							<view bindtap="_goInfo" data-item="{{item}}" wx:if="{{!item.add&&!item.more}}">
-								<view class="tc fb f18 pt20">{{item.childName}}</view>
-								<view class="tc f14 m-gray-letter pt5">{{item.childAgeStr}}</view>
-								<view class="plr10 m-dpflex m-justify-start m-align-center overflow pb30 pt15">
+							<view @click="_goInfo" v-if="true" style="height: 100%;" v-else>
+								<view class="fb f18 pt20 margin-left">落雨桐</view>
+								<view class="f14 m-gray-letter pt10 margin-left">年龄:<text class="text-black">{{18}}岁</text></view>
+								<view class="plr10 m-dpflex m-justify-start m-align-center overflow pb30 pt30" style="margin-top:60rpx;border-top: 2rpx solid rgb(248,248,248);">
 									<view class="width33 m-ycenter overflow pr">
-										<view class="fb f18">{{item.childMedicalRecordNumber}}</view>
-										<view class="f12 m-gray-small mt6 line1">专属病历</view>
+										<view class="fb f18">{{1}}</view>
+										<view class="f12 m-gray-small mt6 line1">病例信息</view>
 									</view>
 									<view class="width33 m-ycenter overflow pr">
-										<view class="fb f18">{{item.childFamilyDoctorTeamIdList.length}}</view>
-										<view class="f12 m-gray-small mt6 line1">家庭医生</view>
+										<view class="fb f18">{{3}}</view>
+										<view class="f12 m-gray-small mt6 line1">就诊记录</view>
 									</view>
 									<view class="width33 m-ycenter overflow pr">
-										<view class="fb f18">{{item.childPersonalDataInformation}}</view>
+										<view class="fb f18">{{2}}</view>
 										<view class="f12 m-gray-small mt6 line1">个人资料</view>
 									</view>
 								</view>
@@ -101,45 +96,70 @@
 					</swiper-item>
 				</swiper>
 				<view class="dots">
-					<view class="dot{{index==swiperCurrent?' active':''}}" wx:for="{{childList}}" wx:key="unique"></view>
+					<view :class="index==itemcurrent?'dot active':'dot'" v-for="(item,index) in 4" :key="index"></view>
 				</view>
-			</view> -->
-			<view class="fb f18 plr20 pt40">常用工具</view>
-			<view class="plr10 m-dpflex m-justify-start m-align-center overflow pt30 pb30">
-				<navigator class="width25 m-ycenter overflow pr" hoverClass="none">
-					<image style="width: 42rpx;height: 42rpx;" src="http://file.supermm.me/miniProgram/images/personal/tool_1.png"></image>
-					<view class="f14 m-gray-small mt10 line1">家庭医生</view>
-				</navigator>
-				<navigator class="width25 m-ycenter overflow pr" hoverClass="none">
-					<image style="width: 42rpx;height: 42rpx;" src="http://file.supermm.me/miniProgram/images/personal/tool_2.png"></image>
-					<view class="f14 m-gray-small mt10 line1">我的关注</view>
-				</navigator>
-				<navigator class="width25 m-ycenter overflow pr" hoverClass="none">
-					<image style="width: 42rpx;height: 42rpx;" src="http://file.supermm.me/miniProgram/personal/my-class/my_class.png"></image>
-					<view class="f14 m-gray-small mt10 line1">我的课程</view>
-				</navigator>
-				<navigator class="width25 m-ycenter overflow pr" hoverClass="none">
-					<image style="width: 42rpx;height: 42rpx;" src="http://file.supermm.me/miniProgram/personal/my-class/my_class.png"></image>
-					<view class="tip"></view>
-					<view class="f14 m-gray-small mt10 line1">我的保单</view>
-				</navigator>
 			</view>
-			<view class="plr10 m-dpflex m-justify-start m-align-center overflow pb30">
-				<view bindtap="" class="width25 m-ycenter overflow pr">
-					<image style="width: 42rpx;height: 42rpx;" src="https://file.supermm.me/h5/wechat-h5/personal/kf.png"></image>
-					<view class="f14 m-gray-small mt10 line1">我的客服</view>
+			<view class="fb f18 plr20 pt40">常用工具</view>
+			<view class="bg-white margin-lr-sm margin-top-sm" style="border-radius: 16rpx;box-shadow: 0 0 50rpx 0 rgba(0, 0, 0, 0.1);">
+				<view class="plr10 m-dpflex m-justify-start m-align-center overflow pt30 pb30">
+					<navigator class="width25 m-ycenter overflow pr" hoverClass="none">
+						<image style="width: 42rpx;height: 42rpx;" src="http://file.supermm.me/miniProgram/images/personal/tool_1.png"></image>
+						<view class="f14 m-gray-small mt10 line1">家庭医生</view>
+					</navigator>
+					<navigator class="width25 m-ycenter overflow pr" hoverClass="none">
+						<image style="width: 42rpx;height: 42rpx;" src="http://file.supermm.me/miniProgram/images/personal/tool_2.png"></image>
+						<view class="f14 m-gray-small mt10 line1">我的关注</view>
+					</navigator>
+					<navigator class="width25 m-ycenter overflow pr" hoverClass="none">
+						<image style="width: 42rpx;height: 42rpx;" src="http://file.supermm.me/miniProgram/personal/my-class/my_class.png"></image>
+						<view class="f14 m-gray-small mt10 line1">收藏文章</view>
+					</navigator>
+					<navigator class="width25 m-ycenter overflow pr" hoverClass="none">
+						<image style="width: 42rpx;height: 42rpx;" src="http://file.supermm.me/miniProgram/personal/my-class/my_class.png"></image>
+						<view class="tip"></view>
+						<view class="f14 m-gray-small mt10 line1">我的保单</view>
+					</navigator>
+				</view>
+				<view class="plr10 m-dpflex m-justify-start m-align-center overflow pb30">
+					<navigator class="width25 m-ycenter overflow pr" hoverClass="none">
+						<image style="width: 42rpx;height: 42rpx;" src="http://file.supermm.me/miniProgram/images/personal/tool_5.png"></image>
+						<view class="f14 m-gray-small mt10 line1">帮助反馈</view>
+					</navigator>
+					<view bindtap="" class="width25 m-ycenter overflow pr">
+						<image style="width: 42rpx;height: 42rpx;" src="https://file.supermm.me/h5/wechat-h5/personal/kf.png"></image>
+						<view class="f14 m-gray-small mt10 line1">客服咨询</view>
+					</view>
 				</view>
-				<navigator class="width25 m-ycenter overflow pr" hoverClass="none">
-					<image style="width: 42rpx;height: 42rpx;" src="http://file.supermm.me/miniProgram/images/personal/tool_5.png"></image>
-					<view class="f14 m-gray-small mt10 line1">帮助反馈</view>
-				</navigator>
 			</view>
 		</view>
+		<view class="cu-tabbar-height"></view>
+		<view class="cu-tabbar-height"></view>
 	</view>
 </template>
 
 <script>
-	
+	export default {
+		onLoad(options) {
+
+		},
+		mounted() {
+			this.getUserInfo()
+		},
+		data() {
+			return {
+				itemcurrent: 0
+			}
+		},
+		methods: {
+			swiperChange(e) {
+				this.itemcurrent = e.detail.current
+			},
+			getUserInfo: async function() {
+				let res = await this.$request.post('/api/v1/user/userInfo')
+				console.log(res)
+			}
+		}
+	};
 </script>
 
 <style scoped>
@@ -218,7 +238,7 @@
 
 	.dots .dot.active {
 		width: 24rpx;
-		background: #FF7B72;
+		background: rgb(153, 153, 153);
 	}
 
 	.game-wrap {