Browse Source

no message

老狐\25396 4 năm trước cách đây
mục cha
commit
6a80882a61

+ 1 - 1
pages.json

xqd
@@ -190,7 +190,7 @@
 		{
 			"path": "pages/common_tools/me_evaluate",
 			"style": {
-				"navigationBarTitleText": "优惠券详情"
+				"navigationBarTitleText": "我的评价"
 			}
 		}
 

+ 270 - 1
pages/common_tools/me_evaluate.vue

xqd
@@ -1,8 +1,277 @@
 <template>
+	<view style="height: 100%;width: 100%;">
+		<view class="v" v-for="item,index in tcTeam" :key='index' @click="clicklist" :data-index="index">
+			<view class="list">
+				<!-- 上半部分 -->
+				<view style="margin: 30rpx 28rpx 0 28rpx;">
+					<!-- 头像+名字 -->
+					<view class="title">
+						<image class="img" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/头像.png"></image>
+						<view class="text">
+							<!-- 名字+标签 -->
+							<view class="name">
+								<view style="margin-right: 15rpx;">{{item.name}}</view>
+								<view class="label">{{item.label1}}</view>
+								<view class="label">{{item.label2}}</view>
+							</view>
+							<!-- 科室 -->
+							<view class="department">
+								<text>科室:</text>
+								<text style="color: #333333;">{{item.department1}}</text>
+								<text style="color: #333333;">{{item.department2}}</text>
+							</view>
+						</view>
+					</view>
+					<!-- 时间+评分 -->
+					<view class="score">
+						<u-rate :count="count" v-model="item.value" active-color="#EEAA3F" :disabled="true" size="24rpx" inactive-color="#EEAA3F"></u-rate><!-- inactive-color="#EEAA3F" -->
+						<view style="font-size: 24rpx;color: #999999;    display: flex;width: 100%;justify-content: flex-end;;">{{item.time}}</view>
+					</view>
+				</view>
+
+			</view>
+			<!-- 下半部分 -->
+			<view style="width: 100%;height: 100%;;border-radius: 15rpx;">
+				<view style="margin: 30rpx 28rpx 30rpx 28rpx;">
+					<text class="evaluate">{{item.tevaluate}}</text>
+				</view>
+				<u-line color="#EFEFEF" />
+				<view style="padding: 24rpx 28rpx;font-size: 26rpx;color: #666666;">
+					<text style="margin-right: 50rpx;">电话咨询</text>
+					<text>{{item.ordernum}}</text>
+				</view>
+			</view>
+		</view>
+	</view>
 </template>
 
 <script>
+	export default {
+		data() {
+			return {
+				//最大评分,星星数
+				count: 5,
+				//关注
+				isfollow: false,
+				//协议
+				num: 1,
+				imgitem: {
+					istrue: false,
+					name: "https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/img/xieyi.png"
+				},
+				tcID: '套餐一', //ID
+				tcTime: '一年', //套餐有效期
+				tcContent: { //套餐内容
+					content: '套餐一包含包含疫苗接种、门诊预约、儿保预约三项服务', //内容
+					scope: '使用范围:家医团队可用,有效期内无限次、300元额度以内门诊预约与儿保预约无限制', //范围
+					giving: '赠送XXXX保险:保险介绍' //赠送
+				},
+				tcTeam: [{
+					id: '1',
+					name: '熊大',
+					label1: '熊',
+					label2: '主角',
+					department1: '外科',
+					department2: '主任医师',
+					time: '2020.09.01 11:12:09',
+					value: 2,
+					tevaluate: '这个医生技术好,很不错,这个医生技术好,很不错这个医生技术好,很不错这个医生技术好,很不错这个医生技术好,很不错',
+					ordernum:'ZX202000010'
+				}, {
+					id: '2',
+					name: '熊二',
+					label1: '熊',
+					label2: '主角',
+					department1: '外科',
+					department2: '主任医师',
+					time: '2020.09.01 11:12:09',
+					value: 5,
+					tevaluate: '这个医生技术好,很不错,这个医生技术好,很不错这个医生技术好,很不错这个医生技术好,很不错这个医生技术好,很不错',
+					ordernum:'ZX202000010'
+				}, {
+					id: '3',
+					name: '光头强',
+					label1: '人',
+					label2: '主角',
+					department1: '外科',
+					department2: '主任医师',
+					time: '2020.09.01 11:12:09',
+					value: 2,
+					tevaluate: '这个医生技术好,很不错,这个医生技术好,很不错这个医生技术好,很不错这个医生技术好,很不错这个医生技术好,很不错',
+					ordernum:'ZX202000010'
+				}, {
+					id: '4',
+					name: '李老板',
+					label1: '人',
+					label2: '配角',
+					department1: '外科',
+					department2: '主任医师',
+					time: '2020.09.01 11:12:09',
+					value: 3,
+					tevaluate: '这个医生技术好,很不错,这个医生技术好,很不错这个医生技术好,很不错这个医生技术好,很不错这个医生技术好,很不错',
+					ordernum:'ZX202000010'
+				}, {
+					id: '5',
+					name: '吉吉国王',
+					label1: '猴子',
+					label2: '配角',
+					department1: '外科',
+					department2: '主任医师',
+					time: '2020.09.01 11:12:09',
+					value: 4,
+					tevaluate: '这个医生技术好,很不错,这个医生技术好,很不错这个医生技术好,很不错这个医生技术好,很不错这个医生技术好,很不错',
+					ordernum:'ZX202000010'
+				}, {
+					id: '6',
+					name: '毛毛',
+					label1: '猴子',
+					label2: '配角',
+					department1: '外科',
+					department2: '主任医师',
+					time: '2020.09.01 11:12:09',
+					value: 1,
+					tevaluate: '这个医生技术好,很不错,这个医生技术好,很不错这个医生技术好,很不错这个医生技术好,很不错这个医生技术好,很不错',
+					ordernum:'ZX202000010'
+				}, {
+					id: '7',
+					name: '蹦蹦',
+					label1: '猴子',
+					label2: '配角',
+					department1: '外科',
+					department2: '主任医师',
+					time: '2020.09.01 11:12:09',
+					value: 3,
+					tevaluate: '这个医生技术好,很不错,这个医生技术好,很不错这个医生技术好,很不错这个医生技术好,很不错这个医生技术好,很不错',
+					ordernum:'ZX202000010'
+				}],
+				packs: {
+					id: '', //ID
+					name: '', //名称
+					intro: '', //简介
+					desc: '', //详细介绍
+					price: '', //价格(单位分)
+					team_id: '', //医生团队ID
+					phone_minutes: '', //电话分钟数
+					chat_num: '', //图文咨询次数
+					appoint_num: '', //门诊预约次数
+					vaccine_limit_amount: '', //疫苗总金额限制
+					nurses_limit_amount: '', //儿保总金额限制
+					effective_days: '', //有效天数
+					created_at: '', //创建时间
+					updated_at: '' //更新时间
+				}
+			}
+		},
+		methods: {
+			//关注
+			follow(e) {
+				console.log(this.tcTeam[e.currentTarget.dataset.index])
+
+			}
+		}
+	}
 </script>
 
-<style>
+<style lang="scss">
+	.v {
+		margin: 20rpx 28rpx 0rpx 28rpx;
+		border-radius: 15rpx;
+		box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.08);
+		width: auto;
+		height: auto;
+		background-color: #fbfbfb;
+	}
+
+	.list {
+		border-radius: 15rpx;
+		display: flex;
+		width: auto;
+		height: auto;
+		background-color: #FFFFFF;
+
+		.title {
+			width: 100%;
+			display: flex;
+			// justify-content: center;
+			// align-items: center;
+
+			.img {
+				width: 68rpx;
+				height: 68rpx;
+				border-radius: 50%;
+				margin-right: 20rpx;
+			}
+
+			//文字
+			.text {
+				height: auto;
+
+				//名字+标签
+				.name {
+					font-size: 25rpx;
+					font-weight: bold;
+					display: flex;
+					align-items: center;
+					margin-bottom: 14rpx;
+
+					.label {
+						font-weight: 400;
+						margin-right: 15rpx;
+						background-color: #E5F5FF;
+						color: #0B73B9;
+						width: 100rpx;
+						height: 28rpx;
+						font-size: 20rpx;
+						border-radius: 10rpx;
+						display: flex;
+						justify-content: center;
+						align-items: center;
+					}
+				}
+
+				//科室
+				.department {
+					font-size: 18rpx;
+					color: #666666;
+
+					text {
+						margin-right: 15rpx;
+					}
+				}
+
+				// // 选项 图文电话门诊
+				// .option {
+				// 	display: flex;
+
+				// 	view {
+				// 		background-color: #E4E4E4;
+				// 		width: 100rpx;
+				// 		height: 48rpx;
+				// 		border-radius: 12px;
+				// 		margin-right: 15rpx;
+				// 		display: flex;
+				// 		justify-content: center;
+				// 		align-items: center;
+				// 	}
+				// }
+			}
+		}
+
+		.score {
+			margin: 30rpx 30rpx 30rpx 100rpx;
+			width: 100%;
+			display: flex;
+			background-color: #FFFFFF;
+		}
+
+
+
+	}
+
+	.evaluate {
+		margin: 24rpx 28rpx;
+		font-size: 26rpx;
+		color: #666666;
+
+	}
 </style>

+ 108 - 1
pages/common_tools/me_follow.vue

xqd
@@ -1,8 +1,115 @@
-<template>
+<template style="background: #F6F6F6;">
+	<view style="width: 100%;height: 100%;padding: 20rpx 28rpx;">
+		<u-collapse v-for="(item, index) in followList" :item-style="itemStyle" :key="index" accordion >
+			<u-collapse-item>
+				<!-- 标题 -->
+				<view slot="title" style="font-size: 30rpx;">
+					<text style="font-weight: bold;margin-right: 20rpx;">{{item.title}}</text>
+					<text style="color: #666666;">{{item.sum}}</text>
+				</view>
+				<!-- 面板内容 -->
+				<view v-for="(nitem,nindex) in item.content" style="display: flex;align-items: center;padding: 10rpx 0;">
+					<image src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/头像.png" mode="aspectFit" style="height: 68rpx;width: 68rpx;border-radius: 50%;margin-right: 20rpx;"></image>
+					<text style="font-size: 28rpx;margin: 28rpx;color: #000000;">{{nitem.name}}</text>
+					<text style="font-size: 28rpx;">{{nitem.position}}</text>
+				</view>
+			</u-collapse-item>
+		</u-collapse>
+	</view>
 </template>
 
 <script>
+	export default {
+		data() {
+			return {
+				itemStyle: {
+					marginBottom: '20rpx',
+					background: '#FFFFFF',
+					padding: '28rpx',
+					boxshadow: '0px 2px 12px 0px rgba(0, 0, 0, 0.04)',
+					borderRadius: '12px',
+				},
+				followList: [{
+					title: '关注医生',
+					sum: '',
+					content: [{
+						name: '张三',
+						position: '牙科医生'
+					}, {
+						name: '张三',
+						position: '牙科医生'
+					}, {
+						name: '张三',
+						position: '牙科医生'
+					}]
+				}, {
+					title: '服务包医生',
+					sum: '',
+					content: [{
+						name: '张三',
+						position: '牙科医生'
+					}, {
+						name: '张三',
+						position: '牙科医生'
+					}, {
+						name: '张三',
+						position: '牙科医生'
+					}]
+					
+				}, {
+					title: '关注医生',
+					sum: '',
+					content: [{
+						name: '张三',
+						position: '牙科医生'
+					}, {
+						name: '张三',
+						position: '牙科医生'
+					}, {
+						name: '张三',
+						position: '牙科医生'
+					}]
+					
+				}, {
+					title: '关注医生',
+					sum: '',
+					content: [{
+						name: '张三',
+						position: '牙科医生'
+					}, {
+						name: '张三',
+						position: '牙科医生'
+					}, {
+						name: '张三',
+						position: '牙科医生'
+					}]
+					
+				}]
+			}
+		},
+		methods: {
+			//关注
+			follow(e) {
+				console.log(this.tcTeam[e.currentTarget.dataset.index])
+
+			}
+		},
+		onShow() {
+			for (var a = 0; a < this.followList.length; a++) {
+				// console.log(this.followList[a]);
+				this.followList[a].sum = this.followList[a].content.length
+				console.log(this.followList[a].sum)
+			}
+		}
+	}
 </script>
 
 <style>
+	.list {
+		margin-bottom: 20rpx;
+		background-color: #FFFFFF;
+		padding: 28rpx;
+		box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.04);
+		border-radius: 12px;
+	}
 </style>

+ 65 - 1
pages/common_tools/me_order/me_order.vue

xqd
@@ -1,8 +1,72 @@
-<template>
+<template style="background: #F6F6F6;">
+	<view style="height: 100%;width: 100%;padding: 20rpx 28rpx;">
+		<view v-for="item,index in orderList" :key="index" class="list" @click="list" :data-index="index">
+			<!-- 左边 -->
+			<view class="left">
+				<view style="font-size: 30rpx;font-weight: bold;margin-bottom: 20rpx;">{{item.title}}</view>
+				<view style="font-size: 26rpx;color: #999999;">{{item.describe}}</view>
+			</view>
+			<!-- 右边 -->
+			<view class="ringht">
+				<u-icon name="arrow-right" color="#C0C0C0"></u-icon>
+			</view>
+		</view>
+	</view>
 </template>
 
 <script>
+	export default {
+		data() {
+			return {
+				orderList: [{
+					title: '保单名称保单名称保单名称保单名称套餐一',
+					describe: '套餐一'
+				}, {
+					title: '保单名称保单名称套餐二',
+					describe: '套餐二'
+				}, {
+					title: '保单名称保单名称保单名称套餐三',
+					describe: '套餐三'
+				}, {
+					title: '保单名称保单名称套餐四',
+					describe: '套餐四'
+				}, {
+					title: '保单名称保单名称保单名称保单名称套餐五',
+					describe: '套餐五'
+				}]
+			}
+		},
+		methods: {
+			//关注
+			list(e) {
+				console.log(this.orderList[e.currentTarget.dataset.index])
+				uni.navigateTo({
+					url: '/pages/common_tools/me_order/order_details?title=' + this.orderList[e.currentTarget.dataset.index].title
+					// url: '/pages/customer/customer-datails?n=' + n
+				})
+			}
+		}
+	}
 </script>
 
 <style>
+	.list {
+		box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.04);
+		border-radius: 12px;
+		background: #FFFFFF;
+		margin-bottom: 20rpx;
+		display: flex;
+		justify-content: center;
+		align-items: center;
+		padding: 48rpx 28rpx;
+	}
+
+	.left {
+		width: 95%;
+		display: initial;
+	}
+
+	.ringht {
+		width: 5%;
+	}
 </style>

+ 27 - 1
pages/common_tools/me_order/order_details.vue

xqd
@@ -1,8 +1,34 @@
-<template>
+<template style="background: #F6F6F6;">
+	<view style="width: 100%;height: 100%;">
+		<view class="v">
+			<image src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/竖占位图.png" mode="aspectFit" style="width: 622rpx;height: 1030rpx;"></image>
+		</view>
+	</view>
 </template>
 
 <script>
+	export default {
+		data() {
+			return {
+				title: ''
+			}
+		},
+		methods: {
+
+		},
+		onLoad: function(option) { //option为object类型,会序列化上个页面传递的参数
+			console.log('上个页面的数据' + option.title); //打印出上个页面传递的参数。
+			this.title = option.title
+		}
+	}
 </script>
 
 <style>
+	.v {
+		margin: 28rpx;
+		padding: 36rpx;
+		border-radius: 12px;
+		box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.04);
+		background-color: #FFFFFF
+	}
 </style>