appointment_success.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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. if (this.$method.isGoLogin()) { // 从公众号消息进来的没登录需要跳到登录页,登录后返回
  85. return;
  86. }
  87. this.subscribeId = Number(option.subscribeId);
  88. this.getInfo();
  89. },
  90. onShow() {},
  91. methods: {
  92. goMent(){
  93. uni.redirectTo({
  94. url: '/pages2/exam/exam_appointment'
  95. });
  96. },
  97. backPage(){
  98. uni.redirectTo({
  99. url: '/pages2/wd/class'
  100. });
  101. },
  102. getInfo() {
  103. this.$api.getApplylist({ subscribeId: this.subscribeId }).then(res => {
  104. if (res.data.code === 200 && res.data.rows.length) {
  105. if(res.data.rows[0].applySiteStartTime){
  106. res.data.rows[0].applySiteStartTime = res.data.rows[0].applySiteStartTime
  107. }
  108. if(res.data.rows[0].applySiteEndTime){
  109. res.data.rows[0].applySiteEndTime = res.data.rows[0].applySiteEndTime
  110. }
  111. if(res.data.rows[0].applySiteStartTrainTime){
  112. res.data.rows[0].applySiteStartTrainTime = res.data.rows[0].applySiteStartTrainTime
  113. }
  114. if(res.data.rows[0].applySiteEndTrainTime){
  115. res.data.rows[0].applySiteEndTrainTime = res.data.rows[0].applySiteEndTrainTime
  116. }
  117. this.listData = res.data.rows[0];
  118. }
  119. });
  120. }
  121. },
  122. onReachBottom() {},
  123. computed: { ...mapGetters(['userInfo']) }
  124. };
  125. </script>
  126. <style>
  127. ::-webkit-scrollbar {
  128. width: 0;
  129. height: 0;
  130. color: transparent;
  131. }
  132. page {
  133. background-color: #eaeef1;
  134. }
  135. </style>
  136. <style scoped lang="scss">
  137. .tip {
  138. font-size: 24rpx;
  139. color: #999999;
  140. height: 40rpx;
  141. line-height: 40rpx;
  142. }
  143. .title2 {
  144. font-size: 30rpx;
  145. font-weight: bold;
  146. color: #333333;
  147. height: 90rpx;
  148. line-height: 90rpx;
  149. margin-left: 30rpx;
  150. }
  151. .box2 {
  152. width: 100%;
  153. background: #ffffff;
  154. border-radius: 16rpx;
  155. margin-top: 16rpx;
  156. .boxMain {
  157. padding: 30rpx;
  158. }
  159. .list_item {
  160. display: flex;
  161. justify-content: space-between;
  162. align-items: center;
  163. line-height: 1;
  164. &:not(:last-child) {
  165. margin-bottom: 57rpx;
  166. }
  167. .txt_left {
  168. font-size: 24rpx;
  169. color: #666666;
  170. }
  171. .txt_right {
  172. color: #333333;
  173. font-size: 30rpx;
  174. font-weight: bold;
  175. width: 75%;
  176. text-align: right;
  177. &.txt_right1 {
  178. width: 370rpx;
  179. // text-align: left;
  180. line-height: 1.4;
  181. }
  182. }
  183. }
  184. }
  185. .box1 {
  186. width: 100%;
  187. background: #ffffff;
  188. border-radius: 16rpx;
  189. padding: 15rpx;
  190. text-align: center;
  191. .status {
  192. font-size: 36rpx;
  193. font-family: PingFang SC;
  194. font-weight: bold;
  195. color: #34c759;
  196. margin: 19rpx 0;
  197. }
  198. }
  199. .foot {
  200. height: 98rpx;
  201. width: 100%;
  202. position: fixed;
  203. bottom: 0;
  204. left: 0;
  205. background: rgba(255, 255, 255, 0.98);
  206. box-sizing: unset;
  207. display: flex;
  208. justify-content: center;
  209. align-items: center;
  210. .btn {
  211. height: 80rpx;
  212. line-height: 80rpx;
  213. border-radius: 40rpx;
  214. font-size: 30rpx;
  215. font-family: PingFang SC;
  216. font-weight: bold;
  217. text-align: center;
  218. }
  219. .return {
  220. width: 264rpx;
  221. background: #f5f5f5;
  222. color: #007aff;
  223. }
  224. .view {
  225. width: 374rpx;
  226. background: #007aff;
  227. color: #ffffff;
  228. margin-left: 24rpx;
  229. }
  230. }
  231. </style>