index.vue 20 KB

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