registrationSuccess.vue 9.0 KB

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