exam-result.vue 3.1 KB
<template>
	<view class="content">
		<view class="innerBox">
			<!-- <view class="detailText">
				报名结果详情
			</view> -->
			<view class="itemBox">
				<view class="leftItem">
					项目名称:
				</view>
				<view class="rightItem">
					{{detailData.work_name}}
				</view>
			</view>
			<view class="itemBox">
				<view class="leftItem">
					考试时间:
				</view>
				<view class="rightItem">
					{{detailData.worksessions.start_end_time_text}}
				
				</view>
			</view>
			<view class="itemBox">
				<view class="leftItem">
					考试场次:
				</view>
				<view class="rightItem">
					{{detailData.worksessions.title}}
				</view>
			</view>
			
			<view class="itemBox">
				<view class="leftItem">
					考试地点:
				</view>
				<view class="rightItem">
					{{detailData.sign_up_address}}
					<view class="tips" style="color: #d3d3d3;">
						{{detailData.sign_up_address_tips}}
					</view>
				</view>
			</view>
			<view class="itemBox">
				<view class="leftItem">
					温馨提示:
				</view>
			</view>
			<view class="itemBox">
				<view class="rightItem">
					<view class="">
						<!-- 各位学员: -->
					</view>
					{{detailData.remarks}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import request from '../../utils/request.js'
	export default {
		data() {
			return {
				detailData: '',
				id: '',
			}
		},
		created() {

		},
		onLoad(options) {
			this.getId()
			this.detail()
		},
		methods: {
			detail() {
				request.post('/api/index/sign_up_detail', {
					id: this.id
				}).then(res => {
					this.detailData = res.data
				}).catch(err => {

				})
			},
			//获取id
			getId() {
				var url = location.href;
				let str = url.split('?')
				let str1 = str[1].split('=')
				uni.setStorageSync('id', str1[1])
				this.id = str1[1]
			},
		}
	}
</script>

<style>
	.content {
		padding: 32rpx;
		box-sizing: border-box;
	}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
	.detailText {
		font-size: 34rpx;
		font-weight: 600;
		color: #000;
		padding-bottom: 16rpx;
		text-align: center;
	}

	.itemBox {
		padding: 16rpx 0;
		display: flex;
	}

	.leftItem {
		width: 140rpx;
		text-align: right;
		font-size: 28rpx;
		font-weight: 600;
	}

	.rightItem {
		flex: 1;
		font-size: 28rpx;
		font-weight: 400;
		color: #323233;
		text-align: left;
	}
</style>