index.vue 20 KB

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