index.vue 19 KB

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