index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856
  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. for (let i = 0; i < that.totalDetail.length; i++) {
  413. that.saveData['card' + i] = that.totalDetail[i];
  414. that.cards[i].prizeType = that.totalDetail[i].prize_type == undefined ?
  415. that.totalDetail[i].prizeType :
  416. that.totalDetail[i].prize_type;
  417. that.cards[i].img = that.totalDetail[i].img;
  418. that.cards[i].price = that.totalDetail[i].price;
  419. that.cards[i].money = that.totalDetail[i].money;
  420. that.cards[i].point = that.totalDetail[i].point;
  421. that.cards[i].prizeName = that.totalDetail[i].prizeName == undefined ?
  422. that.totalDetail[i].prize_name :
  423. that.totalDetail[i].prizeName;
  424. }
  425. that.saveAllCardData();
  426. }, 100);
  427. },
  428. saveAllCardData() {
  429. let jsonStr = JSON.stringify(this.saveData);
  430. saveCardData(this.scanCode, jsonStr).then(res => {
  431. console.log(res)
  432. })
  433. },
  434. }
  435. }
  436. </script>
  437. <style>
  438. @import url('../../../static/scss/common_cjx.css');
  439. .text {
  440. height: 10vh;
  441. text-align: center;
  442. line-height: 13vh;
  443. margin-bottom: 10rpx;
  444. }
  445. .textImage {
  446. height: 80rpx;
  447. width: 400rpx;
  448. }
  449. .content {
  450. height: 50vh;
  451. border-radius: 10rpx;
  452. margin: 20rpx 40rpx;
  453. padding: 10rpx 24rpx;
  454. overflow: auto;
  455. display: flex;
  456. align-items: center;
  457. justify-content: center;
  458. background-image:
  459. url("https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/cjx/cardBgi.png");
  460. background-size: cover;
  461. background-position: center;
  462. background-repeat: no-repeat;
  463. }
  464. .text-1 {
  465. text-align: center;
  466. font-size: 24rpx;
  467. font-weight: 600;
  468. color: white;
  469. background-color: #9A1712;
  470. width: 160rpx;
  471. border-radius: 4rpx;
  472. height: 40rpx;
  473. line-height: 40rpx;
  474. }
  475. .text-2 {
  476. text-align: center;
  477. font-size: 24rpx;
  478. font-weight: 600;
  479. color: #F9D395;
  480. background-color: #9A1712;
  481. width: 120rpx;
  482. border-radius: 4rpx;
  483. height: 40rpx;
  484. line-height: 40rpx;
  485. margin-left: 80rpx;
  486. }
  487. .cards {
  488. display: grid;
  489. grid-template-columns: repeat(3, 1fr);
  490. gap: 30rpx;
  491. width: 100%;
  492. }
  493. .card {
  494. width: 100%;
  495. height: 250rpx;
  496. position: relative;
  497. background: none;
  498. border-radius: 16rpx;
  499. margin: 0;
  500. perspective: 1000px;
  501. }
  502. .card-inner {
  503. position: relative;
  504. width: 100%;
  505. height: 100%;
  506. transition: transform 0.8s cubic-bezier(0.5, 1.5, 0.5, 1);
  507. transform-style: preserve-3d;
  508. }
  509. .card.flipping .card-inner {
  510. transform: rotateY(180deg);
  511. }
  512. .card.flipped .card-inner {
  513. transform: rotateY(180deg);
  514. }
  515. .card-front,
  516. .card-back {
  517. position: absolute;
  518. width: 100%;
  519. height: 100%;
  520. backface-visibility: hidden;
  521. }
  522. .card-back {
  523. transform: rotateY(180deg);
  524. }
  525. .card-back-text {
  526. position: absolute;
  527. top: 50%;
  528. left: 0;
  529. width: 100%;
  530. text-align: center;
  531. color: #ffffff;
  532. font-weight: bold;
  533. font-size: 28rpx;
  534. transform: translateY(-50%);
  535. z-index: 2;
  536. pointer-events: none;
  537. }
  538. .card-img {
  539. width: 100%;
  540. height: 100%;
  541. display: block;
  542. }
  543. ::v-deep .content .u-popup__content {
  544. height: 500rpx;
  545. width: 500rpx;
  546. background-color: rgba(0, 0, 0, 0) !important;
  547. background-image:
  548. url("https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/cjx/card_img_2.png");
  549. background-size: cover;
  550. background-position: center;
  551. background-repeat: no-repeat;
  552. }
  553. ::v-deep .u-popup__content__close--top-right {
  554. top: 510rpx !important;
  555. right: 245rpx !important;
  556. color: #ffffff;
  557. }
  558. .winImgClss {
  559. height: 60rpx;
  560. width: 320rpx;
  561. }
  562. .popup-view {
  563. text-align: center;
  564. margin-top: 100rpx;
  565. }
  566. .popup-content {
  567. margin: 15px 54px;
  568. overflow: auto;
  569. }
  570. .popup-text {
  571. font-weight: 400;
  572. font-size: 20rpx;
  573. color: #9B0000;
  574. }
  575. .prize {
  576. height: 130rpx;
  577. width: 130rpx;
  578. }
  579. ::v-deep .u-form-item__body {
  580. padding: 8rpx;
  581. }
  582. ::v-deep uni-view.u-form-item__body__left {
  583. background: #AD7F55;
  584. border-radius: 5px 0px 0px 5px;
  585. border: 2px solid #63462B;
  586. border-right: none;
  587. }
  588. ::v-deep .u-form-item__body__right {
  589. background-color: #fff;
  590. border-radius: 0px 5px 5px 0px;
  591. border: 2px solid #63462B;
  592. }
  593. ::v-deep uni-text.u-form-item__body__left__content__label {
  594. color: #fff !important;
  595. padding-left: 4px;
  596. letter-spacing: 2px;
  597. }
  598. .popup-flex {
  599. display: flex;
  600. flex-direction: column;
  601. height: 100%;
  602. }
  603. .popup-content-scroll {
  604. flex: 1;
  605. }
  606. .popup-footer {
  607. flex-shrink: 0;
  608. padding: 0rpx 0 60rpx 0px;
  609. text-align: center;
  610. background: transparent;
  611. /* 可选,确保无背景遮挡 */
  612. }
  613. .save-button {
  614. width: 90rpx;
  615. margin: 0 auto;
  616. background: #b22222;
  617. color: #F9D395;
  618. border-radius: 12rpx;
  619. padding: 18rpx 0;
  620. font-size: 24rpx;
  621. font-weight: bold;
  622. height: 16rpx;
  623. line-height: 16rpx;
  624. letter-spacing: 4rpx;
  625. }
  626. ::v-deep .u-swiper {
  627. background-color: rgba(0, 0, 0, 0) !important;
  628. padding: 0px 20rpx !important;
  629. width: 90%;
  630. }
  631. ::v-deep .u-col-4 {
  632. display: flex !important;
  633. justify-content: center !important;
  634. /* 水平居中 */
  635. align-items: center !important;
  636. /* 垂直居中 */
  637. }
  638. ::v-deep .right-col .u-col-4 {
  639. display: flex !important;
  640. justify-content: flex-end !important;
  641. /* 水平居中 */
  642. align-items: center !important;
  643. /* 垂直居中 */
  644. }
  645. .card-img-f {
  646. height: 100rpx;
  647. width: 100rpx;
  648. }
  649. .card-text {
  650. font-size: 26rpx;
  651. }
  652. .select-tag {
  653. position: absolute;
  654. right: 0px;
  655. font-weight: 400;
  656. font-size: 20rpx;
  657. color: #FFFFFF;
  658. width: 40px;
  659. text-align: center;
  660. background-color: #11BC64;
  661. height: 15px;
  662. border-radius: 3px;
  663. line-height: 15px;
  664. z-index: 5;
  665. }
  666. .cardTop {
  667. margin-bottom: 20rpx;
  668. background-image:
  669. url("https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/cjx/title_bgi.png");
  670. background-size: cover;
  671. background-position: center;
  672. background-repeat: no-repeat;
  673. height: 80rpx;
  674. margin-top: 20rpx;
  675. }
  676. .card-img-item {
  677. height: 100rpx;
  678. display: flex;
  679. justify-content: center;
  680. }
  681. .card-money {
  682. font-weight: 500;
  683. font-size: 36rpx;
  684. color: #FF31C2;
  685. }
  686. .card-point {
  687. font-weight: 500;
  688. font-size: 36rpx;
  689. color: yellow;
  690. }
  691. .card-text-1 {
  692. font-weight: 500;
  693. font-size: 30rpx;
  694. color: #FFFFFF;
  695. }
  696. .card-text-2 {
  697. font-weight: 500;
  698. font-size: 22rpx;
  699. color: #FFFFFF;
  700. }
  701. .popup-title {
  702. width: 320rpx;
  703. height: 60rpx;
  704. background: linear-gradient(45deg, #A767DF, #E7CFFF, #6B51D5, #F6ECFC);
  705. border-radius: 30rpx;
  706. text-align: center;
  707. margin-top: -20px;
  708. margin-left: 96rpx;
  709. line-height: 60rpx;
  710. font-weight: bold;
  711. font-size: 36rpx;
  712. color: #000000;
  713. }
  714. .card_logo {
  715. height: 80rpx;
  716. }
  717. .card_jf {
  718. height: 120rpx;
  719. }
  720. .jf_text {
  721. font-weight: bold;
  722. font-size: 50rpx;
  723. color: #E22ADD;
  724. margin: 20rpx 0px;
  725. }
  726. .card-logo-popup {
  727. display: flex;
  728. justify-content: flex-end;
  729. }
  730. .popup_text1 {
  731. font-weight: bold;
  732. font-size: 36rpx;
  733. color: #F6F6F9;
  734. text-align: center;
  735. margin-top: -40rpx;
  736. }
  737. .center {
  738. display: flex;
  739. justify-content: center;
  740. }
  741. .popup_img {
  742. height: 200rpx;
  743. margin-top: 20rpx;
  744. }
  745. .pupup_text2 {
  746. font-weight: bold;
  747. font-size: 30rpx;
  748. color: #F6F6F9;
  749. margin-top: 150rpx;
  750. }
  751. .pupup_text3 {
  752. font-weight: bold;
  753. font-size: 30rpx;
  754. color: #F6F6F9;
  755. margin-top: 20rpx;
  756. }
  757. .pupup_textMoney {
  758. font-weight: 500;
  759. font-size: 46rpx;
  760. color: #FF6B6B;
  761. margin-top: -170rpx;
  762. }
  763. </style>