appointment_success.vue 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <template>
  2. <view class="safeArea">
  3. <view style="padding: 8rpx;">
  4. <view class="box1">
  5. <view>您所报考的<text v-if="listData.categoryName">【{{ listData.categoryName }}】</text>专业</view>
  6. <view class="status">
  7. <u-icon name="checkmark-circle" color="#34C759" size="32"></u-icon>
  8. <text style="margin-left: 8rpx;">{{ listData.subscribeStatus === 1 ? '考试预约成功' : '预约异常' }}</text>
  9. </view>
  10. </view>
  11. <view class="box2">
  12. <view class="title2">报考学员信息</view>
  13. <u-line color="#D6D6DB" />
  14. <view class="boxMain">
  15. <view class="list_item">
  16. <view class="txt_left">姓名</view>
  17. <view class="txt_right">{{ listData.realname }}</view>
  18. </view>
  19. <view class="list_item">
  20. <view class="txt_left">身份证</view>
  21. <view class="txt_right">{{ listData.idCard }}</view>
  22. </view>
  23. <view class="list_item">
  24. <view class="txt_left">考试身份</view>
  25. <view class="txt_right">{{ listData.studentType === 1 ? '非补考学员' : listData.studentType === 2 ? '补考学员' : '' }}</view>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="box2">
  30. <view class="title2">考试预约信息</view>
  31. <u-line color="#D6D6DB" />
  32. <view class="boxMain">
  33. <view class="list_item">
  34. <view class="txt_left">考试标题</view>
  35. <view class="txt_right txt_right1">{{listData.applyName}}</view>
  36. </view>
  37. <view class="list_item">
  38. <view class="txt_left">报名开放时间</view>
  39. <view class="txt_right">{{$method.timestampToTime(listData.applyStartTime)}} ~ {{$method.timestampToTime(listData.applyEndTime)}}</view>
  40. </view>
  41. <view class="list_item">
  42. <view class="txt_left">报考业务</view>
  43. <view class="txt_right" v-if="listData.categoryName">{{listData.categoryName}}专业</view>
  44. </view>
  45. <view class="list_item">
  46. <view class="txt_left">考试地点</view>
  47. <view class="txt_right">{{listData.applySiteAddress}}</view>
  48. </view>
  49. <view class="list_item">
  50. <view class="txt_left">考试时间</view>
  51. <view class="txt_right">{{$method.timestampToTime(listData.applySiteExamTime)}} {{listData.applySiteStartTime}} ~ {{listData.applySiteEndTime}}</view>
  52. </view>
  53. <view class="list_item" v-if="listData.applySiteAddressTrain">
  54. <view class="txt_left">考前培训地点</view>
  55. <view class="txt_right">{{listData.applySiteAddressTrain}}</view>
  56. </view>
  57. <view class="list_item" v-if="listData.applySiteExamTrainTime && listData.applySiteStartTrainTime && listData.applySiteEndTrainTime">
  58. <view class="txt_left">考前培训时间</view>
  59. <view class="txt_right">{{$method.timestampToTime(listData.applySiteExamTrainTime)}} {{listData.applySiteStartTrainTime}} ~ {{listData.applySiteEndTrainTime}}</view>
  60. </view>
  61. <view class="tip">*您可在“我的>我的考试预约”中查询</view>
  62. </view>
  63. </view>
  64. <view style="height: 120rpx;"></view>
  65. <view class="foot safeArea">
  66. <view class="btn return" @click="backPage">返回我的网课</view>
  67. <view class="btn view" @click="goMent">查看【我的考试预约】</view>
  68. </view>
  69. </view>
  70. </view>
  71. </template>
  72. <script>
  73. import { mapGetters } from 'vuex';
  74. export default {
  75. components: {},
  76. data() {
  77. return {
  78. subscribeId: null,
  79. listData: {},
  80. orderGoodsId:''
  81. };
  82. },
  83. onLoad(option) {
  84. this.subscribeId = Number(option.subscribeId);
  85. this.getInfo();
  86. },
  87. onShow() {},
  88. methods: {
  89. goMent(){
  90. uni.redirectTo({
  91. url: '/pages2/exam/exam_appointment'
  92. });
  93. },
  94. backPage(){
  95. uni.redirectTo({
  96. url: '/pages2/wd/class'
  97. });
  98. },
  99. getInfo() {
  100. this.$api.getApplylist({ subscribeId: this.subscribeId }).then(res => {
  101. if (res.data.code === 200 && res.data.rows.length) {
  102. if(res.data.rows[0].applySiteStartTime){
  103. res.data.rows[0].applySiteStartTime = res.data.rows[0].applySiteStartTime
  104. }
  105. if(res.data.rows[0].applySiteEndTime){
  106. res.data.rows[0].applySiteEndTime = res.data.rows[0].applySiteEndTime
  107. }
  108. if(res.data.rows[0].applySiteStartTrainTime){
  109. res.data.rows[0].applySiteStartTrainTime = res.data.rows[0].applySiteStartTrainTime
  110. }
  111. if(res.data.rows[0].applySiteEndTrainTime){
  112. res.data.rows[0].applySiteEndTrainTime = res.data.rows[0].applySiteEndTrainTime
  113. }
  114. this.listData = res.data.rows[0];
  115. }
  116. });
  117. }
  118. },
  119. onReachBottom() {},
  120. computed: { ...mapGetters(['userInfo']) }
  121. };
  122. </script>
  123. <style>
  124. ::-webkit-scrollbar {
  125. width: 0;
  126. height: 0;
  127. color: transparent;
  128. }
  129. page {
  130. background-color: #eaeef1;
  131. }
  132. </style>
  133. <style scoped lang="scss">
  134. .tip {
  135. font-size: 24rpx;
  136. color: #999999;
  137. height: 40rpx;
  138. line-height: 40rpx;
  139. }
  140. .title2 {
  141. font-size: 30rpx;
  142. font-weight: bold;
  143. color: #333333;
  144. height: 90rpx;
  145. line-height: 90rpx;
  146. margin-left: 30rpx;
  147. }
  148. .box2 {
  149. width: 100%;
  150. background: #ffffff;
  151. border-radius: 16rpx;
  152. margin-top: 16rpx;
  153. .boxMain {
  154. padding: 30rpx;
  155. }
  156. .list_item {
  157. display: flex;
  158. justify-content: space-between;
  159. align-items: center;
  160. line-height: 1;
  161. &:not(:last-child) {
  162. margin-bottom: 57rpx;
  163. }
  164. .txt_left {
  165. font-size: 24rpx;
  166. color: #666666;
  167. }
  168. .txt_right {
  169. color: #333333;
  170. font-size: 30rpx;
  171. font-weight: bold;
  172. width: 75%;
  173. text-align: right;
  174. &.txt_right1 {
  175. width: 370rpx;
  176. // text-align: left;
  177. line-height: 1.4;
  178. }
  179. }
  180. }
  181. }
  182. .box1 {
  183. width: 100%;
  184. background: #ffffff;
  185. border-radius: 16rpx;
  186. padding: 15rpx;
  187. text-align: center;
  188. .status {
  189. font-size: 36rpx;
  190. font-family: PingFang SC;
  191. font-weight: bold;
  192. color: #34c759;
  193. margin: 19rpx 0;
  194. }
  195. }
  196. .foot {
  197. height: 98rpx;
  198. width: 100%;
  199. position: fixed;
  200. bottom: 0;
  201. left: 0;
  202. background: rgba(255, 255, 255, 0.98);
  203. box-sizing: unset;
  204. display: flex;
  205. justify-content: center;
  206. align-items: center;
  207. .btn {
  208. height: 80rpx;
  209. line-height: 80rpx;
  210. border-radius: 40rpx;
  211. font-size: 30rpx;
  212. font-family: PingFang SC;
  213. font-weight: bold;
  214. text-align: center;
  215. }
  216. .return {
  217. width: 264rpx;
  218. background: #f5f5f5;
  219. color: #007aff;
  220. }
  221. .view {
  222. width: 374rpx;
  223. background: #007aff;
  224. color: #ffffff;
  225. margin-left: 24rpx;
  226. }
  227. }
  228. </style>