index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  1. <template>
  2. <div class="lottery-container">
  3. <van-swipe :autoplay="3000" class="lottery-swipe" vertical :show-indicators="false">
  4. <van-swipe-item v-for="item in carousel" :key="item.mealId">有{{item.count}}个用户 {{['', '抽奖', '购买'][item.type]}}{{item.title}}</van-swipe-item>
  5. </van-swipe>
  6. <img class="w51h26" src="~/assets/image/activity/lottery/rule.png" alt="" @click="showRule=true">
  7. <div class="roulette">
  8. <div class="arrow" @click="startRotation"></div>
  9. <img class="start-btn" src="~/assets/image/activity/lottery/start-btn.png" alt="" @click="startRotation">
  10. </div>
  11. <RoundTurntable ref="roundTurntable" :prize-data="prizeData" :rotate-circle="rotateCircle" :during-time="duringTime" :turntable-style-option="turntableStyleOption" class="turntable" @endRotation="endRotation">
  12. <template slot="item" slot-scope="scope">
  13. <div class="turntable-name"><span class="fs15">¥</span>{{ scope.item.level }}</div>
  14. <div class="turntable-img">
  15. <img src="~/assets/image/activity/lottery/yearCard.png" />
  16. </div>
  17. </template>
  18. </RoundTurntable>
  19. <div class="num">剩余机会{{num}}次</div>
  20. <van-popup v-model="showPay" closeable close-icon-position="top-right" round :close-on-click-overlay="false" @closed="closed">
  21. <div class="popup-view">
  22. <div class="txt1">恭喜你获得{{actualPrice}}年卡</div>
  23. <div :class="selMealId===mealId ? 'coupon-1 active' : 'coupon-1'" @click="selMealId=mealId">
  24. <img v-if="selMealId===mealId" class="coupon-select-icon" src="~/assets/image/activity/lottery/select-icon.png" alt="">
  25. <img v-else class="coupon-select-icon" src="~/assets/image/activity/lottery/unselect-icon.png" alt="">
  26. <div class="coupon-title"><span class="txt2">{{actualPrice}}</span><span>会员</span><span class="txt3">({{title}})</span></div>
  27. <div class="txt4">年卡(已获得)</div>
  28. <img class="w253h73" src="~/assets/image/activity/lottery/coupon-1.png" alt="">
  29. </div>
  30. <div v-for="item in mealList" :key="item.id" :class="selMealId===item.id ? 'coupon-2 active' : 'coupon-2'" @click="selMealId=item.id">
  31. <img v-if="selMealId===item.id" class="coupon-select-icon" src="~/assets/image/activity/lottery/select-icon.png" alt="">
  32. <img v-else class="coupon-select-icon" src="~/assets/image/activity/lottery/unselect-icon.png" alt="">
  33. <div class="coupon-title"><span class="txt2">{{item.actualPrice}}</span><span>会员</span></div>
  34. <div class="txt4">{{item.day === 30 ? '月卡' : '年卡'}}</div>
  35. <img class="w111h73" src="~/assets/image/activity/lottery/coupon-2.png" alt="">
  36. </div>
  37. <div v-for="item in paySupportType" :key="item" class="fnbc" @click="payType = item">
  38. <div v-if="item === 'aliPay'" class="fnc">
  39. <van-icon class="icon-pay" :name="require('~/assets/image/activity/lottery/alipay.png')" />
  40. <span class="txt5">支付宝支付</span>
  41. </div>
  42. <div v-else class="fnc">
  43. <van-icon class="icon-pay" :name="require('~/assets/image/activity/lottery/wx.png')" />
  44. <span class="txt5">微信支付</span>
  45. </div>
  46. <van-icon :name="payType === item ? require('~/assets/image/activity/lottery/select-round-icon.png') : require('~/assets/image/activity/lottery/unselect-round-icon.png')" size="24" />
  47. </div>
  48. <img class="w304h62" src="~/assets/image/activity/lottery/pay-btn.png" alt="" @click="createOrder">
  49. <div class="txt6">开通前阅读并同意<a @click="showRule=true">购买协议</a></div>
  50. </div>
  51. </van-popup>
  52. <van-popup v-model="show" closeable close-icon-position="top-right" round>
  53. <div class="popup-view popup-view-leave">
  54. <div class="txt1">确定离开吗</div>
  55. <div class="txt6">离开后您将失去{{actualPrice}}年卡,24小时付款有效</div>
  56. <div class="coupon-1 active">
  57. <img class="coupon-select-icon" src="~/assets/image/activity/lottery/select-icon.png" alt="">
  58. <div class="coupon-title"><span class="txt2">{{actualPrice}}</span><span>会员</span><span class="txt3">({{title}})</span></div>
  59. <div class="txt4">年卡(已获得)</div>
  60. <img class="w253h73" src="~/assets/image/activity/lottery/coupon-1.png" alt="">
  61. </div>
  62. <div class="fnbc">
  63. <div class="btn-leave" @click="show=false">狠心离开</div>
  64. <div class="btn-pay" @click="createOrder">立即购买</div>
  65. </div>
  66. </div>
  67. </van-popup>
  68. <van-popup v-model="showRule" closeable close-icon-position="top-right" round>
  69. <div class="popup-view popup-view-leave" style="text-align: left;">
  70. <div class="txt1">购买协议</div>
  71. <div class="txt7">时长包使用规则</div>
  72. <div class="txt6"> 年卡特惠云手机,按需补充时长包</div>
  73. <div class="txt6">有效时间:时长用完前一直有效,支持跨月。</div>
  74. <div class="txt6">可用范围:可续时长的机型</div>
  75. <div class="txt6">生效方式:立即生效</div>
  76. <div class="txt6">退订说明:立即生效产品,不支持退订</div>
  77. <div class="txt7">产品说明</div>
  78. <div class="txt6">1、生效方式:时长补充包订购后立即生效,直至时长用完则失效,用户可重复订购。</div>
  79. <div class="txt6">2、时长使用顺序:优先使用年卡特惠包时长,年卡特惠包时长耗尽,自动使用时长包时长。</div>
  80. <div class="txt6">3、年卡特惠包合约到期后,如时长补充包仍有时长,年卡特惠包所属云手机可继续使用至时长用尽。</div>
  81. <div class="txt7">温馨提示:</div>
  82. <div class="txt6">1、请您理解:通过任何不正当手段参与活动,如借助非自然流量/外挂工具;利用技术漏洞,恶意退款,批量注册账号、买号等搅乱平台管理秩序的行为,臂云科技有权限制/取消用户的活动资格,不予发放/撤销相关交易及福利内容。</div>
  83. <div class="txt6">2、如有疑问请联系唔即云APP客服咨询。</div>
  84. </div>
  85. </van-popup>
  86. </div>
  87. </template>
  88. <script>
  89. import { Toast } from 'vant'
  90. import RoundTurntable from './component/roundTurntable.vue'
  91. const RSA = require('../../../plugins/wx_rsa');
  92. const uni = require('../../../plugins/uni');
  93. export default {
  94. name: 'Lottery',
  95. auth: false,
  96. components: {
  97. RoundTurntable
  98. },
  99. data() {
  100. return {
  101. showRule: false,
  102. show: false,
  103. showPay: false,
  104. // 转盘上的奖品数据
  105. prizeData: [
  106. {
  107. id: 1,
  108. level: 29.9
  109. },
  110. {
  111. id: 2,
  112. level: 58
  113. },
  114. {
  115. id: 3,
  116. level: 9.9
  117. },
  118. {
  119. id: 4,
  120. level: 39.9
  121. },
  122. {
  123. id: 5,
  124. level: 378
  125. },
  126. {
  127. id: 6,
  128. level: 15.9
  129. }
  130. ],
  131. // 转动的圈数
  132. rotateCircle: 6,
  133. // 转动需要持续的时间(s)
  134. duringTime: 4.5,
  135. // 转盘样式的选项
  136. turntableStyleOption: {
  137. // 背景色
  138. prizeBgColors: ['#FFF9F8', '#FFECC9', '#FFF9F8', '#FFECC9', '#FFF9F8', '#FFECC9'],
  139. // 转盘的外边框颜色
  140. borderColor: '#FFD790'
  141. },
  142. // 中奖的奖品的index
  143. prizeIndex: -1,
  144. // 用来锁定转盘,避免同时多次点击转动
  145. isLocking: false,
  146. // 剩余抽奖次数
  147. num: 2,
  148. token: '',
  149. activityId: '',
  150. actualPrice: 0,
  151. mealId: '',
  152. selMealId: '',
  153. paySupportType: [],
  154. title: '',
  155. payType: '',
  156. mealList: [],
  157. status: 0,
  158. carousel: [],
  159. phoneType: 'SVIP'
  160. }
  161. },
  162. async fetch() {
  163. if (this.$userAgent.isAndroid) {
  164. this.token = await window.native.getToken();
  165. } else {
  166. this.token = this.$route.query.token;
  167. }
  168. },
  169. head: {
  170. title: '年卡抽奖活动'
  171. },
  172. created() {
  173. this.getLuckDrawActivity()
  174. this.getMealInfo()
  175. this.getCarouselList()
  176. console.log(this.$userAgent.isMobile);
  177. },
  178. methods: {
  179. async getCarouselList() {
  180. const res = await this.$axios.$post('/activity/v1/member/carousel');
  181. this.carousel = res.data;
  182. },
  183. async getMealInfo() {
  184. const res = await this.$axios.$get('/pay/v2/meal/info?phoneType=' + this.phoneType);
  185. this.mealList = res.data.list.filter(item => item.day === 30 || item.day === 365)
  186. },
  187. async createOrder() {
  188. try {
  189. Toast.loading({
  190. duration: 0,
  191. forbidClick: true,
  192. });
  193. let taocan = {
  194. buyType: 1,
  195. couponId: 0,
  196. id: this.selMealId,
  197. mealType: 0,
  198. phoneType: this.phoneType,
  199. quantity: 1,
  200. };
  201. taocan = this.sort_ASCII(taocan);
  202. const sign = this.jiaqian(JSON.stringify(taocan));
  203. const res = await this.$axios.$post('/pay/v1/order/create', taocan, { headers: { Authorization: this.token, sign } });
  204. if (this.$userAgent.isAndroid) {
  205. window.native.startPay(this.payType === 'aliPay' ? 3 : 2, res.data.myOrderNum, 1);
  206. } else if (this.$userAgent.isIos) {
  207. window.webkit.messageHandlers.startPay.postMessage({
  208. payType: this.payType === 'aliPay' ? 3 : 2,
  209. orderNum: res.data.myOrderNum,
  210. actualPrice: this.actualPrice
  211. });
  212. } else {
  213. console.log(511);
  214. // 使用postMessage 方法可以发送消息到应用, 消息内容需要在data 对象中,否则webview无法接收到
  215. uni.postMessage({
  216. data: {
  217. payType: this.payType === 'aliPay' ? 3 : 2,
  218. orderNum: res.data.myOrderNum,
  219. buyType: 1
  220. }
  221. })
  222. }
  223. } catch (error) {
  224. Toast({
  225. message: error.message,
  226. position: 'top'
  227. });
  228. } finally {
  229. Toast.clear();
  230. }
  231. },
  232. sort_ASCII(obj) {
  233. const arr = [];
  234. let num = 0;
  235. for (const i in obj) {
  236. arr[num] = i;
  237. num++;
  238. }
  239. const sortArr = arr.sort();
  240. const sortObj = {};
  241. for (const i in sortArr) {
  242. sortObj[sortArr[i]] = obj[sortArr[i]];
  243. }
  244. return sortObj;
  245. },
  246. jiaqian(content) {
  247. const PrivateKey =
  248. '-----BEGIN PRIVATE KEY-----MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAKCIK/zTSJCP4XhNsb7Mc5lALog+oAja/spMjg8U6rAmVzRtKv8qhw1HK0CRbW/XV66uM+kY7fhjaYbjbbzu2PMMfs2GVpG15jCWLug9fn2hvPT1wkXfooJX61yHK7+inxAXPi4vPNi263mSQGbhZTeqbU5p7nLeRGbdFyBQXVKpAgMBAAECgYAu/475RxZAlI8rPHvkY1EYteypoMQTs6HSslUI31PSXHc9dxSWfenqHkLwdWM30jDuiDvUa6MIDHrRrfXr0XWcQ0IJ93jT7ABkFCdxcKEOG1WE8f1kZ5JyPDJjeQiI9R4jJCukpGU0DdzO7ORvRb4oTFQ15quM+3+SjnK5TtfUsQJBAOLLk03D2s7t2R0GPLZq+WL/ebowbRSy4VHP/IQi4K1bJrll0HLznov60m9UML1ATlS2ub98fBRFXEAaAwJE2O0CQQC1NDEWhrAPU5o3xjjcxIUbbYskskbhjaiX/1Vz0UzS4XfYek4SL68WBWPGWTrSbgbvXtaXj0gmcChF5jxOHtUtAkA4mPsqxfy99UdgYeUW1P1lgkH7gAhIyRdH1nK6+wU83el9DPaHKVrgrfiEBeuf3wNtSqhyK/u/B0wtRxCHKW1FAkAXfwcGdryJoDuVE9z3s3vXDKNIRN2wDaBY5UD9XZxqk9XoeiN5dDltz5EafSOFecLocxG8YVXntg9i0PHs506ZAkEAge9AKaXisZ4jCNHRn1LR2R82RtHTLb2mN3Cc6sGo+SnAKczwRwVg9RgnmaLG4Z/7kJpq0ALgEBlkOmy+9joxAw==-----END PRIVATE KEY-----';
  249. const signature = new RSA.KJUR.crypto.Signature({
  250. alg: 'SHA256withRSA',
  251. });
  252. signature.init(PrivateKey);
  253. signature.updateString(content);
  254. const signData = signature.sign();
  255. // 将内容转成base64
  256. return RSA.hex2b64(signData);
  257. },
  258. async getLuckDrawActivity() {
  259. const res = await this.$axios.$post('/activity/v1/member/luckDrawActivity');
  260. this.activityId = res.data.activityId
  261. this.status = res.data.status
  262. },
  263. // 开始抽奖
  264. async startRotation() {
  265. // 如果还不可以转动
  266. if (!this.canBeRotated()) {
  267. return false;
  268. }
  269. // 开始转动
  270. // 先上锁
  271. this.isLocking = true;
  272. // 设置在哪里停下,应该与后台交互,这里随机抽取0~5
  273. const res = await this.$axios.$post('/activity/v1/member/luckDraw?activityId=' + this.activityId, {}, { headers: { Authorization: this.token } });
  274. if (res.status === 0) {
  275. const index = this.prizeData.findIndex(item => item.level === res.data.actualPrice)
  276. this.actualPrice = res.data.actualPrice
  277. if (Number(localStorage.getItem('year-15-9')) !== 2 && this.actualPrice === 15.9) {
  278. localStorage.setItem('year-15-9', 1)
  279. }
  280. if (Number(localStorage.getItem('year-9-9')) !== 2 && this.actualPrice === 9.9) {
  281. localStorage.setItem('year-9-9', 1)
  282. }
  283. this.num = res.data.count
  284. this.mealId = res.data.mealId
  285. this.selMealId = res.data.mealId
  286. this.paySupportType = res.data.paySupportType
  287. this.payType = this.paySupportType[0]
  288. this.phoneType = res.data.phoneType
  289. this.title = res.data.title
  290. this.prizeIndex = index;
  291. } else {
  292. return
  293. }
  294. // 成功后次数减少一次
  295. // this.num--;
  296. // 告诉子组件,开始转动了
  297. this.$refs.roundTurntable.rotate(this.prizeIndex);
  298. },
  299. // 已经转动完转盘触发的函数
  300. endRotation() {
  301. // 提示中奖
  302. this.showPay = true
  303. // 解锁
  304. this.isLocking = false;
  305. },
  306. // 判断是否可以转动
  307. canBeRotated() {
  308. if (this.isLocking) {
  309. return false;
  310. }
  311. if (this.status === 0) {
  312. Toast({
  313. message: '当前活动已过期',
  314. position: 'top',
  315. });
  316. return false;
  317. }
  318. if (this.status === 2) {
  319. Toast({
  320. message: '当前活动未开启',
  321. position: 'top',
  322. });
  323. return false;
  324. }
  325. if (this.status === 3) {
  326. Toast({
  327. message: '当前活动已结束',
  328. position: 'top',
  329. });
  330. return false;
  331. }
  332. return true;
  333. },
  334. closed() {
  335. if (Number(localStorage.getItem('year-15-9')) !== 2) {
  336. this.show = true
  337. localStorage.setItem('year-15-9', 2)
  338. }
  339. if (Number(localStorage.getItem('year-9-9')) !== 2) {
  340. this.show = true
  341. localStorage.setItem('year-9-9', 2)
  342. }
  343. }
  344. }
  345. }
  346. </script>
  347. <style lang="scss" scoped>
  348. .lottery-container {
  349. background-color: #bbe5f2;
  350. background-image: url('../../../assets/image/activity/lottery/bg.png');
  351. background-size: contain;
  352. min-height: 100vh;
  353. overflow: hidden;
  354. margin: 0 auto;
  355. }
  356. .lottery-swipe {
  357. width: 188px;
  358. height: 25px;
  359. background: rgba($color: #000000, $alpha: 0.24);
  360. border-radius: 0px 16px 16px 0px;
  361. position: absolute;
  362. top: 134px;
  363. left: 0;
  364. z-index: 1;
  365. }
  366. .lottery-swipe .van-swipe-item {
  367. color: #ffffff;
  368. font-size: 13px;
  369. line-height: 25px;
  370. text-align: center;
  371. }
  372. .w51h26 {
  373. width: 51px;
  374. height: 26px;
  375. position: absolute;
  376. top: 128px;
  377. right: 0;
  378. z-index: 2;
  379. }
  380. .roulette {
  381. width: 372px;
  382. height: 442px;
  383. background-image: url('../../../assets/image/activity/lottery/roulette.png');
  384. background-size: 100% 100%;
  385. margin: 127px auto 0;
  386. position: relative;
  387. }
  388. .arrow {
  389. width: 122px;
  390. height: 135px;
  391. position: absolute;
  392. top: 110px;
  393. left: 125px;
  394. background-image: url('../../../assets/image/activity/lottery/arrow.png');
  395. background-size: 100% 100%;
  396. z-index: 1;
  397. }
  398. .turntable {
  399. position: absolute;
  400. left: calc(50% - 144px);
  401. top: 163px;
  402. width: 288px;
  403. height: 288px;
  404. }
  405. .turntable-name {
  406. position: absolute;
  407. left: 10px;
  408. top: 20px;
  409. width: calc(100% - 20px);
  410. font-size: 20px;
  411. font-weight: 600;
  412. text-align: center;
  413. color: #b8320d;
  414. }
  415. .fs15 {
  416. font-size: 15px;
  417. }
  418. .turntable-img {
  419. position: relative;
  420. /*要居中就要50% - 宽度 / 2*/
  421. left: calc(50% - 40px / 2);
  422. top: 43px;
  423. width: 52px;
  424. height: 39px;
  425. img {
  426. display: inline-block;
  427. width: 52px;
  428. height: 39px;
  429. }
  430. }
  431. .start-btn {
  432. width: 276px;
  433. height: 55px;
  434. position: absolute;
  435. bottom: 16px;
  436. left: calc(50% - 138px);
  437. }
  438. .num {
  439. margin-top: 8px;
  440. text-align: center;
  441. font-size: 14px;
  442. color: #333333;
  443. line-height: 20px;
  444. }
  445. .popup-view {
  446. width: 324px;
  447. padding: 20px 10px;
  448. box-shadow: 0px 1px 20px 0px rgba(0, 0, 0, 0.1);
  449. background: #ffffff;
  450. text-align: center;
  451. }
  452. .txt1 {
  453. font-size: 18px;
  454. font-weight: 600;
  455. color: #333333;
  456. line-height: 25px;
  457. text-align: center;
  458. }
  459. .coupon-1 {
  460. width: 286px;
  461. height: 106px;
  462. box-sizing: border-box;
  463. margin: 11px auto 0;
  464. position: relative;
  465. border-radius: 13px;
  466. border: 2px solid;
  467. border-color: #e8e8e8;
  468. box-sizing: border-box;
  469. &::before,
  470. &::after {
  471. background-color: white;
  472. border-radius: 50%;
  473. content: '';
  474. width: 20px;
  475. height: 20px;
  476. position: absolute;
  477. top: 43px;
  478. z-index: 1;
  479. }
  480. &::before {
  481. border-right: 2px solid;
  482. border-color: #e8e8e8;
  483. left: -12px;
  484. border-radius: 0 10px 10px 0;
  485. }
  486. &::after {
  487. border-left: 2px solid;
  488. border-color: #e8e8e8;
  489. right: -12px;
  490. border-radius: 10px 0 0 10px;
  491. }
  492. }
  493. .coupon-1.active,
  494. .coupon-2.active {
  495. border-left: 2px solid;
  496. border-color: #d96a57 !important;
  497. &::before {
  498. border-right: 2px solid;
  499. border-color: #d96a57;
  500. }
  501. &::after {
  502. border-left: 2px solid;
  503. border-color: #d96a57;
  504. }
  505. }
  506. .coupon-title {
  507. color: #362113;
  508. font-size: 12px;
  509. text-align: center;
  510. z-index: 1;
  511. position: absolute;
  512. top: 23px;
  513. width: 100%;
  514. }
  515. .txt2 {
  516. font-weight: 600;
  517. font-size: 24px;
  518. }
  519. .txt3 {
  520. color: #db6857;
  521. }
  522. .txt4 {
  523. position: absolute;
  524. top: 68px;
  525. width: 100%;
  526. text-align: center;
  527. font-size: 14px;
  528. font-weight: 600;
  529. color: #ffffff;
  530. line-height: 20px;
  531. z-index: 1;
  532. }
  533. .coupon-select-icon {
  534. width: 34px;
  535. height: 20px;
  536. position: absolute;
  537. top: 0;
  538. right: 0;
  539. z-index: 2;
  540. }
  541. .w253h73 {
  542. width: 253px;
  543. height: 73px;
  544. position: absolute;
  545. top: 15px;
  546. left: 15px;
  547. }
  548. .coupon-2 {
  549. display: inline-block;
  550. width: 138px;
  551. height: 106px;
  552. box-sizing: border-box;
  553. margin: 11px 4px 0;
  554. position: relative;
  555. border-radius: 13px;
  556. box-sizing: border-box;
  557. border: 2px solid;
  558. border-color: #e8e8e8;
  559. &::before,
  560. &::after {
  561. background-color: white;
  562. border-radius: 50%;
  563. content: '';
  564. width: 20px;
  565. height: 20px;
  566. position: absolute;
  567. top: 43px;
  568. z-index: 1;
  569. }
  570. &::before {
  571. border-right: 2px solid;
  572. border-color: #e8e8e8;
  573. left: -12px;
  574. border-radius: 0 10px 10px 0;
  575. }
  576. &::after {
  577. border-left: 2px solid;
  578. border-color: #e8e8e8;
  579. right: -12px;
  580. border-radius: 10px 0 0 10px;
  581. }
  582. }
  583. .w111h73 {
  584. width: 111px;
  585. height: 73px;
  586. position: absolute;
  587. top: 15px;
  588. left: 12px;
  589. }
  590. .txt5 {
  591. font-size: 16px;
  592. color: #333333;
  593. margin-left: 7px;
  594. }
  595. .icon-pay {
  596. font-size: 26px;
  597. line-height: inherit;
  598. }
  599. .fnc {
  600. display: flex;
  601. align-items: center;
  602. }
  603. .fnbc {
  604. display: flex;
  605. justify-content: space-between;
  606. align-items: center;
  607. height: 50px;
  608. padding: 0 10px;
  609. }
  610. .w304h62 {
  611. width: 304px;
  612. height: 62px;
  613. margin: 0 auto;
  614. }
  615. .txt6 {
  616. color: #333333;
  617. font-size: 11px;
  618. line-height: 16px;
  619. a {
  620. color: #ff7656;
  621. text-decoration: underline;
  622. }
  623. }
  624. .popup-view-leave {
  625. background: linear-gradient(180deg, #ffffff 0%, #f7f1e3 100%);
  626. }
  627. .btn-leave {
  628. width: 140px;
  629. height: 48px;
  630. background: linear-gradient(180deg, #ffdb94 0%, #ff9539 100%);
  631. box-shadow: 0px 2px 7px 0px rgba(237, 76, 0, 0.17),
  632. inset 0px -5px 0px 0px #ff7700;
  633. border-radius: 24px;
  634. font-size: 18px;
  635. font-weight: 600;
  636. color: #ffffff;
  637. text-align: center;
  638. line-height: 43px;
  639. margin-top: 15px;
  640. }
  641. .btn-pay {
  642. width: 140px;
  643. height: 48px;
  644. background: linear-gradient(180deg, #ff9278 0%, #ff562f 100%);
  645. box-shadow: 0px 2px 7px 0px rgba(237, 76, 0, 0.17),
  646. inset 0px -5px 0px 0px #f62e00;
  647. border-radius: 24px;
  648. border-radius: 24px;
  649. font-size: 18px;
  650. font-weight: 600;
  651. color: #ffffff;
  652. text-align: center;
  653. line-height: 43px;
  654. margin-top: 15px;
  655. }
  656. .txt7 {
  657. font-size: 14px;
  658. line-height: 18px;
  659. margin-top: 10px;
  660. }
  661. </style>