examination.vue 1.4 KB
<template>
	<view class="contentBox">
		<!-- <view style="text-align: center; padding-top: 80px;  box-sizing: border-box;">
			<image src="../../static/ic_11@2x.png" mode="" style="width:400rpx;height: 400rpx;"></image>
			<view>
				<text class="text">培训时间尚未确定,请耐心等待</text>
			</view>
		</view> -->
		<view class="" v-for="(item,index) in list" :ley="index" class="itemn">
			<view class="content">
				培训名称:{{item.work.name}}
			</view>
			<view class="content">
				培训时间:{{item.work.end_time_text}}
			</view>
			<view class="content">
				考试时间:{{item.worksessions.start_end_time_text}}
			</view>
		</view>
	
	</view>
</template>

<script>
 import request from '../../utils/request.js'
	export default {
		data() {
			return {
                list:[]
			}
		},
		onShow() {
			this.getDeatil()
		},
		methods: {
           getDeatil(){
			   request.post('/api/index/training_center',{}).then(res=>{
				   this.list=res.data.data
				   console.log(res,'ressss')
			   }).catch(err=>{
			   })
		   }
		}
	}
</script>

<style>
	.text {
		color: #969799;
		font-size: 28rpx;
	}
	.itemn{
		width: 96%;
		margin: 0 auto;
		font-size: 28rpx;
		margin-top: 20rpx;
		background-color: #fff;
		border-radius: 16rpx;
	}
	.content{
		font-size: 28rpx;
		padding: 24rpx;
		box-sizing: border-box;
	}
	.contentBox{
		min-height: 100vh;
		background-color: #F7F8FA;
		padding-top: 20rpx;
		box-sizing: border-box;
	}
</style>