earlyWarningDetail.vue 24 KB

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