exam_appointment.vue 7.6 KB

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