registrationSuccess.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  1. <template>
  2. <view class="registration_success">
  3. <nav-bar title="模考报名成功"></nav-bar>
  4. <view class="exam_success">
  5. <image class="imgs" src="../static/ping_bg.png"></image>
  6. <view class="activity_time">
  7. 活动时间:{{ startTime | formate('yyyy年mm月dd日')}}-{{ endTime | formate('yyyy年mm月dd日')}}
  8. </view>
  9. </view>
  10. <view class="exam_times">
  11. <view class="start_time all_time">
  12. <view class="time_left">
  13. <text class="numbers">{{ sDay > 1 ? parseInt(sDay) : 0 }}</text>
  14. <text class="days">天</text>
  15. </view>
  16. <view class="words">距模考开始时间</view>
  17. </view>
  18. <view class="lines"></view>
  19. <view class="end_time all_time">
  20. <view class="time_left">
  21. <text class="numbers">{{ sDay > 1 ? parseInt(eDay) : 0 }}</text>
  22. <text class="days">天</text>
  23. </view>
  24. <view class="words">距模考结束时间</view>
  25. </view>
  26. </view>
  27. <view class="mains">
  28. <view class="gives">
  29. 送价值1109元一建《冲刺黄金包》 提分必备神器
  30. </view>
  31. <view class="middles">
  32. <view class="qr_codes">
  33. <image class="code" src="../static/erCode.png" show-menu-by-longpress="true"></image>
  34. </view>
  35. <view class="discern">长按识别二维码 加活动专属微信号</view>
  36. </view>
  37. <view class="middle_line">
  38. <view class="half_cir_left"></view>
  39. <view class="line"></view>
  40. <view class="half_cir_rig"></view>
  41. </view>
  42. <view class="flows">
  43. <view class="f_title">活动流程</view>
  44. <view class="f_lines">
  45. <view class="numbers">1</view>
  46. <view class="line line_one"></view>
  47. <view class="numbers">2</view>
  48. <view class="line line_two"></view>
  49. <view class="numbers">3</view>
  50. <view class="line line_three"></view>
  51. <view class="numbers">4</view>
  52. </view>
  53. <view class="f_words">
  54. <view class="word word_one">预约报名</view>
  55. <view class="word word_two">扫码添加活动 专属微信号</view>
  56. <view class="word word_three">模考</view>
  57. <view class="word word_four">领福利</view>
  58. </view>
  59. </view>
  60. </view>
  61. <!-- <view class="distance_time">
  62. <view class="time_item">
  63. 距模考开始时间还有:
  64. <u-count-down v-if="sDay > 1" :timestamp="lastStartDay" :show-days="true" separator="zh"
  65. :show-hours="false" :show-minutes="false" :show-seconds="false" font-size="28"
  66. bg-color="#DFECFD" separator-color="#222222" color="#222222" separator-size="28">
  67. </u-count-down>
  68. <text v-else>0天</text>
  69. </view>
  70. <view class="time_item">
  71. 距模考结束时间还有:
  72. <u-count-down v-if="eDay > 1" :timestamp="lastEndDay" :show-days="true" separator="zh"
  73. :show-hours="false" :show-minutes="false" :show-seconds="false" font-size="28"
  74. bg-color="#DFECFD" separator-color="#222222" color="#222222" separator-size="28">
  75. </u-count-down>
  76. <text v-else>0天</text>
  77. </view>
  78. <view class="time_item">活动详情请咨询业务人员或致电020-87085982/87085983</view>
  79. </view> -->
  80. <view class="activity_phone">
  81. <view class="titles">活动咨询电话</view>
  82. <view class="phone_num">020-87085982 / 87085983</view>
  83. </view>
  84. <view class="exam_entry">
  85. 参加本次活动,请添加此次活动专属微信号
  86. <!-- <text class="entrys">考试入口:</text>请进入祥粤云学堂小程序或者网站, 在个人中心找到模考功能进行考试。 -->
  87. </view>
  88. </view>
  89. </template>
  90. <script>
  91. var curTime = new Date().getTime() // 当前时间的时间戳
  92. export default {
  93. name: 'registrationSuccess',
  94. data() {
  95. return {
  96. startTime: '',
  97. endTime: '',
  98. lastStartDay: '',
  99. lastEndDay: '',
  100. sDay: '',
  101. eDay: '',
  102. }
  103. },
  104. onLoad(option) {
  105. console.log('option: ', option)
  106. this.startTime = option.startTime
  107. this.endTime = option.endTime
  108. this.lastStartDay = option.startTime - parseInt(curTime/1000)
  109. this.lastEndDay = option.endTime - parseInt(curTime/1000)
  110. this.sDay = this.lastStartDay/24/60/60
  111. this.eDay = this.lastEndDay/24/60/60
  112. console.log('lastStartDay', this.lastStartDay, this.lastEndDay, this.sDay, this.eDay)
  113. },
  114. }
  115. </script>
  116. <style>
  117. page {
  118. background-color: #DFECFD;
  119. }
  120. </style>
  121. <style lang="scss" scoped>
  122. .registration_success {
  123. width: 100%;
  124. display: flex;
  125. flex-direction: column;
  126. align-items: center;
  127. }
  128. .exam_success {
  129. width: 100%;
  130. height: 360rpx;
  131. // margin-top: 68rpx;
  132. display: flex;
  133. align-items: center;
  134. position: relative;
  135. top: 0;
  136. left: 0;
  137. .imgs {
  138. width: 100%;
  139. height: 360rpx;
  140. // width: 56rpx;
  141. // height: 56rpx;
  142. }
  143. .activity_time {
  144. width: 662rpx;
  145. height: 72rpx;
  146. line-height: 72rpx;
  147. text-align: center;
  148. background: rgba(255,255,255,0.7);
  149. border-radius: 16rpx;
  150. border: 2rpx solid #FFFFFF;
  151. font-size: 30rpx;
  152. font-weight: 500;
  153. color: #2D5692;
  154. position: absolute;
  155. bottom: 12rpx;
  156. left: 40rpx;
  157. }
  158. }
  159. .exam_times {
  160. margin-top: 28rpx;
  161. display: flex;
  162. align-items: center;
  163. justify-content: space-between;
  164. width: 670rpx;
  165. height: 178rpx;
  166. background: #FFFFFF;
  167. border-radius: 24rpx;
  168. padding: 0rpx 64rpx;
  169. .all_time {
  170. .time_left {
  171. text-align: center;
  172. }
  173. .numbers {
  174. font-size: 52rpx;
  175. font-weight: 800;
  176. color: #F67205;
  177. }
  178. .days {
  179. font-size: 28rpx;
  180. font-weight: 500;
  181. color: #F67205;
  182. }
  183. .words {
  184. font-size: 28rpx;
  185. color: #6D7D94;
  186. margin-top: 10rpx;
  187. }
  188. }
  189. .time_title {
  190. font-size: 48rpx;
  191. font-weight: bold;
  192. color: #3487FF;
  193. }
  194. .time_range {
  195. font-size: 26rpx;
  196. font-weight: 500;
  197. color: #222222;
  198. margin-top: 12rpx;
  199. }
  200. .lines {
  201. width: 2rpx;
  202. height: 84rpx;
  203. background: #E4E4E4;
  204. }
  205. }
  206. .mains {
  207. width: 670rpx;
  208. height: 874rpx;
  209. background: #FFFFFF;
  210. border-radius: 16rpx;
  211. margin-top: 36rpx;
  212. .gives {
  213. width: 100%;
  214. height: 160rpx;
  215. padding: 32rpx 60rpx;
  216. background-color: #3F8DFD;
  217. font-size: 36rpx;
  218. font-weight: bold;
  219. color: #FFFFFF;
  220. line-height: 48rpx;
  221. border-radius: 16rpx 16rpx 0rpx 0rpx;
  222. text-align: center;
  223. }
  224. .middles {
  225. margin-top: 48rpx;
  226. display: flex;
  227. flex-direction: column;
  228. align-items: center;
  229. .qr_codes {
  230. width: 268rpx;
  231. height: 268rpx;
  232. background: #FFFFFF;
  233. border-radius: 24rpx;
  234. border: 4rpx solid #91BEFF;
  235. position: relative;
  236. top: 0;
  237. left: 0;
  238. .code {
  239. width: 248rpx;
  240. height: 248rpx;
  241. position: absolute;
  242. top: 6rpx;
  243. left: 6rpx;
  244. }
  245. }
  246. .discern {
  247. font-size: 28rpx;
  248. font-weight: bold;
  249. color: #222222;
  250. margin-top: 24rpx;
  251. }
  252. }
  253. .middle_line {
  254. display: flex;
  255. justify-content: space-between;
  256. align-items: center;
  257. margin-top: 28rpx;
  258. .half_cir_left {
  259. width: 20rpx;
  260. height: 40rpx;
  261. border-radius: 0rpx 20rpx 20rpx 0rpx;
  262. background-color: #DFECFD;
  263. }
  264. .half_cir_rig {
  265. width: 20rpx;
  266. height: 40rpx;
  267. border-radius: 20rpx 0rpx 0rpx 20rpx;
  268. background-color: #DFECFD;
  269. }
  270. .line {
  271. width: 588rpx;
  272. height: 2rpx;
  273. border-bottom: 2rpx dashed #C4DCFF;
  274. }
  275. }
  276. .flows {
  277. margin-top: 18rpx;
  278. display: flex;
  279. flex-direction: column;
  280. align-items: center;
  281. .f_title {
  282. font-size: 32rpx;
  283. font-weight: bold;
  284. color: #222222;
  285. position: relative;
  286. top: 0rpx;
  287. left: 0rpx;
  288. &::after {
  289. content: '';
  290. width: 32rpx;
  291. height: 8rpx;
  292. background: #3F8DFD;
  293. position: absolute;
  294. bottom: -8rpx;
  295. left: 40rpx;
  296. }
  297. }
  298. .f_lines {
  299. width: 500rpx;
  300. display: flex;
  301. align-items: center;
  302. justify-content: space-between;
  303. margin: 26rpx 0rpx 16rpx 0rpx;
  304. .numbers {
  305. width: 40rpx;
  306. height: 40rpx;
  307. line-height: 40rpx;
  308. text-align: center;
  309. background: #D5E6FF;
  310. border-radius: 50%;
  311. font-size: 24rpx;
  312. font-weight: bold;
  313. color: #3F8DFD;
  314. }
  315. .line {
  316. height: 2rpx;
  317. border-bottom: 2rpx dashed #C4DCFF;
  318. }
  319. .line_one {
  320. width: 112rpx;
  321. }
  322. .line_two {
  323. width: 86rpx;
  324. }
  325. .line_three {
  326. width: 48rpx;
  327. }
  328. }
  329. .f_words {
  330. display: flex;
  331. align-items: flex-start;
  332. width: 526rpx;
  333. justify-content: space-between;
  334. .word {
  335. font-size: 26rpx;
  336. font-weight: 400;
  337. color: #3F8DFD;
  338. }
  339. .word_one {
  340. }
  341. .word_two {
  342. width: 156rpx;
  343. text-align: center;
  344. }
  345. }
  346. }
  347. }
  348. .distance_time {
  349. margin-top: 56rpx;
  350. .time_item {
  351. font-size: 32rpx;
  352. color: #222222;
  353. margin-bottom: 24rpx;
  354. }
  355. }
  356. .activity_phone {
  357. margin: 40rpx 0rpx 56rpx 0rpx;
  358. padding: 32rpx 0rpx 0rpx 44rpx;
  359. width: 670rpx;
  360. height: 148rpx;
  361. background: #FFFFFF;
  362. border-radius: 24rpx;
  363. .titles {
  364. font-size: 28rpx;
  365. color: #222222;
  366. margin-bottom: 12rpx;
  367. }
  368. .phone_num {
  369. font-size: 28rpx;
  370. font-weight: bold;
  371. color: #3F8DFD;
  372. }
  373. }
  374. .exam_entry {
  375. font-size: 32rpx;
  376. font-weight: 500;
  377. color: #222222;
  378. margin-bottom: 100rpx;
  379. // margin-top: 22rpx;
  380. // margin-bottom: 100rpx;
  381. // width: 686rpx;
  382. // height: 128rpx;
  383. // background: #3F8DFD;
  384. // border-radius: 16rpx;
  385. // padding: 20rpx 50rpx;
  386. // color: #fff;
  387. // line-height: 44rpx;
  388. // .entrys {
  389. // font-size: 28rpx;
  390. // font-weight: bold;
  391. // color: #FFFFFF;
  392. // }
  393. }
  394. </style>