index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707
  1. <template>
  2. <div class="lottery-container">
  3. <van-swipe v-if="carousel.length" :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;makePoint('activity_购买协议')">
  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;makePoint(item.day === 30 ? 'activity_38月卡' : 'activity_268年卡')">
  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;makePoint(item === 'aliPay' ? 'activity_支付宝' : 'activity_微信')">
  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;makePoint('activity_购买协议')">购买协议</a></div>
  50. </div>
  51. </van-popup>
  52. <van-popup v-model="show" closeable close-icon-position="top-right" round @closed="makePoint('activity_关闭弹窗')">
  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;makePoint('activity_狠心离开')">狠心离开</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 webUni = 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. client: 0
  161. }
  162. },
  163. async fetch() {
  164. if (this.$userAgent.isAndroid) {
  165. this.token = await window.native.getToken();
  166. } else {
  167. this.token = this.$route.query.token;
  168. }
  169. },
  170. head: {
  171. title: '年卡抽奖活动'
  172. },
  173. created() {
  174. if (this.$userAgent.isSzx && this.$userAgent.isAndroid) {
  175. this.client = 1
  176. } else if (this.$userAgent.isSzx && this.$userAgent.isIos) {
  177. this.client = 2
  178. } else if (this.$userAgent.isMiniProgram) {
  179. this.client = 5
  180. } else {
  181. this.client = 7
  182. }
  183. this.getLuckDrawActivity()
  184. this.getMealInfo()
  185. this.getCarouselList()
  186. },
  187. methods: {
  188. async getCarouselList() {
  189. const res = await this.$axios.$post('/activity/v1/member/carousel');
  190. this.carousel = res.data;
  191. },
  192. async getMealInfo() {
  193. const res = await this.$axios.$get('/pay/v2/meal/info?phoneType=' + this.phoneType);
  194. this.mealList = res.data.list.filter(item => item.day === 30 || item.day === 365)
  195. },
  196. async createOrder() {
  197. try {
  198. Toast.loading({
  199. duration: 0,
  200. forbidClick: true,
  201. });
  202. this.makePoint('activity_立即购买')
  203. let taocan = {
  204. buyType: 1,
  205. couponId: 0,
  206. id: this.selMealId,
  207. mealType: 0,
  208. phoneType: this.phoneType,
  209. quantity: 1,
  210. };
  211. taocan = this.sort_ASCII(taocan);
  212. const sign = this.jiaqian(JSON.stringify(taocan));
  213. const res = await this.$axios.$post('/pay/v1/order/create', taocan, { headers: { Authorization: this.token, sign } });
  214. if (this.$userAgent.isSzx && this.$userAgent.isAndroid) {
  215. window.native.startPay(this.payType === 'aliPay' ? 3 : 2, res.data.myOrderNum, 1);
  216. } else if (this.$userAgent.isSzx && this.$userAgent.isIos) {
  217. window.webkit.messageHandlers.startPay.postMessage({
  218. payType: this.payType === 'aliPay' ? 3 : 2,
  219. orderNum: res.data.myOrderNum,
  220. actualPrice: this.actualPrice
  221. });
  222. } else if (this.$userAgent.isMiniProgram) {
  223. if (this.payType === 'aliPay') {
  224. Toast({
  225. message: '微信小程序不支持支付宝支付',
  226. position: 'top',
  227. duration: 3000
  228. });
  229. return false
  230. }
  231. this.$wx.miniProgram.navigateTo({
  232. url: '/packageA/order/status/index?record=' + JSON.stringify({
  233. payActive: this.payType === 'wxPay' ? 1 : 0,
  234. myOrderNum: res.data.myOrderNum
  235. }),
  236. });
  237. } else {
  238. // 使用postMessage 方法可以发送消息到应用, 消息内容需要在data 对象中,否则webview无法接收到
  239. webUni.webView.postMessage({
  240. data: {
  241. payType: this.payType === 'aliPay' ? 3 : 2,
  242. orderNum: res.data.myOrderNum,
  243. buyType: 1,
  244. price: this.actualPrice
  245. }
  246. })
  247. }
  248. } catch (error) {
  249. Toast({
  250. message: error.message,
  251. position: 'top',
  252. duration: 3000
  253. });
  254. } finally {
  255. Toast.clear();
  256. }
  257. },
  258. sort_ASCII(obj) {
  259. const arr = [];
  260. let num = 0;
  261. for (const i in obj) {
  262. arr[num] = i;
  263. num++;
  264. }
  265. const sortArr = arr.sort();
  266. const sortObj = {};
  267. for (const i in sortArr) {
  268. sortObj[sortArr[i]] = obj[sortArr[i]];
  269. }
  270. return sortObj;
  271. },
  272. jiaqian(content) {
  273. const PrivateKey =
  274. '-----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-----';
  275. const signature = new RSA.KJUR.crypto.Signature({
  276. alg: 'SHA256withRSA',
  277. });
  278. signature.init(PrivateKey);
  279. signature.updateString(content);
  280. const signData = signature.sign();
  281. // 将内容转成base64
  282. return RSA.hex2b64(signData);
  283. },
  284. async getLuckDrawActivity() {
  285. const res = await this.$axios.$post('/activity/v1/member/luckDrawActivity');
  286. this.activityId = res.data.activityId
  287. this.status = res.data.status
  288. this.num = res.data.count
  289. },
  290. // 开始抽奖
  291. async startRotation() {
  292. // 如果还不可以转动
  293. if (!this.canBeRotated()) {
  294. return false;
  295. }
  296. this.makePoint('activity_立即抽奖')
  297. // 开始转动
  298. // 先上锁
  299. this.isLocking = true;
  300. // 设置在哪里停下,应该与后台交互,这里随机抽取0~5
  301. const res = await this.$axios.$post('/activity/v1/member/luckDraw?activityId=' + this.activityId, {}, { headers: { Authorization: this.token } });
  302. if (res.status === 0) {
  303. const index = this.prizeData.findIndex(item => item.level === res.data.actualPrice)
  304. this.actualPrice = res.data.actualPrice
  305. if (this.actualPrice === 15.9) {
  306. this.makePoint('activity_15.9年卡')
  307. if (Number(localStorage.getItem('year-15-9')) !== 2)
  308. localStorage.setItem('year-15-9', 1)
  309. }
  310. if (this.actualPrice === 9.9) {
  311. if (Number(localStorage.getItem('year-9-9')) !== 2)
  312. this.makePoint('activity_9.9年卡')
  313. localStorage.setItem('year-9-9', 1)
  314. }
  315. this.mealId = res.data.mealId
  316. this.selMealId = res.data.mealId
  317. this.paySupportType = res.data.paySupportType
  318. this.payType = this.paySupportType[0]
  319. this.phoneType = res.data.phoneType
  320. this.title = res.data.title
  321. this.prizeIndex = index;
  322. } else {
  323. return
  324. }
  325. // 成功后次数减少一次
  326. if (this.num > 1) {
  327. this.num--;
  328. }
  329. // 告诉子组件,开始转动了
  330. this.$refs.roundTurntable.rotate(this.prizeIndex);
  331. },
  332. makePoint(positionButton) {
  333. const now = new Date()
  334. this.$axios.$post('/public/v5/buriedPointRecord/reportRecords', [{ client: this.client, eventCode: '27_抽奖流程', userName: this.$auth.user.userName, positionButton, operationTime: now.toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '') }])
  335. },
  336. // 已经转动完转盘触发的函数
  337. endRotation() {
  338. // 提示中奖
  339. this.showPay = true
  340. // 解锁
  341. this.isLocking = false;
  342. },
  343. // 判断是否可以转动
  344. canBeRotated() {
  345. if (this.isLocking) {
  346. return false;
  347. }
  348. if (this.status === 0) {
  349. Toast({
  350. message: '当前活动已过期',
  351. position: 'top',
  352. duration: 3000
  353. });
  354. return false;
  355. }
  356. if (this.status === 2) {
  357. Toast({
  358. message: '当前活动未开启',
  359. position: 'top',
  360. duration: 3000
  361. });
  362. return false;
  363. }
  364. if (this.status === 3) {
  365. Toast({
  366. message: '当前活动已结束',
  367. position: 'top',
  368. duration: 3000
  369. });
  370. return false;
  371. }
  372. return true;
  373. },
  374. closed() {
  375. this.makePoint('activity_关闭抽奖', 'eventCode传27_抽奖流程')
  376. if (Number(localStorage.getItem('year-15-9')) !== 2) {
  377. this.show = true
  378. localStorage.setItem('year-15-9', 2)
  379. }
  380. if (Number(localStorage.getItem('year-9-9')) !== 2) {
  381. this.show = true
  382. localStorage.setItem('year-9-9', 2)
  383. }
  384. }
  385. }
  386. }
  387. </script>
  388. <style lang="scss" scoped>
  389. .lottery-container {
  390. background-color: #bbe5f2;
  391. background-image: url('../../../assets/image/activity/lottery/bg.png');
  392. background-size: contain;
  393. min-height: 100vh;
  394. overflow: hidden;
  395. margin: 0 auto;
  396. }
  397. .lottery-swipe {
  398. width: 188px;
  399. height: 25px;
  400. background: rgba($color: #000000, $alpha: 0.24);
  401. border-radius: 0px 16px 16px 0px;
  402. position: absolute;
  403. top: 134px;
  404. left: 0;
  405. z-index: 1;
  406. }
  407. .lottery-swipe .van-swipe-item {
  408. color: #ffffff;
  409. font-size: 13px;
  410. line-height: 25px;
  411. text-align: center;
  412. }
  413. .w51h26 {
  414. width: 51px;
  415. height: 26px;
  416. position: absolute;
  417. top: 128px;
  418. right: 0;
  419. z-index: 2;
  420. }
  421. .roulette {
  422. width: 372px;
  423. height: 442px;
  424. background-image: url('../../../assets/image/activity/lottery/roulette.png');
  425. background-size: 100% 100%;
  426. margin: 127px auto 0;
  427. position: relative;
  428. }
  429. .arrow {
  430. width: 122px;
  431. height: 135px;
  432. position: absolute;
  433. top: 110px;
  434. left: 125px;
  435. background-image: url('../../../assets/image/activity/lottery/arrow.png');
  436. background-size: 100% 100%;
  437. z-index: 1;
  438. }
  439. .turntable {
  440. position: absolute;
  441. left: calc(50% - 144px);
  442. top: 163px;
  443. width: 288px;
  444. height: 288px;
  445. }
  446. .turntable-name {
  447. position: absolute;
  448. left: 10px;
  449. top: 20px;
  450. width: calc(100% - 20px);
  451. font-size: 20px;
  452. font-weight: 600;
  453. text-align: center;
  454. color: #b8320d;
  455. }
  456. .fs15 {
  457. font-size: 15px;
  458. }
  459. .turntable-img {
  460. position: relative;
  461. /*要居中就要50% - 宽度 / 2*/
  462. left: calc(50% - 40px / 2);
  463. top: 43px;
  464. width: 52px;
  465. height: 39px;
  466. img {
  467. display: inline-block;
  468. width: 52px;
  469. height: 39px;
  470. }
  471. }
  472. .start-btn {
  473. width: 276px;
  474. height: 55px;
  475. position: absolute;
  476. bottom: 16px;
  477. left: calc(50% - 138px);
  478. }
  479. .num {
  480. margin-top: 8px;
  481. text-align: center;
  482. font-size: 14px;
  483. color: #333333;
  484. line-height: 20px;
  485. }
  486. .popup-view {
  487. width: 324px;
  488. padding: 20px 10px;
  489. box-shadow: 0px 1px 20px 0px rgba(0, 0, 0, 0.1);
  490. background: #ffffff;
  491. text-align: center;
  492. }
  493. .txt1 {
  494. font-size: 18px;
  495. font-weight: 600;
  496. color: #333333;
  497. line-height: 25px;
  498. text-align: center;
  499. }
  500. .coupon-1 {
  501. width: 286px;
  502. height: 106px;
  503. box-sizing: border-box;
  504. margin: 11px auto 0;
  505. position: relative;
  506. border-radius: 13px;
  507. border: 2px solid;
  508. border-color: #e8e8e8;
  509. box-sizing: border-box;
  510. &::before,
  511. &::after {
  512. background-color: white;
  513. border-radius: 50%;
  514. content: '';
  515. width: 20px;
  516. height: 20px;
  517. position: absolute;
  518. top: 43px;
  519. z-index: 1;
  520. }
  521. &::before {
  522. border-right: 2px solid;
  523. border-color: #e8e8e8;
  524. left: -12px;
  525. border-radius: 0 10px 10px 0;
  526. }
  527. &::after {
  528. border-left: 2px solid;
  529. border-color: #e8e8e8;
  530. right: -12px;
  531. border-radius: 10px 0 0 10px;
  532. }
  533. }
  534. .coupon-1.active,
  535. .coupon-2.active {
  536. border-left: 2px solid;
  537. border-color: #d96a57 !important;
  538. &::before {
  539. border-right: 2px solid;
  540. border-color: #d96a57;
  541. }
  542. &::after {
  543. border-left: 2px solid;
  544. border-color: #d96a57;
  545. }
  546. }
  547. .coupon-title {
  548. color: #362113;
  549. font-size: 12px;
  550. text-align: center;
  551. z-index: 1;
  552. position: absolute;
  553. top: 23px;
  554. width: 100%;
  555. }
  556. .txt2 {
  557. font-weight: 600;
  558. font-size: 24px;
  559. }
  560. .txt3 {
  561. color: #db6857;
  562. }
  563. .txt4 {
  564. position: absolute;
  565. top: 68px;
  566. width: 100%;
  567. text-align: center;
  568. font-size: 14px;
  569. font-weight: 600;
  570. color: #ffffff;
  571. line-height: 20px;
  572. z-index: 1;
  573. }
  574. .coupon-select-icon {
  575. width: 34px;
  576. height: 20px;
  577. position: absolute;
  578. top: 0;
  579. right: 0;
  580. z-index: 2;
  581. }
  582. .w253h73 {
  583. width: 253px;
  584. height: 73px;
  585. position: absolute;
  586. top: 15px;
  587. left: 15px;
  588. }
  589. .coupon-2 {
  590. display: inline-block;
  591. width: 138px;
  592. height: 106px;
  593. box-sizing: border-box;
  594. margin: 11px 4px 0;
  595. position: relative;
  596. border-radius: 13px;
  597. box-sizing: border-box;
  598. border: 2px solid;
  599. border-color: #e8e8e8;
  600. &::before,
  601. &::after {
  602. background-color: white;
  603. border-radius: 50%;
  604. content: '';
  605. width: 20px;
  606. height: 20px;
  607. position: absolute;
  608. top: 43px;
  609. z-index: 1;
  610. }
  611. &::before {
  612. border-right: 2px solid;
  613. border-color: #e8e8e8;
  614. left: -12px;
  615. border-radius: 0 10px 10px 0;
  616. }
  617. &::after {
  618. border-left: 2px solid;
  619. border-color: #e8e8e8;
  620. right: -12px;
  621. border-radius: 10px 0 0 10px;
  622. }
  623. }
  624. .w111h73 {
  625. width: 111px;
  626. height: 73px;
  627. position: absolute;
  628. top: 15px;
  629. left: 12px;
  630. }
  631. .txt5 {
  632. font-size: 16px;
  633. color: #333333;
  634. margin-left: 7px;
  635. }
  636. .icon-pay {
  637. font-size: 26px;
  638. line-height: inherit;
  639. }
  640. .fnc {
  641. display: flex;
  642. align-items: center;
  643. }
  644. .fnbc {
  645. display: flex;
  646. justify-content: space-between;
  647. align-items: center;
  648. height: 50px;
  649. padding: 0 10px;
  650. }
  651. .w304h62 {
  652. width: 304px;
  653. height: 62px;
  654. margin: 0 auto;
  655. }
  656. .txt6 {
  657. color: #333333;
  658. font-size: 11px;
  659. line-height: 16px;
  660. a {
  661. color: #ff7656;
  662. text-decoration: underline;
  663. }
  664. }
  665. .popup-view-leave {
  666. background: linear-gradient(180deg, #ffffff 0%, #f7f1e3 100%);
  667. }
  668. .btn-leave {
  669. width: 140px;
  670. height: 48px;
  671. background: linear-gradient(180deg, #ffdb94 0%, #ff9539 100%);
  672. box-shadow: 0px 2px 7px 0px rgba(237, 76, 0, 0.17),
  673. inset 0px -5px 0px 0px #ff7700;
  674. border-radius: 24px;
  675. font-size: 18px;
  676. font-weight: 600;
  677. color: #ffffff;
  678. text-align: center;
  679. line-height: 43px;
  680. margin-top: 15px;
  681. }
  682. .btn-pay {
  683. width: 140px;
  684. height: 48px;
  685. background: linear-gradient(180deg, #ff9278 0%, #ff562f 100%);
  686. box-shadow: 0px 2px 7px 0px rgba(237, 76, 0, 0.17),
  687. inset 0px -5px 0px 0px #f62e00;
  688. border-radius: 24px;
  689. border-radius: 24px;
  690. font-size: 18px;
  691. font-weight: 600;
  692. color: #ffffff;
  693. text-align: center;
  694. line-height: 43px;
  695. margin-top: 15px;
  696. }
  697. .txt7 {
  698. font-size: 14px;
  699. line-height: 18px;
  700. margin-top: 10px;
  701. }
  702. </style>