drawCard_fullSet.vue 25 KB

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