index.vue 19 KB

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