index.vue 20 KB

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