registrationSuccess.vue 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  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 class="numbers">1</view>
  31. <view class="line line_one"></view>
  32. <view class="numbers">2</view>
  33. <view class="line line_two"></view>
  34. <view class="numbers">3</view>
  35. <view class="line line_three"></view>
  36. <view class="numbers">4</view>
  37. </view>
  38. <view class="f_words">
  39. <view class="word word_one">预约报名</view>
  40. <view class="word word_one">扫码添加活动 专属微信号</view>
  41. <view class="word word_one">模考</view>
  42. <view class="word word_one">领福利</view>
  43. </view>
  44. </view>
  45. </view>
  46. <view class="distance_time">
  47. <view class="time_item">
  48. 距模考开始时间还有:
  49. <u-count-down :timestamp="startTime" :show-days="true" separator="zh"
  50. :show-hours="false" :show-minutes="false" :show-seconds="false" font-size="28"
  51. bg-color="#DFECFD" separator-color="#222222" color="#222222" separator-size="28">
  52. </u-count-down>
  53. </view>
  54. <view class="time_item">
  55. 距模考结束时间还有:
  56. <u-count-down :timestamp="endTime" :show-days="true" separator="zh"
  57. :show-hours="false" :show-minutes="false" :show-seconds="false" font-size="28"
  58. bg-color="#DFECFD" separator-color="#222222" color="#222222" separator-size="28">
  59. </u-count-down>
  60. </view>
  61. <view class="time_item">活动咨询电话:020-87085982/87085982</view>
  62. </view>
  63. <view class="exam_entry">
  64. <text class="entrys">考试入口:</text>请进入祥粤云学堂小程序或者网站, 在个人中心找到模考功能进行考试。
  65. </view>
  66. </view>
  67. </template>
  68. <script>
  69. var curTime = new Date().getTime() // 当前时间的时间戳
  70. export default {
  71. name: 'registrationSuccess',
  72. data() {
  73. return {
  74. startTime: '',
  75. endTime: '',
  76. }
  77. },
  78. onLoad(option) {
  79. console.log('option: ', option)
  80. // option.startTime * 1000 ,1662087489
  81. this.startTime = option.startTime - parseInt(curTime/1000)
  82. this.endTime = option.endTime - parseInt(curTime/1000)
  83. },
  84. onShow() {
  85. },
  86. }
  87. </script>
  88. <style>
  89. page {
  90. background-color: #DFECFD;
  91. }
  92. </style>
  93. <style lang="scss" scoped>
  94. .registration_success {
  95. width: 100%;
  96. display: flex;
  97. flex-direction: column;
  98. align-items: center;
  99. }
  100. .exam_success {
  101. margin-top: 68rpx;
  102. display: flex;
  103. align-items: center;
  104. .imgs {
  105. width: 56rpx;
  106. height: 56rpx;
  107. }
  108. .success_word {
  109. font-size: 48rpx;
  110. font-weight: 800;
  111. color: #01D38A;
  112. margin-left: 16rpx;
  113. }
  114. }
  115. .exam_times {
  116. margin-top: 92rpx;
  117. display: flex;
  118. flex-direction: column;
  119. align-items: center;
  120. .time_title {
  121. font-size: 48rpx;
  122. font-weight: bold;
  123. color: #3487FF;
  124. }
  125. .time_range {
  126. font-size: 26rpx;
  127. font-weight: 500;
  128. color: #222222;
  129. margin-top: 12rpx;
  130. }
  131. }
  132. .mains {
  133. width: 670rpx;
  134. height: 874rpx;
  135. background: #FFFFFF;
  136. border-radius: 16rpx;
  137. margin-top: 36rpx;
  138. .gives {
  139. width: 100%;
  140. height: 160rpx;
  141. padding: 32rpx 60rpx;
  142. background-color: #3F8DFD;
  143. font-size: 36rpx;
  144. font-weight: bold;
  145. color: #FFFFFF;
  146. line-height: 48rpx;
  147. border-radius: 16rpx 16rpx 0rpx 0rpx;
  148. text-align: center;
  149. }
  150. .middles {
  151. margin-top: 48rpx;
  152. display: flex;
  153. flex-direction: column;
  154. align-items: center;
  155. .qr_codes {
  156. width: 268rpx;
  157. height: 268rpx;
  158. background: #FFFFFF;
  159. border-radius: 24rpx;
  160. border: 4rpx solid #91BEFF;
  161. position: relative;
  162. top: 0;
  163. left: 0;
  164. .code {
  165. width: 248rpx;
  166. height: 248rpx;
  167. position: absolute;
  168. top: 6rpx;
  169. left: 6rpx;
  170. }
  171. }
  172. .discern {
  173. font-size: 28rpx;
  174. font-weight: bold;
  175. color: #222222;
  176. margin-top: 24rpx;
  177. }
  178. }
  179. .middle_line {
  180. display: flex;
  181. justify-content: space-between;
  182. align-items: center;
  183. margin-top: 28rpx;
  184. .half_cir_left {
  185. width: 20rpx;
  186. height: 40rpx;
  187. border-radius: 0rpx 20rpx 20rpx 0rpx;
  188. background-color: #DFECFD;
  189. }
  190. .half_cir_rig {
  191. width: 20rpx;
  192. height: 40rpx;
  193. border-radius: 20rpx 0rpx 0rpx 20rpx;
  194. background-color: #DFECFD;
  195. }
  196. .line {
  197. width: 588rpx;
  198. height: 2rpx;
  199. border-bottom: 2rpx dashed #C4DCFF;
  200. }
  201. }
  202. .flows {
  203. margin-top: 18rpx;
  204. display: flex;
  205. flex-direction: column;
  206. align-items: center;
  207. .f_title {
  208. font-size: 32rpx;
  209. font-weight: bold;
  210. color: #222222;
  211. position: relative;
  212. top: 0rpx;
  213. left: 0rpx;
  214. &::after {
  215. content: '';
  216. width: 32rpx;
  217. height: 8rpx;
  218. background: #3F8DFD;
  219. position: absolute;
  220. bottom: -8rpx;
  221. left: 40rpx;
  222. }
  223. }
  224. .f_lines {
  225. width: 500rpx;
  226. display: flex;
  227. align-items: center;
  228. justify-content: space-between;
  229. margin: 26rpx 0rpx 16rpx 0rpx;
  230. .numbers {
  231. width: 40rpx;
  232. height: 40rpx;
  233. line-height: 40rpx;
  234. text-align: center;
  235. background: #D5E6FF;
  236. border-radius: 50%;
  237. font-size: 24rpx;
  238. font-weight: bold;
  239. color: #3F8DFD;
  240. }
  241. .line {
  242. height: 2rpx;
  243. border-bottom: 2rpx dashed #C4DCFF;
  244. }
  245. .line_one {
  246. width: 112rpx;
  247. }
  248. .line_two {
  249. width: 86rpx;
  250. }
  251. .line_three {
  252. width: 48rpx;
  253. }
  254. }
  255. }
  256. }
  257. .distance_time {
  258. margin-top: 56rpx;
  259. .time_item {
  260. font-size: 32rpx;
  261. color: #222222;
  262. margin-bottom: 24rpx;
  263. }
  264. }
  265. .exam_entry {
  266. margin-top: 22rpx;
  267. margin-bottom: 100rpx;
  268. width: 686rpx;
  269. height: 128rpx;
  270. background: #3F8DFD;
  271. border-radius: 16rpx;
  272. padding: 20rpx 50rpx;
  273. color: #fff;
  274. line-height: 44rpx;
  275. .entrys {
  276. font-size: 28rpx;
  277. font-weight: bold;
  278. color: #FFFFFF;
  279. }
  280. }
  281. </style>