wkyy 1 年間 前
コミット
ad1fb1ab66

+ 1 - 1
pages/youth/classSchedule/classSchedule.vue

@@ -45,7 +45,7 @@
 		</view> -->
 		<view class="main">
 			<view class="class-box" v-for="(item,index) in courseList" :key="index"
-				@click="gotoUrl('pages/parents/classSchedule/classScheduleDetails?id=' + item.sheetId)">
+				@click="gotoUrl('pages/youth/classSchedule/classScheduleDetails?id=' + item.sheetId)">
 				<view class="picture">
 					<img v-if="item.posterUrl!=null" :src="item.posterUrl" alt="">
 					<img v-else src="../../../assets/img/classschedule.png" alt="">

+ 1 - 1
pages/youth/classSchedule/classScheduleDetails.vue

@@ -19,7 +19,7 @@
 				<u-cell-item title="学员总数" :value="detail.studentCount+'人'" :arrow="false">
 				</u-cell-item>
 				<u-cell-item class="teacher" title="任课老师" :value="detail.teacherNames"
-					@click="gotoUrl('pages/parents/teacherHomepage/teacherHomepage?id=' + detail.courseTeachers)"></u-cell-item>
+					@click="gotoUrl('pages/youth/teacherHomepage/teacherHomepage?id=' + detail.courseTeachers)"></u-cell-item>
 			</u-cell-group>
 		</view>
 

+ 4 - 4
pages/youth/course/course.vue

@@ -52,7 +52,7 @@
 						</view>
 					</view>
 					<!-- <view class="infos-box" v-for="(item,index) in reCoursesList" :key="index"
-						@click="gotoUrl('pages/parents/course/courseDetails?id='+item.course_id+'&classId='+item.class_id)">
+						@click="gotoUrl('pages/youth/course/courseDetails?id='+item.course_id+'&classId='+item.class_id)">
 						<view class="infos">
 							<view class="name">
 								{{item.className}}
@@ -126,12 +126,12 @@
 		methods: {
 			toSearchResultById(item) {
 				uni.navigateTo({
-					url: '/pages/parents/search/searchResult?id=' + item.id
+					url: '/pages/youth/search/searchResult?id=' + item.id
 				})
 			},
 			toTeacherHomepage(item) {
 				uni.navigateTo({
-					url: '/pages/parents/teacherHomepage/teacherHomepage?id=' + item.employeeId
+					url: '/pages/youth/teacherHomepage/teacherHomepage?id=' + item.employeeId
 				})
 			},
 			getCourseBaseListBySortId(courseSortId) {
@@ -170,7 +170,7 @@
 			},
 			toSearchResult() {
 				uni.navigateTo({
-					url: '/pages/parents/search/searchResult'
+					url: '/pages/youth/search/searchResult'
 				})
 			},
 			myLoadmore() {

+ 3 - 3
pages/youth/course/courseDetails.vue

@@ -68,7 +68,7 @@
 				</view>
 				<view class="teacher-card">
 					<view class="item"
-						@click="gotoUrl('pages/parents/teacherHomepage/teacherHomepage?id=' + classDetail.courseTeachers)">
+						@click="gotoUrl('pages/youth/teacherHomepage/teacherHomepage?id=' + classDetail.courseTeachers)">
 						<view class="photo">
 							<u-avatar class="avatar"
 								:src="classDetail.teachersHeadPhoto!=null ? 
@@ -322,13 +322,13 @@
 					this.$refs.uToast.show({
 						title: '请先添加子女',
 						type: 'warning',
-						url: '/pages/parents/mine/addChildInformation'
+						url: '/pages/youth/mine/addChildInformation'
 					})
 				}
 			},
 			toShoppingCar() {
 				uni.redirectTo({
-					url: '/pages/parents/course/shoppingCar'
+					url: '/pages/youth/course/shoppingCar'
 				});
 			},
 			addShoppingCart() {

+ 2 - 2
pages/youth/course/payResult.vue

@@ -35,12 +35,12 @@
 			},
 			toHome() {
 				uni.redirectTo({
-					url: '/pages/parents/homePage/homePage'
+					url: '/pages/youth/homePage/homePage'
 				});
 			},
 			toPaymentRecord() {
 				uni.navigateTo({
-					url: '/pages/parents/course/paymentRecords'
+					url: '/pages/youth/course/paymentRecords'
 				})
 			},
 		}

+ 1 - 1
pages/youth/course/paymentDetail.vue

@@ -243,7 +243,7 @@
 		methods: {
 			toViewBill() {
 				uni.navigateTo({
-					url: '/pages/parents/course/viewBill?id=' + this.detail.buyId
+					url: '/pages/youth/course/viewBill?id=' + this.detail.buyId
 				})
 			},
 			getLoadMyBuyLog() {

+ 1 - 1
pages/youth/course/paymentRecords.vue

@@ -30,7 +30,7 @@
 			
 			
 			<view class="item" v-for="(item,index) in paymentList" :key="index"
-				@click="gotoUrl('pages/parents/course/paymentDetail?id=' + item.billNum + '&studentId=' + item.studentId)">
+				@click="gotoUrl('pages/youth/course/paymentDetail?id=' + item.billNum + '&studentId=' + item.studentId)">
 				<view class="date">
 					{{item.buyTime}}
 				</view>

+ 1 - 1
pages/youth/course/shoppingCar.vue

@@ -356,7 +356,7 @@
 				
 					uni.hideLoading();
 					uni.navigateTo({
-						url: '/pages/parents/course/confirmOrder?id=' + id
+						url: '/pages/youth/course/confirmOrder?id=' + id
 					})
 				}).catch(error => {
 					uni.showToast({

+ 1 - 1
pages/youth/course/viewBill.vue

@@ -107,7 +107,7 @@
 			},
 			toPrintBill() {
 				uni.navigateTo({
-					url: '/pages/parents/course/printBill?id=' + this.billInfo.buyId
+					url: '/pages/youth/course/printBill?id=' + this.billInfo.buyId
 				})
 			}
 		}

+ 7 - 7
pages/youth/homePage/homePage.vue

@@ -118,7 +118,7 @@
 			</view>
 			<view class="course-infos">
 				<view class="info-box" v-for="(item,index) in courseList" :key="index"
-					@click="gotoUrl('pages/parents/classSchedule/classScheduleDetails?id=' + item.sheetId)">
+					@click="gotoUrl('pages/youth/classSchedule/classScheduleDetails?id=' + item.sheetId)">
 					<view class="position today" v-if="item.courseDate == day">
 					</view>
@@ -178,7 +178,7 @@
 			</view>
 
 			<view class="infos-box" v-for="(item,index) in reCoursesList" :key="index"
-				@click="gotoUrl('pages/parents/course/courseDetails?id='+item.course_id+'&classId='+item.class_id)">
+				@click="gotoUrl('pages/youth/course/courseDetails?id='+item.course_id+'&classId='+item.class_id)">
 				<view class="picture" v-if="item.posterUrl != null">
 					<img :src="item.posterUrl" alt="">
 				</view>
@@ -349,7 +349,7 @@
 			toClassSchedule() {
 				if(this.studentId) {
 					uni.navigateTo({
-						url: '/pages/parents/classSchedule/classSchedule'
+						url: '/pages/youth/classSchedule/classSchedule'
 					})
 				} else{
 					uni.showToast({
@@ -361,7 +361,7 @@
 			toSickNote() {
 				if(this.studentId) {
 					uni.navigateTo({
-						url: '/pages/parents/sickNote/sickNote'
+						url: '/pages/youth/sickNote/sickNote'
 					})
 				} else{
 					uni.showToast({
@@ -373,7 +373,7 @@
 			toMyCourses() {
 				if(this.studentId) {
 					uni.navigateTo({
-						url: '/pages/parents/mine/myCourses'
+						url: '/pages/youth/mine/myCourses'
 					})
 				} else{
 					uni.showToast({
@@ -385,7 +385,7 @@
 			toPaymentRecord() {
 				if(this.studentId) {
 					uni.navigateTo({
-						url: '/pages/parents/course/paymentRecords'
+						url: '/pages/youth/course/paymentRecords'
 					})
 				} else{
 					uni.showToast({
@@ -396,7 +396,7 @@
 			},
 			toRelatedChildren() {
 				uni.navigateTo({
-					url: '/pages/parents/mine/relatedChildren'
+					url: '/pages/youth/mine/relatedChildren'
 				})
 			},
 			getFormatDate(date) {

+ 2 - 2
pages/youth/login/login.vue

@@ -129,7 +129,7 @@
 						this.carhelp.setPersonInfoPlus(res.data.data);
 						
 						uni.redirectTo({
-							url: '/pages/parents/homePage/homePage'
+							url: '/pages/youth/homePage/homePage'
 						})
 					} else {
 						this.carhelp.logoff()
@@ -235,7 +235,7 @@
 					this.carhelp.setToken(token);
 					this.carhelp.setPersonInfo(response.data.regUser);
 					uni.redirectTo({
-						url: '/pages/parents/homePage/homePage'
+						url: '/pages/youth/homePage/homePage'
 					})
 				}).catch(error => {
 					uni.showToast({

+ 1 - 1
pages/youth/mine/changePhoneNumber/changePhoneNumber.vue

@@ -54,7 +54,7 @@
 				mineApi.changePhone(this.form).then((response) => {
 					uni.hideLoading();
 					uni.navigateTo({
-						url: '/pages/parents/mine/changePhoneNumber/changeResult'
+						url: '/pages/youth/mine/changePhoneNumber/changeResult'
 					})
 				}).catch(error => {
 					uni.showToast({

+ 1 - 1
pages/youth/mine/changePhoneNumber/changeResult.vue

@@ -17,7 +17,7 @@
 				  </view>
 			   </view>
 		</view>
-		<button class="login" @click="gotoUrl('pages/parents/login/login')">立即登录</button>
+		<button class="login" @click="gotoUrl('pages/youth/login/login')">立即登录</button>
 	</view>
 </template>
 

+ 1 - 1
pages/youth/mine/classRecord.vue

@@ -83,7 +83,7 @@
 			toDetail(item) {
 				if(item.id) {
 					uni.navigateTo({
-						url: '/pages/parents/classSchedule/classScheduleDetails?id='+item.id
+						url: '/pages/youth/classSchedule/classScheduleDetails?id='+item.id
 					})
 				}
 			},

+ 1 - 1
pages/youth/mine/logout.vue

@@ -49,7 +49,7 @@
 					
 					this.carhelp.logoff();
 					uni.reLaunch({
-						url: '/pages/parents/login/login'
+						url: '/pages/youth/login/login'
 					})
 				}).catch(error => {
 					uni.showToast({

+ 588 - 588
pages/youth/mine/mine.vue

@@ -1,588 +1,588 @@
-<template>
-	<view>
-		<view class="background">
-			<view class="head" @click="toEditProfile">
-				<view class="photo">
-					<u-avatar class="avatar"
-						:src="form.headImg != null ? form.headImg : '../../assets/img/head.png'" size="112">
-					</u-avatar>
-				</view>
-				<view class="infos">
-					<view class="name">
-						{{form.nickName}}
-					</view>
-					<view class="modification">
-						点击修改个人信息
-					</view>
-				</view>
-				
-				
-			</view>
-			<view class="class-times">
			<view class="box">
				<view class="times">
					36节
				</view>
				<view class="text">
					购买课次
				</view>
			</view>
			<u-line direction="col" color="rgba(232, 232, 232, 1)" length="80rpx" margin="auto 0"></u-line>
			<view class="box">
				<view class="times">
					4节
				</view>
				<view class="text">
					赠送课次
				</view>
			</view>
		</view>
-		</view>
-		
-
-		<!-- <view class="my-children">
-			<view class="top">
-				<view class="text">
-					我的子女
-				</view>
-				<view class="add" @click="toAddChildInformation()">
-					添加
-				</view>
-			</view>
-
-
-			<view class="children" v-if="studentList.length != 0">
-				<view class="check-box" v-for="(item,index) in studentList" :key="item.studentId">
-					<view class="photo" @click="toAddChildInformation(item)">
-						<u-avatar class="avatar"
-							:src="item.headPhoto != null ? item.headPhoto : '../../assets/img/head.png'" size="80">
-						</u-avatar>
-					</view>
-					<view class="infos" @click="toAddChildInformation(item)">
-						<view class="name">
-							{{item.studentName}}
-						</view>
-						<view class="age">
-							{{item.age}}岁
-						</view>
-					</view>
-					<view class="radio">
-						<u-radio-group v-model="studentId" size="40rpx">
-							<u-radio @change="radioChange" :key="item.studentId" :name="item.studentId"></u-radio>
-						</u-radio-group>
-					</view>
-				</view>
-			</view>
-
-		</view> -->
-
-		
-
-		<view class="option-group">
-			<!-- <view class="item">
-				<view class="title">
-					<view class="icon">
-						<img src="../../../assets/img/riLine-user-smile-line@1x.png" alt="">
-					</view>
-					<view class="text">
-						人脸信息采集
-					</view>
-				</view>
-
-				<view class="value">
-					<view class="text">
-					</view>
-					<view class="icon">
-						<u-icon name="arrow-right" color="#cccccc"></u-icon>
-					</view>
-				</view>
-			</view> -->
-			<view class="item" @click="gotoUrl('pages/parents/mine/changePhoneNumber/changePhoneNumber')">
-				<view class="title">
-					<view class="icon">
-						<img src="../../../assets/img/riLine-smartphone-line@1x(1).png" alt="">
-					</view>
-					<view class="text">
-						绑定手机
-					</view>
-				</view>
-
-				<view class="value">
-					<view class="text">
-						{{form.phone.slice(0,3) + '****' + form.phone.slice(-4)}}
-					</view>
-					<view class="icon">
-						<u-icon name="arrow-right" color="#cccccc"></u-icon>
-					</view>
-				</view>
-			</view>
-			<view class="item" @click="gotoUrl('pages/parents/mine/optionsList')">
-				<view class="title">
-					<view class="icon">
-						<img src="../../../assets/img/riLine-file-edit-line@1x.png" alt="">
-					</view>
-					<view class="text">
-						意见反馈
-					</view>
-				</view>
-
-				<view class="value">
-					<view class="icon">
-						<u-icon name="arrow-right" color="#cccccc"></u-icon>
-					</view>
-				</view>
-			</view>
-			<view class="item">
-				<view class="title">
-					<view class="icon">
-						<img src="../../../assets/img/riLine-customer-service-2-line@1x.png" alt="">
-					</view>
-					<view class="text">
-						联系我们
-					</view>
-				</view>
-
-				<view class="value">
-					<view class="text">
-						0716-8888888
-					</view>
-					<view class="icon">
-						<u-icon name="arrow-right" color="#cccccc"></u-icon>
-					</view>
-				</view>
-			</view>
-			<view class="item" @click="gotoUrl('pages/parents/mine/logout')">
-				<view class="title">
-					<view class="icon">
-						<img src="../../../assets/img/riLine-spam-3-line@1x.png" alt="">
-					</view>
-					<view class="text">
-						注销账号
-					</view>
-				</view>
-
-				<view class="value">
-					<view class="text">
-						注销后无法恢复,请谨慎操作
-					</view>
-					<view class="icon">
-						<u-icon name="arrow-right" color="#cccccc"></u-icon>
-					</view>
-				</view>
-			</view>
-
-			<view class="item" @click="signOut">
-				<view class="title">
-					<view class="icon">
-						<img src="../../../assets/img/riLine-logout-box-r-line@1x(1).png" alt="">
-					</view>
-					<view class="text">
-						退出账号
-					</view>
-				</view>
-
-				<view class="value">
-					<view class="text">
-
-					</view>
-					<view class="icon">
-						<u-icon name="arrow-right" color="#cccccc"></u-icon>
-					</view>
-				</view>
-			</view>
-			<u-modal v-model="show" @confirm="confirm" confirm-color="#FF3D00" :show-cancel-button="true"
-				ref="uModal" :asyncClose="true" :title="title" :content="content"
-				:content-style="{color: '#333333'}"></u-modal>
-
-		</view>
-
-
-		<YouthTabbar :current="3" ref="tabbarMain"></YouthTabbar>
-	</view>
-</template>
-
-<script>
-	import * as mineApi from '@/apis/youth/mine.js'
-	import * as loginApi from '@/apis/login.js'
-	import * as API from '@/apis/index.js'
-	import YouthTabbar from '@/components/YouthTabbar.vue'
-
-	export default {
-		components: {
-			YouthTabbar
-		},
-		data() {
-			return {
-				form: {
-					id: '',
-					headImg: '',
-					nickName: '',
-					phone: ''
-				},
-				show: false,
-				title: '退出账号',
-				content: '是否退出当前账号?',
-				studentList: [],
-				studentId: '',
-			}
-		},
-		onShow() {
-			this.getParentsInfo();
-			this.getStudentList();
-		},
-		onReady() {
-			if(this.carhelp.getStudentId()) {
-				this.studentId = this.carhelp.getStudentId().studentId;
-			} 
-		},
-		methods: {
-			radioChange(e) {
-				this.carhelp.setStudentId({studentId: e});
-				this.studentId = e;
-			},
-			toAddChildInformation(item) {
-				if(this.form.id) {
-					if(item) {
-						uni.navigateTo({
-							url: '/pages/parents/mine/addChildInformation?id=' + item.studentId
-						})
-					} else {
-						uni.navigateTo({
-							url: '/pages/parents/mine/addChildInformation'
-						})
-					}
-				}else {
-					uni.navigateTo({
-						url: '/pages/parents/login/login'
-					})
-				}
-				
-			},
-			getAge(str) {
-				var r = str.match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/);
-				if (r == null) return false;
-				var d = new Date(r[1], r[3] - 1, r[4]);
-				if (d.getFullYear() == r[1] && (d.getMonth() + 1) == r[3] && d.getDate() == r[4]) {
-					var date = new Date();
-					var Y = date.getFullYear() - r[1];
-					var M = date.getMonth() + 1 - r[3];
-					var D = date.getDate();
-					if (parseInt(D) - parseInt(r[4]) < 0) {
-						M--;
-						if (M < 0) {
-							Y--;
-							M = 11;
-						}
-					}
-					if (M < 0) {
-						Y--;
-						M = 11;
-					}
-					if(Y != 0 && M != 0) {
-						return (Y + "岁" + M + "个月");
-					}else if(Y != 0 && M == 0) {
-						return (Y + "岁");
-					}else {
-						return (M + "个月");
-					}
-				}
-				return ("输入的日期格式错误!");
-			},
-			getParentsInfo() {
-				uni.showLoading({
-					title: "加载中",
-					mask: true,
-				})
-				loginApi.findByOpenId({
-					openId: this.carhelp.getOpenId()
-				}).then((response) => {
-					uni.hideLoading();
-					this.form = response.data.regUser;
-				}).catch(error => {
-					uni.showToast({
-						title: error,
-						icon: "none"
-					})
-				})
-			},
-			getStudentList() {
-				uni.showLoading({
-					title: "加载中",
-					mask: true,
-				})
-				mineApi.studentList().then((res) => {
-					uni.hideLoading();
-					this.studentList = res.data.studentList;
-					if(this.studentList.length == 1) {
-						this.carhelp.setStudentId({studentId: this.studentList[0].studentId});
-					}
-				}).catch(error => {
-					uni.showToast({
-						title: error,
-						icon: "none"
-					})
-				})
-			},
-			signOut() {
-				this.show = true;
-			},
-			confirm() {
-				uni.showLoading({
-					title: "加载中",
-					mask: true,
-				})
-				API.logout().then((res) => {
-					uni.hideLoading();
-					this.show = false;
-					this.carhelp.logoff()
-					uni.reLaunch({
-						url: '/pages/parents/login/login'
-					})
-				}).catch(error => {
-					uni.showToast({
-						title: error,
-						icon: "none"
-					})
-				})
-			},
-			toEditProfile() {
-				if (this.form.id) {
-					uni.navigateTo({
-						url: '/pages/parents/mine/editProfile'
-					})
-				} else{
-					uni.navigateTo({
-						url: '/pages/parents/login/login'
-					})
-				}
-			},
-		}
-	}
-</script>
-
-<style lang="scss" scoped>
-	.background{
-		height: 500rpx;
-		background: linear-gradient(180.17deg, rgba(123,217,224,1) 0.45%,rgba(13,186,199,0) 101.25%);
-	}
-	.head {
-		padding: 48rpx 40rpx;
-		display: flex;
-		align-items: center;
-		
-
-		.photo {
-			width: 120rpx;
-			height: 120rpx;
-			border-radius: 100rpx;
-			border: 4rpx solid rgba(255, 255, 255, 1);
-			overflow: hidden;
-
-			img {
-				width: 100%;
-				height: 100%;
-			}
-		}
-
-		.infos {
-			margin-left: 32rpx;
-
-			.name {
-				color: rgba(51, 51, 51, 1);
-				font-size: 20px;
-				line-height: 20px;
-				font-weight: bold;
-			}
-
-			.modification {
-				color: rgba(119, 119, 119, 1);
-				font-size: 24rpx;
-				line-height: 24rpx;
-				margin-top: 16rpx;
-			}
-		}
-	}
-
-
-	.my-children {
-		margin: 0 32rpx;
-		padding: 32rpx 24rpx;
-		border-radius: 12px;
-		background: linear-gradient(90deg, rgba(13, 186, 199, 1) 0%, rgba(37, 209, 146, 1) 100%);
-
-		.top {
-			display: flex;
-			justify-content: space-between;
-
-			.text {
-				color: rgba(255, 255, 255, 1);
-				font-size: 18px;
-			}
-
-			.add {
-				width: 120rpx;
-				line-height: 28px;
-				border-radius: 50px;
-				background-color: rgba(255, 174, 0, 1);
-				color: rgba(255, 255, 255, 1);
-				font-size: 28rpx;
-				text-align: center;
-			}
-		}
-
-		.children {
-			margin-top: 12px;
-			border-radius: 16rpx;
-			background-color: rgba(255, 255, 255, 1);
-			padding: 24rpx 24rpx 8rpx 24rpx;
-			display: -webkit-box;
-
-			overflow-x: auto;
-
-			position: relative;
-
-			.check-box {
-				width: 48%;
-				padding: 16rpx 40rpx 16rpx 16rpx;
-				border-radius: 100rpx;
-				background-color: rgba(13, 186, 199, 0.1);
-				border: 1px solid rgba(13, 186, 199, 0.5);
-				display: flex;
-				position: relative;
-				margin-right: 24rpx;
-				margin-bottom: 16rpx;
-
-				.photo {
-					width: 80rpx;
-					height: 80rpx;
-					border-radius: 100rpx;
-					overflow: hidden;
-
-					img {
-						width: 100%;
-						height: 100%;
-					}
-				}
-
-				@media screen and(max-width:320px) {
-					.photo {
-						width: 70rpx;
-						height: 70rpx;
-						border-radius: 999rpx;
-						overflow: hidden;
-
-						img {
-							width: 100%;
-							height: 100%;
-							vertical-align: middle;
-						}
-					}
-				}
-
-				.infos {
-					margin-left: 16rpx;
-
-					.name {
-						width: 96rpx;
-						overflow: hidden;
-						white-space: nowrap;
-						text-overflow: ellipsis;
-						color: rgba(51, 51, 51, 1);
-						font-size: 32rpx;
-						line-height: 48rpx;
-					}
-
-					.age {
-						color: rgba(119, 119, 119, 1);
-						font-size: 24rpx;
-						line-height: 28rpx;
-					}
-				}
-
-				.radio {
-					position: absolute;
-					bottom: -2rpx;
-					right: -40rpx;
-					
-
-					/deep/.uni-radio-input {
-						width: 40rpx;
-						height: 40rpx;
-						background-color: rgba(221, 241, 242, 1);
-					}
-
-					/deep/.uni-radio-input-checked {
-						background-color: #43C9D3 !important;
-						border-color: #43C9D3 !important;
-					}
-
-				}
-				
-				/deep/.u-radio__icon-wrap {
-					background-color: rgba(221, 241, 242, 1);
-				}
-			}
-
-			@media screen and(max-width:320px) {
-				.check-box {
-					margin-right: 16rpx;
-				}
-			}
-		}
-
-		.children::-webkit-scrollbar {
-			display: none;
-		}
-	}
-
-	.class-times {
-		border-radius: 12px;
-		background-color: rgba(255, 255, 255, 1);
-		display: flex;
-		padding: 40rpx 0;
-		margin: 0 32rpx 24rpx;
-
-		.box {
-			width: 50%;
-			text-align: center;
-
-			.times {
-				color: rgba(51, 51, 51, 1);
-				font-size: 20px;
-				font-weight: bold;
-
-			}
-
-			.text {
-				color: rgba(119, 119, 119, 1);
-				font-size: 14px;
-				margin-top: 8px;
-			}
-		}
-	}
-
-	.option-group {
-		margin: -80rpx 32rpx 0;
-		background-color: #fff;
-		border-radius: 12px;
-
-		.item {
-			display: flex;
-			justify-content: space-between;
-			align-items: center;
-			padding: 24rpx;
-			border-bottom: 1px solid rgba(244, 244, 244, 1);
-
-			.title {
-				display: flex;
-				align-items: center;
-
-				img {
-					vertical-align: middle;
-				}
-
-				.text {
-					margin-left: 16rpx;
-					color: rgba(119, 119, 119, 1);
-					font-size: 28rpx
-				}
-			}
-
-			.value {
-				display: flex;
-				align-items: center;
-
-				.icon {
-					margin-left: 16rpx;
-				}
-
-				.text {
-					color: rgba(119, 119, 119, 1);
-					font-size: 24rpx;
-				}
-			}
-		}
-	}
-</style>
+<template>
+	<view>
+		<view class="background">
+			<view class="head" @click="toEditProfile">
+				<view class="photo">
+					<u-avatar class="avatar"
+						:src="form.headImg != null ? form.headImg : '../../assets/img/head.png'" size="112">
+					</u-avatar>
+				</view>
+				<view class="infos">
+					<view class="name">
+						{{form.nickName}}
+					</view>
+					<view class="modification">
+						点击修改个人信息
+					</view>
+				</view>
+				
+				
+			</view>
+			<view class="class-times">			<view class="box">				<view class="times">					36节				</view>				<view class="text">					购买课次				</view>			</view>			<u-line direction="col" color="rgba(232, 232, 232, 1)" length="80rpx" margin="auto 0"></u-line>			<view class="box">				<view class="times">					4节				</view>				<view class="text">					赠送课次				</view>			</view>		</view>
+		</view>
+		
+
+		<!-- <view class="my-children">
+			<view class="top">
+				<view class="text">
+					我的子女
+				</view>
+				<view class="add" @click="toAddChildInformation()">
+					添加
+				</view>
+			</view>
+
+
+			<view class="children" v-if="studentList.length != 0">
+				<view class="check-box" v-for="(item,index) in studentList" :key="item.studentId">
+					<view class="photo" @click="toAddChildInformation(item)">
+						<u-avatar class="avatar"
+							:src="item.headPhoto != null ? item.headPhoto : '../../assets/img/head.png'" size="80">
+						</u-avatar>
+					</view>
+					<view class="infos" @click="toAddChildInformation(item)">
+						<view class="name">
+							{{item.studentName}}
+						</view>
+						<view class="age">
+							{{item.age}}岁
+						</view>
+					</view>
+					<view class="radio">
+						<u-radio-group v-model="studentId" size="40rpx">
+							<u-radio @change="radioChange" :key="item.studentId" :name="item.studentId"></u-radio>
+						</u-radio-group>
+					</view>
+				</view>
+			</view>
+
+		</view> -->
+
+		
+
+		<view class="option-group">
+			<!-- <view class="item">
+				<view class="title">
+					<view class="icon">
+						<img src="../../../assets/img/riLine-user-smile-line@1x.png" alt="">
+					</view>
+					<view class="text">
+						人脸信息采集
+					</view>
+				</view>
+
+				<view class="value">
+					<view class="text">
+					</view>
+					<view class="icon">
+						<u-icon name="arrow-right" color="#cccccc"></u-icon>
+					</view>
+				</view>
+			</view> -->
+			<view class="item" @click="gotoUrl('pages/youth/mine/changePhoneNumber/changePhoneNumber')">
+				<view class="title">
+					<view class="icon">
+						<img src="../../../assets/img/riLine-smartphone-line@1x(1).png" alt="">
+					</view>
+					<view class="text">
+						绑定手机
+					</view>
+				</view>
+
+				<view class="value">
+					<view class="text">
+						{{form.phone.slice(0,3) + '****' + form.phone.slice(-4)}}
+					</view>
+					<view class="icon">
+						<u-icon name="arrow-right" color="#cccccc"></u-icon>
+					</view>
+				</view>
+			</view>
+			<view class="item" @click="gotoUrl('pages/youth/mine/optionsList')">
+				<view class="title">
+					<view class="icon">
+						<img src="../../../assets/img/riLine-file-edit-line@1x.png" alt="">
+					</view>
+					<view class="text">
+						意见反馈
+					</view>
+				</view>
+
+				<view class="value">
+					<view class="icon">
+						<u-icon name="arrow-right" color="#cccccc"></u-icon>
+					</view>
+				</view>
+			</view>
+			<view class="item">
+				<view class="title">
+					<view class="icon">
+						<img src="../../../assets/img/riLine-customer-service-2-line@1x.png" alt="">
+					</view>
+					<view class="text">
+						联系我们
+					</view>
+				</view>
+
+				<view class="value">
+					<view class="text">
+						0716-8888888
+					</view>
+					<view class="icon">
+						<u-icon name="arrow-right" color="#cccccc"></u-icon>
+					</view>
+				</view>
+			</view>
+			<view class="item" @click="gotoUrl('pages/youth/mine/logout')">
+				<view class="title">
+					<view class="icon">
+						<img src="../../../assets/img/riLine-spam-3-line@1x.png" alt="">
+					</view>
+					<view class="text">
+						注销账号
+					</view>
+				</view>
+
+				<view class="value">
+					<view class="text">
+						注销后无法恢复,请谨慎操作
+					</view>
+					<view class="icon">
+						<u-icon name="arrow-right" color="#cccccc"></u-icon>
+					</view>
+				</view>
+			</view>
+
+			<view class="item" @click="signOut">
+				<view class="title">
+					<view class="icon">
+						<img src="../../../assets/img/riLine-logout-box-r-line@1x(1).png" alt="">
+					</view>
+					<view class="text">
+						退出账号
+					</view>
+				</view>
+
+				<view class="value">
+					<view class="text">
+
+					</view>
+					<view class="icon">
+						<u-icon name="arrow-right" color="#cccccc"></u-icon>
+					</view>
+				</view>
+			</view>
+			<u-modal v-model="show" @confirm="confirm" confirm-color="#FF3D00" :show-cancel-button="true"
+				ref="uModal" :asyncClose="true" :title="title" :content="content"
+				:content-style="{color: '#333333'}"></u-modal>
+
+		</view>
+
+
+		<YouthTabbar :current="3" ref="tabbarMain"></YouthTabbar>
+	</view>
+</template>
+
+<script>
+	import * as mineApi from '@/apis/youth/mine.js'
+	import * as loginApi from '@/apis/login.js'
+	import * as API from '@/apis/index.js'
+	import YouthTabbar from '@/components/YouthTabbar.vue'
+
+	export default {
+		components: {
+			YouthTabbar
+		},
+		data() {
+			return {
+				form: {
+					id: '',
+					headImg: '',
+					nickName: '',
+					phone: ''
+				},
+				show: false,
+				title: '退出账号',
+				content: '是否退出当前账号?',
+				studentList: [],
+				studentId: '',
+			}
+		},
+		onShow() {
+			this.getParentsInfo();
+			this.getStudentList();
+		},
+		onReady() {
+			if(this.carhelp.getStudentId()) {
+				this.studentId = this.carhelp.getStudentId().studentId;
+			} 
+		},
+		methods: {
+			radioChange(e) {
+				this.carhelp.setStudentId({studentId: e});
+				this.studentId = e;
+			},
+			toAddChildInformation(item) {
+				if(this.form.id) {
+					if(item) {
+						uni.navigateTo({
+							url: '/pages/youth/mine/addChildInformation?id=' + item.studentId
+						})
+					} else {
+						uni.navigateTo({
+							url: '/pages/youth/mine/addChildInformation'
+						})
+					}
+				}else {
+					uni.navigateTo({
+						url: '/pages/youth/login/login'
+					})
+				}
+				
+			},
+			getAge(str) {
+				var r = str.match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/);
+				if (r == null) return false;
+				var d = new Date(r[1], r[3] - 1, r[4]);
+				if (d.getFullYear() == r[1] && (d.getMonth() + 1) == r[3] && d.getDate() == r[4]) {
+					var date = new Date();
+					var Y = date.getFullYear() - r[1];
+					var M = date.getMonth() + 1 - r[3];
+					var D = date.getDate();
+					if (parseInt(D) - parseInt(r[4]) < 0) {
+						M--;
+						if (M < 0) {
+							Y--;
+							M = 11;
+						}
+					}
+					if (M < 0) {
+						Y--;
+						M = 11;
+					}
+					if(Y != 0 && M != 0) {
+						return (Y + "岁" + M + "个月");
+					}else if(Y != 0 && M == 0) {
+						return (Y + "岁");
+					}else {
+						return (M + "个月");
+					}
+				}
+				return ("输入的日期格式错误!");
+			},
+			getParentsInfo() {
+				uni.showLoading({
+					title: "加载中",
+					mask: true,
+				})
+				loginApi.findByOpenId({
+					openId: this.carhelp.getOpenId()
+				}).then((response) => {
+					uni.hideLoading();
+					this.form = response.data.regUser;
+				}).catch(error => {
+					uni.showToast({
+						title: error,
+						icon: "none"
+					})
+				})
+			},
+			getStudentList() {
+				uni.showLoading({
+					title: "加载中",
+					mask: true,
+				})
+				mineApi.studentList().then((res) => {
+					uni.hideLoading();
+					this.studentList = res.data.studentList;
+					if(this.studentList.length == 1) {
+						this.carhelp.setStudentId({studentId: this.studentList[0].studentId});
+					}
+				}).catch(error => {
+					uni.showToast({
+						title: error,
+						icon: "none"
+					})
+				})
+			},
+			signOut() {
+				this.show = true;
+			},
+			confirm() {
+				uni.showLoading({
+					title: "加载中",
+					mask: true,
+				})
+				API.logout().then((res) => {
+					uni.hideLoading();
+					this.show = false;
+					this.carhelp.logoff()
+					uni.reLaunch({
+						url: '/pages/youth/login/login'
+					})
+				}).catch(error => {
+					uni.showToast({
+						title: error,
+						icon: "none"
+					})
+				})
+			},
+			toEditProfile() {
+				if (this.form.id) {
+					uni.navigateTo({
+						url: '/pages/youth/mine/editProfile'
+					})
+				} else{
+					uni.navigateTo({
+						url: '/pages/youth/login/login'
+					})
+				}
+			},
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.background{
+		height: 500rpx;
+		background: linear-gradient(180.17deg, rgba(123,217,224,1) 0.45%,rgba(13,186,199,0) 101.25%);
+	}
+	.head {
+		padding: 48rpx 40rpx;
+		display: flex;
+		align-items: center;
+		
+
+		.photo {
+			width: 120rpx;
+			height: 120rpx;
+			border-radius: 100rpx;
+			border: 4rpx solid rgba(255, 255, 255, 1);
+			overflow: hidden;
+
+			img {
+				width: 100%;
+				height: 100%;
+			}
+		}
+
+		.infos {
+			margin-left: 32rpx;
+
+			.name {
+				color: rgba(51, 51, 51, 1);
+				font-size: 20px;
+				line-height: 20px;
+				font-weight: bold;
+			}
+
+			.modification {
+				color: rgba(119, 119, 119, 1);
+				font-size: 24rpx;
+				line-height: 24rpx;
+				margin-top: 16rpx;
+			}
+		}
+	}
+
+
+	.my-children {
+		margin: 0 32rpx;
+		padding: 32rpx 24rpx;
+		border-radius: 12px;
+		background: linear-gradient(90deg, rgba(13, 186, 199, 1) 0%, rgba(37, 209, 146, 1) 100%);
+
+		.top {
+			display: flex;
+			justify-content: space-between;
+
+			.text {
+				color: rgba(255, 255, 255, 1);
+				font-size: 18px;
+			}
+
+			.add {
+				width: 120rpx;
+				line-height: 28px;
+				border-radius: 50px;
+				background-color: rgba(255, 174, 0, 1);
+				color: rgba(255, 255, 255, 1);
+				font-size: 28rpx;
+				text-align: center;
+			}
+		}
+
+		.children {
+			margin-top: 12px;
+			border-radius: 16rpx;
+			background-color: rgba(255, 255, 255, 1);
+			padding: 24rpx 24rpx 8rpx 24rpx;
+			display: -webkit-box;
+
+			overflow-x: auto;
+
+			position: relative;
+
+			.check-box {
+				width: 48%;
+				padding: 16rpx 40rpx 16rpx 16rpx;
+				border-radius: 100rpx;
+				background-color: rgba(13, 186, 199, 0.1);
+				border: 1px solid rgba(13, 186, 199, 0.5);
+				display: flex;
+				position: relative;
+				margin-right: 24rpx;
+				margin-bottom: 16rpx;
+
+				.photo {
+					width: 80rpx;
+					height: 80rpx;
+					border-radius: 100rpx;
+					overflow: hidden;
+
+					img {
+						width: 100%;
+						height: 100%;
+					}
+				}
+
+				@media screen and(max-width:320px) {
+					.photo {
+						width: 70rpx;
+						height: 70rpx;
+						border-radius: 999rpx;
+						overflow: hidden;
+
+						img {
+							width: 100%;
+							height: 100%;
+							vertical-align: middle;
+						}
+					}
+				}
+
+				.infos {
+					margin-left: 16rpx;
+
+					.name {
+						width: 96rpx;
+						overflow: hidden;
+						white-space: nowrap;
+						text-overflow: ellipsis;
+						color: rgba(51, 51, 51, 1);
+						font-size: 32rpx;
+						line-height: 48rpx;
+					}
+
+					.age {
+						color: rgba(119, 119, 119, 1);
+						font-size: 24rpx;
+						line-height: 28rpx;
+					}
+				}
+
+				.radio {
+					position: absolute;
+					bottom: -2rpx;
+					right: -40rpx;
+					
+
+					/deep/.uni-radio-input {
+						width: 40rpx;
+						height: 40rpx;
+						background-color: rgba(221, 241, 242, 1);
+					}
+
+					/deep/.uni-radio-input-checked {
+						background-color: #43C9D3 !important;
+						border-color: #43C9D3 !important;
+					}
+
+				}
+				
+				/deep/.u-radio__icon-wrap {
+					background-color: rgba(221, 241, 242, 1);
+				}
+			}
+
+			@media screen and(max-width:320px) {
+				.check-box {
+					margin-right: 16rpx;
+				}
+			}
+		}
+
+		.children::-webkit-scrollbar {
+			display: none;
+		}
+	}
+
+	.class-times {
+		border-radius: 12px;
+		background-color: rgba(255, 255, 255, 1);
+		display: flex;
+		padding: 40rpx 0;
+		margin: 0 32rpx 24rpx;
+
+		.box {
+			width: 50%;
+			text-align: center;
+
+			.times {
+				color: rgba(51, 51, 51, 1);
+				font-size: 20px;
+				font-weight: bold;
+
+			}
+
+			.text {
+				color: rgba(119, 119, 119, 1);
+				font-size: 14px;
+				margin-top: 8px;
+			}
+		}
+	}
+
+	.option-group {
+		margin: -80rpx 32rpx 0;
+		background-color: #fff;
+		border-radius: 12px;
+
+		.item {
+			display: flex;
+			justify-content: space-between;
+			align-items: center;
+			padding: 24rpx;
+			border-bottom: 1px solid rgba(244, 244, 244, 1);
+
+			.title {
+				display: flex;
+				align-items: center;
+
+				img {
+					vertical-align: middle;
+				}
+
+				.text {
+					margin-left: 16rpx;
+					color: rgba(119, 119, 119, 1);
+					font-size: 28rpx
+				}
+			}
+
+			.value {
+				display: flex;
+				align-items: center;
+
+				.icon {
+					margin-left: 16rpx;
+				}
+
+				.text {
+					color: rgba(119, 119, 119, 1);
+					font-size: 24rpx;
+				}
+			}
+		}
+	}
+</style>

+ 1 - 1
pages/youth/mine/myCourses.vue

@@ -4,7 +4,7 @@
 
 		</u-navbar>
 		<view class="courses-box" v-for="(item,index) in courseList" :key="index"
-			@click="gotoUrl('pages/parents/mine/classRecord?id='+item.buyId)">
+			@click="gotoUrl('pages/youth/mine/classRecord?id='+item.buyId)">
 			<view class="photo" v-if="item.posterUrl != null">
 				<img :src="item.posterUrl" alt="">
 			</view>

+ 1 - 1
pages/youth/mine/optionsList.vue

@@ -50,7 +50,7 @@
 		methods: {
 			toOption() {
 				uni.navigateTo({
-					url: '/pages/parents/mine/opinion'
+					url: '/pages/youth/mine/opinion'
 				})
 			},
 			myLoadmore() {

+ 1 - 1
pages/youth/search/searchResult.vue

@@ -97,7 +97,7 @@
 			toCourseDetails(item) {
 				if(item.classStatus != '4') {
 					uni.navigateTo({
-						url: '/pages/parents/course/courseDetails?id='+item.course_id+'&classId='+item.class_id
+						url: '/pages/youth/course/courseDetails?id='+item.course_id+'&classId='+item.class_id
 					})
 				} else {
 					this.$refs.uToast.show({

+ 2 - 2
pages/youth/sickNote/sickNote.vue

@@ -88,12 +88,12 @@
 			},
 			toLeaveDetails(item) {
 				uni.navigateTo({
-					url: '/pages/parents/sickNote/leaveDetails?id=' + item.leaveId
+					url: '/pages/youth/sickNote/leaveDetails?id=' + item.leaveId
 				})
 			},
 			toLeave() {
 				uni.navigateTo({
-					url: '/pages/parents/sickNote/leave'
+					url: '/pages/youth/sickNote/leave'
 				})
 			},
 			myLoadmore() {

+ 1 - 1
pages/youth/teacherHomepage/teacherHomepage.vue

@@ -41,7 +41,7 @@
 				主讲课程
 			</view>
 			<view class="class-card" v-for="(item,index) in courseList" :key="index"
-				@click="gotoUrl('pages/parents/course/courseDetails?id='+item.course_id+'&classId='+item.class_id)">
+				@click="gotoUrl('pages/youth/course/courseDetails?id='+item.course_id+'&classId='+item.class_id)">
 				<view class="picture" v-if="item.posterUrl != null">
 					<img :src="item.posterUrl" alt="">
 				</view>