exam_result.vue 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. <template>
  2. <view>
  3. <view style="width: 100%;text-align: center;position: fixed;height: 96rpx;z-index: 999;">
  4. <u-tabs :list="list" sticky :current="current" @change="change" active-color="#007AFF" inactive-color="#999"></u-tabs>
  5. </view>
  6. <view class="safeArea" style="position: absolute;top: 96rpx;width: 100%;">
  7. <view v-show="current==0" class="examMain">
  8. <view class="noData" v-if="list1.length === 0">您暂无相关考试成绩和证书哦~~</view>
  9. <view v-for="(item, index) in list1" :key="index" class="examList">
  10. <view class="time">2021/10/29 09:30:00</view>
  11. <view class="main">
  12. <view class="top" @click="showDetails(item.id)">
  13. <view class="subject">2020年二建建筑工程管理与实补考标...</view>
  14. <u-icon name="arrow-right" color="#999999" size="28"></u-icon>
  15. </view>
  16. <view class="item">
  17. <view class="left">报考专业</view>
  18. <view class="right">XXXXX专业</view>
  19. </view>
  20. <view class="item">
  21. <view class="left">考试地点</view>
  22. <view class="right">广州市天河区燕岭路建设大厦3楼</view>
  23. </view>
  24. <view class="item">
  25. <view class="left">考试时间</view>
  26. <view class="right">2021/10/23 10:00 ~ 11:00</view>
  27. </view>
  28. <view class="item">
  29. <view class="left">考试成绩</view>
  30. <view class="right">99分</view>
  31. </view>
  32. <view class="item">
  33. <view class="left">考试结果</view>
  34. <view class="right pass">通过</view>
  35. <!-- <view class="right nopass">未通过</view> --><!--这是不通过样式-->
  36. </view>
  37. <view class="item">
  38. <view class="left">证书编号</view>
  39. <view class="right">XXXXXXXXXX</view>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. <!-- 弹框 考试详情-->
  46. <u-popup v-model="details_show" mode="center" class="detailsModel">
  47. <view class="detailsBox">
  48. <view class="time">2021年10月29日 09:30:00</view>
  49. <view class="boxItem border">
  50. <view class="title">报考学员信息</view>
  51. <view class="item">姓名:<text class="val">倪虹洁</text></view>
  52. <view class="item">身份证:<text class="val">44046354687236685698</text></view>
  53. <view class="item">考试身份:<text class="val">非补考学员</text></view>
  54. </view>
  55. <view class="boxItem">
  56. <view class="title">报考学员信息</view>
  57. <view class="item">考试标题:<text class="val">这是一个考试标题</text></view>
  58. <view class="item">报名开放时间:<text class="val">2021/10/23 ~ 2021/10/29</text></view>
  59. <view class="item">报考专业:<text class="val">XXXXXXX</text></view>
  60. <view class="item">考试地点:<text class="val">XXXXXXX</text></view>
  61. <view class="item">考试时间:<text class="val">XXXXXXX</text></view>
  62. <view class="item">考前培训地点:<text class="val">XXXXXXX</text></view>
  63. <view class="item">考前培训时间:<text class="val">XXXXXXX</text></view>
  64. </view>
  65. <view class="boxItem">
  66. <view class="title">考试成绩和证书信息</view>
  67. <view class="item">考试成绩:<text class="val">96分</text></view>
  68. <view class="item">考试结果:<text class="val pass">通过</text></view>
  69. <!-- <view class="item">考试结果:<text class="val nopass">未通过</text></view> -->
  70. <view class="item">证书编号:<text class="val">XXXXXXX</text></view>
  71. </view>
  72. <u-line color="#EEEEEE" />
  73. <view class="foot">
  74. <view class="btn" @click="hideModel">知道了</view>
  75. </view>
  76. </view>
  77. </u-popup>
  78. </view>
  79. </template>
  80. <script>
  81. import { mapGetters } from 'vuex';
  82. export default {
  83. data() {
  84. return {
  85. details_show: false,
  86. list: [
  87. {
  88. name: '已通过(3)'
  89. },
  90. {
  91. name: '未通过(0)'
  92. }
  93. ],
  94. list1:[1,2,3],
  95. current: 0
  96. };
  97. },
  98. onPullDownRefresh(){
  99. },
  100. onLoad(option) {
  101. },
  102. onShow() {
  103. /* if(this.current === 2 && this.$method.isLogin()){
  104. this.$refs.refMy.init();
  105. } */
  106. },
  107. onShareAppMessage(res) {
  108. var self = this;
  109. return {
  110. title: '中正',
  111. path: `/pages/index/index?inviteCode=` + userInfo == null ? '' : userInfo.userAccount
  112. };
  113. },
  114. methods: {
  115. showDetails(id){
  116. this.details_show = true
  117. },
  118. hideModel(){
  119. this.details_show = false
  120. },
  121. change(index){
  122. this.current = index;
  123. }
  124. },
  125. onReachBottom() {},
  126. // computed: { ...mapGetters(['userInfo']) }
  127. };
  128. </script>
  129. <style >
  130. page {
  131. background: #EAEEF1;
  132. }
  133. .detailsModel .u-mode-center-box{
  134. border-radius: 24rpx;
  135. }
  136. </style>
  137. <style scoped lang="scss">
  138. .noData{
  139. text-align: center;
  140. font-size: 32rpx;
  141. font-family: PingFang SC;
  142. font-weight: 500;
  143. color: #999999;
  144. margin: 160rpx 0;
  145. }
  146. .pass{
  147. color: #34C759!important;
  148. }
  149. .nopass{
  150. color: #FF3B30!important;;
  151. }
  152. .examMain{
  153. padding: 8rpx;
  154. .time{
  155. text-align: center;
  156. font-size: 24rpx;
  157. font-family: PingFang SC;
  158. font-weight: 500;
  159. color: #999999;
  160. }
  161. .main{
  162. background: #FFFFFF;
  163. border-radius: 16rpx;
  164. margin: 20rpx 0;
  165. }
  166. .top{
  167. height: 103rpx;
  168. display: flex;
  169. justify-content: center;
  170. align-items: center;
  171. border-bottom: 1px solid #EEEEEE;
  172. .subject{
  173. max-width: 514rpx;
  174. height:40rpx;
  175. font-size: 30rpx;
  176. font-family: PingFang SC;
  177. font-weight: bold;
  178. color: #007AFF;
  179. white-space:nowrap;
  180. overflow:hidden;
  181. text-overflow:ellipsis;
  182. }
  183. }
  184. .item{
  185. display: flex;
  186. justify-content: space-between;
  187. align-items: center;
  188. margin-left:31rpx;
  189. height: 80rpx;
  190. padding-right:24rpx;
  191. border-bottom: 1px solid #EEEEEE;
  192. font-size: 24rpx;
  193. font-family: PingFang SC;
  194. font-weight: 500;
  195. color: #666666;
  196. .right{
  197. font-size: 30rpx;
  198. font-family: PingFang SC;
  199. font-weight: bold;
  200. }
  201. }
  202. }
  203. .detailsBox{
  204. width: 640rpx;
  205. background: #FFFFFF;
  206. border-radius: 24rpx;
  207. .time{
  208. margin: 32rpx 0;
  209. padding: 0 37rpx;
  210. font-size: 30rpx;
  211. font-family: PingFang SC;
  212. font-weight: bold;
  213. color: #333333;
  214. }
  215. .boxItem{
  216. margin-left: 36rpx;
  217. margin-bottom: 29rpx;
  218. &.border{
  219. border-bottom: 1px solid #eee;
  220. }
  221. .title{
  222. font-size: 24rpx;
  223. font-family: PingFang SC;
  224. font-weight: 500;
  225. color: #007AFF;
  226. position: relative;
  227. &::before{
  228. content: '';
  229. width: 4rpx;
  230. height: 24rpx;
  231. background: #007AFF;
  232. border-radius: 2rpx;
  233. position: absolute;
  234. top:6rpx;
  235. left: -12rpx;
  236. }
  237. }
  238. .item{
  239. margin: 24rpx 0;
  240. font-size: 26rpx;
  241. font-family: PingFang SC;
  242. font-weight: 500;
  243. color: #999999;
  244. .val{
  245. color: #333333;
  246. }
  247. }
  248. }
  249. .foot{
  250. padding: 20rpx 40rpx;
  251. display: flex;
  252. justify-content: center;
  253. .btn{
  254. width: 526rpx;
  255. height: 80rpx;
  256. line-height: 80rpx;
  257. text-align: center;
  258. background: #F5F5F5;
  259. border-radius: 40rpx;
  260. font-size: 30rpx;
  261. font-family: PingFang SC;
  262. font-weight: bold;
  263. background: #007AFF;
  264. color: #FFFFFF;
  265. }
  266. }
  267. }
  268. .tipBox{
  269. width: 640rpx;
  270. padding: 30rpx 20rpx 40rpx;
  271. background: #FFFFFF;
  272. border-radius: 24rpx;
  273. font-family: PingFang SC;
  274. .title{
  275. text-align: center;
  276. font-size: 30rpx;
  277. font-weight: bold;
  278. color: #333333;
  279. margin-bottom: 40rpx;
  280. }
  281. .main{
  282. font-size: 30rpx;
  283. font-weight: 500;
  284. color: #666666;
  285. line-height: 48rpx;
  286. margin-bottom: 40rpx;
  287. }
  288. .btn{
  289. display: flex;
  290. justify-content: center;
  291. .btn1{
  292. width: 200rpx;
  293. height: 80rpx;
  294. line-height: 80rpx;
  295. text-align: center;
  296. background: #F5F5F5;
  297. border-radius: 40px;
  298. font-size: 30rpx;
  299. font-weight: bold;
  300. color: #007AFF;
  301. margin: 0 20rpx;
  302. &.submit{
  303. background: #007AFF;
  304. color:#fff;
  305. }
  306. }
  307. }
  308. }
  309. </style>