registrationSuccess.vue 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. <template>
  2. <view class="registration_success">
  3. <nav-bar title="模考报名成功"></nav-bar>
  4. <view class="exam_success">
  5. <image class="imgs" src="../static/icon_success.png"></image>
  6. <text class="success_word">报名成功</text>
  7. </view>
  8. <view class="exam_times">
  9. <view class="time_title">模考大练兵 比拼赢大奖</view>
  10. <view class="time_range">活动时间:{{ startTime | formate('yyyy年mm月dd日')}}-{{ endTime | formate('yyyy年mm月dd日')}}</view>
  11. </view>
  12. <view class="mains">
  13. <view class="gives">
  14. 送价值1109元一建《冲刺黄金包》 提分必备神器
  15. </view>
  16. <view class="middles">
  17. <view class="qr_codes">
  18. <image class="code" src="../static/erCode.png"></image>
  19. </view>
  20. <view class="discern">长按识别二维码 加活动专属微信号</view>
  21. </view>
  22. <view class="middle_line">
  23. <view class="half_cir_left"></view>
  24. <view class="line"></view>
  25. <view class="half_cir_rig"></view>
  26. </view>
  27. <view class="flows">
  28. <view class="f_title">活动流程</view>
  29. <view class="f_lines">
  30. </view>
  31. </view>
  32. </view>
  33. <view class="distance_time">
  34. <view class="time_item">
  35. 距模考开始时间还有:
  36. <u-count-down :timestamp="startTime" :show-days="true" separator="zh"
  37. :show-hours="false" :show-minutes="false" :show-seconds="false" font-size="28"
  38. bg-color="#DFECFD" separator-color="#222222" color="#222222" separator-size="28">
  39. </u-count-down>
  40. </view>
  41. <view class="time_item">
  42. 距模考结束时间还有:
  43. <u-count-down :timestamp="endTime" :show-days="true" separator="zh"
  44. :show-hours="false" :show-minutes="false" :show-seconds="false" font-size="28"
  45. bg-color="#DFECFD" separator-color="#222222" color="#222222" separator-size="28">
  46. </u-count-down>
  47. </view>
  48. <view class="time_item">活动咨询电话:020-87085982/87085982</view>
  49. </view>
  50. <view class="exam_entry">
  51. <text class="entrys">考试入口:</text>请进入祥粤云学堂小程序或者网站, 在个人中心找到模考功能进行考试。
  52. </view>
  53. </view>
  54. </template>
  55. <script>
  56. var curTime = new Date().getTime() // 当前时间的时间戳
  57. export default {
  58. name: 'registrationSuccess',
  59. data() {
  60. return {
  61. startTime: '',
  62. endTime: '',
  63. }
  64. },
  65. onLoad(option) {
  66. console.log('option: ', option)
  67. // option.startTime * 1000 ,1662087489
  68. this.startTime = option.startTime - parseInt(curTime/1000)
  69. this.endTime = option.endTime - parseInt(curTime/1000)
  70. },
  71. onShow() {
  72. },
  73. }
  74. </script>
  75. <style>
  76. page {
  77. background-color: #DFECFD;
  78. }
  79. </style>
  80. <style lang="scss" scoped>
  81. .registration_success {
  82. width: 100%;
  83. display: flex;
  84. flex-direction: column;
  85. align-items: center;
  86. }
  87. .exam_success {
  88. margin-top: 68rpx;
  89. display: flex;
  90. align-items: center;
  91. .imgs {
  92. width: 56rpx;
  93. height: 56rpx;
  94. }
  95. .success_word {
  96. font-size: 48rpx;
  97. font-weight: 800;
  98. color: #01D38A;
  99. margin-left: 16rpx;
  100. }
  101. }
  102. .exam_times {
  103. margin-top: 92rpx;
  104. display: flex;
  105. flex-direction: column;
  106. align-items: center;
  107. .time_title {
  108. font-size: 48rpx;
  109. font-weight: bold;
  110. color: #3487FF;
  111. }
  112. .time_range {
  113. font-size: 26rpx;
  114. font-weight: 500;
  115. color: #222222;
  116. margin-top: 12rpx;
  117. }
  118. }
  119. .mains {
  120. width: 670rpx;
  121. height: 874rpx;
  122. background: #FFFFFF;
  123. border-radius: 16rpx;
  124. margin-top: 36rpx;
  125. .gives {
  126. width: 100%;
  127. height: 160rpx;
  128. padding: 32rpx 60rpx;
  129. background-color: #3F8DFD;
  130. font-size: 36rpx;
  131. font-weight: bold;
  132. color: #FFFFFF;
  133. line-height: 48rpx;
  134. border-radius: 16rpx 16rpx 0rpx 0rpx;
  135. text-align: center;
  136. }
  137. .middles {
  138. margin-top: 48rpx;
  139. display: flex;
  140. flex-direction: column;
  141. align-items: center;
  142. .qr_codes {
  143. width: 268rpx;
  144. height: 268rpx;
  145. background: #FFFFFF;
  146. border-radius: 24rpx;
  147. border: 4rpx solid #91BEFF;
  148. position: relative;
  149. top: 0;
  150. left: 0;
  151. .code {
  152. width: 248rpx;
  153. height: 248rpx;
  154. position: absolute;
  155. top: 6rpx;
  156. left: 6rpx;
  157. }
  158. }
  159. .discern {
  160. font-size: 28rpx;
  161. font-weight: bold;
  162. color: #222222;
  163. margin-top: 24rpx;
  164. }
  165. }
  166. .middle_line {
  167. display: flex;
  168. justify-content: space-between;
  169. align-items: center;
  170. margin-top: 28rpx;
  171. .half_cir_left {
  172. width: 20rpx;
  173. height: 40rpx;
  174. border-radius: 0rpx 20rpx 20rpx 0rpx;
  175. background-color: #DFECFD;
  176. }
  177. .half_cir_rig {
  178. width: 20rpx;
  179. height: 40rpx;
  180. border-radius: 20rpx 0rpx 0rpx 20rpx;
  181. background-color: #DFECFD;
  182. }
  183. .line {
  184. width: 588rpx;
  185. height: 2rpx;
  186. border-bottom: 2rpx dashed #C4DCFF;
  187. }
  188. }
  189. .flows {
  190. margin-top: 18rpx;
  191. display: flex;
  192. flex-direction: column;
  193. align-items: center;
  194. .f_title {
  195. font-size: 32rpx;
  196. font-weight: bold;
  197. color: #222222;
  198. position: relative;
  199. top: 0rpx;
  200. left: 0rpx;
  201. &::after {
  202. content: '';
  203. width: 32rpx;
  204. height: 8rpx;
  205. background: #3F8DFD;
  206. position: absolute;
  207. bottom: -8rpx;
  208. left: 40rpx;
  209. }
  210. }
  211. }
  212. }
  213. .distance_time {
  214. margin-top: 56rpx;
  215. .time_item {
  216. font-size: 32rpx;
  217. color: #222222;
  218. margin-bottom: 24rpx;
  219. }
  220. }
  221. .exam_entry {
  222. margin-top: 22rpx;
  223. margin-bottom: 100rpx;
  224. width: 686rpx;
  225. height: 128rpx;
  226. background: #3F8DFD;
  227. border-radius: 16rpx;
  228. padding: 20rpx 50rpx;
  229. color: #fff;
  230. line-height: 44rpx;
  231. .entrys {
  232. font-size: 28rpx;
  233. font-weight: bold;
  234. color: #FFFFFF;
  235. }
  236. }
  237. </style>