exam-result.vue
3.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<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>