consequence.vue 1.2 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="itemBox" v-for="(item,index) in list" :key="index">
			{{item.name}}{{item.work.name}}{{item.status==1?'报名中':item.status==2?'通过':item.status==3?'未通过':'未审核'}}
		</view>
	</view>
</template>

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

<style>
	.text {
		color: #969799;
		font-size: 28rpx;
	}
	.itemBox{
		padding: 24rpx;
		box-sizing: border-box;
         font-size: 28rpx;
		 color: #323233;
		 background-color: #fff;
		 /* border-bottom: 2rpx solid #e7e7e7; */
	}
	.contentBox{
		min-height: 100vh;
		background-color: #F7F8FA;
	}
</style>