cm-product-doc.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744
  1. <template>
  2. <view
  3. class="product-doc "
  4. :class="{ hasBottom: TipStatus }"
  5. :style="{ paddingBottom: isIphoneX && TipStatus ? '60rpx' : 0 }"
  6. >
  7. <view class="category">
  8. <view class="category-title">图片资料</view>
  9. <view class="content">
  10. <view class="cm-none" v-if="imageArchiveList.length === 0">暂无相关资料</view>
  11. <template v-else>
  12. <view class="section" v-for="(item, index) in imageArchiveList" :key="index">
  13. <view class="cm-title">{{ item.title }}</view>
  14. <view class="cm-time">{{ $api.easyFormatData(item.addTime) }}</view>
  15. <view class="cm-img-list cm-list">
  16. <template v-if="item.imageList">
  17. <image
  18. :src="image.url"
  19. @click="previewImage(i, item.imageList)"
  20. mode="aspectFill"
  21. v-for="(image, i) in imageFormat(item.imageList, index)"
  22. :key="i"
  23. :style="image.style"
  24. ></image>
  25. </template>
  26. <template v-else>
  27. <image
  28. :src="defaultImage"
  29. mode="aspectFill"
  30. v-for="i in item.imageNum"
  31. :key="i"
  32. @click="checkPermission"
  33. ></image>
  34. </template>
  35. </view>
  36. </view>
  37. </template>
  38. </view>
  39. </view>
  40. <view class="category">
  41. <view class="category-title">视频资料</view>
  42. <view class="content">
  43. <view class="cm-none" v-if="videoArchiveList.length === 0">暂无相关资料</view>
  44. <template v-else>
  45. <view class="section" v-for="(item, index) in videoArchiveList" :key="index">
  46. <view class="cm-title">{{ item.title }}</view>
  47. <view class="cm-time">{{ $api.easyFormatData(item.addTime) }}</view>
  48. <view class="cm-video-list">
  49. <video
  50. class="cm-video"
  51. ref="myVideo"
  52. :id="'myVideo' + index"
  53. :src="item.fileUrl"
  54. :style="videoStyle['myVideo' + index]"
  55. controls
  56. show-fullscreen-btn
  57. show-mute-btn
  58. play-btn-position="center"
  59. @timeupdate="onPlayVideo($event)"
  60. @play="handlePlayer('myVideo' + index)"
  61. v-if="item.fileUrl"
  62. @loadedmetadata="loadedmetadata"
  63. ></video>
  64. <view class="cm-video-section" v-else>
  65. <image class="cm-video-cover" :src="videoCover"></image>
  66. <text class="cm-player-btn" @click="checkPermission()"></text>
  67. </view>
  68. </view>
  69. </view>
  70. </template>
  71. </view>
  72. </view>
  73. <view class="category cm-file">
  74. <view class="category-title">文件资料</view>
  75. <view class="content">
  76. <view class="cm-none" v-if="fileArchiveList.length === 0">暂无相关资料</view>
  77. <template v-else>
  78. <view class="section" v-for="(item, index) in fileArchiveList" :key="index">
  79. <image
  80. src="https://static.caimei365.com/app/img/icon2/PDF-app.png"
  81. v-if="/\.pdf/.test(item.fileName)"
  82. ></image>
  83. <image
  84. src="https://static.caimei365.com/app/img/icon2/DOC-app.png"
  85. v-else-if="/\.doc/.test(item.fileName)"
  86. ></image>
  87. <image src="https://static.caimei365.com/app/img/icon2/PPT-app.png" v-else></image>
  88. <view class="cm-desc">
  89. <view class="cm-title">{{ item.title }}</view>
  90. <view class="cm-bottom">
  91. <view class="cm-time">{{ $api.easyFormatData(item.addTime) }}</view>
  92. <view class="cm-preview" @click="previewFile(item)">预览文件</view>
  93. </view>
  94. </view>
  95. </view>
  96. </template>
  97. </view>
  98. </view>
  99. <view
  100. class="cm-login"
  101. :class="{ maxBottom: !bottom && isIphoneX }"
  102. :style="{ bottom: bottom }"
  103. v-if="TipStatus && tipStatus"
  104. >
  105. <text>{{ TipStatus.text }}</text>
  106. <view class="cm-btn" @click="nextAction(TipStatus.redirect)">{{ TipStatus.btn }}</view>
  107. </view>
  108. <tui-modal
  109. :show="showModal"
  110. :content="TipStatus.text"
  111. shape="circle"
  112. :button="modalButton"
  113. :fadeIn="true"
  114. @click="handleModalClick"
  115. ></tui-modal>
  116. </view>
  117. </template>
  118. <script>
  119. import { mapState } from 'vuex'
  120. export default {
  121. props: {
  122. product: {
  123. type: Object,
  124. default: () => {}
  125. },
  126. archiveId: {
  127. type: Number,
  128. default: 0
  129. },
  130. bottom: {
  131. type: String,
  132. default: ''
  133. }
  134. },
  135. data() {
  136. return {
  137. userId: -1,
  138. prevVideoId: '',
  139. currentVideoId: '',
  140. videoContexts: [],
  141. modalButton: [
  142. {
  143. text: '取消',
  144. type: 'gray',
  145. plain: true //是否空心
  146. },
  147. {
  148. text: '确认',
  149. customStyle: {
  150. color: '#fff',
  151. bgColor: 'linear-gradient(90deg, #F28F31 0%, #F3B574 100%)'
  152. },
  153. plain: false
  154. }
  155. ],
  156. showModal: false,
  157. //用户信息相关
  158. permission: 5, //用户权限 0可查看,1未登录,2需升级会员机构,3需升级医美会员机构,4需要抵扣采美豆,5无权限查看
  159. imageArchiveList: [], // 图片资料列表
  160. videoArchiveList: [], // 视频资料列表
  161. fileArchiveList: [], // 文件资料列表
  162. defaultImage: 'https://static.caimei365.com/app/img/icon2/PC-default.png', // 默认图片
  163. videoCover: 'https://static.caimei365.com/app/img/icon2/video-cover.png', //默认视频封面
  164. videoStyle: {},
  165. timer: null,
  166. tipStatus: true, // 状态
  167. userInfo: {}, // 用户信息
  168. num: 0,
  169. }
  170. },
  171. computed: {
  172. ...mapState(['isIphoneX']),
  173. //资料查看状态提示
  174. TipStatus() {
  175. // 资料权限
  176. const statusText = [
  177. false, // 正常访问
  178. { text: '请登录后查看!', btn: '去登录', redirect: '/pages/login/login' },
  179. { text: '请升级成为会员机构后方可查看!', btn: '去升级', redirect: '/pages/login/apply' },
  180. { text: '请升级成为医美会员机构后方可查看!', btn: '去升级', redirect: '/pages/login/apply' },
  181. { text: '需抵扣100采美豆方可查看!', btn: '去查看', redirect: 10 },
  182. { text: '无权限查看!', btn: '确认' }
  183. ]
  184. // 0可查看,1未登录,2需升级会员机构,3需升级医美会员机构,4需要抵扣采美豆,5无权限查看
  185. return statusText[this.permission]
  186. }
  187. },
  188. watch: {
  189. TipStatus(val) {
  190. if(this.TipStatus) {
  191. this.timer = setTimeout(()=>{
  192. this.tipStatus = false
  193. clearTimeout(this.timer)
  194. }, 10000)
  195. }
  196. this.$emit('tipStatus', this.TipStatus)
  197. }
  198. },
  199. created() {
  200. this.userId = uni.getStorageSync('userInfo').userId || -1
  201. this.getDetail()
  202. this.userInfo = uni.getStorageSync('userInfo')
  203. console.log(uni.getStorageSync('userInfo'))
  204. },
  205. methods: {
  206. // 获取商品资料详情
  207. getDetail() {
  208. this.BeautyArchive.GetProdcutArchiveDetails({
  209. userId: this.userId,
  210. archiveId: this.archiveId
  211. }).then(res => {
  212. this.imageArchiveList = res.data.imageArchiveList
  213. this.videoArchiveList = res.data.videoArchiveList
  214. this.fileArchiveList = res.data.fileArchiveList
  215. this.permission = res.data.permission
  216. this.imageArchiveList.forEach((item, index) => {
  217. if (item.imageNum !== item.imageList.length) {
  218. this.num = item.imageNum - item.imageList.length
  219. for (let i = 0; i < this.num; i++) {
  220. item.imageList.push(this.defaultImage)
  221. }
  222. }
  223. })
  224. this.videoArchiveList.forEach(item => {
  225. item.fileUrl = decodeURIComponent(item.fileUrl)
  226. })
  227. // console.log(res.data.videoArchiveList)
  228. })
  229. },
  230. //采美豆抵扣
  231. searchArchiveByBean() {
  232. this.BeautyArchive.SearchArchiveByBeans({
  233. userId: this.userId,
  234. archiveId: this.archiveId
  235. })
  236. .then(res => {
  237. uni.showToast({
  238. duration: 1500,
  239. title: res.msg
  240. })
  241. setTimeout(() => {
  242. //刷新资料列表
  243. this.getDetail()
  244. }, 1500)
  245. })
  246. .catch(err => {
  247. uni.showToast({
  248. icon: 'none',
  249. duration: 1500,
  250. title: err.msg
  251. })
  252. })
  253. },
  254. // 获取视频源信息
  255. loadedmetadata(e) {
  256. // 获取视频长宽
  257. const w = e.detail.width //视频真实宽度
  258. const h = e.detail.height //视频真实高度
  259. let rw = 0 //视频展示宽度
  260. let rh = 0 //视频展示宽度
  261. // 视频宽大于等于高时
  262. if (w >= h) {
  263. rw = 702
  264. rh = (rh * h) / w
  265. } else {
  266. rw = 400
  267. rh = (rw * h) / w
  268. }
  269. // 使用set向videoStyle添加样式信息
  270. this.$set(this.videoStyle, e.currentTarget.id, `width:${rw}rpx;height:${rh}rpx;`)
  271. },
  272. // 视频播放
  273. handlePlayer(id) {
  274. // if (this.checkPermission()) {
  275. // this.handleStop(id)
  276. // return
  277. // }
  278. console.log('视频播放id', id)
  279. // 如果点击同一个播放器,就
  280. if (this.prevVideoId === id) return
  281. // this.handleFullScreen(id) // 点击播放时全屏
  282. // 暂停上一个播放器
  283. this.handelPause(this.prevVideoId)
  284. // 保存当前播放器id
  285. this.prevVideoId = id
  286. },
  287. // 监听video时长
  288. onPlayVideo(e) {
  289. console.log(e)
  290. const allTime = parseInt(((e.detail.duration)% 3600) / 60) // 获取分钟
  291. const inPlay = parseInt(((e.detail.duration)% 3600) / 60)
  292. if (this.permission === 2 || this.permission === 4 || this.permission === 1) {
  293. if(allTime >= 10 && (3 < inPlay)) {
  294. this.handleStop(e.target.id)
  295. this.checkPermission()
  296. }
  297. if (allTime < 10) {
  298. this.handleStop(e.target.id)
  299. this.checkPermission()
  300. }
  301. }
  302. },
  303. // 开始播放
  304. handelPlay(id) {
  305. if (!id) return
  306. const vContext = uni.createVideoContext(id, this)
  307. vContext.play()
  308. },
  309. // 暂停播放
  310. handelPause(id) {
  311. if (!id) return
  312. const vContext = uni.createVideoContext(id, this)
  313. vContext.pause()
  314. },
  315. // 停止视频
  316. handleStop(id) {
  317. if (!id) return
  318. const vContext = uni.createVideoContext(id, this)
  319. vContext.stop()
  320. },
  321. // 进入全屏
  322. handleFullScreen(id) {
  323. if (!id) return
  324. const vContext = uni.createVideoContext(id, this)
  325. vContext.requestFullScreen()
  326. },
  327. // 预览图片
  328. previewImage(index, previewImageList) {
  329. // if (this.permission === 1) {
  330. // if(previewImageList.length >= 5) {
  331. // if (index < 3) {
  332. // uni.previewImage({
  333. // current: index,
  334. // indicator: 'number',
  335. // urls: previewImageList,
  336. // loop: true,
  337. // success() {
  338. // that.$emit('previewImage', true)
  339. // }
  340. // })
  341. // }else {
  342. // this.checkPermission()
  343. // }
  344. // } else {
  345. // this.checkPermission()
  346. // }
  347. // }else if (this.permission === 2) {
  348. if (this.permission === 2 || this.permission === 4 || this.permission === 1) {
  349. if(previewImageList.length >= 5) {
  350. if(index < 2) {
  351. uni.previewImage({
  352. current: index,
  353. indicator: 'number',
  354. urls: previewImageList,
  355. loop: true,
  356. success() {
  357. that.$emit('previewImage', true)
  358. }
  359. })
  360. } else {
  361. if (this.checkPermission()) return
  362. }
  363. }else {
  364. if (this.checkPermission()) return
  365. }
  366. }
  367. // } else if (this.permission === 3) {
  368. // if(previewImageList.length >= 5) {
  369. // if (index < 3) {
  370. // uni.previewImage({
  371. // current: index,
  372. // indicator: 'number',
  373. // urls: previewImageList,
  374. // loop: true,
  375. // success() {
  376. // that.$emit('previewImage', true)
  377. // }
  378. // })
  379. // } else {
  380. // if (this.checkPermission()) return
  381. // }
  382. // } else {
  383. // if (this.checkPermission()) return
  384. // }
  385. else {
  386. if (this.checkPermission()) return
  387. const that = this
  388. uni.previewImage({
  389. current: index,
  390. indicator: 'number',
  391. urls: previewImageList,
  392. loop: true,
  393. success() {
  394. that.$emit('previewImage', true)
  395. }
  396. })
  397. }
  398. },
  399. //用户权限校验拦截
  400. checkPermission() {
  401. //permission:查看权限:0可查看,1未登录,2需升级会员机构,3需升级医美会员机构,4需要抵扣采美豆,5无权限查看
  402. const _self = this
  403. // 如果 TipStatus 返回false 就放行
  404. if (!_self.TipStatus) return 0
  405. this.modalButton[1].text = this.TipStatus.btn
  406. this.showModal = true
  407. return -1
  408. },
  409. // modal 按钮点击
  410. handleModalClick(e) {
  411. // 点击确认按钮
  412. if (e.index === 1) {
  413. this.showModal = false
  414. this.nextAction(this.TipStatus.redirect) //执行下一步
  415. } else {
  416. this.showModal = false
  417. }
  418. },
  419. //图片列表处理
  420. imageFormat(list, index) {
  421. const imageList = []
  422. if (list.length > 2) {
  423. list.forEach((item, index) => {
  424. imageList.push({ url: item, style: '' })
  425. })
  426. }
  427. if (list.length === 1) {
  428. try {
  429. const strArr = list[0]
  430. .split('?')[1]
  431. .replace(/\&|\=/g, '-')
  432. .split('-')
  433. const w = strArr[1] // 图片长
  434. const h = strArr[3] // 图片高
  435. let style = ''
  436. if (w > h) {
  437. style = `width:600rpx;height:${(600 / w) * h}rpx`
  438. } else {
  439. style = `height:600rpx;width:${(600 * w) / h}rpx`
  440. }
  441. imageList.push({ url: list[0], style: style })
  442. } catch (e) {
  443. console.error(
  444. '图片链接格式不正确,返回未处理图片,请设置正确的链接:http://image/text.png?width=xx&height=xx'
  445. )
  446. imageList.push({ url: list[0], style: '' })
  447. }
  448. }
  449. if (list.length === 2) {
  450. const style = 'width:300rpx;height:300rpx;'
  451. imageList.push({ url: list[0], style })
  452. imageList.push({ url: list[1], style })
  453. }
  454. return imageList
  455. },
  456. // 点击按钮后要做的事
  457. nextAction(redirect) {
  458. const _self = this
  459. if (typeof redirect == 'string') {
  460. // 跳转链接
  461. this.$api.navigateTo(redirect)
  462. }
  463. if (redirect === 10) {
  464. this.searchArchiveByBean()
  465. }
  466. },
  467. // 文件预览
  468. previewFile(file) {
  469. // if (this.checkPermission()) return
  470. // 获取文件后缀
  471. // const index = file.fileName.lastIndexOf('.')
  472. // const suffix = file.fileName.substring(index)
  473. this.openDocument(file)
  474. // if (suffix === '.doc' || suffix === '.ppt' || suffix === '.pptx' || suffix === '.docx') {
  475. // //先将链接缓存
  476. // uni.setStorageSync('openLink', file.htmlUrl)
  477. // this.openDocument(file.fileUrl)
  478. // // this.$api.navigateTo('/pages/h5/article/path?key=openLink&type=1')
  479. // } else if (suffix === '.pdf') {
  480. // //先将链接缓存
  481. // uni.setStorageSync('openLink', file.fileUrl)
  482. // this.$api.navigateTo('/pages/h5/article/path?key=openLink&type=2')
  483. // } else {
  484. // // 不支持的文件
  485. // return uni.showModal({
  486. // content: `${suffix}类型文件暂不支持预览`,
  487. // cancelColor: '#666',
  488. // confirmColor: '#F3B574'
  489. // })
  490. // }
  491. },
  492. // 打开文档
  493. openDocument(file) {
  494. uni.showLoading({
  495. title:'加载中'
  496. })
  497. // 获取文件后缀
  498. const index = file.fileName.lastIndexOf('.')
  499. const suffix = file.fileName.substring(index + 1)
  500. // 下载文件
  501. uni.downloadFile({
  502. url: file.fileUrl,
  503. success(res) {
  504. const filePath = res.tempFilePath
  505. console.log(filePath)
  506. console.log(file, res, '文件数据')
  507. // 打开文件
  508. uni.openDocument({
  509. filePath: filePath,
  510. fileType: suffix,
  511. success(res) {
  512. console.log(res)
  513. uni.showToast({
  514. icon:'success',
  515. title:'打开成功',
  516. duration: 1200
  517. })
  518. uni.hideLoading()
  519. },
  520. fail(err) {
  521. if(err.errMsg.indexOf('fail filetype not supported')){
  522. uni.showModal({
  523. content: '不支持的文件预览',
  524. cancelColor: '#666',
  525. confirmColor: '#F3B574'
  526. })
  527. }
  528. uni.hideLoading()
  529. }
  530. })
  531. },
  532. fail(err){
  533. uni.showToast({
  534. title: JSON.stringify(err),
  535. icon:'none',
  536. duration: 5000
  537. })
  538. uni.hideLoading()
  539. },
  540. })
  541. }
  542. }
  543. }
  544. </script>
  545. <style lang="scss" scoped>
  546. .product-doc {
  547. background: #f7f7f7;
  548. }
  549. .hasBottom {
  550. padding-bottom: 90rpx;
  551. }
  552. .cm-login {
  553. position: fixed;
  554. left: 24rpx;
  555. bottom: 115rpx; // 包含商品导航
  556. display: flex;
  557. justify-content: space-between;
  558. align-items: center;
  559. padding: 0 32rpx;
  560. width: 702rpx;
  561. height: 90rpx;
  562. background: #ffe6dc;
  563. border-radius: 16px;
  564. box-sizing: border-box;
  565. z-index: 9;
  566. &.maxBottom {
  567. bottom: -100rpx;
  568. z-index: 999;
  569. animation: permiMove .3s ease-in-out;
  570. animation-fill-mode: forwards;
  571. }
  572. text {
  573. font-size: 26rpx;
  574. color: #F3B574;
  575. }
  576. .cm-btn {
  577. width: 136rpx;
  578. height: 48rpx;
  579. background: #F3B574;
  580. border-radius: 28px;
  581. font-size: 26rpx;
  582. text-align: center;
  583. line-height: 48rpx;
  584. color: #ffffff;
  585. }
  586. }
  587. .category {
  588. padding: 0 24rpx;
  589. margin-bottom: 20rpx;
  590. background: #fff;
  591. .cm-video-section {
  592. position: relative;
  593. width: 702rpx;
  594. height: 402rpx;
  595. .cm-video-cover {
  596. width: 702rpx;
  597. height: 402rpx;
  598. }
  599. .cm-player-btn {
  600. position: absolute;
  601. left: 50%;
  602. top: 50%;
  603. transform: translate(-50%, -50%);
  604. z-index: 5;
  605. width: 56rpx;
  606. height: 56rpx;
  607. background: url(https://static.caimei365.com/app/img/icon2/H5-plalyer.png) center no-repeat;
  608. background-size: 56rpx 56rpx;
  609. }
  610. }
  611. .category-title {
  612. padding-top: 24rpx;
  613. padding-bottom: 8rpx;
  614. font-size: 28rpx;
  615. font-weight: 500;
  616. color: #333333;
  617. border-bottom: 1px solid #f0f0f0;
  618. }
  619. .cm-none {
  620. height: 37rpx;
  621. margin: 24rpx 0 0 0;
  622. padding-bottom: 48rpx;
  623. font-size: 26rpx;
  624. font-weight: 400;
  625. line-height: 37rpx;
  626. color: #333333;
  627. }
  628. &.cm-file {
  629. .section {
  630. display: flex;
  631. justify-content: space-between;
  632. align-items: center;
  633. image {
  634. width: 88rpx;
  635. height: 88rpx;
  636. }
  637. .cm-title {
  638. height: 74rpx;
  639. }
  640. .cm-desc {
  641. width: 582rpx;
  642. }
  643. .cm-bottom {
  644. display: flex;
  645. justify-content: space-between;
  646. align-items: center;
  647. padding: 16rpx 0 0;
  648. .cm-preview {
  649. font-size: 26rpx;
  650. font-weight: 400;
  651. color: #F3B574;
  652. }
  653. .cm-time {
  654. padding: 0;
  655. }
  656. }
  657. }
  658. }
  659. .section {
  660. padding-bottom: 24rpx;
  661. border-bottom: 1px solid #f0f0f0;
  662. &:last-child {
  663. border-bottom: 0;
  664. }
  665. .cm-title {
  666. display: -webkit-box;
  667. max-height: 74rpx;
  668. margin-top: 24rpx;
  669. font-size: 26rpx;
  670. font-weight: 400;
  671. line-height: 1.5;
  672. color: #333333;
  673. -webkit-box-orient: vertical;
  674. -webkit-line-clamp: 2;
  675. overflow: hidden;
  676. word-break: break-all;
  677. text-align: justify;
  678. }
  679. .cm-time {
  680. padding: 8rpx 0;
  681. font-size: 22rpx;
  682. font-weight: 400;
  683. color: #b2b2b2;
  684. }
  685. .cm-img-list {
  686. display: flex;
  687. justify-content: flex-start;
  688. flex-wrap: wrap;
  689. &.cm-list {
  690. image {
  691. width: 162rpx;
  692. height: 162rpx;
  693. margin: 18rpx 18rpx 0 0;
  694. box-sizing: border-box;
  695. border-radius: 6rpx;
  696. border: 1px solid #e1e1e1;
  697. &:nth-child(4n) {
  698. margin-right: 0;
  699. }
  700. }
  701. }
  702. &.cm-one {
  703. max-width: 400rpx;
  704. max-height: 400rpx;
  705. image {
  706. box-sizing: border-box;
  707. border-radius: 6rpx;
  708. border: 1px solid #e1e1e1;
  709. }
  710. }
  711. }
  712. .cm-video-list {
  713. margin-top: 18rpx;
  714. // // width: 702rpx;
  715. // // height: 420rpx;
  716. // width: 544rpx;
  717. // height: 960rpx;
  718. // .cm-video {
  719. // width: 100% !important;
  720. // max-width: 100%;
  721. // min-width: 100%;
  722. // display: flex;
  723. // // max-height: 420rpx;
  724. // // width: 100%;
  725. // height: 100%;
  726. // background: #000;
  727. // }
  728. }
  729. }
  730. }
  731. @keyframes permiMove {
  732. 0% {
  733. bottom: -100rpx;
  734. }
  735. 100% {
  736. bottom: 180rpx;
  737. }
  738. }
  739. </style>