activityDetail.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678
  1. <template>
  2. <view :style="vuex_skin">
  3. <!-- #ifdef MP-WEIXIN -->
  4. <u-navbar :custom-back="customBack" :is-back="true" title="作品详情"></u-navbar>
  5. <!-- #endif -->
  6. <view class="" v-show="!loading" style="padding-bottom: 250rpx;">
  7. <video v-if="activity.activeType == 'VIDEO_TEXT'" class="works-video" @error="videoError"
  8. :poster="activity.imgUrl" :src="activity.videoUrl"></video>
  9. <image v-else class="works-video" @click="$util.preview(activity.imgUrl)" :src="activity.imgUrl"
  10. mode="widthFix">
  11. </image>
  12. <view style="padding: 20rpx 30rpx 50rpx 30rpx;background: white;">
  13. <view class="title" style="border-bottom: 1rpx solid #EEEEEE ;">
  14. <span class="bg-base work-no"> {{activity.productNo}}号</span>
  15. <span class="work-title">{{activity.title}}</span>
  16. <view class="work-info-box" style="display: flex;">
  17. <view class="center">
  18. <text class="cuIcon-hotfill text-base" style="font-size: 36rpx;"></text>
  19. </view>
  20. <view class="vote-count">{{activity.voteCount}}</view>
  21. <view class="center" style="justify-content: flex-start;">
  22. <view class="cu-tag round sm bg-tag" style="font-size: 22rpx;">
  23. <text>排行榜第{{activity.rank}}名</text>
  24. </view>
  25. </view>
  26. <!-- <view class="work-rank" style="background-color: rgba(102, 73, 239,.2);">排行榜第{{activity.rank}}名</view> -->
  27. </view>
  28. </view>
  29. <view style="font-size: 24rpx;color: #888888;padding: 30rpx 10rpx 20rpx 10rpx;">
  30. <u-parse :html="content"></u-parse>
  31. </view>
  32. </view>
  33. <view @click="showShare" class="bg-white padding-30 margin-top-30 flex">
  34. <view class="center margin-left-20">
  35. <view class="bg-base cu-btn round cuIcon" style="width: 70rpx;height: 70rpx;">
  36. <text class="cuIcon-forwardfill"></text>
  37. </view>
  38. <!-- <image style="width: 84rpx;height: 84rpx;" src="../../static/icon/ic_zhuanfa.png"></image> -->
  39. </view>
  40. <view class="basis-lg flex flex-direction" style="margin-left: 30rpx;">
  41. <view style="font-size: 28rpx;color: #353535;">为TA拉票</view>
  42. <view style="font-size: 22rpx;color: #AEACAF;padding-top: 10rpx;">
  43. <!-- <text>成功邀请一位好友投票,获得{{vuex_active_setting.voteAndHeatRate}}热力值</text> -->
  44. <text>转发邀请好友为该作品助力</text>
  45. </view>
  46. </view>
  47. <view class="flex justify-center align-center"
  48. style="color: #666666;flex-basis: 20%;font-size: 26rpx;font-family: PingFang-SC-Medium;">去邀请 >
  49. </view>
  50. </view>
  51. <view class="footer-bar" style="z-index: 1;">
  52. <u-button @click="goVote" shape="circle" :custom-style="btnText=='给ta投票'?customStyle:disabledStyle">
  53. {{btnText}}
  54. </u-button>
  55. </view>
  56. </view>
  57. <login ref="login" @signIn="signIn" @phoneSuccess="showVote"></login>
  58. <toast ref="toast"></toast>
  59. <!-- #ifdef MP-WEIXIN -->
  60. <loading ref="loading" type="3" theme="2" />
  61. <!-- #endif -->
  62. <vote-popup ref="votePopup" @toVote="toVote"></vote-popup>
  63. <!-- 海报 -->
  64. <poster v-if="$isNotEmpty(posetrParams.activeId)" ref="poster" :avatar="posetrParams.avatar"
  65. :activeId="posetrParams.activeId" :title="posetrParams.title" :subTitle="posetrParams.subTitle"></poster>
  66. <share-popup ref="sharePopup" @confirm="shareConfirm"></share-popup>
  67. <timeline-popup ref="timelinePopup"></timeline-popup>
  68. <sms-alert ref="smsAlert" @exchange="cmccVote"></sms-alert>
  69. <vote-success ref="voteSuccess" @support="skipShop"></vote-success>
  70. <home-btn></home-btn>
  71. </view>
  72. </template>
  73. <script>
  74. import voteSuccess from "@/components/alert/voteSuccess.vue"
  75. import sharePopup from "@/components/alert/sharePopup.vue"
  76. import timelinePopup from "@/components/alert/timelinePopup.vue"
  77. import votePopup from '@/components/alert/votePopup.vue'
  78. import poster from "@/components/poster/poster.vue"
  79. import smsAlert from "@/components/alert/smsAlert.vue"
  80. export default {
  81. components: {
  82. voteSuccess,
  83. smsAlert,
  84. sharePopup,
  85. timelinePopup,
  86. votePopup,
  87. poster,
  88. },
  89. async onLoad(props) {
  90. // #ifdef MP-WEIXIN
  91. uni.showShareMenu({
  92. menus: ['shareAppMessage', 'shareTimeline']
  93. })
  94. // #endif
  95. this.isCustomBack = props.isCustomBack || true
  96. this.showLoading()
  97. //作品id
  98. this.id = props.id;
  99. //获取详情
  100. await this.fetchData()
  101. //处理授权结果
  102. this.handelAuthResult(props)
  103. // #ifdef MP-WEIXIN
  104. //处理创建订单结果
  105. this.handelOrderResult(props)
  106. // #endif
  107. // #ifdef H5
  108. this.h5CreateOrder()
  109. // #endif
  110. //处理海报参数
  111. this.handelShareParams()
  112. //隐藏loading
  113. setTimeout(() => {
  114. this.hideLoading()
  115. }, 20)
  116. this.getActivitySetting();
  117. },
  118. computed: {
  119. content() {
  120. return decodeURIComponent(this.activity.content)
  121. },
  122. btnText: {
  123. get() {
  124. let now = new Date().getTime()
  125. let startTime = this.$dateTime.getTime(this.activity.activeStartTime)
  126. let endTime = this.$dateTime.getTime(this.activity.activeEndTime)
  127. if (now < startTime) {
  128. return "活动未开始"
  129. }
  130. if (now > endTime) {
  131. return "活动已结束"
  132. }
  133. return "给ta投票"
  134. }
  135. }
  136. },
  137. data() {
  138. return {
  139. count: 0,
  140. //是否自定义返回,防止授权时返回到webview页面
  141. isCustomBack: true,
  142. defaultAvatar: 'https://vote.guosen-fumao.cn/obsfile/446d9e043f3748e4a47ea4d0de81b140-3b748fea4150c469b8eb66f98cd29e2.png',
  143. loading: false,
  144. //作品id
  145. id: '',
  146. //订单结果
  147. orderResult: {},
  148. //授权结果
  149. authResult: {},
  150. //分享
  151. qrCodeImg: '',
  152. //选中的道具
  153. selectGoods: {},
  154. mpShare: {},
  155. posetrParams: {
  156. avatar: '',
  157. title: '我是普法帮帮代言人',
  158. subTitle: '邀请您为888号作品投票!',
  159. activeId: ''
  160. },
  161. activity: {},
  162. customStyle: {
  163. color: 'white',
  164. background: "#E72226",
  165. fontSize: '32rpx',
  166. width: '500rpx',
  167. margin: '25rpx auto'
  168. },
  169. disabledStyle: {
  170. background: "#f1f1f1",
  171. fontSize: '32rpx',
  172. width: '500rpx',
  173. margin: '25rpx auto'
  174. },
  175. //活动设置
  176. activitySetting: {},
  177. }
  178. },
  179. onShareAppMessage(res) {
  180. return {
  181. title: `${this.$isNotEmpty(this.activitySetting.pullVoteParam) ? `【${this.activitySetting.pullVoteParam.sponsor}】` : ``}${this.mpShare.title}`,
  182. path: this.mpShare.path,
  183. imageUrl: this.mpShare.imageUrl
  184. }
  185. },
  186. onShareTimeline(res) {
  187. return {
  188. title: `${this.$isNotEmpty(this.activitySetting.pullVoteParam) ? `【${this.activitySetting.pullVoteParam.sponsor}】` : ``}${this.mpShare.title}`,
  189. path: this.mpShare.path,
  190. imageUrl: this.mpShare.imageUrl
  191. }
  192. },
  193. methods: {
  194. goVote() {
  195. if (this.btnText == '给ta投票') {
  196. this.login()
  197. return
  198. }
  199. this.$refs.toast.error(this.btnText)
  200. },
  201. showLoading() {
  202. // #ifdef MP-WEIXIN
  203. this.$refs.loading.showLoading()
  204. // #endif
  205. // #ifndef MP-WEIXIN
  206. this.$dialog.showLoading()
  207. // #endif
  208. },
  209. videoError(e) {
  210. console.log(e, "error");
  211. },
  212. hideLoading() {
  213. // #ifdef MP-WEIXIN
  214. this.$refs.loading.hide()
  215. // #endif
  216. // #ifndef MP-WEIXIN
  217. uni.hideLoading()
  218. // #endif
  219. this.loading = false
  220. },
  221. async fetchData() {
  222. this.activity = (await this.$api.activity.getWorksDetail(this.id)).data.data
  223. },
  224. async handelShareParams() {
  225. let title = await this.getPosetrParamsTitle();
  226. const userInfo = uni.getStorageSync("userInfo");
  227. /**
  228. * 海报分享参数
  229. * avatar: 显示优先级:作品封面 >>> 用户头像 >>> 默认头像
  230. * title: 显示优先级:平台自定义标题 >>> 我是第X号大赛代言人!>>> 我是普法帮帮代言人!
  231. */
  232. this.posetrParams = {
  233. avatar: this.activity.imgUrl || userInfo.avatar || this.defaultAvatar,
  234. title: this.activitySetting.pullVoteParam.title || title,
  235. subTitle: '邀请您为' + this.activity.productNo + '号作品投票!',
  236. activeId: this.activity.activeId
  237. }
  238. let userId = this.vuex_userId || '000000' //游客
  239. let sharePath = '/pages/activity/activityDetail?id=' + this.activity.id + '&userId=' + userId
  240. let encodePath = encodeURIComponent(sharePath)
  241. /**
  242. * 小程序分享参数
  243. * title:【主办方名字】 || '' + 用户自定义标题 || 我是第X号大赛代言人!+ 邀请您为《XXX》投票!
  244. */
  245. this.mpShare = {
  246. title: `${this.activitySetting.pullVoteParam.title || title} , 邀请您为《${this.activity.title}》投票!`,
  247. path: '/pages/index/home?path=' + encodePath,
  248. imageUrl: this.activity.imgUrl
  249. }
  250. this.h5share()
  251. },
  252. async h5share() {
  253. // #ifdef H5
  254. /**
  255. * H5分享参数
  256. * title:【主办方名字】 || '' + 用户自定义标题 || 我是第X号大赛代言人!|| 我是普法帮帮代言人!+ 邀请您为《XXX》投票!
  257. */
  258. let shareParam = {
  259. title: `${this.$isNotEmpty(this.activitySetting.pullVoteParam.sponsor) ? `【${this.activitySetting.pullVoteParam.sponsor}】` : ``}${this.posetrParams.title}`,
  260. desc: `邀请您为《${this.activity.title}》投票!`,
  261. imgUrl: this.activity.imgUrl,
  262. link: window.location.href
  263. }
  264. this.$shareConfig.H5Share(shareParam);
  265. // #endif
  266. },
  267. async getPosetrParamsTitle() {
  268. let title = "我是普法帮帮代言人"
  269. if (this.$isEmpty(this.vuex_phone)) {
  270. return title
  271. }
  272. let params = {
  273. activeId: this.activity.activeId,
  274. phone: this.vuex_phone
  275. }
  276. let res = await this.$api.activity.getPromoteNum(params)
  277. if (this.$isNotEmpty(res.data) && this.$isNotEmpty(res.data.data.index)) {
  278. let index = res.data.data.startIndex
  279. title = `我是第${index}位大赛代言人!`
  280. }
  281. return title
  282. },
  283. handelAuthResult(options) {
  284. if (options.authResult == undefined) {
  285. return
  286. }
  287. this.authResult = JSON.parse(options.authResult)
  288. if (this.authResult.resultCode == '0000') {
  289. //授权成功,直接弹出礼物框
  290. this.hideLoading()
  291. this.showVote()
  292. return
  293. }
  294. // #ifdef MP-WEIXIN
  295. if (this.authResult.resultCode == '9999') {
  296. //授权失败
  297. this.$refs.toast.error(this.authResult.message)
  298. return
  299. }
  300. // #endif
  301. },
  302. handelOrderResult(options) {
  303. if (options.orderPass && this.$cache.get('orderResult')) {
  304. this.orderResult = this.$cache.get('orderResult')
  305. this.createOrder()
  306. }
  307. },
  308. async showVote() {
  309. this.$refs.votePopup.showVote(this.vuex_phone, this.id, this.activity.activeId);
  310. },
  311. init() {
  312. if (this.vuex_phone) {
  313. this.showVote()
  314. }
  315. },
  316. //去投票
  317. toVote(item) {
  318. if (this.$cache.get('orderResult')) {
  319. this.orderResult = this.$cache.get('orderResult')
  320. this.orderResult.goodsId = item.id
  321. this.$cache.put('orderResult', this.orderResult, 1 * 60 * 60)
  322. }
  323. this.selectGoods = item
  324. if (item.point == 0) {
  325. //免费投票
  326. this.freeVote()
  327. return
  328. }
  329. this.$refs.votePopup.hideVote()
  330. //移动积分投票,创建订单
  331. if (this.$cache.get('orderResult')) {
  332. this.createOrder()
  333. return
  334. }
  335. // #ifdef MP-WEIXIN
  336. let params = {
  337. url: 'https://vote.guosen-fumao.cn/order.html',
  338. goodsId: this.selectGoods.id
  339. }
  340. this.$jump('/pages/webview/createOrder' + this.$u.queryParams(params))
  341. // #endif
  342. },
  343. //移动积分创建订单
  344. async createOrder() {
  345. if (this.$isEmpty(this.orderResult.fingerprint) ||
  346. this.$isEmpty(this.orderResult.sessionId) ||
  347. this.$isEmpty(this.orderResult.goodsId)) {
  348. this.$refs.toast.error('创建订单失败')
  349. return
  350. }
  351. let params = {
  352. fingerprint: this.orderResult.fingerprint,
  353. helpGoodsId: this.orderResult.goodsId,
  354. sessionId: this.orderResult.sessionId,
  355. num: 1,
  356. phone: this.vuex_phone,
  357. userId: this.vuex_userId
  358. }
  359. let res = await this.$api.order.create(params)
  360. if (res.data.success) {
  361. console.log("orderResult", this.orderResult);
  362. this.orderResult.outOrderId = res.data.data
  363. this.orderResult.mobile = this.vuex_phone
  364. this.$refs.smsAlert.showSmsAndSend(this.orderResult)
  365. } else {
  366. this.$refs.toast.error(res.data.msg)
  367. }
  368. },
  369. async cmccVote(item) {
  370. this.$refs.smsAlert.hideSms()
  371. let params = {
  372. ...item,
  373. machinetype: 'phone',
  374. productId: this.id,
  375. helpGoodsId: this.orderResult.goodsId,
  376. userId: this.vuex_userId,
  377. num: 1,
  378. }
  379. let res = await this.$api.order.exchange(params)
  380. if (res.data.success) {
  381. this.voteSuccess()
  382. this.$refs.smsAlert.hideSms()
  383. } else {
  384. this.$refs.toast.error(res.data.msg)
  385. }
  386. },
  387. voteSuccess() {
  388. try {
  389. let avatar = this.$cache.get('userInfo').avatar || this.defaultAvatar
  390. let activeVote = this.selectGoods.votePointRate
  391. this.$refs.voteSuccess.showSuccess(avatar, activeVote)
  392. } catch (e) {
  393. this.$refs.toast.info('助力成功')
  394. }
  395. },
  396. async freeVote() {
  397. let params = {
  398. helpGoodsId: this.selectGoods.id,
  399. userId: this.vuex_userId,
  400. num: 1,
  401. productId: this.activity.id,
  402. }
  403. let res = await this.$api.order.exchange(params)
  404. if (res.data.success) {
  405. this.$refs.votePopup.hideVote()
  406. this.fetchData()
  407. let avatar = this.$cache.get('userInfo').avatar
  408. let voteCount = this.selectGoods.votePointRate
  409. let pointNum = this.vuex_active_setting.voteAndPointRate
  410. setTimeout(() => {
  411. this.voteSuccess()
  412. }, 200)
  413. } else {
  414. this.$refs.votePopup.hideVote()
  415. setTimeout(() => {
  416. this.$refs.toast.error(res.data.msg)
  417. }, 200)
  418. }
  419. },
  420. customBack() {
  421. if (this.isCustomBack == true) {
  422. uni.switchTab({
  423. url: '/pages/index/home'
  424. })
  425. } else {
  426. uni.navigateBack({
  427. delta: 1
  428. })
  429. }
  430. },
  431. //分享
  432. showPoster() {
  433. this.$refs.poster.showCanvas()
  434. },
  435. async shareConfirm(item) {
  436. if (item.name == '海报') {
  437. this.showPoster()
  438. return
  439. }
  440. if (item.name == '好友') {
  441. // #ifdef H5
  442. this.$refs.timelinePopup.PopupTyPe = 'friend';
  443. this.$refs.timelinePopup.show()
  444. // #endif
  445. return
  446. }
  447. if (item.name == '朋友圈') {
  448. this.$refs.timelinePopup.PopupTyPe = 'friendsCircle';
  449. this.$refs.timelinePopup.show()
  450. }
  451. },
  452. async showShare() {
  453. await this.handelShareParams()
  454. this.$refs.sharePopup.show()
  455. },
  456. skipShop() {
  457. uni.setStorageSync('isWorksSkip', true)
  458. uni.switchTab({
  459. url: '/pages/shop/shop'
  460. })
  461. },
  462. // h5 创建订单 begin
  463. h5CreateOrder() {
  464. if (this.$cache.get('orderResult')) {
  465. this.orderResult = this.$cache.get('orderResult')
  466. return
  467. }
  468. //初始化js脚本
  469. this.initScript()
  470. //获取Fmopt
  471. this.fetchFmopt()
  472. //获取sessionId
  473. this.loadScriptFunc("", this.fetchSessionId())
  474. //打印数据
  475. this.cacheOrderData()
  476. },
  477. cacheOrderData() {
  478. let _this = this
  479. setTimeout(() => {
  480. _this.$nextTick(function() {
  481. try {
  482. _this.count++
  483. console.log("sessionId:" + window.sessionId);
  484. console.log("fingerprint:" + _fmOpt.getinfo());
  485. console.log("获取成功啦");
  486. _this.pushInCache(_fmOpt.getinfo(), window.sessionId)
  487. } catch (e) {
  488. console.log(_this.count);
  489. if (_this.count < 10) {
  490. _this.cacheOrderData()
  491. }
  492. }
  493. })
  494. }, 20)
  495. },
  496. pushInCache(fingerprint, sessionId) {
  497. this.orderResult = {
  498. fingerprint: encodeURIComponent(fingerprint),
  499. sessionId,
  500. goodsId: this.selectGoods.id
  501. }
  502. this.$cache.put('orderResult', this.orderResult)
  503. },
  504. initScript() {
  505. let monitorURL = "https://static.tongdun.net/monitor/monitor.js"
  506. this.loadScript(monitorURL)
  507. let tfdURL = "https://j.changyoyo.com/static/js/common/tfd.js"
  508. this.loadScript(tfdURL)
  509. let jqueryURL = "https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"
  510. this.loadScript(jqueryURL)
  511. },
  512. fetchFmopt() {
  513. window._fmOpt = {
  514. partner: 'changyou',
  515. appName: 'changyou_web',
  516. token: 'changyou' + "-" + new Date().getTime() + "-" +
  517. Math.random().toString(16).substr(2),
  518. fmb: true,
  519. success: function(data) {
  520. console.log('blackbox: ', data)
  521. },
  522. fpHost: "https://fp.tongdun.net"
  523. };
  524. var cimg = new Image(1, 1);
  525. cimg.onload = function() {
  526. _fmOpt.imgLoaded = true;
  527. };
  528. cimg.src =
  529. "https://fp.tongdun.net/fp/clear.png?partnerCode=changyou&appName=changyou_web&tokenId=" +
  530. _fmOpt.token;
  531. var fm = document.createElement('script');
  532. fm.type = 'text/javascript';
  533. fm.async = true;
  534. fm.src = ('https:' == document.location.protocol ? 'https://' : 'http://') +
  535. 'static.tongdun.net/v3/fm.js?ver=0.1&t=' + (new Date().getTime() / 3600000).toFixed(0);
  536. var s = document.getElementsByTagName('script')[0];
  537. s.parentNode.insertBefore(fm,
  538. s);
  539. },
  540. loadScript(src) {
  541. var script = document.createElement('script');
  542. script.src = src;
  543. document.body.appendChild(script);
  544. },
  545. loadScriptFunc(url, callback) {
  546. callback = typeof callback === 'function' ? callback : function() {};
  547. var head = document.getElementsByTagName('head')[0];
  548. var script = document.createElement('script');
  549. script.type = 'text/javascript';
  550. script.src = url;
  551. script.onreadystatechange = function() {
  552. if (this.readyState == "loaded" || this.readyState == "complete") {
  553. callback();
  554. }
  555. }
  556. script.onload = callback;
  557. head.appendChild(script);
  558. },
  559. fetchSessionId() {
  560. var url, ts, sessionId, appId, appkey;
  561. url = "tfd.changyoyo.com";
  562. appId = "5308e20b";
  563. appkey = "3daf27ea2fe840ada6af8e1ec0d7b760";
  564. ts = new Date().getTime();
  565. sessionId = "changyo-pc-" + ts + "-" + Math.random().toString(16).substr(2);
  566. window.sessionId = sessionId;
  567. [document.getElementsByTagName('script')[0].parentNode.appendChild(document.createElement('script')).src =
  568. "http://" +
  569. url + "/did/js/dp.js?appId=" + appId + "&appkey=" + appkey + "&sessionId=" + sessionId +
  570. "&ts=" +
  571. ts
  572. ][0];
  573. },
  574. //h5 创建订单end
  575. //获取活动参数
  576. async getActivitySetting() {
  577. // if (this.$isNotEmpty(this.vuex_active_setting)) { //有缓存直接从缓存获取
  578. // this.activitySetting = this.vuex_active_setting;
  579. // return;
  580. // }
  581. let params = {
  582. activeId: this.activity.activeId,
  583. platformSettingEnum: 'ACTIVE_SETTING'
  584. }
  585. let activeSetting = JSON.parse((await this.$api.platform.getPlatformValue(params)).data.data);
  586. this.$config.setTheme(activeSetting.theme, this);
  587. this.customStyle.background = this.vuex_theme.bgColor;
  588. this.activitySetting = activeSetting;
  589. activeSetting.defaultActiveId = this.activity.activeId
  590. this.$u.vuex('vuex_active_setting', activeSetting);
  591. },
  592. },
  593. }
  594. </script>
  595. <style lang="scss" scoped>
  596. .works-video {
  597. width: 100vw;
  598. height: 422rpx;
  599. }
  600. .title {
  601. padding: 20rpx;
  602. .work-no {
  603. padding: 5rpx 10rpx 5rpx 10rpx;
  604. border-radius: 7rpx;
  605. }
  606. .work-title {
  607. padding: 0 0 0 20rpx;
  608. color: #353535;
  609. font-size: 32rpx;
  610. font-weight: 800;
  611. }
  612. }
  613. .work-info-box {
  614. padding: 30rpx 0 15rpx 10rpx;
  615. .remen-icon {
  616. width: 30rpx;
  617. height: 30rpx;
  618. }
  619. .vote-count {
  620. padding: 0 20rpx 0 10rpx;
  621. font-size: 40rpx;
  622. color: #353535;
  623. font-weight: 800;
  624. }
  625. .work-rank {
  626. margin-left: -10rpx;
  627. color: #353535;
  628. background: #FDEBEC;
  629. border-radius: 21px 21px 21px 21px;
  630. font-size: 22rpx;
  631. padding: 8rpx 15rpx 8rpx 15rpx;
  632. }
  633. }
  634. .footer-bar {
  635. position: fixed;
  636. bottom: 0;
  637. left: 0;
  638. width: 100%;
  639. height: 170rpx;
  640. background-color: white;
  641. }
  642. .canvas-hide {
  643. position: fixed;
  644. right: 100vw;
  645. bottom: 100vh;
  646. z-index: -9999;
  647. opacity: 0;
  648. }
  649. </style>