drawCard_fullSet.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846
  1. <template>
  2. <view class="container">
  3. <view class="head">
  4. <image class="img" :src="detail.prizeIcon" mode="aspectFill"></image>
  5. <view class="info">
  6. <view class="title row">
  7. {{ detail.name }}
  8. </view>
  9. <view class="row">
  10. <view class="price">
  11. ¥{{ detail.price }}
  12. <span class="text">/张明信片</span>
  13. </view>
  14. <image
  15. @click="$navigateTo('/pages/rule/rule', { type: 3 })"
  16. class="button"
  17. src="https://fudaanfang.oss-cn-hangzhou.aliyuncs.com/festatic/bkm/first2/rule.png"
  18. mode="widthFix"
  19. ></image>
  20. </view>
  21. <view class="row">
  22. <view class="users">
  23. <image
  24. class="photo"
  25. :style="'left:' + index * 11 + 'px'"
  26. :src="'https://fudaanfang.oss-cn-hangzhou.aliyuncs.com/festatic/bkm/item.png'"
  27. v-for="(item, index) in userList"
  28. mode="widthFix"
  29. ></image>
  30. </view>
  31. <view class="hot">
  32. <image :src="'https://file.rongcyl.cn/festatic/bkm/imgv2' + '/first/hot.png'" mode="widthFix"></image>
  33. {{ detail.hotNum }}
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="cardList">
  39. <image
  40. class="itemHead"
  41. :src="'https://file.rongcyl.cn/festatic/bkm/imgv2/drawCard_fullSet/headBk.png'"
  42. mode="widthFix"
  43. ></image>
  44. <view class="countdown textColor5">
  45. {{ countdown }}
  46. </view>
  47. <view class="title">
  48. <view class="left">
  49. <image
  50. class="text1"
  51. :src="'https://file.rongcyl.cn/festatic/bkm/imgv2/drawCard_fullSet/icon1.png'"
  52. mode="widthFix"
  53. ></image>
  54. <view class="row text2" style="font-size: 14px">已选择 {{ selectIndex.length }} 个</view>
  55. </view>
  56. <view class="right">
  57. <view class="text">
  58. 分享福袋有几率提高
  59. <span style="color: #63fff6">S赏</span>
  60. 概率
  61. </view>
  62. <!-- <image class="button" :src="'https://file.rongcyl.cn/festatic/bkm/imgv2/drawCard_fullSet/button1.png'" mode="widthFix"></image> -->
  63. <button open-type="share" class="share_btn">
  64. <image
  65. class="button"
  66. :src="'https://file.rongcyl.cn/festatic/bkm/imgv2/drawCard_fullSet/button1.png'"
  67. mode="widthFix"
  68. ></image>
  69. </button>
  70. </view>
  71. </view>
  72. <view class="list">
  73. <view
  74. :class="['item', item.status == 0 ? 'c1' : 'c2']"
  75. v-for="(item, index) in cardList"
  76. @click="clickCard(item)"
  77. >
  78. <numImg v-if="item.status == 0" class="num" :value="item" :type="3" />
  79. <img
  80. v-if="item.status == 2"
  81. src="https://file.rongcyl.cn/festatic/bkm/first2/gift_a.png"
  82. style="width: 60rpx; height: 72rpx"
  83. />
  84. <img
  85. v-if="item.status == 1"
  86. src="https://file.rongcyl.cn/festatic/bkm/first2/lock.png"
  87. style="width: 60rpx; height: 60rpx"
  88. />
  89. <image
  90. v-if="item.check"
  91. class="checkBk"
  92. src="https://file.rongcyl.cn/festatic/bkm/imgv2/first/cardCheck.png"
  93. mode="widthFix"
  94. ></image>
  95. </view>
  96. </view>
  97. <image
  98. class="buyButton"
  99. @click="submit"
  100. :src="'https://file.rongcyl.cn/festatic/bkm/imgv2/drawCard_fullSet/button2.png'"
  101. mode="widthFix"
  102. ></image>
  103. </view>
  104. <!-- <view class="examples">
  105. <view class="example">
  106. <image
  107. class="exampleImg"
  108. :src="'https://file.rongcyl.cn/festatic/bkm/imgv2/ka/kabk' + cardType(3, { status: 0 }) + '.png'"
  109. mode="widthFix"
  110. ></image>
  111. <image class="tip" :src="'https://file.rongcyl.cn/festatic/bkm/imgv2/ka/bkType1.png'" mode="widthFix"></image>
  112. </view>
  113. <view class="example">
  114. <image
  115. class="exampleImg"
  116. :src="'https://file.rongcyl.cn/festatic/bkm/imgv2/ka/kabk' + cardType(3, { status: 2 }) + '.png'"
  117. mode="widthFix"
  118. ></image>
  119. <image class="tip" :src="'https://file.rongcyl.cn/festatic/bkm/imgv2/ka/bkType5.png'" mode="widthFix"></image>
  120. </view>
  121. <view class="example">
  122. <image
  123. class="exampleImg"
  124. :src="'https://file.rongcyl.cn/festatic/bkm/imgv2/ka/kabk' + cardType(3, { status: 1 }) + '.png'"
  125. mode="widthFix"
  126. ></image>
  127. <image class="tip" :src="'https://file.rongcyl.cn/festatic/bkm/imgv2/ka/bkType4.png'" mode="widthFix"></image>
  128. </view>
  129. </view> -->
  130. <view class="buttons">
  131. <image
  132. class="button1"
  133. @click="toKnapsack"
  134. :src="'https://file.rongcyl.cn/festatic/bkm/imgv2/drawCard_fullSet/button3.png'"
  135. mode="heightFix"
  136. ></image>
  137. <!-- <image class="button1" :src="'https://file.rongcyl.cn/festatic/bkm/imgv2/drawCard_fullSet/button4.png'" mode="heightFix"></image> -->
  138. <image
  139. class="button1"
  140. @click="$navigateTo('/pages/drawCard_fullSet/goods', { raffleId: params.raffleId })"
  141. :src="'https://file.rongcyl.cn/festatic/bkm/imgv2/drawCard_fullSet/button5.png'"
  142. mode="heightFix"
  143. ></image>
  144. </view>
  145. <view
  146. class="winningList"
  147. v-if="prizeUserList.length > 0"
  148. @click="$navigateTo('/pages/drawCard_fullSet/winningList', { raffleId: params.raffleId })"
  149. >
  150. <image
  151. class="winningListTitle"
  152. :src="'https://file.rongcyl.cn/festatic/bkm/imgv2/drawCard_fullSet/icon2.png'"
  153. mode="widthFix"
  154. ></image>
  155. <view class="list">
  156. <view class="item" v-for="(item, index) in prizeUserList.slice(0, 5)">
  157. <image class="photo" :src="item.userAvtar" mode="aspectFill"></image>
  158. <view class="name">
  159. {{ item.userName }}
  160. </view>
  161. </view>
  162. <view class="item" v-if="prizeUserList.length > 5">
  163. <image
  164. class="photo"
  165. :src="'https://file.rongcyl.cn/festatic/bkm/imgv2/drawCard_fullSet/icon3.png'"
  166. mode="aspectFill"
  167. ></image>
  168. <view class="name" style="color: #6478fd">查看更多</view>
  169. </view>
  170. </view>
  171. </view>
  172. <view class="prizes" style="display: none">
  173. <image class="title" :src="'https://file.rongcyl.cn/festatic/bkm/imgv2/first/title.png'" mode="widthFix"></image>
  174. <view class="prizesList" v-for="(item, index) in prizeList">
  175. <image class="bk" :src="'https://file.rongcyl.cn/festatic/bkm/imgv2/first/bk2.png'" mode="scaleToFill"></image>
  176. <view class="prizesTitle">
  177. {{ $selectDictLabel(rewardType, item.type) }}
  178. </view>
  179. <view class="prizesImgOne" v-if="item.type == 22">
  180. <view class="image" v-for="(item2, index2) in item.prizeList">
  181. <image :class="item2.leftNum == 0 ? 'grey' : ''" :src="item2.icon" mode="aspectFill"></image>
  182. </view>
  183. </view>
  184. <view class="prizesImg" v-else>
  185. <view class="image" v-for="(item2, index2) in item.prizeList">
  186. <image :class="item2.leftNum == 0 ? 'grey' : ''" :src="item2.icon" mode="aspectFill"></image>
  187. </view>
  188. </view>
  189. </view>
  190. </view>
  191. <image
  192. class="refresh"
  193. @click="refresh"
  194. :src="'https://file.rongcyl.cn/festatic/bkm/imgv2/first/refresh.png'"
  195. mode="widthFix"
  196. ></image>
  197. <paymentPopup ref="paymentPopup" @callBack="paymentSuccess" />
  198. <view style="height: 40px; width: 100%"></view>
  199. </view>
  200. </template>
  201. <script>
  202. import { rewardType } from '@/utils/commonConfig.js'
  203. import { prizePoolStatusApi, raffleDetailApi, prizeListApi, prizeUserListApi } from '@/api/drawCard.js'
  204. import { cardType, formatSeconds } from '@/utils/utils.js'
  205. import numImg from '@/component/numImg.vue'
  206. import paymentPopup from '@/component/paymentPopup.vue'
  207. export default {
  208. components: {
  209. numImg,
  210. paymentPopup,
  211. },
  212. data() {
  213. return {
  214. countdown: '',
  215. countdownInfinity: null,
  216. cardType: cardType,
  217. rewardType: rewardType,
  218. params: {
  219. raffleId: '',
  220. limit: 20,
  221. page: 1,
  222. },
  223. detail: {},
  224. total: 0,
  225. userList: 8,
  226. cardList: [],
  227. selectIndex: [],
  228. prizeList: [],
  229. prizeUserList: [],
  230. }
  231. },
  232. onLoad(query) {
  233. console.log(query, 'query')
  234. if (query.id) {
  235. this.params.raffleId = query.id
  236. this.init()
  237. }
  238. this.paymentSuccess()
  239. },
  240. onHide() {
  241. if (!this.countdownInfinity) {
  242. clearInterval(this.countdownInfinity)
  243. }
  244. },
  245. methods: {
  246. init() {
  247. // 获取卡牌商品列表
  248. this.getCardList()
  249. // 获取卡包详情
  250. this.getDetail()
  251. //获取奖池
  252. this.getPrizeList()
  253. // 获取中奖记录
  254. this.getPrizeUserList()
  255. },
  256. toKnapsack() {
  257. // 跳转背包界面
  258. wx.navigateTo({
  259. url: '/pages/knapsack/knapsack',
  260. })
  261. },
  262. refresh() {
  263. wx.showLoading()
  264. setTimeout(function () {
  265. wx.hideLoading()
  266. }, 1000)
  267. this.init()
  268. this.selectIndex = []
  269. for (var i = 0; i < this.cardList.length; i++) {
  270. this.cardList[i].check = false
  271. }
  272. },
  273. getPrizeUserList() {
  274. let params = {
  275. limit: 999,
  276. page: 1,
  277. raffleId: this.params.raffleId,
  278. }
  279. prizeUserListApi(params).then(res => {
  280. console.log(res, '中奖记录')
  281. let userIds = []
  282. let list = []
  283. for (var i = 0; i < res.data.length; i++) {
  284. let item = res.data[i]
  285. if (userIds.indexOf(item.userId) == -1) {
  286. userIds.push(item.userId)
  287. console.log(userIds.indexOf(item.userId))
  288. let index = userIds.indexOf(item.userId)
  289. list[index] = {
  290. userId: item.userId,
  291. userAvtar: item.userAvtar,
  292. userName: item.userName,
  293. prizes: [],
  294. }
  295. list[index].prizes.push(item)
  296. } else {
  297. let index = userIds.indexOf(item.userId)
  298. list[index].prizes.push(item)
  299. }
  300. }
  301. this.userIds = userIds
  302. this.prizeUserList = list
  303. })
  304. },
  305. getPrizeList() {
  306. let params = {
  307. raffleId: this.params.raffleId,
  308. }
  309. prizeListApi(params).then(res => {
  310. console.log(res, '奖池预览')
  311. let newArray = res.data
  312. for (var i = 0; i < res.data.length; i++) {
  313. if (res.data[i].type == 21) {
  314. newArray = []
  315. newArray.push(res.data[i])
  316. res.data.splice(i, 1)
  317. newArray.push(...res.data)
  318. break
  319. }
  320. }
  321. this.prizeList = newArray
  322. })
  323. },
  324. toWinningRecord() {
  325. let params = {
  326. raffleId: this.params.raffleId,
  327. }
  328. this.$navigateTo('/pages/winningRecord/winningRecord', params)
  329. },
  330. getDetail() {
  331. let params = {
  332. raffleId: this.params.raffleId,
  333. }
  334. raffleDetailApi(params).then(res => {
  335. console.log(res, '详情')
  336. this.detail = res.data
  337. this.endTime = new Date(this.detail.endTime).getTime()
  338. // this.endTime = new Date('2023-11-10 14:48:00').getTime()
  339. // 初始化倒计时
  340. this.initCountdown()
  341. if (this.countdown != '已结束') {
  342. this.countdownInfinity = setInterval(() => {
  343. if (this.countdown == '已结束') {
  344. clearInterval(this.countdownInfinity)
  345. this.countdownInfinity = null
  346. return
  347. }
  348. this.initCountdown()
  349. }, 1000)
  350. }
  351. })
  352. },
  353. initCountdown() {
  354. let nowTime = new Date().getTime()
  355. let endTime = this.endTime
  356. let countdownText = ''
  357. let countdown = endTime - nowTime
  358. if (countdown <= 0) {
  359. countdownText = '已结束'
  360. } else {
  361. countdownText = formatSeconds(countdown)
  362. }
  363. // console.log(countdownText, 'countdownText')
  364. this.countdown = countdownText
  365. },
  366. submit() {
  367. if (this.selectIndex.length == 0) {
  368. wx.showToast({
  369. title: '请选则要购买的卡牌。',
  370. icon: 'none',
  371. })
  372. return
  373. }
  374. let params = {
  375. raffleId: this.params.raffleId,
  376. }
  377. this.$refs.paymentPopup.show(params, this.selectIndex, this.detail)
  378. },
  379. // 支付成功后回调
  380. paymentSuccess() {
  381. let _this = this
  382. console.log('刷新抽卡界面')
  383. // 刷新界面
  384. _this.refresh()
  385. },
  386. // 选中取消选中卡牌
  387. clickCard(item) {
  388. if (item.status == 0) {
  389. item.check = !item.check
  390. }
  391. // 如果是选中
  392. let index = this.selectIndex.indexOf(item.number)
  393. if (item.check && index == -1) {
  394. this.selectIndex.push(item.number)
  395. } else if (!item.check && index != -1) {
  396. this.selectIndex.splice(index, 1)
  397. }
  398. },
  399. // 标记已经选中卡牌
  400. selectFormat() {
  401. for (var i = 0; i < this.cardList.length; i++) {
  402. if (this.selectIndex.includes(this.cardList[i].number)) {
  403. this.cardList[i].check = true
  404. }
  405. }
  406. },
  407. getCardList() {
  408. prizePoolStatusApi(this.params).then(res => {
  409. console.log(res, '卡牌分页')
  410. for (var i = 0; i < res.data.list.length; i++) {
  411. res.data.list[i].check = false
  412. }
  413. this.cardList = res.data.list
  414. this.selectFormat()
  415. this.total = res.data.total
  416. })
  417. },
  418. left() {
  419. console.log('上一页')
  420. if (this.params.page > 1) {
  421. this.params.page = this.params.page - 1
  422. }
  423. this.getCardList()
  424. },
  425. right() {
  426. console.log('下一页')
  427. let pages = Math.ceil(this.total / this.params.limit)
  428. if (this.params.page < pages) {
  429. this.params.page = this.params.page + 1
  430. }
  431. this.getCardList()
  432. },
  433. },
  434. }
  435. </script>
  436. <style scoped lang="scss">
  437. .share_btn {
  438. background-color: transparent;
  439. border-width: 0 !important;
  440. border-radius: 0;
  441. overflow: initial;
  442. text-align: start;
  443. padding: 0;
  444. box-shadow: none !important;
  445. -webkit-tap-highlight-color: transparent;
  446. &::after {
  447. border: none;
  448. }
  449. }
  450. .container {
  451. background: #9ec8f9;
  452. padding-top: 15px;
  453. overflow: auto;
  454. .refresh {
  455. position: fixed;
  456. right: 4px;
  457. top: 75%;
  458. width: 40px;
  459. z-index: 5;
  460. }
  461. .head {
  462. background: #fff;
  463. border: 10px;
  464. padding: 15px;
  465. border-radius: 10px 10px 0 0;
  466. display: flex;
  467. justify-content: space-between;
  468. margin-bottom: 20px;
  469. .img {
  470. width: 106px;
  471. height: 106px;
  472. border-radius: 5px;
  473. overflow: hidden;
  474. margin-right: 10px;
  475. }
  476. .info {
  477. display: flex;
  478. flex-direction: column;
  479. justify-content: start;
  480. flex: 1;
  481. .row {
  482. margin: 5px 0;
  483. display: flex;
  484. justify-content: space-between;
  485. color: #999999;
  486. .button {
  487. width: 67px;
  488. }
  489. .hot {
  490. display: flex;
  491. font-size: 12px;
  492. color: #999999;
  493. image {
  494. width: 16px;
  495. }
  496. }
  497. .users {
  498. position: relative;
  499. .photo {
  500. position: absolute;
  501. width: 20px;
  502. height: 20px;
  503. border-radius: 50%;
  504. }
  505. }
  506. }
  507. .title {
  508. font-weight: 600;
  509. color: #000;
  510. }
  511. .price {
  512. font-size: 16px;
  513. font-weight: 600;
  514. color: #ff2c43;
  515. .text {
  516. font-size: 14px;
  517. color: #999999;
  518. font-weight: 500;
  519. }
  520. }
  521. }
  522. }
  523. .cardList {
  524. margin: 10px;
  525. border-radius: 12px;
  526. position: relative;
  527. background: linear-gradient(180deg, #31b7fd 10%, #6478fd 90%);
  528. // overflow: scroll;
  529. padding-bottom: 1px;
  530. .countdown {
  531. position: absolute;
  532. top: 1px;
  533. padding-left: 70px;
  534. font-size: 15px;
  535. }
  536. .itemHead {
  537. position: relative;
  538. left: -10px;
  539. top: -10px;
  540. width: calc(100% + 10px);
  541. }
  542. .title {
  543. display: flex;
  544. justify-content: space-between;
  545. color: #fff;
  546. padding: 0 15px 6px 15px;
  547. .left {
  548. .text1 {
  549. width: 6.5rem;
  550. // font-size: 24px;
  551. // font-weight: 600;
  552. // text-shadow: 1px 1px 0px #0A57BA;
  553. // font-family: YouSheBiaoTiHei-Regular, YouSheBiaoTiHei;
  554. }
  555. .text2 {
  556. font-family:
  557. Alimama FangYuanTi VF-Medium-Round,
  558. Alimama FangYuanTi VF-Medium;
  559. }
  560. }
  561. .right {
  562. display: flex;
  563. .text {
  564. width: 100px;
  565. font-size: 12px;
  566. text-align: right;
  567. }
  568. .button {
  569. width: 72px;
  570. height: 30px;
  571. }
  572. }
  573. }
  574. .bk {
  575. width: 100%;
  576. }
  577. .list {
  578. background: #fff;
  579. padding: 15px;
  580. border-radius: 12px;
  581. // width: calc(100% - 80px);
  582. // height: calc(100% - 70px);
  583. // position: absolute;
  584. // top: 0;
  585. display: grid;
  586. grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  587. grid-template-rows: 1fr 1fr 1fr;
  588. grid-gap: 15px;
  589. .c1 {
  590. background-image: url(https://file.rongcyl.cn/festatic/bkm/imgv2/ka/kabk3.png);
  591. // width: 96rpx;
  592. height: 128rpx;
  593. background-repeat: no-repeat;
  594. background-position: center center;
  595. background-size: contain;
  596. margin-bottom: 14rpx;
  597. position: relative;
  598. .checkBk {
  599. position: absolute;
  600. width: 105%;
  601. }
  602. }
  603. .c2 {
  604. background-image: url(https://file.rongcyl.cn/festatic/bkm/imgv2/ka/kabk4.png);
  605. // width: 96rpx;
  606. height: 128rpx;
  607. background-repeat: no-repeat;
  608. background-position: center center;
  609. background-size: contain;
  610. margin-bottom: 14rpx;
  611. }
  612. .item {
  613. display: inline-flex;
  614. justify-content: center;
  615. align-items: center;
  616. position: relative;
  617. .kaBkActive {
  618. height: 142%;
  619. width: 100%;
  620. position: absolute;
  621. z-index: 1;
  622. }
  623. .kaBk {
  624. width: 100%;
  625. border-radius: 4px;
  626. z-index: 2;
  627. }
  628. .num {
  629. // position: absolute;
  630. width: 100%;
  631. height: 100%;
  632. // top: 0;
  633. // z-index: 2;
  634. }
  635. }
  636. }
  637. .buyButton {
  638. width: 40%;
  639. margin: 10px auto;
  640. }
  641. }
  642. .winningList {
  643. margin: 20px 10px;
  644. padding: 15px;
  645. background: linear-gradient(180deg, #31b7fd 10%, #6478fd 90%);
  646. border-radius: 12px;
  647. .winningListTitle {
  648. width: 92px;
  649. margin-bottom: 12px;
  650. }
  651. .list {
  652. position: relative;
  653. padding: 12px 7px 12px 12px;
  654. border-radius: 12px;
  655. background: #fff;
  656. display: flex;
  657. .item {
  658. width: calc(100% / 6 - 5px);
  659. // margin: 0 auto;
  660. position: relative;
  661. display: inline-flex;
  662. flex-direction: column;
  663. justify-content: center;
  664. align-items: center;
  665. margin-right: 5px;
  666. .photo {
  667. width: 40px;
  668. height: 40px;
  669. border-radius: 50%;
  670. background: #b6b6b6;
  671. }
  672. .name {
  673. margin-top: 5px;
  674. display: inline-block;
  675. font-size: 11px;
  676. max-width: 100%;
  677. overflow: hidden;
  678. white-space: nowrap;
  679. text-overflow: ellipsis;
  680. }
  681. }
  682. }
  683. }
  684. .buttons {
  685. display: flex;
  686. justify-content: center;
  687. align-items: flex-start;
  688. padding: 0 10px;
  689. .button1 {
  690. height: 52px;
  691. }
  692. }
  693. .prizes {
  694. .title {
  695. width: 103px;
  696. margin: 0 auto;
  697. }
  698. .prizesList {
  699. margin: 20px;
  700. position: relative;
  701. overflow: hidden;
  702. // z-index: 5;
  703. .bk {
  704. width: 100%;
  705. height: 100%;
  706. position: absolute;
  707. top: 0;
  708. }
  709. .prizesTitle {
  710. position: relative;
  711. height: 30px;
  712. line-height: 30px;
  713. width: 100%;
  714. margin-left: 1px;
  715. margin-top: 15px;
  716. padding-left: 15px;
  717. color: #fff;
  718. font-weight: 800;
  719. background: linear-gradient(90deg, rgba(89, 166, 255, 0.8) 0%, rgba(158, 200, 249, 0) 100%);
  720. }
  721. .prizesImg {
  722. position: relative;
  723. display: grid;
  724. grid-template-columns: 1fr 1fr;
  725. margin: 15px;
  726. white-space: wrap;
  727. text-align: center;
  728. // overflow: auto;
  729. .image {
  730. text-align: center;
  731. image {
  732. display: inline-block;
  733. width: 36vw;
  734. height: 36vw;
  735. border-radius: 10px;
  736. margin: 0 5px;
  737. }
  738. }
  739. }
  740. .prizesImgOne {
  741. position: relative;
  742. display: flex;
  743. justify-content: center;
  744. margin: 15px;
  745. .image {
  746. text-align: center;
  747. image {
  748. display: inline-block;
  749. width: 45vw;
  750. height: 45vw;
  751. border-radius: 10px;
  752. margin: 0 5px;
  753. }
  754. }
  755. }
  756. }
  757. }
  758. }
  759. .examples {
  760. width: 100%;
  761. margin-bottom: 20px;
  762. padding: 0 10px;
  763. display: flex;
  764. .example {
  765. width: 14vw;
  766. margin-right: 10px;
  767. display: flex;
  768. justify-content: center;
  769. flex-wrap: wrap;
  770. position: relative;
  771. .exampleImg {
  772. width: 13vw;
  773. }
  774. .tip {
  775. width: 100%;
  776. position: absolute;
  777. bottom: 0;
  778. transform: translateY(50%);
  779. }
  780. }
  781. }
  782. </style>