Explorar o código

我的学时、详情

linhancai %!s(int64=3) %!d(string=hai) anos
pai
achega
d10fa548ce
Modificáronse 3 ficheiros con 415 adicións e 0 borrados
  1. 20 0
      pages.json
  2. 130 0
      pages2/learn/details.vue
  3. 265 0
      pages2/learn/my_learn.vue

+ 20 - 0
pages.json

@@ -417,6 +417,26 @@
 						"bounce": "none"
 					}
 				}
+			},
+			{
+				"path": "learn/my_learn",
+				"style": {
+					"navigationBarTitleText": "我的学时",
+					"app-plus": {
+						"titleNView": false, //禁用原生导航栏 
+						"bounce": "none"
+					}
+				}
+			},
+			{
+				"path": "learn/details",
+				"style": {
+					"navigationBarTitleText": "详情",
+					"app-plus": {
+						"titleNView": false, //禁用原生导航栏 
+						"bounce": "none"
+					}
+				}
 			}
 		]/*,
 		 "plugins": {

+ 130 - 0
pages2/learn/details.vue

@@ -0,0 +1,130 @@
+<template>
+	<view class="safeArea">
+		<view class="detailsWrap">
+			<view class="detailsItem" v-for="(item,index) in 3" :key="index">
+				<view class="head">
+					<view class="tap">录播</view>
+					<view class="title">这是一个节标这是一个节标题这是一个节标题这是一个节标题这是一个节标题题</view>
+				</view>
+				<u-line color="#EEEEEE" />
+				<view class="info">
+					<view class="item" v-for="item in 7">
+						<view class="imgbox"><image src="@/static/intro.png" style="width:100%" mode="heightFix"></image></view>
+						<view class="time">2021/10/25 14:25:20</view>
+					</view>
+				</view>
+				<u-line color="#EEEEEE" />
+				<view class="reason">
+					<view class="label">原因:</view>
+					<view class="val">拍照异常/时间异常</view>
+				</view>
+			</view>
+		</view>
+		<view class="btn">确认重学</view>
+	</view>
+</template>
+
+<script>
+import { mapGetters } from 'vuex';
+export default {
+	components: {
+	},
+	data() {
+		return {
+		};
+	},
+	onShow() {
+	},
+	methods: {
+	},
+	onReachBottom() {},
+	computed: { ...mapGetters(['userInfo']) }
+};
+</script>
+<style >
+page {
+	background: #EAEEF1;
+}
+</style>
+<style scoped lang="scss">
+.detailsWrap{
+	padding:8rpx 8rpx 140rpx;
+}
+.detailsItem{
+	background: #FFFFFF;
+	border-radius: 16rpx;
+	margin-bottom: 16rpx;
+	.head{
+		padding: 26rpx 24rpx;
+		display: flex;
+		font-size: 30rpx;
+		font-family: PingFang SC;
+		font-weight: bold;
+		color: #666666;
+		.tap{
+			width: 56rpx;
+			height: 28rpx;
+			line-height: 26rpx;
+			text-align: center;
+			border: 2rpx solid #666666;
+			border-radius: 8rpx;
+			font-size: 20rpx;
+			font-family: PingFang SC;
+			font-weight: 400;
+			color: #666666;
+			margin-right: 8rpx;
+			flex-shrink: 0;
+			position: relative;
+			top: 6rpx;
+		}
+	}
+	.info{
+		padding: 17rpx 24rpx;
+		display: flex;
+		flex-wrap: wrap;
+		.item{
+			width: 160rpx;
+			font-size: 20rpx;
+			font-family: PingFang SC;
+			font-weight: 500;
+			color: #666666;
+			margin: 0 8rpx 16rpx 0;
+			.imgbox{
+				width:160rpx;
+				height: 160rpx;
+				border-radius: 8px;
+				overflow: hidden;
+				margin-bottom: 7rpx;
+			}
+		}
+	}
+	.reason{
+		display: flex;
+		padding: 21rpx 24rpx;
+		font-size: 30rpx;
+		font-family: PingFang SC;
+		font-weight: 500;
+		color: #333333;
+		.label{
+			color: #666666;
+		}
+	}
+}
+.btn{
+	width: 526rpx;
+	height: 80rpx;
+	background: #007AFF;
+	border-radius: 40rpx;
+	font-size: 30rpx;
+	font-family: PingFang SC;
+	font-weight: bold;
+	color: #FFFFFF;
+	display: flex;
+	justify-content: center;
+	align-items: center;
+	position: fixed;
+	left: 50%;
+	margin-left: -263rpx;
+	bottom: 50rpx;
+}
+</style>

+ 265 - 0
pages2/learn/my_learn.vue

@@ -0,0 +1,265 @@
+<template>
+	<view class="safeArea">
+		<view style="width: 100%;text-align: center;position: fixed;height: 96rpx;z-index: 999;">
+			<u-tabs :list="list" sticky :current="current" @change="change" active-color="#333" inactive-color="#999"></u-tabs>
+		</view>
+		<view class="learnWrap">
+			<template v-if="current===0">
+				<!-- <view class="noData">您暂无相关学时审核记录哦~</view> -->
+				<view class="learnItem">
+					<view class="title">2020年二建建筑工程管理与实补这是商品名称</view>
+					<view class="status">
+						<view class="label">审核状态:</view>
+						<view class="val red">不可审核</view>
+					</view>
+					<view class="tip">
+						<view class="label">审核提示:</view>
+						<view class="val green">您的学时还未修完,请尽快完成课程学习</view>
+					</view>
+					<u-line color="#EEEEEE" />
+					<view class="btnBox">
+						<view class="btn">课程学习</view>
+					</view>
+				</view>
+				<view class="learnItem">
+					<view class="title">2020年二建建筑工程管理与实补这是商品名称</view>
+					<view class="status">
+						<view class="label">审核状态:</view>
+						<view class="val blue">不可审核</view>
+					</view>
+					<view class="tip">
+						<view class="label">审核提示:</view>
+						<view class="val green">您的学时还未修完,请尽快完成课程学习</view>
+					</view>
+				</view>
+				<view class="learnItem">
+					<view class="title">2020年二建建筑工程管理与实补这是商品名称</view>
+					<view class="status">
+						<view class="label">审核状态:</view>
+						<view class="val green">机构审核完成</view>
+					</view>
+				</view>
+				<view class="learnItem">
+					<view class="title">2020年二建建筑工程管理与实补这是商品名称</view>
+					<view class="status">
+						<view class="label">审核状态:</view>
+						<view class="val green">机构审核完成</view>
+					</view>
+					<u-line color="#EEEEEE" />
+					<view class="subTitle">这是一个考试标题</view>
+					<view class="btnBox">
+						<view class="btn">预约考试</view>
+					</view>
+				</view>
+				<view class="learnItem">
+					<view class="title">2020年二建建筑工程管理与实补这是商品名称</view>
+					<view class="status">
+						<view class="label">审核状态:</view>
+						<view class="val green">机构审核完成</view>
+					</view>
+					<u-line color="#EEEEEE" />
+					<view class="subTitle">这是一个考试标题</view>
+					<view class="btnBox">
+						<view class="btn">进入刷题</view>
+					</view>
+				</view>
+				<view class="learnItem">
+					<view class="title">2020年二建建筑工程管理与实补这是商品名称</view>
+					<view class="status">
+						<view class="label">审核状态:</view>
+						<view class="val green">机构审核完成</view>
+					</view>
+					<view class="tip">
+						<view class="label">审核提示:</view>
+						<view class="val">机构已审核通过,需等待注册中心复审后即可获得继续教育学时。审核时间约15个工作日,届时请前往官网申请证书延期。
+							<view class="link">复制官网链接</view>
+						</view>
+					</view>
+					<u-line color="#EEEEEE" />
+					<view class="btnBox">
+						<view class="btn">课程学习</view>
+					</view>
+				</view>
+				<view class="learnItem">
+					<view class="title">2020年二建建筑工程管理与实补这是商品名称</view>
+					<view class="status">
+						<view class="label">审核状态:</view>
+						<view class="val red">机构审核不通过
+							<view class="remark">有<text class="red">3节</text>需重修</view>
+						</view>
+					</view>
+					<view class="tip">
+						<view class="label">审核提示:</view>
+						<view class="val">请查看需重学记录,并及时重学对应课程,以免延误学时审核进度。
+						</view>
+					</view>
+					<u-line color="#EEEEEE" />
+					<view class="btnBox">
+						<view class="btn">课程学习</view>
+					</view>
+				</view>
+			</template>
+			<template v-if="current===1">
+				<!-- <view class="noData">您暂无相关学习凭证记录哦~</view> -->
+				<view class="learnItem">
+					<view class="title">2020年二建建筑工程管理与实补这是商品名称</view>
+					<view class="number"><text class="label">编号:</text>GZXY123456789</view>
+					<view class="btnBox">
+						<view class="btn">电子照片</view>
+						<view class="btn">下载凭证</view>
+					</view>
+				</view>
+			</template>
+		</view>
+	</view>
+</template>
+
+<script>
+import { mapGetters } from 'vuex';
+export default {
+	components: {
+	},
+	data() {
+		return {
+			current: 0,
+			list: [
+				{
+					name: '学时审核'
+				}, 
+				{
+					name: '学习凭证'
+				}
+			]
+		};
+	},
+	onShow() {
+	},
+	methods: {
+		change(index){
+			this.current = index;
+		}
+	},
+	onReachBottom() {},
+	computed: { ...mapGetters(['userInfo']) }
+};
+</script>
+<style >
+	page {
+			background: #EAEEF1;
+		}
+</style>
+<style scoped lang="scss">
+.learnWrap{
+	padding:98rpx 8rpx 8rpx;
+}
+.noData{
+	font-size: 32rpx;
+	font-family: PingFang SC;
+	font-weight: 500;
+	color: #999999;
+	margin: 160rpx auto;
+	text-align:center;
+}
+.learnItem{
+	background: #FFFFFF;
+	border-radius: 16rpx;
+	padding: 32rpx 32rpx 0;
+	font-family: PingFang SC;
+	margin-bottom: 16rpx;
+	overflow:hidden;
+	.red{
+		color:#FF3B30!important;
+	}
+	.blue{
+		color:#007AFF!important;
+	}
+	.green{
+		color:#34C759!important;
+	}
+	.title{
+		font-size: 30rpx;
+		font-weight: bold;
+		color: #333333;
+		margin-bottom: 68rpx;
+	}
+	.status{
+		font-size: 24rpx;
+		font-weight: 500;
+		color: #666666;
+		margin-bottom: 26rpx;
+		display:flex;
+	}
+	.number{
+		font-size: 24rpx;
+		font-weight: 500;
+		color: #666666;
+		margin-bottom: 26rpx;
+		font-size: 30rpx;
+		font-weight: bold;
+		font-family: PingFang SC;
+		color:#333;
+		.label{
+			font-size: 24rpx;
+			font-weight: 500;
+			color: #666666;
+		}
+	}
+	.val{
+		font-size: 30rpx;
+		font-weight: bold;
+		color:#333;
+		.remark{
+			font-size: 24rpx;
+			font-family: PingFang SC;
+			font-weight: 500;
+			color: #666666;
+		}
+		.link{
+			font-size: 30rpx;
+			font-family: PingFang SC;
+			font-weight: 500;
+			text-decoration: underline;
+			color: #007AFF;
+			margin-top: 36rpx;
+			text-decoration: underline;
+		}
+	}
+	.tip{
+		font-size: 24rpx;
+		font-weight: 500;
+		color: #666666;
+		margin: 30rpx 0 27rpx;
+		display:flex;
+	}
+	.label{
+		width: 120rpx;
+		flex-shrink: 0;
+		margin-top: 5rpx;
+	}
+	.subTitle{
+		font-size: 30rpx;
+		font-weight: bold;
+		color: #333333;
+		margin: 15rpx 0 40rpx;
+	}
+	.btnBox{
+		height: 88rpx;
+		display: flex;
+		align-items: center;
+		justify-content: flex-end;
+		.btn{
+			width: 224rpx;
+			height: 56rpx;
+			line-height: 56rpx;
+			text-align: center;
+			background: #007AFF;
+			border-radius: 16rpx;
+			font-size: 30rpx;
+			font-family: PingFang SC;
+			font-weight: 500;
+			color: #FFFFFF;
+			margin-left: 16rpx;
+		}
+	}
+}
+</style>