earlyWarningDetail.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702
  1. <!-- 预案报警信息 -->
  2. <template>
  3. <view class="earlyWarning">
  4. <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
  5. <!-- 预案报警 -->
  6. <view class="header" v-if="form.warningType==4">{{form.warningContent}}</view>
  7. <!-- 化学品 -->
  8. <view class="header_tow" v-if="form.warningType==2">{{form.warningContent}}</view>
  9. <!-- 气瓶 -->
  10. <view class="header_three" v-if="form.warningType==3">{{form.warningContent}}</view>
  11. <!-- 算法识别 -->
  12. <view class="header_four" v-if="form.warningType==1">{{form.warningContent}}</view>
  13. <!-- 预案报警 -->
  14. <view class="site" v-if="form.warningType==4">
  15. <img src="@/images/Version2.2/icon_wtzg_xx.png"/>
  16. <text>{{form.subName}}</text>
  17. <text></text>
  18. <text>{{form.buildName}}{{form.floorName}}{{form.roomNum}}</text>
  19. </view>
  20. <!-- 化学品 -->
  21. <view class="site_tow" v-if="form.warningType==2 || form.warningType==3 || form.warningType==1">
  22. <view class="site_tow_t">
  23. <img src="@/images/icon_hxpyj_sj.png"/>
  24. <text>{{form.warningTime}}</text>
  25. </view>
  26. <view class="site_tow_b">
  27. <img src="@/images/Version2.2/icon_wtzg_xx.png"/>
  28. <text>{{form.subName}}</text>
  29. <text></text>
  30. <text>{{form.buildName}}{{form.floorName}}{{form.roomNum}}</text>
  31. </view>
  32. </view>
  33. <!-- 预案报警 -->
  34. <view class="basics" v-if="form.warningType==4">
  35. <view class="small_title"><text></text><text>风险概况</text></view>
  36. <view class="basics_li" style="margin-top:20rpx;">
  37. <text>发生时间:</text>
  38. <text v-if="form.everyDay" style="position: absolute;right: 10rpx;top:-33rpx;">+{{form.everyDayNum}}</text>
  39. <text>{{form.startTime}}-{{form.endTime?form.endTime:'-'}}</text>
  40. </view>
  41. <view class="basics_li">
  42. <text>持续时间:</text>
  43. <text>{{form.riskDuration?form.riskDuration:'-'}}秒</text>
  44. </view>
  45. <view class="basics_li">
  46. <text>风险响应人员:</text>
  47. <text>{{form.responder?form.responder:'-'}}</text>
  48. </view>
  49. <view class="basics_li">
  50. <text>实验室内人员:</text>
  51. <text>{{form.indoorUser?form.indoorUser:'-'}}</text>
  52. </view>
  53. </view>
  54. <!-- 化学品 -->
  55. <view class="basics" v-if="form.warningType==2">
  56. <view class="small_title"><text></text><text>化学品信息</text></view>
  57. <view class="basics_li" style="margin-top:20rpx;">
  58. <text>{{form.name}}</text>
  59. <text></text>
  60. </view>
  61. <view class="basics_li">
  62. <text>存放位置:</text>
  63. <text>{{form.deposit}}</text>
  64. </view>
  65. <view class="basics_li">
  66. <text>化学品余量:</text>
  67. <text>{{form.margin}}</text>
  68. </view>
  69. <view class="basics_li" v-if="form.warningSubType==2">
  70. <text>申领人:</text>
  71. <text>{{form.applyUser}}</text>
  72. </view>
  73. <view class="basics_li" v-if="form.warningSubType==2">
  74. <text>申领时间:</text>
  75. <text>{{form.applyTime}}</text>
  76. </view>
  77. <view class="basics_li" v-if="form.warningSubType==3||form.warningSubType==4">
  78. <text>过期时间:</text>
  79. <text>{{form.expirationTime}}</text>
  80. </view>
  81. </view>
  82. <!-- 气瓶 -->
  83. <view class="basics" v-if="form.warningType==3">
  84. <view class="small_title"><text></text><text>气瓶信息</text></view>
  85. <view class="basics_li" style="margin-top:20rpx;">
  86. <text>{{form.name}}</text>
  87. <text></text>
  88. </view>
  89. <view class="basics_li">
  90. <text>气体余量:</text>
  91. <text>{{form.margin}}</text>
  92. </view>
  93. <view class="basics_li">
  94. <text>气瓶规格:</text>
  95. <text>{{form.specification}}</text>
  96. </view>
  97. <view class="basics_li">
  98. <text>所有人:</text>
  99. <text>{{form.holder}}</text>
  100. </view>
  101. <view class="basics_li">
  102. <text>入库时间:</text>
  103. <text>{{form.entryTime}}</text>
  104. </view>
  105. <view class="basics_li" v-if="form.warningSubType==2">
  106. <text>申领人:</text>
  107. <text>{{form.applyUser}}</text>
  108. </view>
  109. <view class="basics_li" v-if="form.warningSubType==2">
  110. <text>申领时间:</text>
  111. <text>{{form.applyTime}}</text>
  112. </view>
  113. </view>
  114. <!-- 通知短信 -->
  115. <view class="note" v-if="form.warningType==4 || form.warningType==1" >
  116. <view class="small_title"><text></text><text>通知短信</text></view>
  117. <view class="note_li" style="margin-top:20rpx;" v-for="(item,index) in form.messageVOList">
  118. <text>{{item.name}}</text>
  119. <view class="note_li_r" v-if="item.isSuccess==1"><img src="@/images/icon_yjxx_ytz.png"/><text>已通知</text></view>
  120. </view>
  121. </view>
  122. <!-- 预警通知 -->
  123. <view class="note" v-if="(form.warningType==4 || form.warningType==1) && form.warningSubType!=2 && form.warningSubType!=3 && form.warningSubType!=4 && form.voiceBroadcast==1">
  124. <view class="small_title"><text></text><text>预警通知</text></view>
  125. <view class="note_li" style="margin-top:20rpx;" >
  126. <text>语音播报</text>
  127. <view class="note_li_r"><img src="@/images/icon_yjxx_ytz.png"/><text>已通知</text></view>
  128. </view>
  129. </view>
  130. <view class="note" v-if="(form.warningType==2 || form.warningType==3) && form.warningSubType!=2 && form.warningSubType!=3 && form.warningSubType!=4 && form.voiceBroadcast==1">
  131. <view class="small_title"><text></text><text>预警通知</text></view>
  132. <view class="note_li" style="margin-top:20rpx;" >
  133. <text>声光报警通知</text>
  134. <view class="note_li_r" ><img src="@/images/icon_yjxx_ytz.png"/><text>已通知</text></view>
  135. </view>
  136. </view>
  137. <view v-if="form.warningSubType!=2 && form.warningSubType!=3 && form.warningSubType!=4" class="picture">
  138. <view class="small_title"><text></text><text>报警抓拍</text></view>
  139. <view class="picture_b" >
  140. <!-- 西北农林演示报警抓拍预案的时候-判断不显示视频 -->
  141. <view class="video" v-if="form.warningType!=1">
  142. <video id="myvideo" class="video_t" :bindloadedmetada="onLoadedMetadata" :src="configUrl+form.recordVideo"></video>
  143. <img class="video_b" @click="lockVideo()" src="@/images/icon_bjzp_spbof.png"/>
  144. <canvas id="myCanvas" canvas-id="myCanvas"></canvas>
  145. </view>
  146. <view v-if="form.warningType==1" class="img" @click="lockImg(form.warningDetailList)">
  147. <img v-for="item in form.warningDetailList" :src="configUrl+item.photoUrl"/>
  148. </view>
  149. <!-- 西北农林演示报警抓拍预案的时候-改为图片 -->
  150. <view v-if="form.warningType==4" class="img" @click="lockImgTow(form.recordPhoto)">
  151. <img :src="configUrl+form.recordPhoto"/>
  152. </view>
  153. </view>
  154. </view>
  155. <!-- <view class="bottom_btn" v-if="timeStatus && (form.warningSubType!=2 && form.warningSubType!=3 && form.warningSubType!=4)" @click="handleClick('','monitor')">查看监控</view> -->
  156. <!-- 西北农林演示临时 -->
  157. <view class="bottom_btn" v-if="form.warningSubType!=2 && form.warningSubType!=3 && form.warningSubType!=4" @click="handleClick('','monitor')">查看监控</view>
  158. </scroll-view>
  159. </view>
  160. </template>
  161. <script>
  162. import { config } from '@/api/request/config.js'
  163. import {warningNoticeLogDetail} from '@/api/index.js'
  164. export default {
  165. name: "rectifyList",
  166. components: {
  167. },
  168. data() {
  169. return {
  170. configUrl:config.base_url,
  171. //列表请求参数
  172. getData:{
  173. pageNum:1,
  174. pageSize:20,
  175. },
  176. total:0,
  177. warningId:'',
  178. form:{},
  179. currentTime:'',
  180. timeStatus:false,
  181. }
  182. },
  183. onLoad(option) {
  184. let self = this;
  185. //先判断是否是通过点击列表进入
  186. if(option.warningId){
  187. this.warningId=option.warningId;
  188. }else{
  189. //通过短信外链跳转进来
  190. if(option.id){
  191. console.log(11)
  192. if(!uni.getStorageSync('token')){
  193. console.log(22)
  194. uni.setStorageSync('warningId',option.id);
  195. console.log(uni.getStorageSync('warningId'))
  196. uni.redirectTo({
  197. url: '/pages/login',
  198. });
  199. }else{
  200. this.warningId = option.id;
  201. uni.removeStorageSync('warningId');
  202. }
  203. }
  204. }
  205. },
  206. onShow() {
  207. },
  208. mounted(){
  209. this.getInfo();
  210. },
  211. methods: {
  212. //截取封面
  213. videoCover(){
  214. let video = document.getElementById('#myvideo');
  215. let canvas = document.createElement("canvas");
  216. let width = video.width; //canvas的尺寸和图片一样
  217. let height = video.height;
  218. canvas.width = width;
  219. canvas.height = height;
  220. canvas.getContext("2d").drawImage(video, 0, 0, width, height); //绘制canvas
  221. let videoImg = canvas.toDataURL('image/jpeg'); //转换为base64
  222. },
  223. onLoadedMetadata(e){
  224. console.log(1111)
  225. const duration=e.duration;
  226. const width=e.videoWidth;
  227. const heigth=e.videoHeight;
  228. const canvas=uni.createCanvasContext('myCanvas')
  229. canvas.canvas.width=width;
  230. canvas.canvas.height=heigth;
  231. canvas.drawImage('myVideo',0,0,width,heigth)
  232. canvas.draw();
  233. const that=this;
  234. setTimeout(function(){
  235. uni.canvasToTempFilePath({
  236. canvasId:'myCanvas',
  237. success:function(res) {
  238. const imagePath=res.tempFilePath;
  239. console.log(imagePath)
  240. }
  241. })
  242. },1000)
  243. },
  244. //滚动事件
  245. scrollGet(){
  246. let self=this;
  247. },
  248. //判断预警时间是否超过30分钟
  249. compareTime (gettime){
  250. let timeOut = 30 * 60 * 1000;
  251. let currentTime = new Date().getTime() //获取当前时间
  252. let endTime = new Date(gettime).getTime() //预警时间
  253. if(currentTime-endTime>timeOut){
  254. console.log('预警时间超过30分钟')
  255. this.timeStatus=false;
  256. }else{
  257. console.log('预警没超过30分钟')
  258. this.timeStatus=true;
  259. }
  260. },
  261. //查看图片
  262. lockImg(list){
  263. if(!list[0]){
  264. return
  265. }
  266. let urlList=[];
  267. for(let i=0;i<list.length;i++){
  268. urlList.push(this.configUrl+list[i].photoUrl)
  269. }
  270. wx.previewImage({
  271. urls: urlList, //需要预览的图片http链接列表,多张的时候,url直接写在后面就行了
  272. current: '', // 当前显示图片的http链接,默认是第一个
  273. success: function(res) {},
  274. fail: function(res) {},
  275. complete: function(res) {},
  276. })
  277. },
  278. //查看图片-单张
  279. lockImgTow(list){
  280. let urlList=[];
  281. urlList.push(this.configUrl+list)
  282. wx.previewImage({
  283. urls: urlList, //需要预览的图片http链接列表,多张的时候,url直接写在后面就行了
  284. current: '', // 当前显示图片的http链接,默认是第一个
  285. success: function(res) {},
  286. fail: function(res) {},
  287. complete: function(res) {},
  288. })
  289. },
  290. //视频全屏播放
  291. lockVideo(){
  292. this.videoContext = uni.createVideoContext("myvideo", this);
  293. this.videoContext.requestFullScreen({ direction: 90 });
  294. this.videoContext.play();
  295. },
  296. //计算两个日期差值(天)
  297. datedifference(sDate1, sDate2) { //sDate1和sDate2是2006-12-18格式
  298. let dateSpan,tempDate,iDays
  299. sDate1 = Date.parse(sDate1)
  300. sDate2 = Date.parse(sDate2)
  301. dateSpan = sDate2 - sDate1
  302. dateSpan = Math.abs(dateSpan)
  303. iDays = Math.floor(dateSpan / (24 * 3600 * 1000))
  304. return iDays
  305. },
  306. //获取详情
  307. async getInfo(){
  308. let _this = this;
  309. const {data} = await warningNoticeLogDetail({id:this.warningId})
  310. if(data.code==200){
  311. let res=data.data
  312. this.form=res;
  313. if(this.form.startTime!='' && this.form.startTime!=null && this.form.endTime !=''&& this.form.endTime !=null){
  314. if(this.form.startTime.split(' ')[0] != this.form.endTime.split(' ')[0]){
  315. this.form.everyDay=true;
  316. this.form.everyDayNum=this.datedifference(this.form.endTime.split(' ')[0],this.form.startTime.split(' ')[0])
  317. }
  318. }
  319. if(this.form.endTime !=''&& this.form.endTime !=null){
  320. this.form.endTime =this.form.endTime.split(' ')[1]
  321. }
  322. if(res.warningType==1){
  323. uni.setNavigationBarTitle({
  324. title:'算法识别预警信息'
  325. })
  326. }else if(res.warningType==2){
  327. uni.setNavigationBarTitle({
  328. title:'化学品预警信息'
  329. })
  330. }else if(res.warningType==3){
  331. uni.setNavigationBarTitle({
  332. title:'气瓶预警信息'
  333. })
  334. }else if(res.warningType==4){
  335. uni.setNavigationBarTitle({
  336. title:'预案报警信息'
  337. })
  338. }
  339. this.compareTime(res.warningTime);
  340. }
  341. },
  342. handleClick(row,doType){
  343. let self=this;
  344. if( doType=='monitor'){//监控
  345. uni.navigateTo({
  346. url: '/pages/earlyWarningManage/videoMonitoring?subId='+this.form.subId+'&floorId='+this.form.floorId//我的实验室
  347. });
  348. }
  349. },
  350. }
  351. }
  352. </script>
  353. <style lang="stylus" scoped>
  354. .earlyWarning{
  355. height:100%;
  356. display flex;
  357. padding-bottom: 30rpx;
  358. box-sizing: border-box;
  359. .red_color{
  360. color: #D40000;
  361. border: 1rpx solid #D40000;
  362. }
  363. .orange_color{
  364. color: #FF4800;
  365. border: 1rpx solid #FF4800;
  366. }
  367. .yellow_color{
  368. color: #FFA34E;
  369. border: 1rpx solid #FFA34E;
  370. }
  371. .info-max-box{
  372. flex: 1;
  373. overflow: scroll;
  374. }
  375. .header{
  376. width: 750rpx;
  377. height: 80rpx;
  378. font-size: 28rpx;
  379. font-family: PingFang SC-Medium, PingFang SC;
  380. font-weight: 400;
  381. color: #D40000;
  382. line-height: 80rpx;
  383. text-align: center;
  384. background: rgba(212,0,0,0.2);
  385. }
  386. .header_tow{
  387. width: 750rpx;
  388. height: 80rpx;
  389. font-size: 28rpx;
  390. font-family: PingFang SC-Medium, PingFang SC;
  391. font-weight: 400;
  392. color: #FF4800;
  393. line-height: 80rpx;
  394. text-align: center;
  395. background: rgba(255,72,0,0.2);
  396. }
  397. .header_three{
  398. width: 750rpx;
  399. height: 80rpx;
  400. font-size: 28rpx;
  401. font-family: PingFang SC-Medium, PingFang SC;
  402. font-weight: 400;
  403. color: #FF4800;
  404. line-height: 80rpx;
  405. text-align: center;
  406. background: rgba(255,72,0,0.2);
  407. }
  408. .header_four{
  409. width: 750rpx;
  410. height: 80rpx;
  411. font-size: 28rpx;
  412. font-family: PingFang SC-Medium, PingFang SC;
  413. font-weight: 400;
  414. color: #FFA34E;
  415. line-height: 80rpx;
  416. text-align: center;
  417. background: rgba(255,163,78,0.2);
  418. }
  419. .site{
  420. width: 690rpx;
  421. height: 80rpx;
  422. background: #FFFFFF;
  423. display: flex;
  424. justify-content: flex-start;
  425. align-items: center;
  426. border-radius: 20rpx 20rpx 20rpx 20rpx;
  427. margin:20rpx 30rpx;
  428. >img{
  429. width: 30rpx;
  430. height: 30rpx;
  431. margin-right: 22rpx;
  432. margin-left: 30rpx;
  433. }
  434. >text:nth-of-type(1){
  435. font-size: 28rpx;
  436. font-family: PingFang SC-Medium, PingFang SC;
  437. font-weight: 400;
  438. color: #333333;
  439. line-height: 28rpx;
  440. }
  441. >text:nth-of-type(2){
  442. display: inline-block;
  443. width: 2rpx;
  444. height: 20rpx;
  445. background: #E0E0E0;
  446. margin: 0 24rpx 0 28rpx;
  447. }
  448. >text:nth-of-type(3){
  449. font-size: 28rpx;
  450. font-family: PingFang SC-Medium, PingFang SC;
  451. font-weight: 400;
  452. color: #333333;
  453. line-height: 28rpx;
  454. }
  455. }
  456. .site_tow{
  457. width: 690rpx;
  458. height: 170rpx;
  459. background: #FFFFFF;
  460. border-radius: 20rpx 20rpx 20rpx 20rpx;
  461. margin:20rpx 30rpx;
  462. overflow: hidden;
  463. .site_tow_t{
  464. height: 40rpx;
  465. display: flex;
  466. justify-content: flex-start;
  467. align-items: center;
  468. margin-top: 32rpx;
  469. >img{
  470. width: 30rpx;
  471. height: 30rpx;
  472. margin-right: 22rpx;
  473. margin-left: 30rpx;
  474. }
  475. >text:nth-of-type(1){
  476. font-size: 28rpx;
  477. font-family: PingFang SC-Medium, PingFang SC;
  478. font-weight: 400;
  479. color: #333333;
  480. line-height: 28rpx;
  481. }
  482. }
  483. .site_tow_b{
  484. height: 40rpx;
  485. display: flex;
  486. justify-content: flex-start;
  487. align-items: center;
  488. margin-top: 20rpx;
  489. >img{
  490. width: 30rpx;
  491. height: 30rpx;
  492. margin-right: 22rpx;
  493. margin-left: 30rpx;
  494. }
  495. >text:nth-of-type(1){
  496. font-size: 28rpx;
  497. font-family: PingFang SC-Medium, PingFang SC;
  498. font-weight: 400;
  499. color: #333333;
  500. line-height: 28rpx;
  501. }
  502. >text:nth-of-type(2){
  503. display: inline-block;
  504. width: 2rpx;
  505. height: 20rpx;
  506. background: #E0E0E0;
  507. margin: 0 24rpx 0 28rpx;
  508. }
  509. >text:nth-of-type(3){
  510. font-size: 28rpx;
  511. font-family: PingFang SC-Medium, PingFang SC;
  512. font-weight: 400;
  513. color: #333333;
  514. line-height: 28rpx;
  515. }
  516. }
  517. }
  518. .small_title{
  519. height: 90rpx;
  520. display: flex;
  521. justify-content: flex-start;
  522. align-items: center;
  523. border-bottom: 1rpx solid #E0E0E0;
  524. >text:nth-of-type(1){
  525. display: inline-block;
  526. width: 4rpx;
  527. height: 30rpx;
  528. background: #0183FA;
  529. margin: 0 22rpx 0 28rpx;
  530. }
  531. >text:nth-of-type(1){
  532. font-size: 30rpx;
  533. font-family: PingFang SC-Medium, PingFang SC;
  534. font-weight: 400;
  535. color: #333333;
  536. line-height: 30rpx;
  537. }
  538. }
  539. .basics{
  540. margin-left: 30rpx;
  541. width: 690rpx;
  542. height: auto;
  543. background: #FFFFFF;
  544. border-radius: 20rpx 20rpx 20rpx 20rpx;
  545. padding-bottom: 16rpx;
  546. box-sizing: border-box;
  547. .basics_li{
  548. display: flex;
  549. justify-content: space-between;
  550. align-items: center;
  551. margin: 0 30rpx;
  552. position: relative;
  553. >text:nth-of-type(1){
  554. font-size: 28rpx;
  555. font-family: PingFang SC-Medium, PingFang SC;
  556. font-weight: 400;
  557. color: #333333;
  558. line-height: 60rpx;
  559. }
  560. >text:nth-of-type(2){
  561. font-size: 28rpx;
  562. font-family: PingFang SC-Medium, PingFang SC;
  563. font-weight: 400;
  564. color: #333333;
  565. line-height: 60rpx;
  566. flex: 1;
  567. text-align: right;
  568. }
  569. }
  570. }
  571. .note{
  572. margin-left: 30rpx;
  573. margin-top: 20rpx;
  574. width: 690rpx;
  575. height: auto;
  576. background: #FFFFFF;
  577. border-radius: 20rpx 20rpx 20rpx 20rpx;
  578. padding-bottom: 16rpx;
  579. box-sizing: border-box;
  580. .note_li{
  581. display: flex;
  582. justify-content: space-between;
  583. margin: 0 30rpx;
  584. >text:nth-of-type(1){
  585. font-size: 28rpx;
  586. font-family: PingFang SC-Medium, PingFang SC;
  587. font-weight: 400;
  588. color: #333333;
  589. line-height: 60rpx;
  590. }
  591. .note_li_r{
  592. display: flex;
  593. justify-content: flex-start;
  594. align-items: center;
  595. >img{
  596. width: 28rpx;
  597. height: 28rpx;
  598. margin-right: 10rpx;
  599. }
  600. font-size: 28rpx;
  601. font-family: PingFang SC-Medium, PingFang SC;
  602. font-weight: 400;
  603. color: #0183FA;
  604. line-height: 60rpx;
  605. }
  606. }
  607. }
  608. .picture{
  609. margin-left: 30rpx;
  610. width: 690rpx;
  611. height: auto;
  612. background: #FFFFFF;
  613. border-radius: 20rpx 20rpx 20rpx 20rpx;
  614. margin-top: 20rpx;
  615. .picture_b{
  616. display: flex;
  617. justify-content: flex-start;
  618. flex-wrap: wrap;
  619. padding: 40rpx 30rpx 10rpx;
  620. box-sizing: border-box;
  621. .video{
  622. position: relative;
  623. width: 150rpx;
  624. height: 150rpx;
  625. border-radius: 10rpx 10rpx 10rpx 10rpx;
  626. margin-right: 38rpx;
  627. margin-bottom: 10rpx;
  628. .video_t{
  629. width: 150rpx;
  630. height: 150rpx;
  631. border-radius: 10rpx 10rpx 10rpx 10rpx;
  632. position: absolute;
  633. }
  634. .video_b{
  635. width: 40rpx;
  636. height: 40rpx;
  637. position: absolute;
  638. left: 55rpx;
  639. top: 55rpx;
  640. }
  641. }
  642. .img{
  643. display: flex;
  644. justify-content:flex-start;
  645. flex-wrap: wrap;
  646. >img{
  647. width: 180rpx;
  648. height: 180rpx;
  649. border-radius: 10rpx 10rpx 10rpx 10rpx;
  650. margin-right: 38rpx;
  651. margin-bottom: 20rpx;
  652. }
  653. >img:nth-child(3n+3){
  654. margin-right: 0;
  655. }
  656. }
  657. }
  658. }
  659. .bottom_btn{
  660. width: 690rpx;
  661. height: 90rpx;
  662. border-radius: 10rpx 10rpx 10rpx 10rpx;
  663. opacity: 1;
  664. border: 1rpx solid #0183FA;
  665. font-size: 30rpx;
  666. font-family: PingFang SC-Medium, PingFang SC;
  667. font-weight: 400;
  668. color: #0183FA;
  669. line-height: 90rpx;
  670. text-align: center;
  671. background: #F5F5F5;
  672. margin: 90rpx 30rpx 30rpx;
  673. }
  674. }
  675. </style>