index.vue 21 KB

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