index.vue 20 KB

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