index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783
  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">邀请好友助力,获取抽奖码</view>
  125. <view class="wrap-description-codesixtwo">每邀请一位好友助力成功,即可获得1个抽奖码,抽奖码越多中奖概率越大。</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 v-if="description" 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. <!-- 助力邀请弹框组件 -->
  165. <activity-help :activity-show="activityShow" :inviteCode="inviteCodeTa" :marketingId="marketingId" @close="close" @success="toActivity" v-if="activityShow && info.status && JSON.parse(info.status).value == 3" />
  166. <!-- 活动结束弹框 -->
  167. <u-popup v-if="info.status && JSON.parse(info.status).value == 4 || info.isOn == -1" show="true" mode="center" @close="close"
  168. round="11">
  169. <view style="text-align: center;width: 600rpx; height: 500rpx;">
  170. <view style="color: #666;margin-top: 110rpx;font-size: 40rpx;">来晚了,活动已结束</view>
  171. <view style="color: #666;margin-top: 50rpx;font-size: 36rpx;">点击前往查看新的免费抽奖活动</view>
  172. <button @click="toActivity" type="default"
  173. style="background-color: #FF8000;color: #fff; width: 300rpx;margin-top: 70rpx;">确定</button>
  174. </view>
  175. </u-popup>
  176. </view>
  177. </template>
  178. <script>
  179. import env from '../../config/env.js'
  180. import $http from '@/utils/request.js'
  181. import ActivityHelp from '@/components/activity-help/activity-help.vue'
  182. export default {
  183. components: {
  184. ActivityHelp
  185. },
  186. data() {
  187. return {
  188. popupShow: false,
  189. id: '',
  190. description: '', //富文本
  191. info: {}, //列表
  192. timeData: {}, //时间
  193. awardsList: [], //奖品
  194. inviteCode: '', //邀请码
  195. activityTime: 0,
  196. activityTimeTwo: 0,
  197. pagesNum: "",
  198. activityShow: false,//助力邀请弹框
  199. inviteCodeTa: '', //邀请码
  200. marketingId: '',//活动id
  201. }
  202. },
  203. onLoad(opthios) {
  204. if(opthios.id){
  205. this.id = opthios.id
  206. }
  207. /**
  208. * 免费活动邀请助力分享跳转接收参数
  209. * inviteCodeTa: 邀请码
  210. * marketingId: 活动id
  211. * */
  212. if (opthios.inviteCode && opthios.marketingId) {
  213. this.inviteCodeTa = opthios.inviteCode
  214. this.marketingId = opthios.marketingId
  215. this.id = opthios.marketingId
  216. this.activityShow = true
  217. }
  218. this.getDetail()
  219. },
  220. onShow() {
  221. this.pagesNum = getCurrentPages().length
  222. },
  223. methods: {
  224. toActivity() {
  225. uni.reLaunch({
  226. url: `/pages/activity/index`
  227. })
  228. },
  229. getDetail() {
  230. uni.showLoading({
  231. title: '加载中'
  232. });
  233. $http.post(`/api/v1/mp/user/marketing/detail/${this.id}`, {}).then(res => {
  234. uni.hideLoading();
  235. if (res.code == 0) {
  236. this.info = res.data
  237. let awardsList = res.data.awardsList
  238. awardsList.forEach(item => {
  239. item.prizeList.forEach(itemTwo => {
  240. itemTwo.picUrl = (env.filePublic + itemTwo.picUrl.split(',')[0] +
  241. '?imageView2/2/w/750')
  242. })
  243. })
  244. this.awardsList = awardsList
  245. // 处理富文本
  246. const description = res.data.description.replaceAll(".jpg\"", ".jpg?imageView2/2/w/750\"")
  247. .replaceAll(".jpeg\"", ".jpeg?imageView2/2/w/750\"").replaceAll(".png\"",
  248. ".png?imageView2/2/w/750\"");
  249. this.description = this.formatRichText(description);
  250. let timestamp = parseInt(new Date().getTime())
  251. this.activityTime = this.info.endTime - timestamp
  252. this.activityTimeTwo = this.info.startTime - timestamp
  253. }
  254. }).catch(() => {
  255. uni.hideLoading();
  256. })
  257. $http.post('/api/v1/mp/user/marketing/inviteCode', {}).then(res => {
  258. if (res.code == 0) {
  259. this.inviteCode = res.data
  260. }
  261. })
  262. },
  263. onChange(e) {
  264. this.timeData = e
  265. },
  266. exChange() {
  267. //弹出层打开
  268. // this.popupShow = true
  269. uni.requestSubscribeMessage({
  270. tmplIds: ['3y_My-yRmqmGd3-f-vAwNaK4LQeehzXBSNDi_5wcnFI',
  271. 'FGcPOV1j9ApESr3VUlWjFr6E1vF4X_h0LLN82T2CLL0',
  272. '92xxL8XTRPLROyNUtmN04OT0kyq4iwSCH3sz-j6zbZs'
  273. ],
  274. success(res) {
  275. }
  276. })
  277. },
  278. close() {
  279. //弹出层收起
  280. this.popupShow = false
  281. // 关闭支付弹框
  282. this.payShow = false
  283. this.activityShow = false
  284. },
  285. //公众号
  286. toWeixin() {
  287. uni.navigateTo({
  288. url: `/packageOperate/activity/wxofficial`
  289. })
  290. },
  291. /**
  292. * 处理富文本里的图片宽度自适应
  293. * 1.去掉img标签里的style、width、height属性
  294. * 2.img标签添加style属性:max-width:100%;height:auto
  295. * 3.修改所有style里的width属性为max-width:100%
  296. * 4.去掉<br/>标签
  297. * @param html
  298. * @returns {void|string|*}
  299. */
  300. formatRichText(html) { //控制小程序中图片大小
  301. let newContent = html.replace(/<img[^>]*>/gi, function(match, capture) {
  302. match = match.replace(/style="[^"]+"/gi, '').replace(/style='[^']+'/gi, '');
  303. match = match.replace(/width="[^"]+"/gi, '').replace(/width='[^']+'/gi, '');
  304. match = match.replace(/height="[^"]+"/gi, '').replace(/height='[^']+'/gi, '');
  305. return match;
  306. });
  307. newContent = newContent.replace(/style="[^"]+"/gi, function(match, capture) {
  308. match = match.replace(/width:[^;]+;/gi, 'max-width:100%;').replace(/width:[^;]+;/gi,
  309. 'max-width:100%;');
  310. return match;
  311. });
  312. newContent = newContent.replace(/<br[^>]*\/>/gi, '');
  313. newContent = newContent.replace(/\<img/gi,
  314. '<img style="max-width:100%;height:auto;font-size: 0;margin-top: -5px;"');
  315. return newContent;
  316. },
  317. },
  318. onShareAppMessage(res) {
  319. return {
  320. title: '超值宝贝免费抽,参与活动仅需3秒',
  321. path: `/packageOperate/activity/index?marketingId=${ this.info.id }&inviteCode=${ this.inviteCode }`,
  322. imageUrl: 'https://mp-public-1310078123.cos.ap-shanghai.myqcloud.com/v2/free_draw_bkg.jpeg',
  323. }
  324. },
  325. }
  326. </script>
  327. <style lang="scss" scoped>
  328. .popupcode {
  329. height: 98rpx;
  330. width: 100%;
  331. background-color: #F8832C;
  332. text-align: center;
  333. line-height: 98rpx;
  334. color: #fff;
  335. font-size: 32rpx;
  336. }
  337. .popupcodetwo {
  338. padding: 30rpx 20rpx;
  339. &-view {
  340. color: #101010;
  341. line-height: 50rpx;
  342. font-size: 30rpx;
  343. }
  344. &-text {
  345. color: #8c8c8c;
  346. font-size: 26rpx;
  347. }
  348. }
  349. .popupcodethree {
  350. padding: 0rpx 20rpx 50rpx;
  351. &-default {
  352. background-color: #FCE9DB;
  353. color: #fff;
  354. border: 2rpx solid #F8832C;
  355. color: #F9832C;
  356. border-radius: 22rpx;
  357. }
  358. }
  359. .wrap {
  360. // 设置ios刘海屏底部横线安全区域
  361. // padding-bottom: constant(safe-area-inset-bottom);
  362. // padding-bottom: env(safe-area-inset-bottom);
  363. padding-bottom: 200rpx;
  364. background: url(../static/activity/effectsone.png) no-repeat 100% 0%;
  365. background-size: 100%;
  366. &-fakeNum {
  367. margin-top: 46rpx;
  368. .fakeNum {
  369. line-height: 66rpx;
  370. text-align: center;
  371. width: 266rpx;
  372. height: 76rpx;
  373. background: url(../static/activity/rectangle.png) no-repeat center center;
  374. background-size: 266rpx 76rpx;
  375. margin: 0 auto;
  376. color: #A13D01;
  377. font-size: 30rpx;
  378. }
  379. }
  380. &-date {
  381. text-align: center;
  382. width: 100%;
  383. font-family: YouSheBiaoTiHei;
  384. color: #FFFFFF;
  385. &-on {
  386. display: inline-block;
  387. font-size: 76rpx;
  388. line-height: 68rpx;
  389. &-line {
  390. display: inline-block;
  391. width: 68rpx;
  392. height: 2rpx;
  393. overflow: hidden;
  394. background-color: #fff;
  395. position: relative;
  396. bottom: 25rpx;
  397. }
  398. }
  399. &-date {
  400. font-size: 52rpx;
  401. }
  402. }
  403. &-fixed {
  404. height: 630rpx;
  405. margin: 30rpx 30rpx;
  406. &-effectstwo {
  407. border-radius: 20rpx;
  408. width: 100%;
  409. height: 100%;
  410. background: url(../static/activity/effectstwo.png) no-repeat center center;
  411. .effectsthree {
  412. position: relative;
  413. height: 400rpx;
  414. width: 100%;
  415. z-index: 10;
  416. &-width {
  417. position: absolute;
  418. width: 175rpx;
  419. height: 175rpx;
  420. margin: 0;
  421. image {
  422. width: 100%;
  423. height: 100%;
  424. }
  425. &-name {
  426. position: relative;
  427. left: 10rpx;
  428. top: -160rpx;
  429. transform: rotateZ(-45deg);
  430. color: #fff;
  431. font-size: 26rpx;
  432. }
  433. }
  434. &-position {
  435. position: absolute;
  436. // z-index: 1;
  437. width: 180rpx;
  438. height: 62rpx;
  439. background-image: linear-gradient(to right, #FAE08A, #FFC45A);
  440. border-radius: 17rpx;
  441. line-height: 62rpx;
  442. text-align: center;
  443. color: #A13D01;
  444. font-size: 30rpx;
  445. top: 20rpx;
  446. right: 20rpx;
  447. }
  448. &-positionTwo {
  449. width: 100%;
  450. height: 100%;
  451. text-align: center;
  452. image {
  453. width: 350rpx;
  454. height: 350rpx;
  455. margin-top: 70rpx;
  456. }
  457. .textone {
  458. margin-top: 80rpx;
  459. color: #333333;
  460. font-size: 30rpx;
  461. line-height: 40rpx;
  462. }
  463. .texttwo {
  464. color: #FE2616;
  465. font-size: 28rpx;
  466. line-height: 34rpx;
  467. }
  468. }
  469. }
  470. .effectstwo {
  471. position: relative;
  472. bottom: 120rpx;
  473. margin-left: 17.5%;
  474. width: 65%;
  475. height: 65%;
  476. background: url(../static/activity/effectssix.png) no-repeat 100% center;
  477. background-size: 100%;
  478. }
  479. }
  480. }
  481. &-award {
  482. padding-bottom: 50rpx;
  483. // height: 2230rpx;
  484. border-radius: 18rpx;
  485. margin: 30rpx 30rpx;
  486. background-color: #fff;
  487. .effectsthree {
  488. position: relative;
  489. // height: 400rpx;
  490. // width: 100%;
  491. // z-index: 10;
  492. &-width {
  493. position: absolute;
  494. width: 175rpx;
  495. height: 175rpx;
  496. margin: 0;
  497. image {
  498. width: 100%;
  499. height: 100%;
  500. }
  501. &-name {
  502. position: relative;
  503. left: 10rpx;
  504. top: -160rpx;
  505. transform: rotateZ(-45deg);
  506. color: #fff;
  507. font-size: 26rpx;
  508. }
  509. }
  510. &-position {
  511. position: absolute;
  512. z-index: 1;
  513. width: 180rpx;
  514. height: 62rpx;
  515. background-image: linear-gradient(to right, #FAE08A, #FFC45A);
  516. border-radius: 17rpx;
  517. line-height: 62rpx;
  518. text-align: center;
  519. color: #A13D01;
  520. font-size: 30rpx;
  521. top: 20rpx;
  522. right: 20rpx;
  523. }
  524. &-positionTwo {
  525. width: 100%;
  526. height: 220rpx;
  527. // text-align: center;
  528. padding: 0 62rpx;
  529. justify-content: flex-start;
  530. .imatwo {
  531. width: 150rpx;
  532. height: 150rpx;
  533. }
  534. .textone {
  535. color: #333333;
  536. font-size: 30rpx;
  537. margin-left: 20rpx;
  538. line-height: 75rpx;
  539. }
  540. .texttwo {
  541. margin-left: 20rpx;
  542. color: #FE2616;
  543. font-size: 28rpx;
  544. line-height: 75rpx;
  545. }
  546. .imgone {
  547. width: 449rpx;
  548. height: 280rpx;
  549. position: relative;
  550. bottom: 80rpx;
  551. margin-left: 0%;
  552. z-index: 0;
  553. // width: 45%;
  554. // height: 45%;
  555. }
  556. }
  557. }
  558. &-explain {
  559. margin-top: 30rpx;
  560. text-align: center;
  561. color: #999999;
  562. font-size: 30rpx;
  563. }
  564. }
  565. &-description {
  566. min-height: 200rpx;
  567. background-color: #fff;
  568. margin: 30rpx 30rpx;
  569. border-radius: 18rpx;
  570. &-code {
  571. font-size: 30rpx;
  572. color: #333;
  573. padding: 36rpx 24rpx;
  574. }
  575. &-codetwo {
  576. text-align: center;
  577. margin-top: 20rpx;
  578. margin-bottom: 50rpx;
  579. .codeList {
  580. text-align: center;
  581. margin-bottom: 40rpx;
  582. &-bottom {
  583. margin: 0 auto;
  584. width: 526rpx;
  585. height: 94rpx;
  586. background-color: #F8832C;
  587. color: #fff;
  588. border-radius: 12rpx;
  589. font-size: 38rpx;
  590. line-height: 94rpx;
  591. }
  592. }
  593. }
  594. &-codethree {
  595. text-align: center;
  596. .codethree {
  597. margin-left: 80rpx;
  598. .codeimg {
  599. width: 200rpx;
  600. height: 200rpx;
  601. }
  602. }
  603. .codesix {
  604. line-height: 1rpx;
  605. color: #9A9FB4;
  606. font-size: 30rpx;
  607. }
  608. }
  609. &-codesix {
  610. padding: 10rpx 0;
  611. text-align: center;
  612. line-height: 60rpx;
  613. font-size: 30rpx;
  614. font-weight: bold;
  615. color: #F9822C;
  616. }
  617. &-codesixtwo {
  618. margin: 0 auto;
  619. width: 600rpx;
  620. font-size: 26rpx;
  621. color: #999;
  622. padding-bottom: 40rpx;
  623. }
  624. }
  625. &-descriptiontwo {
  626. margin: 30rpx;
  627. border-radius: 18rpx;
  628. overflow: hidden;
  629. background-color: #fff;
  630. }
  631. &-account {
  632. height: 100rpx;
  633. border-radius: 22rpx;
  634. background-color: #fff;
  635. margin: 30rpx 30rpx 0 30rpx;
  636. text-align: center;
  637. &-view {
  638. padding: 0 20rpx;
  639. image {
  640. width: 64rpx;
  641. height: 64rpx;
  642. vertical-align: -50%;
  643. }
  644. text {
  645. line-height: 100rpx;
  646. margin: 20rpx;
  647. font-size: 30rpx;
  648. color: #333333;
  649. }
  650. view {
  651. text-align: center;
  652. border-radius: 6rpx;
  653. display: inline-block;
  654. height: 44rpx;
  655. line-height: 44rpx;
  656. font-size: 26rpx;
  657. width: 112rpx;
  658. color: #f9822c;
  659. background-color: #fff;
  660. border: 2rpx solid #f9822c;
  661. }
  662. }
  663. }
  664. }
  665. .data-btn {
  666. float: left;
  667. text {
  668. display: inline-block;
  669. width: 60rpx;
  670. }
  671. }
  672. .footer-fixed {
  673. position: fixed;
  674. bottom: var(--window-bottom);
  675. left: 0;
  676. right: 0;
  677. z-index: 11;
  678. box-shadow: 0 -4rpx 40rpx 0 rgba(151, 151, 151, 0.24);
  679. background: #fff;
  680. // 设置ios刘海屏底部横线安全区域
  681. padding-bottom: constant(safe-area-inset-bottom);
  682. padding-bottom: env(safe-area-inset-bottom);
  683. .btn {
  684. padding: 20rpx 0;
  685. /deep/ button {
  686. width: 640rpx;
  687. height: 90rpx;
  688. line-height: 90rpx;
  689. font-size: 34rpx;
  690. color: #fff;
  691. background-color: #FF6000;
  692. border: none;
  693. border-radius: 48rpx;
  694. }
  695. }
  696. .buttoncol {
  697. background-color: #555;
  698. }
  699. }
  700. </style>