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