index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653
  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. export default {
  93. name: 'Lottery',
  94. auth: false,
  95. components: {
  96. RoundTurntable
  97. },
  98. data() {
  99. return {
  100. showRule: false,
  101. show: false,
  102. showPay: false,
  103. // 转盘上的奖品数据
  104. prizeData: [
  105. {
  106. id: 1,
  107. level: 29.9
  108. },
  109. {
  110. id: 2,
  111. level: 58
  112. },
  113. {
  114. id: 3,
  115. level: 9.9
  116. },
  117. {
  118. id: 4,
  119. level: 39.9
  120. },
  121. {
  122. id: 5,
  123. level: 378
  124. },
  125. {
  126. id: 6,
  127. level: 15.9
  128. }
  129. ],
  130. // 转动的圈数
  131. rotateCircle: 6,
  132. // 转动需要持续的时间(s)
  133. duringTime: 4.5,
  134. // 转盘样式的选项
  135. turntableStyleOption: {
  136. // 背景色
  137. prizeBgColors: ['#FFF9F8', '#FFECC9', '#FFF9F8', '#FFECC9', '#FFF9F8', '#FFECC9'],
  138. // 转盘的外边框颜色
  139. borderColor: '#FFD790'
  140. },
  141. // 中奖的奖品的index
  142. prizeIndex: -1,
  143. // 用来锁定转盘,避免同时多次点击转动
  144. isLocking: false,
  145. // 剩余抽奖次数
  146. num: 2,
  147. token: '',
  148. activityId: '',
  149. actualPrice: 0,
  150. mealId: '',
  151. selMealId: '',
  152. paySupportType: [],
  153. title: '',
  154. payType: '',
  155. mealList: [],
  156. status: 0,
  157. carousel: []
  158. }
  159. },
  160. async fetch() {
  161. if (this.$userAgent.isAndroid) {
  162. this.token = await window.native.getToken();
  163. } else {
  164. this.token = this.$route.query.token;
  165. }
  166. },
  167. head: {
  168. title: '年卡抽奖活动'
  169. },
  170. created() {
  171. this.getLuckDrawActivity()
  172. this.getMealInfo()
  173. this.getCarouselList()
  174. },
  175. methods: {
  176. async getCarouselList() {
  177. const res = await this.$axios.$post('/activity/v1/member/carousel');
  178. this.carousel = res.data;
  179. },
  180. async getMealInfo() {
  181. const res = await this.$axios.$get('/pay/v2/meal/info?phoneType=SVIP');
  182. this.mealList = res.data.list.filter(item => item.day === 30 || item.day === 365)
  183. },
  184. async createOrder() {
  185. try {
  186. Toast.loading({
  187. duration: 0,
  188. forbidClick: true,
  189. });
  190. let taocan = {
  191. buyType: 1,
  192. couponId: 0,
  193. id: this.selMealId,
  194. mealType: 0,
  195. phoneType: 'SVIP',
  196. quantity: 1,
  197. };
  198. taocan = this.sort_ASCII(taocan);
  199. const sign = this.jiaqian(JSON.stringify(taocan));
  200. const res = await this.$axios.$post('/pay/v1/order/create', taocan, { headers: { Authorization: this.token, sign } });
  201. if (this.$userAgent.isAndroid) {
  202. window.native.startPay(this.payType === 'aliPay' ? 3 : 2, res.data.myOrderNum, 1);
  203. }
  204. if (this.$userAgent.isIos) {
  205. window.webkit.messageHandlers.startPay.postMessage({
  206. payType: this.payType === 'aliPay' ? 3 : 2,
  207. orderNum: res.data.myOrderNum,
  208. actualPrice: this.actualPrice
  209. });
  210. }
  211. } catch (error) {
  212. Toast({
  213. message: error.message,
  214. position: 'top'
  215. });
  216. } finally {
  217. Toast.clear();
  218. }
  219. },
  220. sort_ASCII(obj) {
  221. const arr = [];
  222. let num = 0;
  223. for (const i in obj) {
  224. arr[num] = i;
  225. num++;
  226. }
  227. const sortArr = arr.sort();
  228. const sortObj = {};
  229. for (const i in sortArr) {
  230. sortObj[sortArr[i]] = obj[sortArr[i]];
  231. }
  232. return sortObj;
  233. },
  234. jiaqian(content) {
  235. const PrivateKey =
  236. '-----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-----';
  237. const signature = new RSA.KJUR.crypto.Signature({
  238. alg: 'SHA256withRSA',
  239. });
  240. signature.init(PrivateKey);
  241. signature.updateString(content);
  242. const signData = signature.sign();
  243. // 将内容转成base64
  244. return RSA.hex2b64(signData);
  245. },
  246. async getLuckDrawActivity() {
  247. const res = await this.$axios.$post('/activity/v1/member/luckDrawActivity');
  248. this.activityId = res.data.activityId
  249. this.status = res.data.status
  250. },
  251. // 开始抽奖
  252. async startRotation() {
  253. // 如果还不可以转动
  254. if (!this.canBeRotated()) {
  255. return false;
  256. }
  257. // 开始转动
  258. // 先上锁
  259. this.isLocking = true;
  260. // 设置在哪里停下,应该与后台交互,这里随机抽取0~5
  261. const res = await this.$axios.$post('/activity/v1/member/luckDraw?activityId=' + this.activityId, {}, { headers: { Authorization: this.token } });
  262. if (res.status === 0) {
  263. const index = this.prizeData.findIndex(item => item.level === res.data.actualPrice)
  264. this.actualPrice = res.data.actualPrice
  265. if (Number(localStorage.getItem('year-15-9')) !== 2 && this.actualPrice === 15.9) {
  266. localStorage.setItem('year-15-9', 1)
  267. }
  268. if (Number(localStorage.getItem('year-9-9')) !== 2 && this.actualPrice === 9.9) {
  269. localStorage.setItem('year-9-9', 1)
  270. }
  271. this.num = res.data.count
  272. this.mealId = res.data.mealId
  273. this.selMealId = res.data.mealId
  274. this.paySupportType = res.data.paySupportType
  275. this.payType = this.paySupportType[0]
  276. this.title = res.data.title
  277. this.prizeIndex = index;
  278. } else {
  279. return
  280. }
  281. // 成功后次数减少一次
  282. // this.num--;
  283. // 告诉子组件,开始转动了
  284. this.$refs.roundTurntable.rotate(this.prizeIndex);
  285. },
  286. // 已经转动完转盘触发的函数
  287. endRotation() {
  288. // 提示中奖
  289. this.showPay = true
  290. // 解锁
  291. this.isLocking = false;
  292. },
  293. // 判断是否可以转动
  294. canBeRotated() {
  295. if (this.isLocking) {
  296. return false;
  297. }
  298. if (this.status === 0) {
  299. Toast({
  300. message: '当前活动已过期',
  301. position: 'top',
  302. });
  303. return false;
  304. }
  305. if (this.status === 2) {
  306. Toast({
  307. message: '当前活动未开启',
  308. position: 'top',
  309. });
  310. return false;
  311. }
  312. if (this.status === 3) {
  313. Toast({
  314. message: '当前活动已结束',
  315. position: 'top',
  316. });
  317. return false;
  318. }
  319. return true;
  320. },
  321. closed() {
  322. if (Number(localStorage.getItem('year-15-9')) !== 2) {
  323. this.show = true
  324. localStorage.setItem('year-15-9', 2)
  325. }
  326. if (Number(localStorage.getItem('year-9-9')) !== 2) {
  327. this.show = true
  328. localStorage.setItem('year-9-9', 2)
  329. }
  330. }
  331. }
  332. }
  333. </script>
  334. <style lang="scss" scoped>
  335. .lottery-container {
  336. background-color: #bbe5f2;
  337. background-image: url('../../../assets/image/activity/lottery/bg.png');
  338. background-size: contain;
  339. min-height: 100vh;
  340. overflow: hidden;
  341. margin: 0 auto;
  342. }
  343. .lottery-swipe {
  344. width: 188px;
  345. height: 25px;
  346. background: rgba($color: #000000, $alpha: 0.24);
  347. border-radius: 0px 16px 16px 0px;
  348. position: absolute;
  349. top: 134px;
  350. left: 0;
  351. z-index: 1;
  352. }
  353. .lottery-swipe .van-swipe-item {
  354. color: #ffffff;
  355. font-size: 13px;
  356. line-height: 25px;
  357. text-align: center;
  358. }
  359. .w51h26 {
  360. width: 51px;
  361. height: 26px;
  362. position: absolute;
  363. top: 128px;
  364. right: 0;
  365. z-index: 2;
  366. }
  367. .roulette {
  368. width: 372px;
  369. height: 442px;
  370. background-image: url('../../../assets/image/activity/lottery/roulette.png');
  371. background-size: 100% 100%;
  372. margin: 127px auto 0;
  373. position: relative;
  374. }
  375. .arrow {
  376. width: 122px;
  377. height: 135px;
  378. position: absolute;
  379. top: 110px;
  380. left: 125px;
  381. background-image: url('../../../assets/image/activity/lottery/arrow.png');
  382. background-size: 100% 100%;
  383. z-index: 1;
  384. }
  385. .turntable {
  386. position: absolute;
  387. left: calc(50% - 144px);
  388. top: 163px;
  389. width: 288px;
  390. height: 288px;
  391. }
  392. .turntable-name {
  393. position: absolute;
  394. left: 10px;
  395. top: 20px;
  396. width: calc(100% - 20px);
  397. font-size: 20px;
  398. font-weight: 600;
  399. text-align: center;
  400. color: #b8320d;
  401. }
  402. .fs15 {
  403. font-size: 15px;
  404. }
  405. .turntable-img {
  406. position: relative;
  407. /*要居中就要50% - 宽度 / 2*/
  408. left: calc(50% - 40px / 2);
  409. top: 43px;
  410. width: 52px;
  411. height: 39px;
  412. img {
  413. display: inline-block;
  414. width: 52px;
  415. height: 39px;
  416. }
  417. }
  418. .start-btn {
  419. width: 276px;
  420. height: 55px;
  421. position: absolute;
  422. bottom: 16px;
  423. left: calc(50% - 138px);
  424. }
  425. .num {
  426. margin-top: 8px;
  427. text-align: center;
  428. font-size: 14px;
  429. color: #333333;
  430. line-height: 20px;
  431. }
  432. .popup-view {
  433. width: 324px;
  434. padding: 20px 10px;
  435. box-shadow: 0px 1px 20px 0px rgba(0, 0, 0, 0.1);
  436. background: #ffffff;
  437. text-align: center;
  438. }
  439. .txt1 {
  440. font-size: 18px;
  441. font-weight: 600;
  442. color: #333333;
  443. line-height: 25px;
  444. text-align: center;
  445. }
  446. .coupon-1 {
  447. width: 286px;
  448. height: 106px;
  449. box-sizing: border-box;
  450. margin: 11px auto 0;
  451. position: relative;
  452. border-radius: 13px;
  453. border: 2px solid;
  454. border-color: #e8e8e8;
  455. box-sizing: border-box;
  456. &::before,
  457. &::after {
  458. background-color: white;
  459. border-radius: 50%;
  460. content: '';
  461. width: 20px;
  462. height: 20px;
  463. position: absolute;
  464. top: 43px;
  465. z-index: 1;
  466. }
  467. &::before {
  468. border-right: 2px solid;
  469. border-color: #e8e8e8;
  470. left: -12px;
  471. border-radius: 0 10px 10px 0;
  472. }
  473. &::after {
  474. border-left: 2px solid;
  475. border-color: #e8e8e8;
  476. right: -12px;
  477. border-radius: 10px 0 0 10px;
  478. }
  479. }
  480. .coupon-1.active,
  481. .coupon-2.active {
  482. border-left: 2px solid;
  483. border-color: #d96a57 !important;
  484. &::before {
  485. border-right: 2px solid;
  486. border-color: #d96a57;
  487. }
  488. &::after {
  489. border-left: 2px solid;
  490. border-color: #d96a57;
  491. }
  492. }
  493. .coupon-title {
  494. color: #362113;
  495. font-size: 12px;
  496. text-align: center;
  497. z-index: 1;
  498. position: absolute;
  499. top: 23px;
  500. width: 100%;
  501. }
  502. .txt2 {
  503. font-weight: 600;
  504. font-size: 24px;
  505. }
  506. .txt3 {
  507. color: #db6857;
  508. }
  509. .txt4 {
  510. position: absolute;
  511. top: 68px;
  512. width: 100%;
  513. text-align: center;
  514. font-size: 14px;
  515. font-weight: 600;
  516. color: #ffffff;
  517. line-height: 20px;
  518. z-index: 1;
  519. }
  520. .coupon-select-icon {
  521. width: 34px;
  522. height: 20px;
  523. position: absolute;
  524. top: 0;
  525. right: 0;
  526. z-index: 2;
  527. }
  528. .w253h73 {
  529. width: 253px;
  530. height: 73px;
  531. position: absolute;
  532. top: 15px;
  533. left: 15px;
  534. }
  535. .coupon-2 {
  536. display: inline-block;
  537. width: 138px;
  538. height: 106px;
  539. box-sizing: border-box;
  540. margin: 11px 4px 0;
  541. position: relative;
  542. border-radius: 13px;
  543. box-sizing: border-box;
  544. border: 2px solid;
  545. border-color: #e8e8e8;
  546. &::before,
  547. &::after {
  548. background-color: white;
  549. border-radius: 50%;
  550. content: '';
  551. width: 20px;
  552. height: 20px;
  553. position: absolute;
  554. top: 43px;
  555. z-index: 1;
  556. }
  557. &::before {
  558. border-right: 2px solid;
  559. border-color: #e8e8e8;
  560. left: -12px;
  561. border-radius: 0 10px 10px 0;
  562. }
  563. &::after {
  564. border-left: 2px solid;
  565. border-color: #e8e8e8;
  566. right: -12px;
  567. border-radius: 10px 0 0 10px;
  568. }
  569. }
  570. .w111h73 {
  571. width: 111px;
  572. height: 73px;
  573. position: absolute;
  574. top: 15px;
  575. left: 12px;
  576. }
  577. .txt5 {
  578. font-size: 16px;
  579. color: #333333;
  580. margin-left: 7px;
  581. }
  582. .icon-pay {
  583. font-size: 26px;
  584. line-height: inherit;
  585. }
  586. .fnc {
  587. display: flex;
  588. align-items: center;
  589. }
  590. .fnbc {
  591. display: flex;
  592. justify-content: space-between;
  593. align-items: center;
  594. height: 50px;
  595. padding: 0 10px;
  596. }
  597. .w304h62 {
  598. width: 304px;
  599. height: 62px;
  600. margin: 0 auto;
  601. }
  602. .txt6 {
  603. color: #333333;
  604. font-size: 11px;
  605. line-height: 16px;
  606. a {
  607. color: #ff7656;
  608. text-decoration: underline;
  609. }
  610. }
  611. .popup-view-leave {
  612. background: linear-gradient(180deg, #ffffff 0%, #f7f1e3 100%);
  613. }
  614. .btn-leave {
  615. width: 140px;
  616. height: 48px;
  617. background: linear-gradient(180deg, #ffdb94 0%, #ff9539 100%);
  618. box-shadow: 0px 2px 7px 0px rgba(237, 76, 0, 0.17),
  619. inset 0px -5px 0px 0px #ff7700;
  620. border-radius: 24px;
  621. font-size: 18px;
  622. font-weight: 600;
  623. color: #ffffff;
  624. text-align: center;
  625. line-height: 43px;
  626. margin-top: 15px;
  627. }
  628. .btn-pay {
  629. width: 140px;
  630. height: 48px;
  631. background: linear-gradient(180deg, #ff9278 0%, #ff562f 100%);
  632. box-shadow: 0px 2px 7px 0px rgba(237, 76, 0, 0.17),
  633. inset 0px -5px 0px 0px #f62e00;
  634. border-radius: 24px;
  635. border-radius: 24px;
  636. font-size: 18px;
  637. font-weight: 600;
  638. color: #ffffff;
  639. text-align: center;
  640. line-height: 43px;
  641. margin-top: 15px;
  642. }
  643. .txt7 {
  644. font-size: 14px;
  645. line-height: 18px;
  646. margin-top: 10px;
  647. }
  648. </style>