registrationSuccess.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629
  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">{{ startTime | getLastDay }}</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">{{ endTime | getLastDay }}</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 / 020-87085983 / 18565459156</view>
  83. </view>
  84. <view class="exam_entry">
  85. 参加本次活动,请添加此次活动专属微信号
  86. <!-- <text class="entrys">考试入口:</text>请进入祥粤云学堂小程序或者网站, 在个人中心找到模考功能进行考试。 -->
  87. </view>
  88. <view v-if="courseList.length" class="course_list">
  89. <view class="titles">
  90. <image class="code" src="@/static/learn/act_icon.png" ></image>
  91. <text class="title">推荐课程</text>
  92. </view>
  93. <view class="list_item" v-for="(item,index) in courseList" :key="index" @click="toBuy(item)">
  94. <view class="course_content">
  95. <view class="c_title">{{item.goodsName}}</view>
  96. <view class="c_downs">
  97. <view class="img">
  98. <image :src="$method.splitImgHost(item.coverUrl, true)"></image>
  99. <view class="time" v-if="item.year">{{item.year?item.year:''}}</view>
  100. </view>
  101. <view class="text">
  102. <view class="desc">
  103. <view class="left">
  104. <text class="mon_t">¥ {{item.standPrice}}</text>
  105. <text v-if="item.linePrice" class="sale"> ¥ </text>
  106. <text v-if="item.linePrice" class="price_line">&nbsp;{{ item.linePrice }}</text>
  107. </view>
  108. <view class="right">
  109. <view class="regiser_row" v-if="!hideBuyState">立即购买</view>
  110. </view>
  111. </view>
  112. <view v-if="item.buyUserNum" class="joins">
  113. <!-- <image class="people" src="/static/index/people.png"></image> -->
  114. <!-- 为0时,不显示 -->
  115. <view class="people">{{ item.buyUserNum }}人参与</view>
  116. </view>
  117. </view>
  118. </view>
  119. </view>
  120. </view>
  121. </view>
  122. </view>
  123. </template>
  124. <script>
  125. import { mapGetters } from 'vuex'
  126. var curTime = new Date().getTime() // 当前时间的时间戳
  127. export default {
  128. name: 'registrationSuccess',
  129. data() {
  130. return {
  131. startTime: '',
  132. endTime: '',
  133. lastStartDay: '',
  134. lastEndDay: '',
  135. sDay: '',
  136. eDay: '',
  137. activityId: '',
  138. courseList: [],
  139. pageNum: 1,
  140. pageSize: 10,
  141. total: 0,
  142. }
  143. },
  144. filters: {
  145. getLastDay(time) {
  146. var padDate = function (va) {
  147. va = va < 10 ? '0' + va : va
  148. return va
  149. }
  150. if (time) {
  151. var value = new Date(time * 1000) //时间戳为10位需*1000,时间戳为13位的话不需乘1000
  152. var year = value.getFullYear()
  153. var month = padDate(value.getMonth() + 1)
  154. var day = padDate(value.getDate())
  155. let t_value = year + '/' + month + '/' + day
  156. let curTimeLast = new Date(new Date(t_value).toLocaleDateString()).getTime() + 24 * 60 * 60 * 1000 - 1
  157. let lastStartDay = parseInt(curTimeLast/1000) - parseInt(curTime/1000)
  158. let days = parseInt(lastStartDay/24/60/60)
  159. return days >= 1 ? days : 0
  160. }
  161. },
  162. },
  163. computed: { ...mapGetters(['hideBuyState']) },
  164. onLoad(option) {
  165. console.log('option: ', option)
  166. this.startTime = option.startTime
  167. this.endTime = option.endTime
  168. this.activityId = option.activityId
  169. // this.getAct()
  170. // this.startTime = "1663041599"
  171. // this.endTime = "1663127999"
  172. },
  173. onShow() {
  174. this.courseList = []
  175. this.getAct()
  176. },
  177. onPullDownRefresh() {
  178. this.pageNum = 1
  179. this.getAct()
  180. },
  181. onReachBottom() {
  182. console.log(this.total,'total')
  183. console.log(this.courseList.length,'length')
  184. if (this.courseList.length < this.total) {
  185. this.pageNum++
  186. this.getAct()
  187. }
  188. },
  189. methods: {
  190. getAct() {
  191. this.$http({
  192. url: `/app/common/activity/goodsList/${this.activityId}`,
  193. method: 'get',
  194. noToken: true,
  195. data: {
  196. pageNum: this.pageNum,
  197. pageSize: this.pageSize,
  198. }
  199. }).then((res) => {
  200. if (res.data.code == 200) {
  201. // this.courseList = res.data.data || []
  202. this.courseList.push(...res.data.rows)
  203. this.total = res.data.total
  204. }
  205. })
  206. },
  207. toBuy(item) {
  208. if (item.goodsType == 1) {
  209. uni.navigateTo({
  210. url: '/pages3/course/detail?id='+item.goodsId
  211. })
  212. } else if (item.goodsType == 2) {
  213. uni.navigateTo({
  214. url: '/pages2/bank/detail?id='+item.goodsId
  215. })
  216. } else {
  217. uni.navigateTo({
  218. url: '/pages5/liveDetail/index?id='+item.goodsId
  219. })
  220. }
  221. },
  222. }
  223. }
  224. </script>
  225. <style>
  226. page {
  227. /* background-color: #DFECFD; */
  228. background: linear-gradient(90deg, #EDF1FF 0%, #D9F0FF 100%);
  229. }
  230. </style>
  231. <style lang="scss" scoped>
  232. .registration_success {
  233. width: 100%;
  234. display: flex;
  235. flex-direction: column;
  236. align-items: center;
  237. }
  238. .exam_success {
  239. width: 100%;
  240. height: 360rpx;
  241. // margin-top: 68rpx;
  242. display: flex;
  243. align-items: center;
  244. position: relative;
  245. top: 0;
  246. left: 0;
  247. .imgs {
  248. width: 100%;
  249. height: 360rpx;
  250. // width: 56rpx;
  251. // height: 56rpx;
  252. }
  253. .activity_time {
  254. width: 662rpx;
  255. height: 72rpx;
  256. line-height: 72rpx;
  257. text-align: center;
  258. background: rgba(255,255,255,0.7);
  259. border-radius: 16rpx;
  260. border: 2rpx solid #FFFFFF;
  261. font-size: 30rpx;
  262. font-weight: 500;
  263. color: #2D5692;
  264. position: absolute;
  265. bottom: 12rpx;
  266. left: 40rpx;
  267. }
  268. }
  269. .exam_times {
  270. margin-top: 28rpx;
  271. display: flex;
  272. align-items: center;
  273. justify-content: space-between;
  274. width: 670rpx;
  275. height: 178rpx;
  276. background: #FFFFFF;
  277. border-radius: 24rpx;
  278. padding: 0rpx 64rpx;
  279. .all_time {
  280. .time_left {
  281. text-align: center;
  282. }
  283. .numbers {
  284. font-size: 52rpx;
  285. font-weight: 800;
  286. color: #F67205;
  287. }
  288. .days {
  289. font-size: 28rpx;
  290. font-weight: 500;
  291. color: #F67205;
  292. }
  293. .words {
  294. font-size: 28rpx;
  295. color: #6D7D94;
  296. margin-top: 10rpx;
  297. }
  298. }
  299. .time_title {
  300. font-size: 48rpx;
  301. font-weight: bold;
  302. color: #3487FF;
  303. }
  304. .time_range {
  305. font-size: 26rpx;
  306. font-weight: 500;
  307. color: #222222;
  308. margin-top: 12rpx;
  309. }
  310. .lines {
  311. width: 2rpx;
  312. height: 84rpx;
  313. background: #E4E4E4;
  314. }
  315. }
  316. .mains {
  317. width: 670rpx;
  318. height: 874rpx;
  319. background: #FFFFFF;
  320. border-radius: 16rpx;
  321. margin-top: 36rpx;
  322. .gives {
  323. width: 100%;
  324. height: 160rpx;
  325. padding: 32rpx 60rpx;
  326. background-color: #3F8DFD;
  327. font-size: 36rpx;
  328. font-weight: bold;
  329. color: #FFFFFF;
  330. line-height: 48rpx;
  331. border-radius: 16rpx 16rpx 0rpx 0rpx;
  332. text-align: center;
  333. }
  334. .middles {
  335. margin-top: 48rpx;
  336. display: flex;
  337. flex-direction: column;
  338. align-items: center;
  339. .qr_codes {
  340. width: 268rpx;
  341. height: 268rpx;
  342. background: #FFFFFF;
  343. border-radius: 24rpx;
  344. border: 4rpx solid #91BEFF;
  345. position: relative;
  346. top: 0;
  347. left: 0;
  348. .code {
  349. width: 248rpx;
  350. height: 248rpx;
  351. position: absolute;
  352. top: 6rpx;
  353. left: 6rpx;
  354. }
  355. }
  356. .discern {
  357. font-size: 28rpx;
  358. font-weight: bold;
  359. color: #222222;
  360. margin-top: 24rpx;
  361. }
  362. }
  363. .middle_line {
  364. display: flex;
  365. justify-content: space-between;
  366. align-items: center;
  367. margin-top: 28rpx;
  368. .half_cir_left {
  369. width: 20rpx;
  370. height: 40rpx;
  371. border-radius: 0rpx 20rpx 20rpx 0rpx;
  372. background-color: #DFECFD;
  373. }
  374. .half_cir_rig {
  375. width: 20rpx;
  376. height: 40rpx;
  377. border-radius: 20rpx 0rpx 0rpx 20rpx;
  378. background-color: #DFECFD;
  379. }
  380. .line {
  381. width: 588rpx;
  382. height: 2rpx;
  383. border-bottom: 2rpx dashed #C4DCFF;
  384. }
  385. }
  386. .flows {
  387. margin-top: 18rpx;
  388. display: flex;
  389. flex-direction: column;
  390. align-items: center;
  391. .f_title {
  392. font-size: 32rpx;
  393. font-weight: bold;
  394. color: #222222;
  395. position: relative;
  396. top: 0rpx;
  397. left: 0rpx;
  398. &::after {
  399. content: '';
  400. width: 32rpx;
  401. height: 8rpx;
  402. background: #3F8DFD;
  403. position: absolute;
  404. bottom: -8rpx;
  405. left: 40rpx;
  406. }
  407. }
  408. .f_lines {
  409. width: 500rpx;
  410. display: flex;
  411. align-items: center;
  412. justify-content: space-between;
  413. margin: 26rpx 0rpx 16rpx 0rpx;
  414. .numbers {
  415. width: 40rpx;
  416. height: 40rpx;
  417. line-height: 40rpx;
  418. text-align: center;
  419. background: #D5E6FF;
  420. border-radius: 50%;
  421. font-size: 24rpx;
  422. font-weight: bold;
  423. color: #3F8DFD;
  424. }
  425. .line {
  426. height: 2rpx;
  427. border-bottom: 2rpx dashed #C4DCFF;
  428. }
  429. .line_one {
  430. width: 112rpx;
  431. }
  432. .line_two {
  433. width: 86rpx;
  434. }
  435. .line_three {
  436. width: 48rpx;
  437. }
  438. }
  439. .f_words {
  440. display: flex;
  441. align-items: flex-start;
  442. width: 526rpx;
  443. justify-content: space-between;
  444. .word {
  445. font-size: 26rpx;
  446. font-weight: 400;
  447. color: #3F8DFD;
  448. }
  449. .word_two {
  450. width: 156rpx;
  451. text-align: center;
  452. }
  453. }
  454. }
  455. }
  456. .distance_time {
  457. margin-top: 56rpx;
  458. .time_item {
  459. font-size: 32rpx;
  460. color: #222222;
  461. margin-bottom: 24rpx;
  462. }
  463. }
  464. .activity_phone {
  465. margin: 40rpx 0rpx 56rpx 0rpx;
  466. padding: 32rpx 0rpx 0rpx 44rpx;
  467. width: 670rpx;
  468. height: 148rpx;
  469. background: #FFFFFF;
  470. border-radius: 24rpx;
  471. .titles {
  472. font-size: 28rpx;
  473. color: #222222;
  474. margin-bottom: 12rpx;
  475. }
  476. .phone_num {
  477. font-size: 28rpx;
  478. font-weight: bold;
  479. color: #3F8DFD;
  480. }
  481. }
  482. .exam_entry {
  483. font-size: 32rpx;
  484. font-weight: 500;
  485. color: #222222;
  486. margin-bottom: 80rpx;
  487. }
  488. .course_list {
  489. // width: 100%;
  490. padding: 0rpx 32rpx;
  491. box-shadow: 0px 10rpx 9rpx 1rpx rgba(165, 196, 239, 0.1);
  492. .titles {
  493. margin-left: 10rpx;
  494. margin-bottom: 32rpx;
  495. .code {
  496. width: 38rpx;
  497. height: 24rpx;
  498. }
  499. .title {
  500. font-size: 40rpx;
  501. font-family: OPPOSans-Bold, OPPOSans;
  502. font-weight: bold;
  503. color: #222222;
  504. margin-left: 14rpx;
  505. }
  506. }
  507. .list_item {
  508. padding: 24rpx;
  509. // height: 278rpx;
  510. background: #FFFFFF;
  511. box-shadow: 0rpx 0rpx 20rpx 1rpx rgba(1,99,235,0.1000);
  512. border-radius: 24rpx;
  513. background:#fff;
  514. margin-bottom: 32rpx;
  515. display: flex;
  516. align-items: center;
  517. .c_title {
  518. font-size: 32rpx;
  519. font-weight: bold;
  520. margin-bottom: 24rpx;
  521. font-weight: bold;
  522. color: #222222;
  523. }
  524. .c_downs {
  525. display: flex;
  526. }
  527. .img {
  528. position:relative;
  529. margin-right: 24rpx;
  530. border-radius: 16rpx ;
  531. overflow: hidden;
  532. width: 204rpx;
  533. height: 120rpx;
  534. image {
  535. width:100%;
  536. height:100%;
  537. }
  538. .time {
  539. position:absolute;
  540. bottom:0;
  541. right:0;
  542. width: 80rpx;
  543. height: 32rpx;
  544. background: rgba(1, 25, 45, 0.4);
  545. color:#fff;
  546. text-align: center;
  547. line-height: 32rpx;
  548. font-size: 24rpx;
  549. border-radius: 10rpx 0px 10rpx 0px;
  550. }
  551. }
  552. .text {
  553. width: 440rpx;
  554. position: relative;
  555. display: flex;
  556. flex-direction: column;
  557. justify-content: space-between;
  558. height: 120rpx;
  559. .joins {
  560. .people {
  561. width: 160rpx;
  562. font-size: 20rpx;
  563. color: #999999;
  564. padding: 0rpx 8rpx;
  565. text-align: center;
  566. height: 36rpx;
  567. line-height: 36rpx;
  568. background: #F6F7FB;
  569. border-radius: 4px;
  570. }
  571. }
  572. .desc {
  573. margin-top: 10rpx;
  574. display: flex;
  575. align-items: center;
  576. justify-content: space-between;
  577. width: 100%;
  578. .left {
  579. flex:1;
  580. color:#333;
  581. font-size: 26rpx;
  582. .mon_t {
  583. font-weight: bold;
  584. color: #FC3F3F;
  585. font-size: 36rpx;
  586. }
  587. .sale {
  588. color: #999999;
  589. font-size: 24rpx;
  590. margin-left: 8rpx;
  591. }
  592. .price_line {
  593. color: #999999;
  594. font-size: 24rpx;
  595. text-decoration:line-through;
  596. font-weight: 400;
  597. }
  598. }
  599. .right {
  600. font-size: 24rpx;
  601. font-weight: bold;
  602. .regiser_row {
  603. width: 144rpx;
  604. height: 52rpx;
  605. line-height: 52rpx;
  606. text-align: center;
  607. border-radius: 16rpx;
  608. background-color: #FC3F3F;
  609. color: #fff;
  610. font-weight: 500;
  611. font-size: 26rpx;
  612. }
  613. }
  614. }
  615. }
  616. }
  617. }
  618. </style>