yanjie 4 år sedan
förälder
incheckning
64710313e1

+ 15 - 9
pages.json

xqd xqd xqd xqd xqd xqd
@@ -42,7 +42,13 @@
 		{
 			"path": "pages/archives/my_archives",
 			"style": {
-				"navigationBarTitleText": "档案编辑"
+				"navigationBarTitleText": "档案列表"
+			}
+		},
+		{
+			"path": "pages/archives/add_archives",
+			"style": {
+				"navigationBarTitleText": "添加档案"
 			}
 		},
 		{
@@ -51,7 +57,7 @@
 				"navigationBarTitleText": "登录/注册"
 			}
 		},
-/*		order文件夹	订单		*/
+		/*		order文件夹	订单		*/
 		//付款
 		{
 			"path": "pages/order/payment",
@@ -66,7 +72,7 @@
 				"navigationBarTitleText": "下单成功"
 			}
 		},
-/*		service_packs文件夹	服务包	*/
+		/*		service_packs文件夹	服务包	*/
 		//服务人信息
 		{
 			"path": "pages/service_packs/packs_information",
@@ -95,16 +101,16 @@
 				"navigationBarTitleText": "服务包"
 			}
 		},
-/*		personal文件夹		个人中心	*/
+		/*		personal文件夹		个人中心	*/
 		//个人信息
 		{
 			"path": "pages/personal/personal_information",
 			"style": {
 				"navigationBarTitleText": "个人信息"
 			}
-			
+
 		},
-	/*	coupon文件夹		优惠券*/
+		/*	coupon文件夹		优惠券*/
 		//优惠券
 		{
 			"path": "pages/personal/coupon/coupon",
@@ -119,8 +125,8 @@
 				"navigationBarTitleText": "优惠券详情"
 			}
 		}
-		
-		
+
+
 	],
 	"globalStyle": {
 		"navigationBarTextStyle": "black",
@@ -130,7 +136,7 @@
 	},
 	"tabBar": {
 		"color": "#C0C4CC", //未选中的菜单文字颜色
-		"selectedColor": "#fab6b6", //选中时的菜单文字颜色
+		"selectedColor": "#0B73B9", //选中时的菜单文字颜色
 		"borderStyle": "black",
 		"backgroundColor": "#ffffff", //背景
 		"list": [{

+ 155 - 0
pages/archives/add_archives.vue

xqd
@@ -0,0 +1,155 @@
+<template>
+	<view class="main">
+		<form>
+			<view class="cu-form-group margin-top">
+				<view class="title">头像</view>
+				<image class="cu-avatar radius bg-gray" @click="ChooseImage" :src='imgList[0]' mode='aspectFill'>
+				</image>
+			</view>
+			<view class="cu-form-group">
+				<view class="title">就诊人姓名:</view>
+				<input v-model="name" placeholder-style="text-align:right" placeholder="请填写手机号"></input>
+			</view>
+			<view class="cu-form-group">
+				<view class="title">就诊人性别:</view>
+				<u-radio-group v-model="value" @change="radioGroupChange">
+					<u-radio v-for="(item, index) in list" :key="index" :name="item.name" :disabled="item.disabled">
+						{{item.name}}
+					</u-radio>
+				</u-radio-group>
+			</view>
+			<view class="cu-form-group">
+				<view class="title">出身年月:</view>
+				<picker mode="date" :value="date" @change="bindDateChange">
+					<view class="picker">
+						{{date}}
+					</view>
+				</picker>
+			</view>
+			<view class="cu-form-group" @click="show=!show">
+				<view class="title">与就诊人关系:</view>
+				<picker :value="guanxi" @change="confirm" :range="guanxilist" range-key="label">
+					<view class="picker">
+						{{guanxi}}
+					</view>
+				</picker>
+			</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>
+				<input v-model="idcrad" placeholder-style="text-align:right" placeholder="请输入就诊人身份证号"></input>
+			</view>
+			<view class="padding-sm bg-white" style="color: #C0C0C0;">
+				注:就诊人信息用于平台审核和医疗业务使用,不会外传。请正却确填写就诊人信息,如需修改身份信息可电话联系客服修改(13330431369)
+			</view>
+		</form>
+		<view class="cu-bar bg-white tabbar" style="position: fixed;bottom: 0;width: 100%;">
+			<view class="submit" style="background-color: #0B73B9;color: white;" @click="addarchives">
+				提交
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		onLoad(options) {
+
+		},
+		onShow() {
+
+		},
+		data() {
+			return {
+				imgList: '',
+				name: "",
+				list: [{
+						name: '男',
+						disabled: false
+					},
+					{
+						name: '女',
+						disabled: false
+					},
+				],
+				value: '男',
+				date: "请选择出生日期",
+				show: false,
+				guanxi: "请选择",
+				guanxiindex: 0,
+				guanxilist: [{
+						value: '1',
+						label: '父亲'
+					},
+					{
+						value: '2',
+						label: '母亲'
+					},
+					{
+						value: '3',
+						label: '祖父'
+					},
+					{
+						value: '4',
+						label: '祖母'
+					},
+					{
+						value: '5',
+						label: '外祖父'
+					},
+					{
+						value: '6',
+						label: '外祖母'
+					},
+					{
+						value: '7',
+						label: '叔侄'
+					}
+				],
+				idcrad: ""
+			}
+		},
+		methods: {
+			ChooseImage() {
+				uni.chooseImage({
+					count: 1, //默认9
+					sizeType: ['compressed'], //可以指定是原图还是压缩图,默认二者都有
+					sourceType: ['album', 'camera'], //从相册选择
+					success: (res) => {
+						this.imgList = res.tempFilePaths
+					}
+				});
+			},
+			// 选中任一radio时,由radio-group触发
+			radioGroupChange(e) {
+				this.value = e
+				console.log(this.value)
+			},
+			bindDateChange({
+				detail
+			}) {
+				this.date = detail.value
+				console.log(this.date)
+			},
+			confirm(e) {
+				this.guanxiindex = e.detail.value
+				this.guanxi = this.guanxilist[e.detail.value].label
+			},
+			addarchives: async function() {
+				console.log(this.imgList[0])
+				console.log(this.name)
+				console.log(this.value)
+				console.log(this.date)
+				console.log(this.guanxiindex)
+				console.log(this.idcrad)
+			}
+		}
+	};
+</script>
+
+<style scoped lang="scss">
+	.main {}
+</style>

+ 25 - 3
pages/archives/my_archives.vue

xqd xqd
@@ -1,6 +1,11 @@
 <template>
 	<view class="main">
-		
+		<u-empty text="暂无档案" :show="istrue" mode="list" margin-top="300"></u-empty>
+		<view class="cu-bar bg-white tabbar" style="position: fixed;bottom: 0;width: 100%;">
+			<view class="submit" style="background-color: #0B73B9;color: white;" @click="addarchives">
+				添加健康档案
+			</view>
+		</view>
 	</view>
 </template>
 
@@ -8,14 +13,31 @@
 	export default {
 		onLoad(options) {
 
+		},
+		onShow() {
+			this.getarchives()
 		},
 		data() {
 			return {
-
+				patientList: [],
+				istrue: false
 			}
 		},
 		methods: {
-			
+			getarchives: async function() {
+				let res = await this.$request.post("/api/v1/patient/patientList")
+				if (res.status == 0) {
+					this.patientList = res.data.data
+					if (this.patientList.length == 0) {
+						this.istrue = true
+					}
+				}
+			},
+			addarchives() {
+				uni.navigateTo({
+					url: "add_archives"
+				})
+			}
 		}
 	};
 </script>

+ 7 - 4
pages/doctor_related/info_write.vue

xqd xqd xqd xqd
@@ -51,7 +51,7 @@
 			</view>
 		</view>
 		<view class="cu-bar bg-white tabbar" style="position: fixed;bottom: 0;width: 100%;">
-			<view class="bg-green submit" @click="">
+			<view class="submit" style="background-color: #0B73B9;color: white;" @click="">
 				立即咨询
 			</view>
 		</view>
@@ -80,7 +80,10 @@
 			</scroll-view>
 			<u-gap height="10" bg-color="#f9f9f9"></u-gap>
 			<view class="popup_button">
-				<text class="" @click="addPeople">添加就诊人</text>
+				<image style="width: 32rpx;height: 32rpx;margin-right: 15rpx;" src="../../static/img/addjiu.png" mode=""></image>
+				<view class="" @click="addPeople">
+					添加就诊人档案
+				</view>
 			</view>
 		</u-popup>
 
@@ -186,7 +189,7 @@
 			},
 			phoneListchange(item) {
 				this.phoneValue = item
-				console.log(item)
+				console.log(this.phoneValue)
 			},
 			peopleListchange(item) {
 				this.value = item
@@ -268,7 +271,7 @@
 		justify-content: center;
 		align-items: center;
 
-		text {
+		view {
 			color: #0b73ba;
 			font-weight: 500;
 		}

+ 1 - 1
pages/index/index.vue

xqd
@@ -13,7 +13,7 @@
 			<u-grid :col="3" :border="false">
 				<view @click="gotoxuanze" data-index="1">
 					<u-grid-item>
-						<u-image width="120rpx" height="120rpx" src="https://cdn.uviewui.com/uview/example/fade.jpg" shape="circle"></u-image>
+						<u-image width="120rpx" height="120rpx" src="../static/toolimg/indexphone" shape="circle"></u-image>
 						<view class="grid-text">电话咨询</view>
 					</u-grid-item>
 				</view>

+ 29 - 27
pages/index/mine.vue

xqd xqd xqd xqd xqd
@@ -2,29 +2,28 @@
 	<view class="main">
 		<view class="pr">
 			<view class="header-content">
-				<image src="http://file.supermm.me/miniProgram/images/personal/bg.png" style="width:100%;height:260rpx;"></image>
+				<image src="../../static/img/mybanner.png" style="width:100%;height:260rpx;"></image>
 			</view>
 			<view class="pr" style="z-index:2">
 				<view class="plr15">
 					<view class="bdr4 pb20">
 						<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: 120rpx;height: 120rpx;border-radius: 50%;"></image>
-							<text class="line1 f20 fb plr15 text-white">落雨桐</text>
+							<image binderror="_binderror" mode="scaleToFill" :src="info.avatar" style="width: 120rpx;height: 120rpx;border-radius: 50%;"></image>
+							<text class="line1 f20 fb plr15 text-white">{{info.nickname}}</text>
 							<navigator hoverClass="none">
-								<image class="header-img" src="http://file.supermm.me/miniProgram/images/personal/edit.png"></image>
+								<image class="header-img" src="../../static/toolimg/myedit.png"></image>
 							</navigator>
 							<view class="pr tr m-flex">
 								<view class="tip msg" v-if="true"></view>
 								<navigator hoverClass="none">
-									<image class="header-img" src="http://file.supermm.me/miniProgram/images/personal/info.png"></image>
+									<image class="header-img" src="../../static/toolimg/myinfo.png"></image>
 								</navigator>
 							</view>
 						</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">0</view>
-								<view class="m-gray-letter mt5 f12">代币(个)</view>
+								<view class="m-gray-big f20 fb pr10">{{info.balance}}</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>
@@ -37,38 +36,34 @@
 			<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>
+					<image style="width: 76rpx;height: 76rpx;" src="../../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="http://file.supermm.me/miniProgram/images/personal/menu_2.png"
-					 mode=""></image>
+					<image style="width: 76rpx;height: 76rpx;" src="../../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="http://file.supermm.me/miniProgram/images/personal/menu_3.png"
-					 mode=""></image>
+					<image style="width: 76rpx;height: 76rpx;" src="../../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="http://file.supermm.me/miniProgram/images/personal/menu_4.png"
-					 mode=""></image>
+					<image style="width: 76rpx;height: 76rpx;" src="../../static/img/myservice.png" mode=""></image>
 					<view class="tip"></view>
 					<view class="f14 m-gray-small mt10 line1">服务包订单</view>
 				</navigator>
 			</view>
-			<navigator class="pr m-xcenter plr20 pt20" hoverClass="none">
+			<navigator class="pr m-xcenter plr20 pt20" hoverClass="none" url="../archives/my_archives">
 				<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" style="margin-left: 20rpx;margin-right: 20rpx;">
+			<view class="mt20 pr pb40" style="margin-left: 20rpx;margin-right: 20rpx;box-shadow: 0 0 50rpx 0 rgba(0, 0, 0, 0.1);">
 				<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">
+					<swiper-item class="" style="box-sizing: border-box;" 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>
@@ -103,30 +98,34 @@
 			<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>
+						<image style="width: 42rpx;height: 42rpx;" src="../../static/toolimg/mydoctor.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>
+						<image style="width: 42rpx;height: 42rpx;" src="../../static/toolimg/myguanzhu.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>
+						<image style="width: 42rpx;height: 42rpx;" src="../../static/toolimg/wenzhang.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>
+						<image style="width: 42rpx;height: 42rpx;" src="../../static/toolimg/baodan.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>
+						<image style="width: 42rpx;height: 42rpx;" src="../../static/toolimg/pinjia.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="../../static/toolimg/myhple.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>
+						<image style="width: 42rpx;height: 42rpx;" src="../../static/toolimg/kefu.png"></image>
 						<view class="f14 m-gray-small mt10 line1">客服咨询</view>
 					</view>
 				</view>
@@ -147,7 +146,8 @@
 		},
 		data() {
 			return {
-				itemcurrent: 0
+				itemcurrent: 0,
+				info: {}
 			}
 		},
 		methods: {
@@ -156,7 +156,9 @@
 			},
 			getUserInfo: async function() {
 				let res = await this.$request.post('/api/v1/user/userInfo')
-				console.log(res)
+				if (res.status == 0) {
+					this.info = res.data
+				}
 			}
 		}
 	};

+ 43 - 31
pages/login/login.vue

xqd xqd xqd
@@ -67,13 +67,10 @@
 				showAgree: true, //协议是否选择
 				isRotate: false, //是否加载旋转
 				istrue: false,
-				imgarr: [
-					"../../static/img/xieyi.png",
-					"../../static/img/xieyi.png"
-				],
+				num: 1,
 				imgitem: {
 					istrue: false,
-					name: ""
+					name: "../../static/img/xieyi.png"
 				}
 			}
 		},
@@ -159,36 +156,43 @@
 				}, 3000)
 			},
 			wxLogin: async function(e) {
-				_this.istrue = true
-				if (e.detail.errMsg == "getUserInfo:fail auth deny") {
-					uni.showToast({
-						title: '微信登录失败',
-						icon: "none"
-					});
-					return;
-				}
-				user.loginByWeixin(e.detail.userInfo)
-					.then(res => {
-						if (res.status == 0) {
-							uni.showToast({
-								title: "登录成功",
-								icon: "none",
-								duration: 2000
-							})
-						}
-						setTimeout(function() {
-							_this.istrue = false
-							uni.navigateBack({
-								delta: 1
-							})
-						}, 2000)
-					})
-					.catch(res => {
+				if (this.imgitem.istrue) {
+					_this.istrue = true
+					if (e.detail.errMsg == "getUserInfo:fail auth deny") {
 						uni.showToast({
 							title: '微信登录失败',
 							icon: "none"
 						});
-					});
+						return;
+					}
+					user.loginByWeixin(e.detail.userInfo)
+						.then(res => {
+							if (res.status == 0) {
+								uni.showToast({
+									title: "登录成功",
+									icon: "none",
+									duration: 2000
+								})
+							}
+							setTimeout(function() {
+								_this.istrue = false
+								uni.navigateBack({
+									delta: 1
+								})
+							}, 2000)
+						})
+						.catch(res => {
+							uni.showToast({
+								title: '微信登录失败',
+								icon: "none"
+							});
+						});
+				}else{
+					uni.showToast({
+						title:"请先同意协议",
+						icon:"none"
+					})
+				}
 			},
 			toindex() {
 				uni.switchTab({
@@ -196,7 +200,15 @@
 				})
 			},
 			isqueren() {
+				this.num++
+				if (this.num % 2 == 0) {
+					this.imgitem.name = "../../static/img/xieyixuan.png"
+					this.imgitem.istrue = true
 
+				} else {
+					this.imgitem.name = "../../static/img/xieyi.png"
+					this.imgitem.istrue = false
+				}
 			}
 		}
 	}

BIN
static/img/addjiu.png


BIN
static/img/book.png


BIN
static/img/book_select.png


BIN
static/img/home.png


BIN
static/img/home_select.png


BIN
static/img/loginlogo.png


BIN
static/img/my.png


BIN
static/img/my_select.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/xieyi.png


BIN
static/img/xieyixuan.png


BIN
static/toolimg/baodan.png


BIN
static/toolimg/indexerbao.png


BIN
static/toolimg/indexmen.png


BIN
static/toolimg/indexphone.png


BIN
static/toolimg/indexservice.png


BIN
static/toolimg/indextu.png


BIN
static/toolimg/indexyimiao.png


BIN
static/toolimg/kefu.png


BIN
static/toolimg/mydoctor.png


BIN
static/toolimg/myedit.png


BIN
static/toolimg/myguanzhu.png


BIN
static/toolimg/myhple.png


BIN
static/toolimg/myinfo.png


BIN
static/toolimg/pinjia.png


BIN
static/toolimg/wenzhang.png