index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757
  1. <template>
  2. <view class="common">
  3. <view class="body">
  4. <view class="top-class"></view>
  5. <view class="title">
  6. 梅山古镇
  7. </view>
  8. <view>
  9. <image class="logo-img" src="/static/images/common/logo.png" mode="aspectFit" />
  10. </view>
  11. <view class="head">
  12. <u-swiper :list="list1"></u-swiper>
  13. </view>
  14. <view class="text">
  15. <image src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/text.png"
  16. class="textImage"></image>
  17. </view>
  18. <view class="content">
  19. <view class="chouka" style="width: 100%;">
  20. <view class="" style="margin-bottom: 10px;">
  21. <u-row justify="space-between"
  22. customStyle="margin-bottom: 5px;display: flex; align-items: center;">
  23. <u-col span="4">
  24. </u-col>
  25. <u-col span="4" class="center-col">
  26. <view class="text-1">翻卡抽盲盒</view>
  27. </u-col>
  28. <u-col span="4" class="right-col">
  29. <view class="text-2" @click="openDetail()">活动规则</view>
  30. </u-col>
  31. </u-row>
  32. </view>
  33. <template>
  34. <!-- 卡片区 -->
  35. <view class="cards">
  36. <view class="card" v-for="(item, idx) in cards" :key="idx" @click="flipCard(idx)"
  37. :class="{ 'flipping': item.isFlipping, 'flipped': item.flipped }">
  38. <view v-if="item.checkStauts" class="select-tag">
  39. 已选
  40. </view>
  41. <view class="card-inner">
  42. <view class="card-front">
  43. <image class="card-img" :src="item.front" mode="scaleToFill"></image>
  44. </view>
  45. <view class="card-back">
  46. <image class="card-img"
  47. :src="item.prizeType == 2 && item.img ? item.img : item.back"
  48. mode="scaleToFill"></image>
  49. <view class="card-back-text">
  50. <view v-show="item.prizeType == 0" class="card-text">很遗憾</view>
  51. <view v-show="item.prizeType == 1" class="card-text">{{item.money/100}}元红包
  52. </view>
  53. <view v-show="item.prizeType == 0" class="card-text">下次继续</view>
  54. <view v-show="item.prizeType == 2 && !item.img " class="card-text">恭喜您中奖了
  55. </view>
  56. <view v-show="item.prizeType == 2 && !item.img" class="card-text">
  57. {{item.prizeName}}</view>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. </template>
  64. </view>
  65. <u-popup :show="showWin" :round="10" mode="center" @close="close" @open="open" closeable="true">
  66. <view class="popup-flex">
  67. <view class="popup-content-scroll">
  68. <!-- 这里放原来的内容部分(除返回按钮) -->
  69. <view class="popup-view">
  70. <image
  71. src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/win.png"
  72. class="winImgClss"></image>
  73. </view>
  74. <view class="popup-content">
  75. <u-row customStyle="margin-bottom: 5px">
  76. <!-- <u-col span="6">
  77. <image :src="prizeJson.img" class="prize"></image>
  78. </u-col> -->
  79. <u-col span="12">
  80. <view class="popup-prize-text">{{prizeJson.prize_name}}</view>
  81. </u-col>
  82. </u-row>
  83. <view class="popup-text">
  84. 请留下联系方式,稍后工作人员会联系您!
  85. </view>
  86. <u--form labelPosition="left" :model="model1" :rules="rules" ref="uForm">
  87. <u-form-item label="姓名" prop="userInfo.name" ref="item1">
  88. <u--input v-model="model1.userInfo.name" border="none"></u--input>
  89. </u-form-item>
  90. <u-form-item label="电话" prop="userInfo.tel" ref="item1">
  91. <u--input v-model="model1.userInfo.tel" border="none"></u--input>
  92. </u-form-item>
  93. </u--form>
  94. </view>
  95. </view>
  96. <view class="popup-footer">
  97. <view class="save-button" @click="addWinDetail()">领取</view>
  98. </view>
  99. </view>
  100. </u-popup>
  101. <u-popup :show="showUnWin" :round="10" mode="center" @close="close" @open="open" closeable="true">
  102. <view class="popup-flex">
  103. <view class="popup-content-scroll">
  104. <!-- 这里放原来的内容部分(除返回按钮) -->
  105. <view class="popup-view">
  106. <image
  107. src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/unWin.png"
  108. class="winImgClss"></image>
  109. </view>
  110. <view class="popup-content">
  111. <view class="">
  112. <image class="productImg" mode="widthFix"
  113. src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/product.png ">
  114. </image>
  115. </view>
  116. <view class="">
  117. {{ randomText }}
  118. </view>
  119. </view>
  120. </view>
  121. <view class="popup-footer">
  122. <view class="save-button unWin" @click="close()">我知道了</view>
  123. </view>
  124. </view>
  125. </u-popup>
  126. </view>
  127. </view>
  128. <CustomTabbar />
  129. </view>
  130. </template>
  131. <script>
  132. import {
  133. randomTexts
  134. } from '../../../utils/randomTexts.js';
  135. import CustomTabbar from '@/components/tabbar.vue';
  136. import {
  137. addWinDetail,
  138. saveCardData
  139. } from '@/api/scan'
  140. export default {
  141. components: {
  142. CustomTabbar
  143. },
  144. data() {
  145. return {
  146. rules: {
  147. 'userInfo.name': {
  148. type: 'string',
  149. required: true,
  150. message: '请填写姓名',
  151. trigger: ['blur', 'change']
  152. },
  153. 'userInfo.tel': {
  154. type: 'string',
  155. required: true,
  156. message: '请填写手机号',
  157. trigger: ['blur', 'change']
  158. },
  159. },
  160. model1: {
  161. userInfo: {
  162. name: '',
  163. tel: '',
  164. qrcodeId: ''
  165. },
  166. },
  167. showUnWin: false,
  168. showWin: false,
  169. list1: [
  170. "https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/commodity/1.jpg",
  171. "https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/commodity/2.jpg",
  172. "https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/commodity/3.jpg",
  173. "https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/commodity/4.jpg",
  174. "https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/commodity/5.jpg",
  175. ],
  176. cards: [{
  177. front: 'https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/one.png',
  178. back: 'https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/bgiCard.png',
  179. flipped: false,
  180. prizeName: '',
  181. title: '',
  182. checkStauts: false,
  183. img: '',
  184. money: '',
  185. prizeType: '',
  186. isFlipping: false
  187. },
  188. {
  189. front: 'https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/two.png',
  190. back: 'https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/bgiCard.png',
  191. flipped: false,
  192. prizeName: '',
  193. title: '',
  194. checkStauts: false,
  195. img: '',
  196. money: '',
  197. prizeType: '',
  198. isFlipping: false
  199. },
  200. {
  201. front: 'https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/three.png',
  202. back: 'https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/bgiCard.png',
  203. flipped: false,
  204. prizeName: '',
  205. title: '',
  206. checkStauts: false,
  207. img: '',
  208. money: '',
  209. prizeType: '',
  210. isFlipping: false
  211. },
  212. {
  213. front: 'https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/four.png',
  214. back: 'https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/bgiCard.png',
  215. flipped: false,
  216. prizeName: '',
  217. title: '',
  218. checkStauts: false,
  219. img: '',
  220. money: '',
  221. prizeType: '',
  222. isFlipping: false
  223. },
  224. {
  225. front: 'https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/five.png',
  226. back: 'https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/bgiCard.png',
  227. flipped: false,
  228. prizeName: '',
  229. title: '',
  230. checkStauts: false,
  231. img: '',
  232. money: '',
  233. prizeType: '',
  234. isFlipping: false
  235. },
  236. {
  237. front: 'https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/six.png',
  238. back: 'https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/bgiCard.png',
  239. flipped: false,
  240. prizeName: '',
  241. title: '',
  242. checkStauts: false,
  243. img: '',
  244. money: '',
  245. prizeType: '',
  246. isFlipping: false
  247. }
  248. ],
  249. totalDetail: '',
  250. prizeJson: {},
  251. saveData: {},
  252. scanCode: '',
  253. saveStatus: true,
  254. fankaStatu: false,
  255. randomText: ""
  256. }
  257. },
  258. onLoad() {
  259. this.setRandomText();
  260. let scanDetail = uni.getStorageSync('scanDetail');
  261. this.scanCode = uni.getStorageSync('scanCode');
  262. this.model1.userInfo.qrcodeId = this.scanCode;
  263. this.prizeJson = scanDetail.prizeJson;
  264. let planDetail = JSON.parse(scanDetail.planDetail);
  265. while (planDetail.length < 5) {
  266. planDetail.push({
  267. 'prizeType': 0,
  268. 'money': 0
  269. })
  270. }
  271. this.totalDetail = planDetail;
  272. console.log(planDetail);
  273. if (scanDetail.result.click) {
  274. this.initCardData(scanDetail.clickJson);
  275. if (!scanDetail.result.hasInfo && (this.prizeJson.prizeType == 2 || this.prizeJson.prize_type == 2)){
  276. this.showWin = true;
  277. }
  278. }
  279. },
  280. methods: {
  281. setRandomText() {
  282. const randomIndex = Math.floor(Math.random() * randomTexts.length);
  283. this.randomText = randomTexts[randomIndex];
  284. },
  285. initCardData(clickJson) {
  286. let list = JSON.parse(clickJson);
  287. for (let i = 0; i < this.cards.length; i++) {
  288. if (i == list.index) {
  289. this.cards[i].checkStauts = true
  290. }
  291. this.cards[i].img = list['card' + i].img;
  292. this.cards[i].flipped = true;
  293. this.cards[i].prizeType = list['card' + i].prize_type == undefined ? list['card' + i].prizeType : list[
  294. 'card' + i].prize_type;
  295. this.cards[i].money = list['card' + i].money;
  296. this.cards[i].prizeName = list['card' + i].prizeName == undefined ? list['card' + i].prize_name : list[
  297. 'card' + i].prizeName;
  298. }
  299. this.$forceUpdate();
  300. },
  301. addWinDetail() {
  302. let that = this;
  303. this.$refs.uForm.validate().then(res => {
  304. addWinDetail(that.model1.userInfo).then(data => {
  305. this.showWin = false;
  306. if (data.code == 0) {
  307. that.saveStatus = false;
  308. // uni.redirectTo({
  309. // url: '/pages/lgz/index/claim' // 目标页面路径
  310. // })
  311. let params = {
  312. type: "success",
  313. title: "成功主题(带图标)",
  314. message: "提交成功",
  315. iconUrl: "https://uviewui.com/demo/toast/success.png",
  316. }
  317. that.$refs.uToast.show({
  318. ...params
  319. });
  320. } else {
  321. }
  322. })
  323. }).catch(errors => {
  324. })
  325. },
  326. open() {
  327. // console.log('open');
  328. },
  329. close() {
  330. this.showUnWin = false;
  331. this.showWin = false
  332. },
  333. flipCard(idx) {
  334. if (this.fankaStatu) {
  335. return;
  336. }
  337. if (this.cards[idx].flipped) {
  338. if (!scanDetail.result.hasInfo && (this.prizeJson.prizeType == 2 || this.prizeJson.prize_type == 2)){
  339. this.showWin = true;
  340. }
  341. return;
  342. }
  343. this.fankaStatu = true;
  344. setTimeout(() => {
  345. if (this.prizeJson.prizeType == 0 || this.prizeJson.prize_type == 0) {
  346. this.showUnWin = true;
  347. }
  348. if ((this.prizeJson.prizeType == 2 || this.prizeJson.prize_type == 2) && this.saveStatus) {
  349. this.showWin = true;
  350. }
  351. }, 2500); //弹框延迟3.5秒后显示弹框
  352. // 标记被点击的卡牌正在翻转
  353. this.cards[idx].isFlipping = true;
  354. this.cards[idx].checkStauts = true;
  355. let that = this;
  356. // 延迟翻转其他卡牌
  357. setTimeout(() => {
  358. that.cards[idx].flipped = true;
  359. that.cards[idx].isFlipping = false;
  360. // 其他未翻转的卡牌延迟2秒后同时翻转
  361. setTimeout(() => {
  362. that.cards.forEach((card, index) => {
  363. if (index !== idx && !card.flipped) {
  364. card.isFlipping = true;
  365. that.$forceUpdate();
  366. }
  367. });
  368. // 所有其他卡牌同时翻转
  369. setTimeout(() => {
  370. that.cards.forEach((card, index) => {
  371. if (index !== idx && !card.flipped) {
  372. card.flipped = true;
  373. card.isFlipping = false;
  374. that.$forceUpdate();
  375. }
  376. });
  377. }, 300); // 与其他卡牌翻转动画保持一致
  378. }, 1000); // 延迟2秒翻转其他卡牌
  379. // 处理数据逻辑
  380. that.totalDetail.splice(idx, 0, this.prizeJson);
  381. that.saveData.index = idx;
  382. for (let i = 0; i < that.totalDetail.length; i++) {
  383. if (that.cards[i]) {
  384. that.saveData['card' + i] = that.totalDetail[i];
  385. that.cards[i].prizeType = that.totalDetail[i].prize_type == undefined ?
  386. that.totalDetail[i].prizeType :
  387. that.totalDetail[i].prize_type;
  388. that.cards[i].img = that.totalDetail[i].img;
  389. that.cards[i].money = that.totalDetail[i].money;
  390. that.cards[i].prizeName = that.totalDetail[i].prizeName == undefined ?
  391. that.totalDetail[i].prize_name :
  392. that.totalDetail[i].prizeName;
  393. }
  394. }
  395. that.saveAllCardData();
  396. }, 100);
  397. },
  398. saveAllCardData() {
  399. let jsonStr = JSON.stringify(this.saveData);
  400. saveCardData(this.scanCode, jsonStr).then(res => {
  401. console.log(res)
  402. })
  403. },
  404. openDetail() {
  405. uni.navigateTo({
  406. url: '/pages/lgz/index/rules'
  407. });
  408. }
  409. }
  410. }
  411. </script>
  412. <style>
  413. @import url('../../../static/scss/common.css');
  414. .common {
  415. background-image:
  416. url("https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/bgi-two.png");
  417. }
  418. .title {
  419. height: 4vh;
  420. line-height: 5vh;
  421. }
  422. .head {
  423. background-image:
  424. url("https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/zhanshi.png");
  425. background-size: cover;
  426. background-position: center;
  427. background-repeat: no-repeat;
  428. height: 23vh;
  429. margin: 0px 40rpx;
  430. display: flex;
  431. justify-content: center;
  432. /* 水平居中 */
  433. align-items: center;
  434. /* 垂直居中 */
  435. }
  436. .text {
  437. height: 10vh;
  438. text-align: center;
  439. line-height: 13vh;
  440. margin-bottom: 10rpx;
  441. }
  442. .textImage {
  443. height: 80rpx;
  444. width: 400rpx;
  445. }
  446. .content {
  447. height: 42vh;
  448. background: rgba(131, 100, 71, 0.5);
  449. border-radius: 10rpx;
  450. margin: 0rpx 40rpx;
  451. padding: 10rpx 24rpx;
  452. overflow: auto;
  453. display: flex;
  454. align-items: center;
  455. justify-content: center;
  456. }
  457. .text-1 {
  458. text-align: center;
  459. font-size: 24rpx;
  460. font-weight: 600;
  461. color: white;
  462. background-color: #9A1712;
  463. width: 160rpx;
  464. border-radius: 4rpx;
  465. height: 40rpx;
  466. line-height: 40rpx;
  467. }
  468. .text-2 {
  469. text-align: center;
  470. font-size: 24rpx;
  471. font-weight: 600;
  472. color: #F9D395;
  473. background-color: #9A1712;
  474. width: 120rpx;
  475. border-radius: 4rpx;
  476. height: 40rpx;
  477. line-height: 40rpx;
  478. margin-left: 80rpx;
  479. }
  480. .cards {
  481. display: grid;
  482. grid-template-columns: repeat(3, 1fr);
  483. gap: 30rpx;
  484. width: 100%;
  485. }
  486. .card {
  487. width: 100%;
  488. height: 250rpx;
  489. position: relative;
  490. background: none;
  491. border-radius: 16rpx;
  492. margin: 0;
  493. perspective: 1000px;
  494. }
  495. .card-inner {
  496. position: relative;
  497. width: 100%;
  498. height: 100%;
  499. transition: transform 0.8s cubic-bezier(0.5, 1.5, 0.5, 1);
  500. transform-style: preserve-3d;
  501. }
  502. .card.flipping .card-inner {
  503. transform: rotateY(180deg);
  504. }
  505. .card.flipped .card-inner {
  506. transform: rotateY(180deg);
  507. }
  508. .card-front,
  509. .card-back {
  510. position: absolute;
  511. width: 100%;
  512. height: 100%;
  513. backface-visibility: hidden;
  514. }
  515. .card-back {
  516. transform: rotateY(180deg);
  517. }
  518. .card-back-text {
  519. position: absolute;
  520. top: 50%;
  521. left: 0;
  522. width: 100%;
  523. text-align: center;
  524. color: #9A1712;
  525. font-weight: bold;
  526. font-size: 28rpx;
  527. transform: translateY(-50%);
  528. z-index: 2;
  529. pointer-events: none;
  530. }
  531. .card-img {
  532. width: 100%;
  533. height: 100%;
  534. display: block;
  535. }
  536. ::v-deep .content .u-popup__content {
  537. height: 720rpx;
  538. width: 600rpx;
  539. background-color: rgba(0, 0, 0, 0) !important;
  540. background-image:
  541. url("https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/bgiPopup.png");
  542. background-size: cover;
  543. background-position: center;
  544. background-repeat: no-repeat;
  545. }
  546. ::v-deep .u-popup__content__close--top-right {
  547. top: 720rpx !important;
  548. right: 288rpx !important;
  549. }
  550. .winImgClss {
  551. height: 60rpx;
  552. width: 320rpx;
  553. }
  554. .popup-view {
  555. text-align: center;
  556. margin-top: 100rpx;
  557. }
  558. .popup-content {
  559. margin: 15px 54px;
  560. overflow: auto;
  561. }
  562. .popup-text {
  563. font-weight: 400;
  564. font-size: 20rpx;
  565. color: #9B0000;
  566. }
  567. .prize {
  568. height: 130rpx;
  569. width: 130rpx;
  570. }
  571. ::v-deep .u-form-item__body {
  572. padding: 8rpx;
  573. }
  574. ::v-deep uni-view.u-form-item__body__left {
  575. background: #AD7F55;
  576. border-radius: 5px 0px 0px 5px;
  577. border: 2px solid #63462B;
  578. border-right: none;
  579. }
  580. ::v-deep .u-form-item__body__right {
  581. background-color: #fff;
  582. border-radius: 0px 5px 5px 0px;
  583. border: 2px solid #63462B;
  584. }
  585. ::v-deep uni-text.u-form-item__body__left__content__label {
  586. color: #fff !important;
  587. padding-left: 4px;
  588. letter-spacing: 2px;
  589. }
  590. .popup-flex {
  591. display: flex;
  592. flex-direction: column;
  593. height: 100%;
  594. /* 或具体高度如340px,确保撑满弹窗 */
  595. min-width: 600rpx;
  596. }
  597. .popup-content-scroll {
  598. flex: 1;
  599. }
  600. .popup-footer {
  601. flex-shrink: 0;
  602. padding: 0rpx 0 60rpx 0px;
  603. text-align: center;
  604. background: transparent;
  605. /* 可选,确保无背景遮挡 */
  606. }
  607. .save-button {
  608. width: 90rpx;
  609. margin: 0 auto;
  610. background: #b22222;
  611. color: #F9D395;
  612. border-radius: 12rpx;
  613. padding: 18rpx 0;
  614. font-size: 24rpx;
  615. font-weight: bold;
  616. height: 16rpx;
  617. line-height: 16rpx;
  618. letter-spacing: 4rpx;
  619. }
  620. .unWin {
  621. width: 130rpx !important;
  622. }
  623. .productImg {
  624. width: 400rpx;
  625. }
  626. ::v-deep .u-swiper {
  627. background-color: rgba(0, 0, 0, 0) !important;
  628. padding: 0px 20rpx !important;
  629. width: 90%;
  630. }
  631. ::v-deep .u-col-4 {
  632. display: flex !important;
  633. justify-content: center !important;
  634. /* 水平居中 */
  635. align-items: center !important;
  636. /* 垂直居中 */
  637. }
  638. ::v-deep .right-col .u-col-4 {
  639. display: flex !important;
  640. justify-content: flex-end !important;
  641. /* 水平居中 */
  642. align-items: center !important;
  643. /* 垂直居中 */
  644. }
  645. .card-img-f {
  646. height: 100rpx;
  647. width: 100rpx;
  648. }
  649. .card-text {
  650. font-size: 26rpx;
  651. padding: 0rpx 10rpx;
  652. }
  653. .select-tag {
  654. position: absolute;
  655. right: 0px;
  656. font-weight: 400;
  657. font-size: 20rpx;
  658. color: #FFFFFF;
  659. width: 40px;
  660. text-align: center;
  661. background-color: #11BC64;
  662. height: 15px;
  663. border-radius: 3px;
  664. line-height: 15px;
  665. z-index: 5;
  666. }
  667. .logo-img {
  668. background-size: cover;
  669. /* 确保背景图片自适应填充整个容器 */
  670. background-position: center;
  671. /* 背景图片居中显示 */
  672. background-repeat: no-repeat;
  673. /* 防止背景图重复 */
  674. height: 42rpx;
  675. width: 180rpx
  676. }
  677. .popup-prize-text{
  678. height: 80rpx;
  679. line-height: 80rpx;
  680. text-align: center;
  681. color: #b22222;
  682. font-weight: bolder;
  683. }
  684. </style>