cm-product-doc.vue 26 KB

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