index.vue 21 KB

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