earlyWarningDetail.vue 22 KB

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