index.vue 20 KB

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