index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812
  1. <template>
  2. <view class="vote-detail">
  3. <!-- 活动查询 -->
  4. <view class="title">
  5. <image style="width: 158rpx;height: 158rpx;border-radius: 50%; " :src="voteDetail.logo" mode="">
  6. </image>
  7. <text class="title-text">{{voteDetail.project_name}}</text>
  8. <text class="title-btn">{{voteDetail.activity.title}}</text>
  9. </view>
  10. <!-- 分割线 -->
  11. <view style="width: 92%; height: 2rpx; background-color:#F0F0F0;margin: 40rpx auto; "></view>
  12. <!-- 排名 -->
  13. <view class="rank">
  14. <view class="vote-detail-btn">
  15. <view class="vote-detail-btn-item">
  16. <text class="vote-detail-btn-item-num">{{voteDetail.project_no}}</text>
  17. <text class="vote-detail-btn-item-text">编号</text>
  18. </view>
  19. <view style="width: 2rpx;height: 52rpx;background-color: #ccc;"></view>
  20. <view class="vote-detail-btn-item">
  21. <text class="vote-detail-btn-item-num"
  22. v-if="voteDetail.ticket_num>=0">{{voteDetail.ticket_num + voteDetail.virtual_ticket_num}}</text>
  23. <text class="vote-detail-btn-item-text">票数</text>
  24. </view>
  25. <view style="width: 2rpx;height: 52rpx;background-color: #ccc;"></view>
  26. <view class="vote-detail-btn-item">
  27. <text class="vote-detail-btn-item-num">{{voteDetail.rank}}</text>
  28. <text class="vote-detail-btn-item-text">排名</text>
  29. </view>
  30. <view style="width: 2rpx;height: 52rpx;background-color: #ccc;"></view>
  31. <view class="vote-detail-btn-item">
  32. <text class="vote-detail-btn-item-num">{{voteDetail.next_rank_ticket_num}}</text>
  33. <text class="vote-detail-btn-item-text">距上名</text>
  34. </view>
  35. </view>
  36. </view>
  37. <!-- 轮播图 -->
  38. <view style="background-color: #f9f9f9;">
  39. <view class="swiper">
  40. <view class="home-swiper">
  41. <uni-swiper-dot :mode="mode" :info="info" :current="current1" :dots-styles="dotsStyles">
  42. <swiper class="swiper-box" @change="change1" circular>
  43. <swiper-item v-for="(item ,index) in info" :key="index" v-if="resource_type == 1 ">
  44. <view class="swiper-item">
  45. <image style="width: 100%;height:576rpx; border-radius: 12rpx; " :src="item.img"
  46. mode="aspectFill"></image>
  47. </view>
  48. </swiper-item>
  49. <swiper-item v-if="resource_type == 2 ">
  50. <view class="swiper-item">
  51. <video id="myVideo" ref="myVideo"
  52. style="width: 100%; height: 576rpx;border-radius: 12rpx; " :src="video_url"
  53. controls :enable-progress-gesture="false">
  54. </video>
  55. </view>
  56. </swiper-item>
  57. </swiper>
  58. </uni-swiper-dot>
  59. </view>
  60. </view>
  61. <!-- 投票 -->
  62. <view class="btn" @click="goVote(activity_project_id)">
  63. <view v-if="spending || isStart" class="btn-vote"
  64. :class="spending?'btn-vote': isStart?'btn-vote-fasle' :'' ">
  65. <text>投票</text>
  66. </view>
  67. <view class="btn-vote-fasle" v-if="isEnd">
  68. <text>投票结束</text>
  69. </view>
  70. </view>
  71. <!-- 帮我拉票 -->
  72. <view class="help">
  73. <!-- <view class="help-btn" @click="getPoster">
  74. <text>帮我拉票</text>
  75. </view> -->
  76. <view class="help-btn" @click="showPoster">
  77. <text>帮我拉票</text>
  78. </view>
  79. </view>
  80. <movable-area class="movableArea">
  81. <movable-view class="movableView" direction="all" x="630rpx" y="700rpx">
  82. <view class="img-IHg" @click="goJoin">
  83. <image style="width: 64rpx; height: 58rpx; " src="/static/icon/vip.png" mode=""></image>
  84. </view>
  85. </movable-view>
  86. </movable-area>
  87. <!-- 分割线 -->
  88. <view style="width: 92%; height: 2rpx; background-color:#F0F0F0;margin: 64rpx auto; "></view>
  89. <!-- 介绍 -->
  90. <view class="introduce">
  91. <view class="introduce-title">
  92. <text>参赛介绍</text>
  93. </view>
  94. <view class="introduce-text" v-html="voteDetail.intro"></view>
  95. </view>
  96. <!-- 预约 -->
  97. <view class="reserve">
  98. <view class="reserve-left" @click="goSwiperSmall">
  99. <image style="width: 36rpx;height: 36rpx; margin-right: 10rpx;" src="/static/icon/reserve02.png"
  100. mode=""></image>
  101. <text>预约</text>
  102. </view>
  103. <view class="reserve-right" @click="goJoin">
  104. <image style="width: 60rpx;height: 56rpx; margin-right: 4rpx; " src="/static/icon/reserve01.png"
  105. mode=""></image>
  106. <text>加入IHG会员</text>
  107. </view>
  108. </view>
  109. </view>
  110. <!-- 弹出层 -->
  111. <uni-popup ref="popup" type="center">
  112. <view class="pop">
  113. <view class="title"><text>{{pupopSuccess? "投票成功" : "票数不足"}}</text></view>
  114. <view class="img" v-if="is_prize==0">
  115. <image :src="voteDetail.activity.success_img"></image>
  116. </view>
  117. <view class="img" v-if="is_prize==1">
  118. <image :src="voteDetail.activity.success_img"></image>
  119. </view>
  120. <view class="textfont">
  121. <text v-if="!isVoteNum && is_prize==0">今日投票数已用完
  122. 点击 加入IHG会员 可享受额外{{vipRewardTicketNum}}票数</text>
  123. <text v-if="isVoteNum && is_prize==0 ">今日投票数还有 {{userCanVoteNum}} 次
  124. 点击再次投票可再次为本项目投票也可为其他项目投票</text>
  125. <text v-if="is_prize==1">恭喜你中奖了!
  126. 获得了{{prizeProduct}}的奖品,请尽快领取</text>
  127. </view>
  128. <view class="btn">
  129. <view v-if="is_prize==0" class="cancel"
  130. @click="isVoteNum?voteAgain(activity_project_id):closeVote()">
  131. <text>{{isVoteNum?'再次投票':'关闭'}}</text>
  132. </view>
  133. <view v-if="is_prize==0" class="download" @click="isVoteNum?goOtherItem():goJoin()">
  134. <text>{{isVoteNum?'其他项目':'加入IHG会员'}}</text>
  135. </view>
  136. <view v-if="is_prize==1" class="cancel" @click="closeVote">
  137. <text>关闭</text>
  138. </view>
  139. <view v-if="is_prize==1" class="download" @click="goConvert">
  140. <text>去兑换</text>
  141. </view>
  142. </view>
  143. </view>
  144. </uni-popup>
  145. <Poster ref="poster" :name="voteDetail.project_name" :title="voteDetail.activity.title"/>
  146. </view>
  147. </template>
  148. <script>
  149. // import HchPoster from "@/components/hch-poster/hch-poster.vue"
  150. import Poster from "./poster.vue";
  151. export default {
  152. components:{Poster},
  153. data() {
  154. return {
  155. is_vip: false,
  156. pupopSuccess: true,
  157. pupopWidth: 590,
  158. pupopHeight: 788,
  159. //一定要注意像素密度的问题,这里使用的固定数值
  160. pixelRatio: 3, //屏幕像数密度
  161. inviteQR: '', //动态二维码
  162. posterImg: '', //最后生成的海报
  163. //二维码
  164. codeImg: '',
  165. //投票是否中奖,1中奖,0未中奖
  166. is_prize: '',
  167. //中奖礼物
  168. prizeProduct: '',
  169. //banner视频路径
  170. video_url: '',
  171. //banner图展示视频或者图片
  172. resource_type: '',
  173. //跳转h5和小程序
  174. jump_type: '',
  175. jump_config: '',
  176. //跳转vip小程序获得投票数
  177. vipRewardTicketNum: '',
  178. //活动id
  179. sourceId: '',
  180. //活动可以使用的投票数
  181. userCanVoteNum: '',
  182. isVoteNum: false,
  183. //判断活动是否正在进行中
  184. spending: false,
  185. //判断活动是否开始
  186. isStart: false,
  187. //判断活动是否结束
  188. isEnd: false,
  189. //活动开始时间
  190. startTime: '',
  191. //活动结束时间
  192. endTime: "",
  193. // 活动项目id
  194. activity_project_id: '',
  195. // 活动项目详情
  196. voteDetail: '',
  197. //轮播图
  198. info: [],
  199. dotsStyles: {
  200. backgroundColor: 'rgba(255, 255, 255, .3)',
  201. border: '1px rgba(255, 255, 255, .3) solid',
  202. color: '#fff',
  203. selectedBackgroundColor: 'rgba(255, 255, 255, 1)',
  204. selectedBorder: '1px rgba(255, 255, 255, 1) solid'
  205. },
  206. //指示点显示位置
  207. current1: 0,
  208. mode: 'dot'
  209. }
  210. },
  211. onReady: function(res) {
  212. this.videoContext = uni.createVideoContext('myVideo')
  213. console.log('onReady')
  214. uni.getStorage({
  215. key: 'is_vip',
  216. success: (data)=> {
  217. console.log(data)
  218. this.is_vip = data.data === 1 ? true : false
  219. console.log(this.is_vip)
  220. },
  221. fail:()=>{
  222. this.is_vip = false;
  223. }
  224. });
  225. },
  226. onLoad(op) {
  227. this.activity_project_id = op.id
  228. this.getDetail(op.id)
  229. this.admin = this.$store.getters.userInfo
  230. // //海报
  231. // this.pupopWidth = this.pupopWidth * this.pixelRatio
  232. // this.pupopHeight = this.pupopHeight * this.pixelRatio
  233. },
  234. watch: {
  235. vipRewardTicketNum: {
  236. handler(newName, oldName) {
  237. // console.log(newName, '--->监听')
  238. },
  239. immediate: true,
  240. deep: true
  241. }
  242. },
  243. methods: {
  244. shareing() {
  245. uni.showLoading({
  246. title: "海报生成中...",
  247. mask: true
  248. })
  249. // this.inviteQR = this.codeImg
  250. // this.createPoster();
  251. },
  252. //去兑换页面
  253. goConvert() {
  254. this.$utils.jump({
  255. jump_type: 4,
  256. jump_config: '/pages/my/prize/prize'
  257. })
  258. },
  259. //视频自动播放
  260. openVideoPlay() {
  261. this.videoContext.play()
  262. },
  263. //隐藏
  264. handleCancel() {
  265. console.log('取消审生成海报');
  266. },
  267. //生产海报
  268. getPoster() {
  269. this.$refs.hchPoster.posterShow()
  270. },
  271. // 切换轮播图指示点
  272. change1(e) {
  273. this.current1 = e.detail.current;
  274. },
  275. getDetail(id) {
  276. this.$api.active.getActiveProjectDetail({
  277. activity_project_id: id
  278. }).then(res => {
  279. // console.log(res, "detail")
  280. if (res.code == 0) {
  281. this.voteDetail = res.data
  282. this.startTime = res.data.activity.start_time.replace(/-/g, "/")
  283. // “yyyy-MM-dd-hh-mm-ss”.replace(/-/g,"/")
  284. this.endTime = res.data.activity.end_time.replace(/-/g, "/")
  285. this.cancelTime(this.startTime, this.endTime)
  286. //活动可以使用的投票数
  287. this.userCanVoteNum = res.data.user_can_vote_num
  288. if (this.userCanVoteNum > 0) {
  289. this.isVoteNum = true
  290. } else {
  291. this.isVoteNum = false
  292. }
  293. this.sourceId = res.data.id
  294. //跳转vip小程序获得投票数
  295. this.vipRewardTicketNum = res.data.activity.vip_reward_ticket_num
  296. // this.info =JSON.parse( res.data.img_urls)
  297. this.info = JSON.parse(res.data.img_urls).map(item => {
  298. return {
  299. img: item
  300. }
  301. })
  302. //跳转h5和小程序
  303. this.jump_type = res.data.jump_type,
  304. this.jump_config = res.data.jump_config
  305. //banner展示视频或者图片
  306. this.resource_type = res.data.resource_type
  307. this.video_url = res.data.video_url
  308. //视频自动播放
  309. this.openVideoPlay()
  310. //海报图片
  311. // this.posterData.mainImg = res.data.share_img
  312. // this.codeImg = res.data.qrcode_url
  313. }
  314. })
  315. },
  316. //轮播图跳转h5或者小程序和内部页面
  317. goSwiperSmall() {
  318. this.$utils.jump({
  319. jump_type: this.jump_type,
  320. jump_config: this.jump_config
  321. })
  322. },
  323. cancelTime(i, j) {
  324. let nowtime = new Date() //获取当前时间
  325. let startime = new Date(i) //活动开始时间
  326. let endtime = new Date(j); //活动结束时间
  327. let lefttime = endtime.getTime() - nowtime.getTime() //距离结束时间的毫秒数
  328. let spendtime = nowtime.getTime() - startime.getTime() //距离结束时间的毫秒数
  329. if (lefttime > 0 && spendtime > 0) {
  330. //活动进行中
  331. this.spending = true
  332. } else if (lefttime < 0) {
  333. //活动结束
  334. this.isEnd = true
  335. } else if (spendtime < 0) {
  336. //活动未开始
  337. this.isStart = true
  338. }
  339. },
  340. // 打开弹出层
  341. openVote(mode = true) {
  342. this.pupopSuccess = mode
  343. this.$refs.popup.open()
  344. },
  345. // 关闭弹出层
  346. closeVote() {
  347. this.$refs.popup.close()
  348. },
  349. //再次投票
  350. voteAgain(id) {
  351. this.goVote(id, true)
  352. },
  353. //跳转其他项目
  354. goOtherItem() {
  355. uni.navigateBack()
  356. },
  357. //获取当前页面路径
  358. getPageUrl() {
  359. const pages = getCurrentPages();
  360. if (pages.length == 1) {
  361. const currentPage = pages[0];
  362. let pageUrl = `/${currentPage.route}`;
  363. return pageUrl
  364. } else {
  365. const currentPage = pages[pages.length - 1];
  366. let pageUrl = `/${currentPage.route}`;
  367. return pageUrl
  368. }
  369. },
  370. // 跳转其他小程序
  371. goJoin() {
  372. this.$utils.jumpJoinVip().then( _=>{
  373. const page = this.getPageUrl()
  374. let user_id = ''
  375. if (this.admin != null) {
  376. user_id = this.admin.id
  377. } else {
  378. user_id = 0
  379. }
  380. this.$api.my.userMemberAdd({
  381. user_id,
  382. page,
  383. })
  384. //增加票数
  385. this.$api.my.userJoinVip({
  386. source_type: 1,
  387. source_id: this.sourceId
  388. }).then(res => {
  389. uni.setStorage({
  390. key: 'is_vip',
  391. data: 1,
  392. });
  393. this.is_vip = true
  394. })
  395. })
  396. },
  397. // 投票
  398. goVote(id, again = false) {
  399. again && this.closeVote();
  400. this.$api.active.vote({
  401. activity_project_id: id
  402. }).then(res => {
  403. console.log(res, '投票')
  404. if (res.code == 0) {
  405. this.is_prize = res.data.is_prize
  406. if (this.is_prize == 1) {
  407. this.prizeProduct = res.data?.product?.name
  408. }
  409. this.openVote()
  410. this.getDetail(this.activity_project_id)
  411. } else if(res.code === 1){
  412. if(!this.is_vip){
  413. this.openVote(false)
  414. }else{
  415. uni.showToast({
  416. icon: 'error',
  417. title: res.msg
  418. })
  419. }
  420. } else {
  421. uni.showToast({
  422. icon: 'none',
  423. title: res.msg
  424. })
  425. }
  426. }).catch(err => {
  427. console.log(err)
  428. uni.showToast({
  429. icon: 'none',
  430. title: '投票失败'
  431. })
  432. })
  433. },
  434. //帮我拉票
  435. showPoster(){
  436. /**
  437. * 注意这里的图片接口好像有问题 .activity.cover_img信息
  438. * 报错内容:{"errMsg":"getImageInfo:fail invalid"}
  439. * 可能是图片域名不在微信开发者白名单
  440. * 添加不校验规则依然报错
  441. * 核实后取消下方注释即可
  442. */
  443. this.$refs.poster.show({
  444. name: this.voteDetail.project_name,
  445. title: this.voteDetail.activity.title,
  446. imgUrl: this.voteDetail.share_img,
  447. qrcodeUrl: this.voteDetail.qrcode_url,
  448. })
  449. console.log(this.voteDetail)
  450. }
  451. }
  452. }
  453. </script>
  454. <style lang="scss" scoped>
  455. $pageColor:#F9F9F9;
  456. $bgColor:#FFFFFF;
  457. @mixin flexlayout {
  458. display: flex;
  459. align-items: center;
  460. justify-content: center;
  461. }
  462. page {
  463. height: 100% !important;
  464. background: #F9F9F9 !important;
  465. }
  466. .vote-detail {
  467. height: 100%;
  468. background: #F9F9F9;
  469. }
  470. .reserve {
  471. // position: fixed;
  472. // bottom: 0;
  473. width: 100%;
  474. height: 148rpx;
  475. padding: 0 30rpx;
  476. background-color: #fff;
  477. display: flex;
  478. align-items: center;
  479. justify-content: space-between;
  480. font-size: 30rpx;
  481. color: #fff;
  482. font-weight: bold;
  483. .reserve-left {
  484. width: 204rpx;
  485. height: 92rpx;
  486. background: linear-gradient(270deg, #FF6200 0%, #FF9342 100%);
  487. border-radius: 12rpx;
  488. display: flex;
  489. align-items: center;
  490. justify-content: center;
  491. }
  492. .reserve-right {
  493. width: 466rpx;
  494. height: 92rpx;
  495. background: linear-gradient(270deg, #FF6200 0%, #FF9342 100%);
  496. border-radius: 12rpx;
  497. display: flex;
  498. align-items: center;
  499. justify-content: center;
  500. }
  501. }
  502. .introduce {
  503. padding: 0 30rpx;
  504. margin-bottom: 102rpx;
  505. .introduce-title {
  506. font-size: 32rpx;
  507. font-weight: bold;
  508. color: #333;
  509. display: flex;
  510. align-items: center;
  511. justify-content: center;
  512. }
  513. .introduce-text {
  514. margin-top: 44rpx;
  515. // line-height: 40rpx;
  516. // color: #333333;
  517. // font-size: 28rpx;
  518. }
  519. }
  520. .help {
  521. padding: 0 30rpx;
  522. margin-top: 30rpx;
  523. position: relative;
  524. .help-btn {
  525. height: 108rpx;
  526. background: #F9F9F9;
  527. border-radius: 14rpx;
  528. border: 2rpx solid #FF6200;
  529. display: flex;
  530. align-items: center;
  531. justify-content: center;
  532. color: #FF6200;
  533. font-weight: bold;
  534. font-size: 30rpx;
  535. }
  536. .img-IHg {
  537. width: 84rpx;
  538. height: 84rpx;
  539. background-color: #fff;
  540. box-shadow: 0px 8rpx 24rpx 0px rgba(220, 222, 229, 0.4);
  541. border-radius: 50%;
  542. display: flex;
  543. align-items: center;
  544. justify-content: center;
  545. position: fixed;
  546. // top: -28rpx;
  547. // right: 14rpx;
  548. top: 1030rpx;
  549. right: 30rpx;
  550. z-index: 99;
  551. }
  552. }
  553. .btn {
  554. padding: 0 30rpx;
  555. margin-top: 48rpx;
  556. .btn-vote {
  557. height: 108rpx;
  558. background: linear-gradient(338deg, #FF6200 0%, #FF9D4F 100%);
  559. border-radius: 12rpx;
  560. display: flex;
  561. align-items: center;
  562. justify-content: center;
  563. color: #FFFFFF;
  564. font-size: 30rpx;
  565. font-weight: bold;
  566. }
  567. .btn-vote-fasle {
  568. height: 108rpx;
  569. background: #CCCCCC;
  570. border-radius: 12rpx;
  571. display: flex;
  572. align-items: center;
  573. justify-content: center;
  574. color: #FFFFFF;
  575. font-size: 30rpx;
  576. font-weight: bold;
  577. }
  578. }
  579. .swiper {
  580. padding: 0 30rpx;
  581. margin-top: 64rpx;
  582. }
  583. .home-swiper {
  584. height: 576rpx;
  585. .swiper-box {
  586. height: 576rpx;
  587. }
  588. }
  589. .title {
  590. padding-top: 30rpx;
  591. display: flex;
  592. flex-direction: column;
  593. align-items: center;
  594. justify-content: center;
  595. .title-text {
  596. margin: 32rpx 0 16rpx;
  597. font-size: 40rpx;
  598. font-weight: bold;
  599. color: #333;
  600. }
  601. .title-btn {
  602. color: #FF6200;
  603. font-size: 28rpx;
  604. }
  605. }
  606. .rank {
  607. padding: 0 30rpx;
  608. }
  609. .vote-detail-btn {
  610. height: 190rpx;
  611. background-color: #fff;
  612. box-shadow: 0px 20rpx 40rpx 0px rgba(220, 222, 229, 0.4);
  613. border-radius: 16rpx;
  614. display: flex;
  615. align-items: center;
  616. justify-content: space-around;
  617. .vote-detail-btn-item {
  618. display: flex;
  619. flex-direction: column;
  620. align-items: center;
  621. justify-content: space-between;
  622. font-size: 28rpx;
  623. color: #333;
  624. .vote-detail-btn-item-num {
  625. font-size: 44rpx;
  626. font-weight: bold;
  627. }
  628. .vote-detail-btn-item-text {
  629. margin-top: 20rpx;
  630. }
  631. }
  632. }
  633. .pop {
  634. width: 640rpx;
  635. height: 740rpx;
  636. background: #FFFFFF;
  637. border-radius: 20rpx;
  638. padding-top: 32rpx;
  639. box-sizing: border-box;
  640. .title {
  641. @include flexlayout();
  642. margin-bottom: 32rpx;
  643. text {
  644. font-size: 34rpx;
  645. font-family: PingFangSC-Medium, PingFang SC;
  646. font-weight: 500;
  647. color: #FF7119;
  648. }
  649. }
  650. .img {
  651. margin-left: 48rpx;
  652. width: 544rpx;
  653. height: 306rpx;
  654. background: $bgColor;
  655. border-radius: 12rpx;
  656. @include flexlayout();
  657. margin-bottom: 32rpx;
  658. image {
  659. width: 544rpx;
  660. height: 306rpx;
  661. border-radius: 12rpx;
  662. }
  663. }
  664. .textfont {
  665. margin-left: 30rpx;
  666. margin-bottom: 40rpx;
  667. @include flexlayout();
  668. width: 572rpx;
  669. height: 106rpx;
  670. text {
  671. text-align: center;
  672. font-size: 34rpx;
  673. font-weight: 400;
  674. color: #828282;
  675. }
  676. }
  677. .btn {
  678. width: 100%;
  679. height: 110rpx;
  680. display: flex;
  681. align-items: center;
  682. .cancel {
  683. @include flexlayout();
  684. width: 50%;
  685. height: 100%;
  686. border-top: #E5E5E5 solid 1rpx;
  687. border-right: #E5E5E5 solid 1rpx;
  688. text {
  689. font-size: 32rpx;
  690. font-family: PingFangSC-Medium, PingFang SC;
  691. font-weight: 500;
  692. color: #666666;
  693. }
  694. }
  695. .download {
  696. border-top: #E5E5E5 solid 1rpx;
  697. // border-left:#E5E5E5 solid 0.3rpx;
  698. @include flexlayout();
  699. height: 100%;
  700. width: 50%;
  701. text {
  702. font-size: 32rpx;
  703. font-family: PingFangSC-Medium, PingFang SC;
  704. font-weight: 500;
  705. color: #FF7119;
  706. }
  707. }
  708. }
  709. }
  710. .movableArea {
  711. position: fixed;
  712. top: 0;
  713. left: 0;
  714. width: 100%;
  715. height: 100%;
  716. pointer-events: none; //设置area元素不可点击,则事件便会下移至页面下层元素
  717. .movableView {
  718. pointer-events: auto; //可以点击
  719. width: 84rpx;
  720. height: 84rpx;
  721. padding: 0 30rpx;
  722. .img-IHg {
  723. width: 84rpx;
  724. height: 84rpx;
  725. background-color: #fff;
  726. box-shadow: 0px 8rpx 24rpx 0px rgba(220, 222, 229, 0.4);
  727. border-radius: 50%;
  728. display: flex;
  729. align-items: center;
  730. justify-content: center;
  731. }
  732. }
  733. }
  734. </style>