index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748
  1. <template>
  2. <view style="background-image: linear-gradient(#ff8e0c,#ffc555 80%,#ff8e0c); width: 100%; height: 100%;">
  3. <view v-if="pagesNum > 1">
  4. <u-navbar title="免费抽奖" :border="true" :placeholder="true" :autoBack="true" bgColor="#fff" />
  5. </view>
  6. <view v-else>
  7. <u-navbar leftIconSize="0" :placeholder="true" bgColor="#fff" title="免费抽奖">
  8. <view class="nav-left flex" slot="left" @click="toActivity">
  9. <u-icon name="arrow-left" size="20" color="#333"></u-icon>
  10. </view>
  11. </u-navbar>
  12. </view>
  13. <view class="wrap">
  14. <view class="wrap-fakeNum">
  15. <view class="fakeNum">{{info.fakeNum}}人已参与</view>
  16. </view>
  17. <view v-if="info.status && JSON.parse(info.status).value == 3" class="wrap-date">
  18. <view class="wrap-date-on">
  19. <view class="wrap-date-on-line" style="right: 30rpx;"></view>距离开奖
  20. <view class="wrap-date-on-line" style="left: 30rpx;"></view>
  21. </view>
  22. <u-count-down :time="activityTime" format="DD:HH:mm:ss" autoStart millisecond @change="onChange">
  23. <view class="wrap-date-date">
  24. <text>{{timeData.days}}天</text>
  25. <text>{{ timeData.hours>=10?timeData.hours:'0'+timeData.hours }}:</text>
  26. <text>{{ timeData.minutes>=10?timeData.minutes:'0'+timeData.minutes }}:</text>
  27. <text>{{ timeData.seconds>=10?timeData.seconds:'0'+timeData.seconds }}</text>
  28. </view>
  29. </u-count-down>
  30. </view>
  31. <view v-if="info.status && JSON.parse(info.status).value == 2" class="wrap-date">
  32. <view class="wrap-date-on">
  33. <view class="wrap-date-on-line" style="right: 30rpx;"></view>距离开始
  34. <view class="wrap-date-on-line" style="left: 30rpx;"></view>
  35. </view>
  36. <u-count-down :time="activityTimeTwo" format="DD:HH:mm:ss" autoStart millisecond @change="onChange">
  37. <view class="wrap-date-date">
  38. <text>{{timeData.days}}天</text>
  39. <text>{{ timeData.hours>=10?timeData.hours:'0'+timeData.hours }}:</text>
  40. <text>{{ timeData.minutes>=10?timeData.minutes:'0'+timeData.minutes }}:</text>
  41. <text>{{ timeData.seconds>=10?timeData.seconds:'0'+timeData.seconds }}</text>
  42. </view>
  43. </u-count-down>
  44. </view>
  45. <view v-for="(item,index) in awardsList" :key="index">
  46. <view class="wrap-fixed" v-for="(itemTwo,index) in item.prizeList" :key="index"
  47. v-if="item.name == '一等奖'">
  48. <view class="wrap-fixed-effectstwo">
  49. <view class="effectsthree">
  50. <view class="effectsthree-width">
  51. <image src="../static/activity/effectsthree.png"></image>
  52. <view class="effectsthree-width-name">
  53. {{item.name}}
  54. </view>
  55. </view>
  56. <view class="effectsthree-position">{{item.quantity}}个名额 </view>
  57. <view class="effectsthree-positionTwo">
  58. <view>
  59. <image :src="itemTwo.picUrl" mode="aspectFit"></image>
  60. </view>
  61. <view class="textone ells-one"
  62. v-if="itemTwo.prizeType && JSON.parse(itemTwo.prizeType).value == 'coin'">
  63. {{itemTwo.title}}x{{itemTwo.value}}
  64. </view>
  65. <view class="textone ells-one" v-else> {{itemTwo.title}} </view>
  66. <view class="texttwo ells-one"
  67. v-if="itemTwo.prizeType && JSON.parse(itemTwo.prizeType).value != 'coin'">
  68. ¥{{$numberFormat(itemTwo.value)}} </view>
  69. </view>
  70. </view>
  71. <view class="effectstwo"></view>
  72. </view>
  73. </view>
  74. </view>
  75. <view>
  76. <view v-for="(item,index) in awardsList" :key="index">
  77. <view v-if="item.name != '一等奖'">
  78. <view class="wrap-award">
  79. <view class="effectsthree">
  80. <view class="effectsthree-width">
  81. <image src="../static/activity/effectsthree.png" mode=""></image>
  82. <view class="effectsthree-width-name">
  83. {{item.name}}
  84. </view>
  85. </view>
  86. <view class="effectsthree-position">{{item.quantity}}个名额 </view>
  87. <view style="padding-top: 120rpx;"></view>
  88. <view class="effectsthree-positionTwo flex" v-for="(itemTwo,index) in item.prizeList"
  89. :key="index">
  90. <view>
  91. <image :src="itemTwo.picUrl" mode="aspectFit" class="imatwo"></image>
  92. </view>
  93. <view>
  94. <view class="textone ells-one"
  95. v-if="itemTwo.prizeType && JSON.parse(itemTwo.prizeType).value == 'coin'">
  96. {{itemTwo.title}}x{{itemTwo.value}}
  97. </view>
  98. <view class="textone ells-one" v-else> {{itemTwo.title}}</view>
  99. <view class="texttwo ells-one"
  100. v-if="itemTwo.prizeType && JSON.parse(itemTwo.prizeType).value != 'coin'">
  101. ¥{{$numberFormat(itemTwo.value)}} </view>
  102. </view>
  103. </view>
  104. </view>
  105. <view v-if="item.prizeList.length > 1 " class="wrap-award-explain">以上奖品随机获得一件</view>
  106. </view>
  107. </view>
  108. </view>
  109. </view>
  110. <!-- 我的抽奖码 -->
  111. <view class="wrap-description">
  112. <view class="wrap-description-code"> 我的抽奖码</view>
  113. <view v-if="info.codeList.length > 0" class="wrap-description-codetwo">
  114. <view class="codeList" v-for="(item,index) in info.codeList">
  115. <view class="codeList-bottom">{{item}}</view>
  116. </view>
  117. </view>
  118. <view v-else class="wrap-description-codethree">
  119. <view class="codethree">
  120. <image src="../static/activity/off.png" mode="" class="codeimg"></image>
  121. </view>
  122. <text class="codesix" style="">还没有抽奖码</text>
  123. </view>
  124. <view class="wrap-description-codesix">
  125. 抽奖码越多,中奖概率越大</view>
  126. </view>
  127. <!-- 关注公众号 -->
  128. <view class="wrap-account" @click="toWeixin">
  129. <view class="wrap-account-view">
  130. <image src="../static/activity/logo.png" mode=""></image>
  131. <text>关注盲票公众号,获取中奖提醒</text>
  132. <view>去关注</view>
  133. </view>
  134. </view>
  135. <!-- 图文介绍 -->
  136. <view class="wrap-descriptiontwo">
  137. <view style="padding: 36rpx 24rpx 36rpx;">图文介绍</view>
  138. <view v-html="description">{{description}} </view>
  139. </view>
  140. </view>
  141. <view class="footer-fixed">
  142. <view class="flex btn">
  143. <button v-if="info.status && JSON.parse(info.status).value == 3" type="default" @click="exChange"
  144. open-type="share">获取抽奖码</button>
  145. <u-count-down v-else :time="activityTimeTwo" format="DD:HH:mm:ss" autoStart millisecond
  146. @change="onChange">
  147. <button class="buttoncol" type="default">
  148. 开始倒计时:{{timeData.days}}&nbsp;天{{ timeData.hours>=10?timeData.hours:'0'+timeData.hours}}&nbsp;:{{timeData.minutes>=10?timeData.minutes:'0'+timeData.minutes}}&nbsp;:{{timeData.seconds>=10?timeData.seconds:'0'+timeData.seconds}}
  149. </button>
  150. </u-count-down>
  151. </view>
  152. </view>
  153. <!-- <u-popup :show="popupShow" mode="bottom" @close="close" closeable>
  154. <view class="popupcode">获取抽奖码</view>
  155. <view class="popupcodetwo">
  156. <view class="popupcodetwo-view">邀请好友助力,获取抽奖码</view>
  157. <text class="popupcodetwo-text">每邀请一位好友助力成功,即可获得1个抽奖码,没有上限</text>
  158. </view>
  159. <view class="popupcodethree" style="">
  160. <button type="default" class="popupcodethree-default" open-type="share">立即邀请好友助力</button>
  161. </view>
  162. </u-popup> -->
  163. <!-- <u-popup v-if="info.status && JSON.parse(info.status).value == 4" mode="bottom" @close="close" closeable> -->
  164. <u-popup v-if="info.status && JSON.parse(info.status).value == 4" show="true" mode="center" @close="close"
  165. round="11">
  166. <view style="text-align: center;width: 600rpx; height: 500rpx;">
  167. <view style="color: #666;margin-top: 110rpx;font-size: 40rpx;">来晚了,活动已结束</view>
  168. <view style="color: #666;margin-top: 50rpx;font-size: 36rpx;">点击前往查看新的免费抽奖活动</view>
  169. <button @click="toActivity" type="default"
  170. style="background-color: #FF8000;color: #fff; width: 300rpx;margin-top: 70rpx;">确定</button>
  171. </view>
  172. </u-popup>
  173. </view>
  174. </template>
  175. <script>
  176. import env from '../../config/env.js'
  177. import $http from '@/utils/request.js'
  178. export default {
  179. data() {
  180. return {
  181. popupShow: false,
  182. id: '',
  183. description: '', //富文本
  184. info: {}, //列表
  185. timeData: {}, //时间
  186. awardsList: [], //奖品
  187. inviteCode: '', //邀请码
  188. activityTime: 0,
  189. activityTimeTwo: 0,
  190. pagesNum: "",
  191. }
  192. },
  193. onLoad(opthios) {
  194. this.id = opthios.id
  195. this.getDetail()
  196. },
  197. onShow() {
  198. this.pagesNum = getCurrentPages().length
  199. },
  200. methods: {
  201. toActivity() {
  202. uni.reLaunch({
  203. url: `/pages/activity/index?triggerStatus=0`
  204. })
  205. },
  206. getDetail() {
  207. uni.showLoading({
  208. title: '加载中'
  209. });
  210. $http.post(`/api/v1/mp/user/marketing/detail/${this.id}`, {}).then(res => {
  211. uni.hideLoading();
  212. if (res.code == 0) {
  213. this.info = res.data
  214. let awardsList = res.data.awardsList
  215. awardsList.forEach(item => {
  216. item.prizeList.forEach(itemTwo => {
  217. itemTwo.picUrl = (env.filePublic + itemTwo.picUrl.split(',')[0] +
  218. '?imageView2/2/w/750')
  219. })
  220. })
  221. this.awardsList = awardsList
  222. // 处理富文本
  223. const description = res.data.description.replaceAll(".jpg\"", ".jpg?imageView2/2/w/750\"")
  224. .replaceAll(".jpeg\"", ".jpeg?imageView2/2/w/750\"").replaceAll(".png\"",
  225. ".png?imageView2/2/w/750\"");
  226. this.description = this.formatRichText(description);
  227. let timestamp = parseInt(new Date().getTime())
  228. this.activityTime = this.info.endTime - timestamp
  229. this.activityTimeTwo = this.info.startTime - timestamp
  230. }
  231. }).catch(() => {
  232. uni.hideLoading();
  233. })
  234. $http.post('/api/v1/mp/user/marketing/inviteCode', {}).then(res => {
  235. if (res.code == 0) {
  236. this.inviteCode = res.data
  237. }
  238. })
  239. },
  240. onChange(e) {
  241. this.timeData = e
  242. },
  243. exChange() {
  244. //弹出层打开
  245. // this.popupShow = true
  246. uni.requestSubscribeMessage({
  247. tmplIds: ['3y_My-yRmqmGd3-f-vAwNaK4LQeehzXBSNDi_5wcnFI',
  248. 'FGcPOV1j9ApESr3VUlWjFr6E1vF4X_h0LLN82T2CLL0',
  249. '92xxL8XTRPLROyNUtmN04OT0kyq4iwSCH3sz-j6zbZs'
  250. ],
  251. success(res) {
  252. }
  253. })
  254. },
  255. close() {
  256. //弹出层收起
  257. this.popupShow = false
  258. },
  259. //公众号
  260. toWeixin() {
  261. uni.navigateTo({
  262. url: `/packageOperate/activity/wxofficial`
  263. })
  264. },
  265. /**
  266. * 处理富文本里的图片宽度自适应
  267. * 1.去掉img标签里的style、width、height属性
  268. * 2.img标签添加style属性:max-width:100%;height:auto
  269. * 3.修改所有style里的width属性为max-width:100%
  270. * 4.去掉<br/>标签
  271. * @param html
  272. * @returns {void|string|*}
  273. */
  274. formatRichText(html) { //控制小程序中图片大小
  275. let newContent = html.replace(/<img[^>]*>/gi, function(match, capture) {
  276. match = match.replace(/style="[^"]+"/gi, '').replace(/style='[^']+'/gi, '');
  277. match = match.replace(/width="[^"]+"/gi, '').replace(/width='[^']+'/gi, '');
  278. match = match.replace(/height="[^"]+"/gi, '').replace(/height='[^']+'/gi, '');
  279. return match;
  280. });
  281. newContent = newContent.replace(/style="[^"]+"/gi, function(match, capture) {
  282. match = match.replace(/width:[^;]+;/gi, 'max-width:100%;').replace(/width:[^;]+;/gi,
  283. 'max-width:100%;');
  284. return match;
  285. });
  286. newContent = newContent.replace(/<br[^>]*\/>/gi, '');
  287. newContent = newContent.replace(/\<img/gi,
  288. '<img style="max-width:100%;height:auto;font-size: 0;margin-top: -5px;"');
  289. return newContent;
  290. },
  291. },
  292. onShareAppMessage(res) {
  293. return {
  294. title: '超值宝贝免费抽,参与活动仅需3秒',
  295. path: `/pages/index/index?marketingId=${ this.info.id }&inviteCode=${ this.inviteCode }`,
  296. imageUrl: 'https://mp-public-test-1307117429.cos.ap-shanghai.myqcloud.com/70/EJ305PQR2IBE45O9AFAI',
  297. }
  298. },
  299. }
  300. </script>
  301. <style lang="scss" scoped>
  302. .popupcode {
  303. height: 98rpx;
  304. width: 100%;
  305. background-color: #F8832C;
  306. text-align: center;
  307. line-height: 98rpx;
  308. color: #fff;
  309. font-size: 32rpx;
  310. }
  311. .popupcodetwo {
  312. padding: 30rpx 20rpx;
  313. &-view {
  314. color: #101010;
  315. line-height: 50rpx;
  316. font-size: 30rpx;
  317. }
  318. &-text {
  319. color: #8c8c8c;
  320. font-size: 26rpx;
  321. }
  322. }
  323. .popupcodethree {
  324. padding: 0rpx 20rpx 50rpx;
  325. &-default {
  326. background-color: #FCE9DB;
  327. color: #fff;
  328. border: 2rpx solid #F8832C;
  329. color: #F9832C;
  330. border-radius: 22rpx;
  331. }
  332. }
  333. .wrap {
  334. // 设置ios刘海屏底部横线安全区域
  335. // padding-bottom: constant(safe-area-inset-bottom);
  336. // padding-bottom: env(safe-area-inset-bottom);
  337. padding-bottom: 200rpx;
  338. background: url(../static/activity/effectsone.png) no-repeat 100% 0%;
  339. background-size: 100%;
  340. &-fakeNum {
  341. margin-top: 46rpx;
  342. .fakeNum {
  343. line-height: 66rpx;
  344. text-align: center;
  345. width: 266rpx;
  346. height: 76rpx;
  347. background: url(../static/activity/rectangle.png) no-repeat center center;
  348. background-size: 266rpx 76rpx;
  349. margin: 0 auto;
  350. color: #A13D01;
  351. font-size: 30rpx;
  352. }
  353. }
  354. &-date {
  355. text-align: center;
  356. width: 100%;
  357. font-family: YouSheBiaoTiHei;
  358. color: #FFFFFF;
  359. &-on {
  360. display: inline-block;
  361. font-size: 76rpx;
  362. line-height: 68rpx;
  363. &-line {
  364. display: inline-block;
  365. width: 68rpx;
  366. height: 2rpx;
  367. overflow: hidden;
  368. background-color: #fff;
  369. position: relative;
  370. bottom: 25rpx;
  371. }
  372. }
  373. &-date {
  374. font-size: 52rpx;
  375. }
  376. }
  377. &-fixed {
  378. height: 630rpx;
  379. margin: 30rpx 30rpx;
  380. &-effectstwo {
  381. border-radius: 20rpx;
  382. width: 100%;
  383. height: 100%;
  384. background: url(../static/activity/effectstwo.png) no-repeat center center;
  385. .effectsthree {
  386. position: relative;
  387. height: 400rpx;
  388. width: 100%;
  389. z-index: 10;
  390. &-width {
  391. position: absolute;
  392. width: 175rpx;
  393. height: 175rpx;
  394. margin: 0;
  395. image {
  396. width: 100%;
  397. height: 100%;
  398. }
  399. &-name {
  400. position: relative;
  401. left: 10rpx;
  402. top: -160rpx;
  403. transform: rotateZ(-45deg);
  404. color: #fff;
  405. font-size: 26rpx;
  406. }
  407. }
  408. &-position {
  409. position: absolute;
  410. width: 180rpx;
  411. height: 62rpx;
  412. background-image: linear-gradient(to right, #FAE08A, #FFC45A);
  413. border-radius: 17rpx;
  414. line-height: 62rpx;
  415. text-align: center;
  416. color: #A13D01;
  417. font-size: 30rpx;
  418. top: 20rpx;
  419. right: 20rpx;
  420. }
  421. &-positionTwo {
  422. width: 100%;
  423. height: 100%;
  424. text-align: center;
  425. image {
  426. width: 350rpx;
  427. height: 350rpx;
  428. margin-top: 70rpx;
  429. }
  430. .textone {
  431. margin-top: 80rpx;
  432. color: #333333;
  433. font-size: 30rpx;
  434. line-height: 40rpx;
  435. }
  436. .texttwo {
  437. color: #FE2616;
  438. font-size: 28rpx;
  439. line-height: 34rpx;
  440. }
  441. }
  442. }
  443. .effectstwo {
  444. position: relative;
  445. bottom: 120rpx;
  446. margin-left: 17.5%;
  447. width: 65%;
  448. height: 65%;
  449. background: url(../static/activity/effectssix.png) no-repeat 100% center;
  450. background-size: 100%;
  451. }
  452. }
  453. }
  454. &-award {
  455. padding-bottom: 50rpx;
  456. // height: 2230rpx;
  457. border-radius: 18rpx;
  458. margin: 30rpx 30rpx;
  459. background-color: #fff;
  460. .effectsthree {
  461. position: relative;
  462. // height: 400rpx;
  463. // width: 100%;
  464. // z-index: 10;
  465. &-width {
  466. position: absolute;
  467. width: 175rpx;
  468. height: 175rpx;
  469. margin: 0;
  470. image {
  471. width: 100%;
  472. height: 100%;
  473. }
  474. &-name {
  475. position: relative;
  476. left: 10rpx;
  477. top: -160rpx;
  478. transform: rotateZ(-45deg);
  479. color: #fff;
  480. font-size: 26rpx;
  481. }
  482. }
  483. &-position {
  484. position: absolute;
  485. z-index: 11;
  486. width: 180rpx;
  487. height: 62rpx;
  488. background-image: linear-gradient(to right, #FAE08A, #FFC45A);
  489. border-radius: 17rpx;
  490. line-height: 62rpx;
  491. text-align: center;
  492. color: #A13D01;
  493. font-size: 30rpx;
  494. top: 20rpx;
  495. right: 20rpx;
  496. }
  497. &-positionTwo {
  498. width: 100%;
  499. height: 220rpx;
  500. // text-align: center;
  501. padding: 0 62rpx;
  502. justify-content: flex-start;
  503. .imatwo {
  504. width: 150rpx;
  505. height: 150rpx;
  506. }
  507. .textone {
  508. color: #333333;
  509. font-size: 30rpx;
  510. margin-left: 20rpx;
  511. line-height: 75rpx;
  512. }
  513. .texttwo {
  514. margin-left: 20rpx;
  515. color: #FE2616;
  516. font-size: 28rpx;
  517. line-height: 75rpx;
  518. }
  519. .imgone {
  520. width: 449rpx;
  521. height: 280rpx;
  522. position: relative;
  523. bottom: 80rpx;
  524. margin-left: 0%;
  525. z-index: 0;
  526. // width: 45%;
  527. // height: 45%;
  528. }
  529. }
  530. }
  531. &-explain {
  532. margin-top: 30rpx;
  533. text-align: center;
  534. color: #999999;
  535. font-size: 30rpx;
  536. }
  537. }
  538. &-description {
  539. min-height: 200rpx;
  540. background-color: #fff;
  541. margin: 30rpx 30rpx;
  542. border-radius: 18rpx;
  543. &-code {
  544. font-size: 30rpx;
  545. color: #333;
  546. padding: 36rpx 24rpx;
  547. }
  548. &-codetwo {
  549. text-align: center;
  550. margin-top: 20rpx;
  551. margin-bottom: 50rpx;
  552. .codeList {
  553. text-align: center;
  554. margin-bottom: 40rpx;
  555. &-bottom {
  556. margin: 0 auto;
  557. width: 526rpx;
  558. height: 94rpx;
  559. background-color: #F8832C;
  560. color: #fff;
  561. border-radius: 12rpx;
  562. font-size: 38rpx;
  563. line-height: 94rpx;
  564. }
  565. }
  566. }
  567. &-codethree {
  568. text-align: center;
  569. .codethree {
  570. margin-left: 80rpx;
  571. .codeimg {
  572. width: 200rpx;
  573. height: 200rpx;
  574. }
  575. }
  576. .codesix {
  577. line-height: 1rpx;
  578. color: #9A9FB4;
  579. font-size: 30rpx;
  580. }
  581. }
  582. &-codesix {
  583. text-align: center;
  584. line-height: 200rpx;
  585. padding-bottom: 10rpx;
  586. font-size: 28rpx;
  587. color: #666;
  588. }
  589. }
  590. &-descriptiontwo {
  591. margin: 30rpx;
  592. border-radius: 18rpx;
  593. overflow: hidden;
  594. background-color: #fff;
  595. }
  596. &-account {
  597. height: 100rpx;
  598. border-radius: 22rpx;
  599. background-color: #fff;
  600. margin: 30rpx 30rpx 0 30rpx;
  601. &-view {
  602. padding: 0 20rpx;
  603. image {
  604. width: 64rpx;
  605. height: 64rpx;
  606. vertical-align: -50%;
  607. }
  608. text {
  609. line-height: 100rpx;
  610. margin: 20rpx;
  611. font-size: 30rpx;
  612. color: #333333;
  613. }
  614. view {
  615. text-align: center;
  616. border-radius: 6rpx;
  617. display: inline-block;
  618. height: 44rpx;
  619. line-height: 44rpx;
  620. font-size: 26rpx;
  621. width: 112rpx;
  622. color: #f9822c;
  623. background-color: #fff;
  624. border: 2rpx solid #f9822c;
  625. }
  626. }
  627. }
  628. }
  629. .data-btn {
  630. float: left;
  631. text {
  632. display: inline-block;
  633. width: 60rpx;
  634. }
  635. }
  636. .footer-fixed {
  637. position: fixed;
  638. bottom: var(--window-bottom);
  639. left: 0;
  640. right: 0;
  641. z-index: 11;
  642. box-shadow: 0 -4rpx 40rpx 0 rgba(151, 151, 151, 0.24);
  643. background: #fff;
  644. // 设置ios刘海屏底部横线安全区域
  645. padding-bottom: constant(safe-area-inset-bottom);
  646. padding-bottom: env(safe-area-inset-bottom);
  647. .btn {
  648. padding: 20rpx 0;
  649. /deep/ button {
  650. width: 640rpx;
  651. height: 90rpx;
  652. line-height: 90rpx;
  653. font-size: 34rpx;
  654. color: #fff;
  655. background-color: #FF6000;
  656. border: none;
  657. border-radius: 48rpx;
  658. }
  659. }
  660. .buttoncol {
  661. background-color: #555;
  662. }
  663. }
  664. </style>