index.vue 22 KB

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