drawCard_fullSet.vue 20 KB

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