cm-product-doc.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736
  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, item)"
  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, item)"
  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%, #FF5B00 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, info) {
  274. // if (this.checkPermission()) {
  275. // this.handleStop(id)
  276. // return
  277. // }
  278. console.log('视频播放id', id)
  279. if (info) {
  280. this.GetStatisticsAddPv(1, info.archiveContentId)
  281. }
  282. // 如果点击同一个播放器,就
  283. if (this.prevVideoId === id) return
  284. // this.handleFullScreen(id) // 点击播放时全屏
  285. // 暂停上一个播放器
  286. this.handelPause(this.prevVideoId)
  287. // 保存当前播放器id
  288. this.prevVideoId = id
  289. },
  290. // 监听video时长
  291. onPlayVideo(e) {
  292. console.log(e)
  293. const allTime = parseInt((e.detail.duration % 3600) / 60) // 获取分钟
  294. const inPlay = parseInt((e.detail.duration % 3600) / 60)
  295. if (this.permission === 2 || this.permission === 4 || this.permission === 1) {
  296. if (allTime >= 10 && 3 < inPlay) {
  297. this.handleStop(e.target.id)
  298. this.checkPermission()
  299. }
  300. if (allTime < 10) {
  301. this.handleStop(e.target.id)
  302. this.checkPermission()
  303. }
  304. }
  305. },
  306. // 开始播放
  307. handelPlay(id) {
  308. if (!id) return
  309. const vContext = uni.createVideoContext(id, this)
  310. vContext.play()
  311. },
  312. // 暂停播放
  313. handelPause(id) {
  314. if (!id) return
  315. const vContext = uni.createVideoContext(id, this)
  316. vContext.pause()
  317. },
  318. // 停止视频
  319. handleStop(id) {
  320. if (!id) return
  321. const vContext = uni.createVideoContext(id, this)
  322. vContext.stop()
  323. },
  324. // 进入全屏
  325. handleFullScreen(id) {
  326. if (!id) return
  327. const vContext = uni.createVideoContext(id, this)
  328. vContext.requestFullScreen()
  329. },
  330. // 浏览记录
  331. async GetStatisticsAddPv(type, authorId) {
  332. try {
  333. await this.BeautyArchive.GetStatisticsAddPv({ type, authorId })
  334. console.log('记录成功')
  335. } catch (e) {
  336. //TODO handle the exception
  337. }
  338. },
  339. // 预览图片
  340. previewImage(index, previewImageList, info) {
  341. if (info) {
  342. this.GetStatisticsAddPv(1, info.archiveContentId)
  343. }
  344. if (this.permission === 2 || this.permission === 4 || this.permission === 1) {
  345. if (previewImageList.length >= 5) {
  346. if (index < 2) {
  347. uni.previewImage({
  348. current: index,
  349. indicator: 'number',
  350. urls: previewImageList,
  351. loop: true,
  352. success() {
  353. that.$emit('previewImage', true)
  354. }
  355. })
  356. } else {
  357. if (this.checkPermission()) return
  358. }
  359. } else {
  360. if (this.checkPermission()) return
  361. }
  362. } else {
  363. if (this.checkPermission()) return
  364. const that = this
  365. uni.previewImage({
  366. current: index,
  367. indicator: 'number',
  368. urls: previewImageList,
  369. loop: true,
  370. success() {
  371. that.$emit('previewImage', true)
  372. }
  373. })
  374. }
  375. },
  376. //用户权限校验拦截
  377. checkPermission() {
  378. //permission:查看权限:0可查看,1未登录,2需升级会员机构,3需升级医美会员机构,4需要抵扣采美豆,5无权限查看
  379. const _self = this
  380. // 如果 TipStatus 返回false 就放行
  381. if (!_self.TipStatus) return 0
  382. this.modalButton[1].text = this.TipStatus.btn
  383. this.showModal = true
  384. return -1
  385. },
  386. // modal 按钮点击
  387. handleModalClick(e) {
  388. // 点击确认按钮
  389. if (e.index === 1) {
  390. this.showModal = false
  391. this.nextAction(this.TipStatus.redirect) //执行下一步
  392. } else {
  393. this.showModal = false
  394. }
  395. },
  396. //图片列表处理
  397. imageFormat(list, index) {
  398. const imageList = []
  399. if (list.length > 2) {
  400. list.forEach((item, index) => {
  401. imageList.push({ url: item, style: '' })
  402. })
  403. }
  404. if (list.length === 1) {
  405. try {
  406. const strArr = list[0]
  407. .split('?')[1]
  408. .replace(/\&|\=/g, '-')
  409. .split('-')
  410. const w = strArr[1] // 图片长
  411. const h = strArr[3] // 图片高
  412. let style = ''
  413. if (w > h) {
  414. style = `width:600rpx;height:${(600 / w) * h}rpx`
  415. } else {
  416. style = `height:600rpx;width:${(600 * w) / h}rpx`
  417. }
  418. imageList.push({ url: list[0], style: style })
  419. } catch (e) {
  420. console.error(
  421. '图片链接格式不正确,返回未处理图片,请设置正确的链接:http://image/text.png?width=xx&height=xx'
  422. )
  423. imageList.push({ url: list[0], style: '' })
  424. }
  425. }
  426. if (list.length === 2) {
  427. const style = 'width:300rpx;height:300rpx;'
  428. imageList.push({ url: list[0], style })
  429. imageList.push({ url: list[1], style })
  430. }
  431. return imageList
  432. },
  433. // 点击按钮后要做的事
  434. nextAction(redirect) {
  435. const _self = this
  436. if (typeof redirect == 'string') {
  437. // 跳转链接
  438. this.$api.navigateTo(redirect)
  439. }
  440. if (redirect === 10) {
  441. this.searchArchiveByBean()
  442. }
  443. },
  444. // 文件预览
  445. previewFile(file) {
  446. // if (this.checkPermission()) return
  447. // // 获取文件后缀
  448. // const index = file.fileName.lastIndexOf('.')
  449. // const suffix = file.fileName.substring(index)
  450. if (uni.getStorageSync('fileInfo')) {
  451. uni.removeStorageSync('fileInfo')
  452. }
  453. if (file) {
  454. this.GetStatisticsAddPv(1, file.archiveContentId)
  455. }
  456. uni.setStorageSync('fileInfo', file.content || '文章预览')
  457. this.openDocument(file)
  458. // if (suffix === '.doc' || suffix === '.ppt' || suffix === '.pptx' || suffix === '.docx') {
  459. // //先将链接缓存
  460. // uni.setStorageSync('openLink', file.htmlUrl)
  461. // this.openDocument(file.fileUrl)
  462. // // this.$api.navigateTo('/pages/h5/article/path?key=openLink&type=1')
  463. // } else if (suffix === '.pdf') {
  464. // //先将链接缓存
  465. // uni.setStorageSync('openLink', file.fileUrl)
  466. // this.$api.navigateTo('/pages/h5/article/path?key=openLink&type=2')
  467. // } else {
  468. // // 不支持的文件
  469. // return uni.showModal({
  470. // content: `${suffix}类型文件暂不支持预览`,
  471. // cancelColor: '#666',
  472. // confirmColor: '#FF5B00'
  473. // })
  474. // }
  475. },
  476. // 打开文档
  477. openDocument(file) {
  478. uni.showLoading({
  479. title: '加载中'
  480. })
  481. if (this.permission !== 0) {
  482. this.$api.navigateTo(
  483. `/pages/goods/goods-file-preview?userId=${this.userId}&archiveId=${this.archiveId}&permission=${
  484. this.permission
  485. }&fileName=${file.fileName}`
  486. )
  487. return
  488. }
  489. // 获取文件后缀
  490. const index = file.fileName.lastIndexOf('.')
  491. const suffix = file.fileName.substring(index + 1)
  492. // 下载文件
  493. uni.downloadFile({
  494. url: file.fileUrl,
  495. success(res) {
  496. const filePath = res.tempFilePath
  497. console.log(filePath)
  498. console.log(file, res, '文件数据')
  499. // 打开文件
  500. uni.openDocument({
  501. filePath: filePath,
  502. fileType: suffix,
  503. showMenu: true,
  504. success(res) {
  505. console.log(res)
  506. uni.showToast({
  507. icon: 'success',
  508. title: '打开成功',
  509. duration: 1200
  510. })
  511. uni.hideLoading()
  512. },
  513. fail(err) {
  514. if (err.errMsg.indexOf('fail filetype not supported')) {
  515. uni.showModal({
  516. content: '不支持的文件预览',
  517. cancelColor: '#666',
  518. confirmColor: '#FF5B00'
  519. })
  520. }
  521. uni.hideLoading()
  522. }
  523. })
  524. },
  525. fail(err) {
  526. uni.showToast({
  527. title: JSON.stringify(err),
  528. icon: 'none',
  529. duration: 5000
  530. })
  531. uni.hideLoading()
  532. }
  533. })
  534. }
  535. }
  536. }
  537. </script>
  538. <style lang="scss" scoped>
  539. .product-doc {
  540. background: #f7f7f7;
  541. }
  542. .hasBottom {
  543. padding-bottom: 90rpx;
  544. }
  545. .cm-login {
  546. position: fixed;
  547. left: 24rpx;
  548. bottom: 115rpx; // 包含商品导航
  549. display: flex;
  550. justify-content: space-between;
  551. align-items: center;
  552. padding: 0 32rpx;
  553. width: 702rpx;
  554. height: 90rpx;
  555. background: #ffe6dc;
  556. border-radius: 16px;
  557. box-sizing: border-box;
  558. z-index: 9;
  559. &.maxBottom {
  560. bottom: -100rpx;
  561. z-index: 999;
  562. animation: permiMove 0.3s ease-in-out;
  563. animation-fill-mode: forwards;
  564. }
  565. text {
  566. font-size: 26rpx;
  567. color: #ff5b00;
  568. }
  569. .cm-btn {
  570. width: 136rpx;
  571. height: 48rpx;
  572. background: #ff5b00;
  573. border-radius: 28px;
  574. font-size: 26rpx;
  575. text-align: center;
  576. line-height: 48rpx;
  577. color: #ffffff;
  578. }
  579. }
  580. .category {
  581. padding: 0 24rpx;
  582. margin-bottom: 20rpx;
  583. background: #fff;
  584. .cm-video-section {
  585. position: relative;
  586. width: 702rpx;
  587. height: 402rpx;
  588. .cm-video-cover {
  589. width: 702rpx;
  590. height: 402rpx;
  591. }
  592. .cm-player-btn {
  593. position: absolute;
  594. left: 50%;
  595. top: 50%;
  596. transform: translate(-50%, -50%);
  597. z-index: 5;
  598. width: 56rpx;
  599. height: 56rpx;
  600. background: url(https://static.caimei365.com/app/img/icon2/H5-plalyer.png) center no-repeat;
  601. background-size: 56rpx 56rpx;
  602. }
  603. }
  604. .category-title {
  605. padding-top: 24rpx;
  606. padding-bottom: 8rpx;
  607. font-size: 28rpx;
  608. font-weight: 500;
  609. color: #333333;
  610. border-bottom: 1px solid #f0f0f0;
  611. }
  612. .cm-none {
  613. height: 37rpx;
  614. margin: 24rpx 0 0 0;
  615. padding-bottom: 48rpx;
  616. font-size: 26rpx;
  617. font-weight: 400;
  618. line-height: 37rpx;
  619. color: #333333;
  620. }
  621. &.cm-file {
  622. .section {
  623. display: flex;
  624. justify-content: space-between;
  625. align-items: center;
  626. image {
  627. width: 88rpx;
  628. height: 88rpx;
  629. }
  630. .cm-title {
  631. height: 74rpx;
  632. }
  633. .cm-desc {
  634. width: 582rpx;
  635. }
  636. .cm-bottom {
  637. display: flex;
  638. justify-content: space-between;
  639. align-items: center;
  640. padding: 16rpx 0 0;
  641. .cm-preview {
  642. font-size: 26rpx;
  643. font-weight: 400;
  644. color: #ff5b00;
  645. }
  646. .cm-time {
  647. padding: 0;
  648. }
  649. }
  650. }
  651. }
  652. .section {
  653. padding-bottom: 24rpx;
  654. border-bottom: 1px solid #f0f0f0;
  655. &:last-child {
  656. border-bottom: 0;
  657. }
  658. .cm-title {
  659. display: -webkit-box;
  660. max-height: 74rpx;
  661. margin-top: 24rpx;
  662. font-size: 26rpx;
  663. font-weight: 400;
  664. line-height: 1.5;
  665. color: #333333;
  666. -webkit-box-orient: vertical;
  667. -webkit-line-clamp: 2;
  668. overflow: hidden;
  669. word-break: break-all;
  670. text-align: justify;
  671. }
  672. .cm-time {
  673. padding: 8rpx 0;
  674. font-size: 22rpx;
  675. font-weight: 400;
  676. color: #b2b2b2;
  677. }
  678. .cm-img-list {
  679. display: flex;
  680. justify-content: flex-start;
  681. flex-wrap: wrap;
  682. &.cm-list {
  683. image {
  684. width: 162rpx;
  685. height: 162rpx;
  686. margin: 18rpx 18rpx 0 0;
  687. box-sizing: border-box;
  688. border-radius: 6rpx;
  689. border: 1px solid #e1e1e1;
  690. &:nth-child(4n) {
  691. margin-right: 0;
  692. }
  693. }
  694. }
  695. &.cm-one {
  696. max-width: 400rpx;
  697. max-height: 400rpx;
  698. image {
  699. box-sizing: border-box;
  700. border-radius: 6rpx;
  701. border: 1px solid #e1e1e1;
  702. }
  703. }
  704. }
  705. .cm-video-list {
  706. margin-top: 18rpx;
  707. // // width: 702rpx;
  708. // // height: 420rpx;
  709. // width: 544rpx;
  710. // height: 960rpx;
  711. // .cm-video {
  712. // width: 100% !important;
  713. // max-width: 100%;
  714. // min-width: 100%;
  715. // display: flex;
  716. // // max-height: 420rpx;
  717. // // width: 100%;
  718. // height: 100%;
  719. // background: #000;
  720. // }
  721. }
  722. }
  723. }
  724. @keyframes permiMove {
  725. 0% {
  726. bottom: -100rpx;
  727. }
  728. 100% {
  729. bottom: 180rpx;
  730. }
  731. }
  732. </style>