index.vue 21 KB

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