index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820
  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. {{!isVoteNum&&is_vip ? '' : `点击 加入IHG会员 可享受额外${vipRewardTicketNum}票数`}}</text>
  123. <text v-if="isVoteNum && is_prize==0 ">今日投票数还有 {{userCanVoteNum}} 次
  124. 点击再次投票可再次为本项目投票也可为其他项目投票</text>
  125. <text v-if="is_prize==1">恭喜你中奖了!
  126. 获得了{{prizeProduct}}的奖品{{prizeProduct.indexOf('积分')==-1?'':',请尽快领取'}}</text>
  127. </view>
  128. <view class="btn">
  129. <view v-if="is_prize==0" class="cancel"
  130. @click="isVoteNum?goVote(activity_project_id,true):closeVote()">
  131. <text>{{isVoteNum?'再次投票':'关闭'}}</text>
  132. </view>
  133. <view v-if="is_prize==0" class="download" @click="isVoteNum||is_vip?goOtherItem():goJoin()">
  134. <text>{{isVoteNum||is_vip?'其他项目':'加入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(prizeProduct.indexOf('积分')==-1)">
  140. <text>{{prizeProduct.indexOf('积分')==-1?'去兑换':'去查看'}}</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. if(!this.$store.getters.userInfo){
  213. uni.navigateTo({
  214. url: '/pages/login/login'
  215. })
  216. return;
  217. }
  218. this.videoContext = uni.createVideoContext('myVideo')
  219. },
  220. onLoad(op) {
  221. this.activity_project_id = op.id
  222. this.getDetail(op.id)
  223. this.admin = this.$store.getters.userInfo
  224. // //海报
  225. // this.pupopWidth = this.pupopWidth * this.pixelRatio
  226. // this.pupopHeight = this.pupopHeight * this.pixelRatio
  227. },
  228. watch: {
  229. vipRewardTicketNum: {
  230. handler(newName, oldName) {
  231. // console.log(newName, '--->监听')
  232. },
  233. immediate: true,
  234. deep: true
  235. }
  236. },
  237. methods: {
  238. shareing() {
  239. uni.showLoading({
  240. title: "海报生成中...",
  241. mask: true
  242. })
  243. // this.inviteQR = this.codeImg
  244. // this.createPoster();
  245. },
  246. //去兑换页面
  247. goConvert(isConvert=true) {
  248. this.$utils.jump({
  249. jump_type: 4,
  250. jump_config: '/pages/my/prize/prize'
  251. })
  252. },
  253. //视频自动播放
  254. openVideoPlay() {
  255. this.videoContext.play()
  256. },
  257. //隐藏
  258. handleCancel() {
  259. console.log('取消审生成海报');
  260. },
  261. //生产海报
  262. getPoster() {
  263. this.$refs.hchPoster.posterShow()
  264. },
  265. // 切换轮播图指示点
  266. change1(e) {
  267. this.current1 = e.detail.current;
  268. },
  269. getDetail(id,callback) {
  270. this.$api.active.getActiveProjectDetail({
  271. activity_project_id: id
  272. }).then(res => {
  273. // console.log(res, "detail")
  274. if (res.code == 0) {
  275. this.voteDetail = res.data
  276. uni.getStorage({
  277. key: `is_vip_${this.voteDetail.id}`,
  278. success: (data)=> {
  279. this.is_vip = data.data === 1 ? true : false
  280. },
  281. fail:()=>{
  282. this.is_vip = false;
  283. }
  284. });
  285. this.startTime = res.data.activity.start_time.replace(/-/g, "/")
  286. // “yyyy-MM-dd-hh-mm-ss”.replace(/-/g,"/")
  287. this.endTime = res.data.activity.end_time.replace(/-/g, "/")
  288. this.cancelTime(this.startTime, this.endTime)
  289. //活动可以使用的投票数
  290. this.userCanVoteNum = res.data.user_can_vote_num
  291. if (this.userCanVoteNum > 0) {
  292. this.isVoteNum = true
  293. } else {
  294. this.isVoteNum = false
  295. }
  296. callback && callback()
  297. this.sourceId = res.data.id
  298. //跳转vip小程序获得投票数
  299. this.vipRewardTicketNum = res.data.activity.vip_reward_ticket_num
  300. // this.info =JSON.parse( res.data.img_urls)
  301. this.info = JSON.parse(res.data.img_urls).map(item => {
  302. return {
  303. img: item
  304. }
  305. })
  306. //跳转h5和小程序
  307. this.jump_type = res.data.jump_type,
  308. this.jump_config = res.data.jump_config
  309. //banner展示视频或者图片
  310. this.resource_type = res.data.resource_type
  311. this.video_url = res.data.video_url
  312. //视频自动播放
  313. this.openVideoPlay()
  314. //海报图片
  315. // this.posterData.mainImg = res.data.share_img
  316. // this.codeImg = res.data.qrcode_url
  317. }
  318. })
  319. },
  320. //轮播图跳转h5或者小程序和内部页面
  321. goSwiperSmall() {
  322. this.$utils.jump({
  323. jump_type: this.jump_type,
  324. jump_config: this.jump_config
  325. })
  326. },
  327. cancelTime(i, j) {
  328. let nowtime = new Date() //获取当前时间
  329. let startime = new Date(i) //活动开始时间
  330. let endtime = new Date(j); //活动结束时间
  331. let lefttime = endtime.getTime() - nowtime.getTime() //距离结束时间的毫秒数
  332. let spendtime = nowtime.getTime() - startime.getTime() //距离结束时间的毫秒数
  333. if (lefttime > 0 && spendtime > 0) {
  334. //活动进行中
  335. this.spending = true
  336. } else if (lefttime < 0) {
  337. //活动结束
  338. this.isEnd = true
  339. } else if (spendtime < 0) {
  340. //活动未开始
  341. this.isStart = true
  342. }
  343. },
  344. // 打开弹出层
  345. openVote(mode = true) {
  346. this.pupopSuccess = mode
  347. this.$refs.popup.open()
  348. },
  349. // 关闭弹出层
  350. closeVote() {
  351. this.$refs.popup.close()
  352. },
  353. //再次投票
  354. voteAgain(id) {
  355. this.goVote(id, true)
  356. },
  357. //跳转其他项目
  358. goOtherItem() {
  359. uni.navigateBack()
  360. },
  361. //获取当前页面路径
  362. getPageUrl() {
  363. const pages = getCurrentPages();
  364. if (pages.length == 1) {
  365. const currentPage = pages[0];
  366. let pageUrl = `/${currentPage.route}`;
  367. return pageUrl
  368. } else {
  369. const currentPage = pages[pages.length - 1];
  370. let pageUrl = `/${currentPage.route}`;
  371. return pageUrl
  372. }
  373. },
  374. // 跳转其他小程序
  375. goJoin() {
  376. this.$utils.jumpJoinVip().then( _=>{
  377. const page = this.getPageUrl()
  378. let user_id = ''
  379. if (this.admin != null) {
  380. user_id = this.admin.id
  381. } else {
  382. user_id = 0
  383. }
  384. this.$api.my.userMemberAdd({
  385. user_id,
  386. page,
  387. })
  388. //增加票数
  389. this.$api.my.userJoinVip({
  390. source_type: 1,
  391. source_id: this.sourceId
  392. }).then(res => {
  393. console.log(res)
  394. uni.setStorage({
  395. key: `is_vip_${this.voteDetail.id}`,
  396. data: 1,
  397. });
  398. this.is_vip = true
  399. this.closeVote()
  400. })
  401. })
  402. },
  403. // 投票
  404. goVote(id, again = false) {
  405. again && this.closeVote();
  406. this.$api.active.vote({
  407. activity_project_id: id
  408. }).then(res => {
  409. console.log(res, '投票')
  410. if (res.code == 0) {
  411. this.is_prize = res.data.is_prize
  412. if (this.is_prize == 1) {
  413. this.prizeProduct = res.data?.product?.name ? res.data.product.name : `${res.data.integral}积分`
  414. }
  415. this.getDetail(this.activity_project_id, this.openVote())
  416. } else if(res.code === 2){
  417. console.log(this.is_vip)
  418. if(!this.is_vip){
  419. this.openVote(false)
  420. }else{
  421. uni.showToast({
  422. icon: 'error',
  423. title: res.msg
  424. })
  425. }
  426. } else {
  427. uni.showToast({
  428. icon: 'error',
  429. title: res.msg?res.msg:"暂无权限"
  430. })
  431. }
  432. }).catch(err => {
  433. console.log(err)
  434. uni.showToast({
  435. icon: 'none',
  436. title: '投票失败'
  437. })
  438. })
  439. },
  440. //帮我拉票
  441. showPoster(){
  442. /**
  443. * 注意这里的图片接口好像有问题 .activity.cover_img信息
  444. * 报错内容:{"errMsg":"getImageInfo:fail invalid"}
  445. * 可能是图片域名不在微信开发者白名单
  446. * 添加不校验规则依然报错
  447. * 核实后取消下方注释即可
  448. */
  449. this.$refs.poster.show({
  450. name: this.voteDetail.project_name,
  451. title: this.voteDetail.activity.title,
  452. imgUrl: this.voteDetail.share_img,
  453. qrcodeUrl: this.voteDetail.qrcode_url,
  454. })
  455. console.log(this.voteDetail)
  456. }
  457. }
  458. }
  459. </script>
  460. <style lang="scss" scoped>
  461. $pageColor:#F9F9F9;
  462. $bgColor:#FFFFFF;
  463. @mixin flexlayout {
  464. display: flex;
  465. align-items: center;
  466. justify-content: center;
  467. }
  468. page {
  469. height: 100% !important;
  470. background: #F9F9F9 !important;
  471. }
  472. .vote-detail {
  473. height: 100%;
  474. background: #F9F9F9;
  475. }
  476. .reserve {
  477. // position: fixed;
  478. // bottom: 0;
  479. width: 100%;
  480. height: 148rpx;
  481. padding: 0 30rpx;
  482. background-color: #fff;
  483. display: flex;
  484. align-items: center;
  485. justify-content: space-between;
  486. font-size: 30rpx;
  487. color: #fff;
  488. font-weight: bold;
  489. .reserve-left {
  490. width: 204rpx;
  491. height: 92rpx;
  492. background: linear-gradient(270deg, #FF6200 0%, #FF9342 100%);
  493. border-radius: 12rpx;
  494. display: flex;
  495. align-items: center;
  496. justify-content: center;
  497. }
  498. .reserve-right {
  499. width: 466rpx;
  500. height: 92rpx;
  501. background: linear-gradient(270deg, #FF6200 0%, #FF9342 100%);
  502. border-radius: 12rpx;
  503. display: flex;
  504. align-items: center;
  505. justify-content: center;
  506. }
  507. }
  508. .introduce {
  509. padding: 0 30rpx;
  510. margin-bottom: 102rpx;
  511. .introduce-title {
  512. font-size: 32rpx;
  513. font-weight: bold;
  514. color: #333;
  515. display: flex;
  516. align-items: center;
  517. justify-content: center;
  518. }
  519. .introduce-text {
  520. margin-top: 44rpx;
  521. // line-height: 40rpx;
  522. // color: #333333;
  523. // font-size: 28rpx;
  524. }
  525. }
  526. .help {
  527. padding: 0 30rpx;
  528. margin-top: 30rpx;
  529. position: relative;
  530. .help-btn {
  531. height: 108rpx;
  532. background: #F9F9F9;
  533. border-radius: 14rpx;
  534. border: 2rpx solid #FF6200;
  535. display: flex;
  536. align-items: center;
  537. justify-content: center;
  538. color: #FF6200;
  539. font-weight: bold;
  540. font-size: 30rpx;
  541. }
  542. .img-IHg {
  543. width: 84rpx;
  544. height: 84rpx;
  545. background-color: #fff;
  546. box-shadow: 0px 8rpx 24rpx 0px rgba(220, 222, 229, 0.4);
  547. border-radius: 50%;
  548. display: flex;
  549. align-items: center;
  550. justify-content: center;
  551. position: fixed;
  552. // top: -28rpx;
  553. // right: 14rpx;
  554. top: 1030rpx;
  555. right: 30rpx;
  556. z-index: 99;
  557. }
  558. }
  559. .btn {
  560. padding: 0 30rpx;
  561. margin-top: 48rpx;
  562. .btn-vote {
  563. height: 108rpx;
  564. background: linear-gradient(338deg, #FF6200 0%, #FF9D4F 100%);
  565. border-radius: 12rpx;
  566. display: flex;
  567. align-items: center;
  568. justify-content: center;
  569. color: #FFFFFF;
  570. font-size: 30rpx;
  571. font-weight: bold;
  572. }
  573. .btn-vote-fasle {
  574. height: 108rpx;
  575. background: #CCCCCC;
  576. border-radius: 12rpx;
  577. display: flex;
  578. align-items: center;
  579. justify-content: center;
  580. color: #FFFFFF;
  581. font-size: 30rpx;
  582. font-weight: bold;
  583. }
  584. }
  585. .swiper {
  586. padding: 0 30rpx;
  587. margin-top: 64rpx;
  588. }
  589. .home-swiper {
  590. height: 576rpx;
  591. .swiper-box {
  592. height: 576rpx;
  593. }
  594. }
  595. .title {
  596. padding-top: 30rpx;
  597. display: flex;
  598. flex-direction: column;
  599. align-items: center;
  600. justify-content: center;
  601. .title-text {
  602. margin: 32rpx 0 16rpx;
  603. font-size: 40rpx;
  604. font-weight: bold;
  605. color: #333;
  606. }
  607. .title-btn {
  608. color: #FF6200;
  609. font-size: 28rpx;
  610. }
  611. }
  612. .rank {
  613. padding: 0 30rpx;
  614. }
  615. .vote-detail-btn {
  616. height: 190rpx;
  617. background-color: #fff;
  618. box-shadow: 0px 20rpx 40rpx 0px rgba(220, 222, 229, 0.4);
  619. border-radius: 16rpx;
  620. display: flex;
  621. align-items: center;
  622. justify-content: space-around;
  623. .vote-detail-btn-item {
  624. display: flex;
  625. flex-direction: column;
  626. align-items: center;
  627. justify-content: space-between;
  628. font-size: 28rpx;
  629. color: #333;
  630. .vote-detail-btn-item-num {
  631. font-size: 44rpx;
  632. font-weight: bold;
  633. }
  634. .vote-detail-btn-item-text {
  635. margin-top: 20rpx;
  636. }
  637. }
  638. }
  639. .pop {
  640. width: 640rpx;
  641. height: 740rpx;
  642. background: #FFFFFF;
  643. border-radius: 20rpx;
  644. padding-top: 32rpx;
  645. box-sizing: border-box;
  646. .title {
  647. @include flexlayout();
  648. margin-bottom: 32rpx;
  649. text {
  650. font-size: 34rpx;
  651. font-family: PingFangSC-Medium, PingFang SC;
  652. font-weight: 500;
  653. color: #FF7119;
  654. }
  655. }
  656. .img {
  657. margin-left: 48rpx;
  658. width: 544rpx;
  659. height: 306rpx;
  660. background: $bgColor;
  661. border-radius: 12rpx;
  662. @include flexlayout();
  663. margin-bottom: 32rpx;
  664. image {
  665. width: 544rpx;
  666. height: 306rpx;
  667. border-radius: 12rpx;
  668. }
  669. }
  670. .textfont {
  671. margin-left: 30rpx;
  672. margin-bottom: 40rpx;
  673. @include flexlayout();
  674. width: 572rpx;
  675. height: 106rpx;
  676. text {
  677. text-align: center;
  678. font-size: 34rpx;
  679. font-weight: 400;
  680. color: #828282;
  681. }
  682. }
  683. .btn {
  684. width: 100%;
  685. height: 110rpx;
  686. display: flex;
  687. align-items: center;
  688. .cancel {
  689. @include flexlayout();
  690. width: 50%;
  691. height: 100%;
  692. border-top: #E5E5E5 solid 1rpx;
  693. border-right: #E5E5E5 solid 1rpx;
  694. text {
  695. font-size: 32rpx;
  696. font-family: PingFangSC-Medium, PingFang SC;
  697. font-weight: 500;
  698. color: #666666;
  699. }
  700. }
  701. .download {
  702. border-top: #E5E5E5 solid 1rpx;
  703. // border-left:#E5E5E5 solid 0.3rpx;
  704. @include flexlayout();
  705. height: 100%;
  706. width: 50%;
  707. text {
  708. font-size: 32rpx;
  709. font-family: PingFangSC-Medium, PingFang SC;
  710. font-weight: 500;
  711. color: #FF7119;
  712. }
  713. }
  714. }
  715. }
  716. .movableArea {
  717. position: fixed;
  718. top: 0;
  719. left: 0;
  720. width: 100%;
  721. height: 100%;
  722. pointer-events: none; //设置area元素不可点击,则事件便会下移至页面下层元素
  723. .movableView {
  724. pointer-events: auto; //可以点击
  725. width: 84rpx;
  726. height: 84rpx;
  727. padding: 0 30rpx;
  728. .img-IHg {
  729. width: 84rpx;
  730. height: 84rpx;
  731. background-color: #fff;
  732. box-shadow: 0px 8rpx 24rpx 0px rgba(220, 222, 229, 0.4);
  733. border-radius: 50%;
  734. display: flex;
  735. align-items: center;
  736. justify-content: center;
  737. }
  738. }
  739. }
  740. </style>