index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763
  1. <template>
  2. <view>
  3. <view class="status_bar"></view>
  4. <view class="" style="position: relative;top: 40px;">
  5. <!-- <view style="position: fixed;z-index: 100;">
  6. <uni-nav-bar @clickLeft="clickLeft" left-icon="back" left-text="返回" title="灌溉控制系统" right-icon="search"
  7. @clickRight="clickRight" size="16"></uni-nav-bar>
  8. <view class="inputs" :style="{'width':width+'rpx'}">
  9. <input type="text" value="" placeholder="请输入设备ID或设备名称" v-model="imports" @input="searchinp"
  10. class="inputbox" :clearable="false" />
  11. <u-icon name="search" size="40" class="icon" @click="search"></u-icon>
  12. </view>
  13. </view> -->
  14. <view style="position: fixed;z-index: 100;">
  15. <uni-nav-bar @clickLeft="clickLeft" left-icon="back" left-text="返回"
  16. size="16">
  17. <view class="bases_search">
  18. <view class="bases_search_text" @click="search">
  19. <u-icon name="search" class="search"></u-icon>
  20. <input type="text" v-model="imports" placeholder="设备ID搜索" disabled @input="searchinp"/>
  21. </view>
  22. </view>
  23. </uni-nav-bar>
  24. </view>
  25. <image :src="'http://www.hnyfwlw.com:8006/bigdata_app/image/irrigate/1.png'" mode="" class="image">
  26. </image>
  27. <view class="loading" v-if="loadingtf">
  28. <image src="../../static/images/ajax-loader.gif" mode="" class="img"></image>
  29. </view>
  30. <view class="tab-box">
  31. <view v-for="(item,index) in equipArr" :key="item.type" v-if="item.tf"
  32. @click="tabClick(index,item.type)" :class="['tab-item',active==index?'active':'']">
  33. <text>{{item.name}}</text>
  34. <text class="bottom-line"></text>
  35. </view>
  36. </view>
  37. <view class="prevents">
  38. <view class="prevents_item" v-for="item,index in eqlistdata" :key="item.d_id" @click="eqdetails(item)">
  39. <view class="" v-if="side_type == 18">
  40. <image
  41. :src="item.device_status==1?'http://www.hnyfwlw.com:8006/bigdata_app/image/prevention/6.png':'http://www.hnyfwlw.com:8006/bigdata_app/image/prevention/7.png'"
  42. mode="" class="prevents_item_img"></image>
  43. <view class="prevents_item_top">
  44. <p>设备名称:{{item.device_name}}</p>
  45. <view class="" style="display: flex;">
  46. <view class="" :style="{'margin-right': '10rpx','color':item.status2?'#00B075':'#f00'}">
  47. {{item.status2?"已启用":"已禁用"}}
  48. </view>
  49. <!-- <u-switch v-model="item.status2" size="35" activeColor="#00B075"
  50. style="margin-top: 10rpx;" inactiveColor="#f00"
  51. @change="switchchange2($event,item.d_id,index)">
  52. </u-switch> -->
  53. <switch @change="switchchange2($event,item.d_id,index)" v-if="$QueryPermission(256)" color="#00B075" :checked="item.status2" style="zoom:0.6" />
  54. </view>
  55. </view>
  56. <view class="prevents_item_bot">
  57. <view class="prevents_item_bot_item">
  58. <p>设备 ID:{{item.device_id}}</p>
  59. <p @click="newdata(item)" v-if="$QueryPermission(205)">数据查看</p>
  60. </view>
  61. <p style="color:#909696;height: 60rpx;line-height: 60rpx;">
  62. 设备状态:{{item.device_status==1?"在线":"离线"}}</p>
  63. <p style="color:#909696;height: 60rpx;line-height: 60rpx;">设备备注:{{item.device_notes}}
  64. <u-icon name="edit-pen" size="36" color="#00B075" @click="changeremark(item,index)">
  65. </u-icon>
  66. </p>
  67. <view class="prevents_item_bot_item">
  68. <p>地址:{{item.city}}</p>
  69. <u-icon name="map" size="40" color="#00B075"
  70. @click="selectaddress(item.city,item.device_name)"></u-icon>
  71. </view>
  72. </view>
  73. </view>
  74. <view class="" v-if="side_type == 17">
  75. <image src="http://www.hnyfwlw.com:8006/bigdata_app/image/prevention/6.png" mode=""
  76. class="prevents_item_img"></image>
  77. <view class="prevents_item_top">
  78. <p>设备名称:{{item.device_name}}</p>
  79. <view class="" style="display: flex;">
  80. <view class=""
  81. :style="{'margin-right': '10rpx','color':item.water_pump_switch2?'#00B075':'#f00'}">
  82. {{item.water_pump_switch2?"已开泵":"已关泵"}}
  83. </view>
  84. <!-- <u-switch v-model="item.water_pump_switch2" size="35" active-color="#00B075"
  85. inactive-color="#f00" style="margin-top: 10rpx;"
  86. @change="switchchange($event,item.device_id,index)">
  87. </u-switch> -->
  88. <switch @change="switchchange($event,item.d_id,index)" v-if="$QueryPermission(254)" color="#00B075" :checked="item.water_pump_switch2" style="zoom:0.6" />
  89. </view>
  90. </view>
  91. <view class="prevents_item_bot">
  92. <view class="prevents_item_bot_item">
  93. <p>设备 ID:{{item.device_id}}</p>
  94. <p @click="newdata(item)" v-if="item.water_pump_switch2">实时数据</p>
  95. </view>
  96. <p style="color:#909696;height: 60rpx;line-height: 60rpx;">
  97. 设备状态:{{item.device_status==1?"在线":"离线"}}</p>
  98. <p style="color:#909696;height: 60rpx;line-height: 60rpx;">设备备注:{{item.device_notes}}
  99. <u-icon name="edit-pen" size="36" color="#00B075" @click="changeremark(item,index)">
  100. </u-icon>
  101. </p>
  102. <view class="prevents_item_bot_item">
  103. <p>地址:{{item.city}}</p>
  104. <u-icon name="map" size="40" color="#00B075"
  105. @click="selectaddress(item.city,item.device_name)"></u-icon>
  106. </view>
  107. </view>
  108. </view>
  109. <view class="" v-if="side_type == 13">
  110. <image src="http://www.hnyfwlw.com:8006/bigdata_app/image/prevention/6.png" mode=""
  111. class="prevents_item_img"></image>
  112. <view class="prevents_item_top">
  113. <p>设备名称:{{item.device_name}}</p>
  114. </view>
  115. <view class="prevents_item_bot">
  116. <p>设备 ID:{{item.equip_id || item.device_id}}</p>
  117. <p>最新上报时间:{{item.uptime|timeFormat()}}</p>
  118. </view>
  119. </view>
  120. </view>
  121. </view>
  122. </view>
  123. <u-modal v-model="show" :showCancelButton="true" title="请设置开泵时间" @confirm="modalconfirm" @cancel="modalcancel">
  124. <view class="slot-content">
  125. <u-input v-model="timevalue" type="number" style="width: 80%;"/>
  126. <p style="font-size: 12px;">分钟</p>
  127. </view>
  128. </u-modal>
  129. <u-modal v-model="showremark" :showCancelButton="true" title="请填写设备备注" @confirm="modalconfirmremark"
  130. @cancel="modalcancelremark">
  131. <view class="slot-contentremark">
  132. <u-input v-model="timevalueremark" maxlength="12" />
  133. </view>
  134. </u-modal>
  135. <view class="top">
  136. <view class="backtop" @click="top" v-if="isTop">
  137. <image src="../../static/images/1.png" mode="" class="img0"></image>
  138. </view>
  139. </view>
  140. </view>
  141. </template>
  142. <script>
  143. import {
  144. Debounce
  145. } from "../../util/anitthro.js"
  146. export default {
  147. data() {
  148. return {
  149. page: 1,
  150. size: 10,
  151. eqlistdata: [],
  152. isTop: false,
  153. filtrateTF: false,
  154. device_status: "",
  155. width: 0, //顶部搜索栏宽度
  156. imports: "", //搜索设备id
  157. loadingtf: false,
  158. equipArr: [{
  159. name: '机井水电双控',
  160. type: 17, //5 环境监测 15 管式墒情
  161. list: [],
  162. pageIndex: 1,
  163. tf: false,
  164. }, {
  165. name: '水肥一体化(L)',
  166. type: 18, //5 环境监测 15 管式墒情
  167. list: [],
  168. pageIndex: 1,
  169. tf: false,
  170. }, {
  171. name: '水肥一体化(X)',
  172. type: 13, //5 环境监测 15 管式墒情
  173. list: [],
  174. pageIndex: 1,
  175. tf: false,
  176. }],
  177. active: 0, //tab选中的下标
  178. side_type: 17, //当前选中的设备类型
  179. show: false,
  180. timevalue: "",
  181. selindex: "", //选中的设备index
  182. selid: "", //选中的设备id
  183. showremark: false,
  184. timevalueremark: "",
  185. key: true
  186. }
  187. },
  188. methods: {
  189. async eqlist() { //设备列表 水肥一体化 L
  190. this.loadingtf = true
  191. const res = await this.$myRequest({
  192. url: '/api/api_gateway?method=irrigation_system.waterfertilizer.water_fertilizer_list',
  193. data: {
  194. page: this.page,
  195. page_size: 10,
  196. content: this.imports
  197. }
  198. })
  199. console.log(res)
  200. this.loadingtf = false
  201. for (var i = 0; i < res.data.length; i++) {
  202. res.data[i]["status2"] = res.data[i].status == 1 ? true : false
  203. }
  204. this.eqlistdata = this.eqlistdata.concat(res.data)
  205. },
  206. async tubulareqlist() { //水电双计
  207. this.loadingtf = true
  208. const res = await this.$myRequest({
  209. url: '/api/api_gateway?method=irrigation_system.hydropower.hydropower_list',
  210. data: {
  211. page: this.page,
  212. page_size: 10,
  213. content: this.imports
  214. }
  215. })
  216. console.log(res)
  217. this.loadingtf = false
  218. for (var i = 0; i < res.data.length; i++) {
  219. res.data[i]["water_pump_switch2"] = res.data[i].water_pump_switch == 1 ? true : false
  220. }
  221. this.eqlistdata = this.eqlistdata.concat(res.data)
  222. console.log(this.eqlistdata)
  223. },
  224. async sfeqlist() { //设备列表
  225. this.loadingtf = true
  226. const res = await this.$myRequest({
  227. url: '/api/api_gateway?method=weather.weather.sf_page',
  228. data: {
  229. page: this.page,
  230. page_size: "10",
  231. device_id: this.imports,
  232. }
  233. })
  234. this.loadingtf = false
  235. this.eqlistdata = this.eqlistdata.concat(res.ids)
  236. console.log(this.eqlistdata)
  237. },
  238. clickRight() {
  239. this.width = 600
  240. },
  241. clickLeft() {
  242. uni.switchTab({
  243. url: "../index/index"
  244. })
  245. },
  246. eqdetails(data) {
  247. if (this.side_type == 13) {
  248. uni.navigateTo({
  249. url: "../waterandfer/datails?shebei=" + JSON.stringify(data)
  250. })
  251. }
  252. },
  253. top() {
  254. uni.pageScrollTo({
  255. scrollTop: 0,
  256. duration: 500
  257. })
  258. },
  259. search() { //搜索按钮搜索
  260. // this.searchinp()
  261. console.log(111)
  262. uni.navigateTo({
  263. url:"./search?side_type="+this.side_type
  264. })
  265. },
  266. searchinp() { //自动搜索
  267. Debounce(() => {
  268. this.page = 1
  269. this.eqlistdata = []
  270. if (this.side_type == 18) {
  271. this.eqlist()
  272. } else if (this.side_type == 17) {
  273. this.tubulareqlist()
  274. } else if (this.side_type == 13) {
  275. this.sfeqlist()
  276. }
  277. }, 1000)()
  278. },
  279. tabClick(index, type) {
  280. this.active = index
  281. this.side_type = type
  282. this.page = 1
  283. if (type == 18) {
  284. this.eqlistdata = []
  285. this.eqlist()
  286. } else if (type == 17) {
  287. this.eqlistdata = []
  288. this.tubulareqlist()
  289. } else if (type == 13) {
  290. this.eqlistdata = []
  291. this.sfeqlist()
  292. }
  293. },
  294. timezhuan(time) {
  295. function fun(a) {
  296. return String(a).length == 1 ? '0' + a : a
  297. }
  298. let date = new Date(time * 1000)
  299. let y = date.getFullYear()
  300. let m = date.getMonth() + 1
  301. let d = date.getDate()
  302. let h = date.getHours()
  303. let min = date.getMinutes()
  304. let sec = date.getSeconds()
  305. return `${y}-${fun(m)}-${fun(d)} ${fun(h)}:${fun(min)}:${fun(sec)}`
  306. },
  307. newdata(item) {
  308. if (this.side_type == 17) {
  309. uni.navigateTo({
  310. url: "realtimedata?item=" + JSON.stringify(item)
  311. })
  312. } else {
  313. uni.navigateTo({
  314. url: "weathdata?item=" + JSON.stringify(item)
  315. })
  316. }
  317. },
  318. selectaddress(city, name) { //获取分布位置
  319. uni.request({
  320. type: "GET",
  321. url: "https://restapi.amap.com/v3/geocode/geo?address=" + city +
  322. "&key=78ce288400f4fc6d9458989875c833c2",
  323. dataType: "json",
  324. complete: ress => {
  325. console.log(ress)
  326. if (ress.data.status == 1) {
  327. // ress.data.geocodes[0].location
  328. uni.navigateTo({
  329. url: "./irrmap?lnglat=" + ress.data.geocodes[0].location +
  330. "&basename=" + name
  331. })
  332. } else {
  333. uni.showToast({
  334. title: "地址编译失败",
  335. icon: "none"
  336. })
  337. }
  338. }
  339. });
  340. },
  341. async pumpcontrol(en) { //水肥开关
  342. console.log(en)
  343. const res = await this.$myRequest({
  344. url: '/api/api_gateway?method=irrigation_system.hydropower.water_pump_control',
  345. data: {
  346. times: Math.floor(this.timevalue * 60),
  347. device_id: this.selid,
  348. status: en ? 1 : 0
  349. }
  350. })
  351. console.log(res)
  352. if (res.code == 200) {
  353. uni.showToast({
  354. title: "操作成功",
  355. icon: "none"
  356. })
  357. } else {
  358. uni.showToast({
  359. title: res.msg,
  360. icon: "none"
  361. })
  362. this.eqlistdata[this.selindex].water_pump_switch2 = !this.eqlistdata[this.selindex]
  363. .water_pump_switch2
  364. }
  365. this.timevalue = ""
  366. },
  367. switchchange(e, id, index) { //水肥 开关
  368. // console.log(e.detail.value)
  369. // console.log(this.eqlistdata[index].water_pump_switch2)
  370. this.eqlistdata[index].water_pump_switch2 = e.detail.value
  371. if (e.detail.value) {
  372. this.show = true
  373. this.selindex = index
  374. this.selid = id
  375. } else {
  376. this.selid = id
  377. this.pumpcontrol(false)
  378. }
  379. },
  380. async switchchange2(e, id, index) { //水电开关
  381. console.log(id)
  382. const res = await this.$myRequest({
  383. url: '/api/api_gateway?method=irrigation_system.waterfertilizer.water_fertilizer_control',
  384. data: {
  385. device_ids: id,
  386. isopen: e ? 1 : 0
  387. }
  388. })
  389. console.log(res)
  390. if (res.info == "ok") {
  391. uni.showToast({
  392. title: "操作成功",
  393. icon: "none"
  394. })
  395. } else {
  396. uni.showToast({
  397. title: res.msg,
  398. icon: "none"
  399. })
  400. this.eqlistdata[index].status2 = !this.eqlistdata[index].status2
  401. }
  402. },
  403. modalcancel() { //水肥开关 确定
  404. this.eqlistdata[this.selindex].water_pump_switch2 = !this.eqlistdata[this.selindex].water_pump_switch2
  405. this.timevalue = ""
  406. },
  407. modalconfirm() { //水肥开关 取消
  408. this.show = true
  409. if (this.timevalue == "") {
  410. uni.showToast({
  411. title: "请输入开泵时间",
  412. icon: "none"
  413. })
  414. } else {
  415. this.show = false
  416. this.pumpcontrol(true)
  417. }
  418. },
  419. changeremark(item, index) { //修改备注
  420. this.timevalueremark = item.device_notes
  421. this.showremark = true
  422. this.selindex = index
  423. this.selid = item.device_id
  424. },
  425. modalcancelremark() { //修改备注 取消
  426. },
  427. modalconfirmremark() { //修改备注 确定
  428. this.showremark = true
  429. if (this.timevalueremark == "") {
  430. uni.showToast({
  431. title: "请输入设备备注",
  432. icon: "none"
  433. })
  434. } else {
  435. this.showremark = false
  436. this.setchangeremark()
  437. }
  438. },
  439. async setchangeremark() { //水肥开关
  440. const res = await this.$myRequest({
  441. url: '/api/api_gateway?method=irrigation_system.hydropower.water_pump_modify_device_notes',
  442. data: {
  443. device_id: this.selid,
  444. content: this.timevalueremark
  445. }
  446. })
  447. console.log(res)
  448. if (res) {
  449. uni.showToast({
  450. title: "操作成功",
  451. icon: "none"
  452. })
  453. this.eqlistdata[this.selindex].device_notes = this.timevalueremark
  454. }
  455. },
  456. },
  457. onLoad() {
  458. // this.tubulareqlist()
  459. uni.getStorage({
  460. key: "jurisdiction",
  461. success: (res) => {
  462. let items = JSON.parse(res.data).filter((item) => {
  463. return item.pur_id == 202
  464. })
  465. var itemarr = items[0].children
  466. console.log(itemarr)
  467. for (var i = 0; i < itemarr.length; i++) {
  468. switch (itemarr[i].pur_id) {
  469. case 203:
  470. this.equipArr[0].tf = true
  471. break
  472. case 204:
  473. this.equipArr[1].tf = true
  474. break
  475. case 195:
  476. this.equipArr[2].tf = true
  477. break;
  478. }
  479. }
  480. for (var i = 0; i < this.equipArr.length; i++) {
  481. if (this.equipArr[i].tf) {
  482. if (i == 0) {
  483. this.tubulareqlist();
  484. } else if (i == 1) {
  485. this.eqlist();
  486. } else {
  487. this.sfeqlist();
  488. }
  489. this.active = i
  490. this.side_type = this.equipArr[i].type
  491. break
  492. }
  493. }
  494. }
  495. })
  496. },
  497. onReachBottom() {
  498. this.page++
  499. // this.eqlist()
  500. if (this.side_type == 18) {
  501. this.eqlist()
  502. } else if (this.side_type == 17) {
  503. this.tubulareqlist()
  504. } else if (this.side_type == 13) {
  505. this.sfeqlist()
  506. }
  507. },
  508. onPageScroll(e) { //nvue暂不支持滚动监听,可用bindingx代替
  509. if (e.scrollTop > 200) { //距离大于200时显示
  510. this.isTop = true
  511. } else { //距离小于200时隐藏
  512. this.isTop = false
  513. }
  514. },
  515. }
  516. </script>
  517. <style lang="scss">
  518. page {
  519. background: $uni-bg-color-grey;
  520. }
  521. .bases_search {
  522. width: 60%;
  523. background-color: #FFFFFF;
  524. position: absolute;
  525. top: 10rpx;
  526. left: 50%;
  527. margin-left: -33%;
  528. .bases_search_text {
  529. width: 90%;
  530. margin: 0 auto;
  531. background-color: #F8F8F8;
  532. height: 60rpx;
  533. border-radius: 30rpx;
  534. display: flex;
  535. line-height: 60rpx;
  536. .search {
  537. padding: 0 20rpx;
  538. font-size: 34rpx;
  539. }
  540. input {
  541. width: 80%;
  542. margin-top: 10rpx;
  543. font-size: 28rpx;
  544. }
  545. }
  546. }
  547. .inputs {
  548. height: 54rpx;
  549. background-color: #E4E4E4;
  550. border-radius: 27rpx;
  551. position: absolute;
  552. right: 20rpx;
  553. top: 20rpx;
  554. transition: width 0.5s;
  555. overflow: hidden;
  556. padding-top: 8rpx;
  557. box-sizing: border-box;
  558. .inputbox {
  559. width: 85%;
  560. text-indent: 1rem;
  561. font-size: 26rpx;
  562. }
  563. .icon {
  564. position: absolute;
  565. top: 8rpx;
  566. right: 26rpx;
  567. }
  568. }
  569. /deep/.uni-icons {
  570. font-size: 40rpx !important;
  571. }
  572. .image {
  573. position: fixed;
  574. top: 84px;
  575. width: 100%;
  576. height: 160rpx;
  577. z-index: 555;
  578. }
  579. .loading {
  580. position: fixed;
  581. top: 440px;
  582. width: 95%;
  583. left: 2.5%;
  584. text-align: center;
  585. z-index: 9;
  586. .img {
  587. width: 300rpx;
  588. height: 40rpx;
  589. }
  590. }
  591. .tab-box {
  592. position: fixed;
  593. top: 164px;
  594. display: flex;
  595. justify-content: space-around;
  596. font-size: 30rpx;
  597. line-height: 80rpx;
  598. background-color: #FFFFFF;
  599. width: 100%;
  600. z-index: 2;
  601. .tab-item {
  602. cursor: pointer;
  603. position: relative;
  604. }
  605. ;
  606. .tab-item.active {
  607. .bottom-line {
  608. bottom: 0;
  609. position: absolute;
  610. display: inline-block;
  611. width: 90rpx;
  612. height: 6rpx;
  613. left: 0;
  614. right: 0;
  615. margin: auto;
  616. background: $uni-color-success;
  617. }
  618. }
  619. }
  620. .prevents {
  621. width: 100%;
  622. position: absolute;
  623. top: 180px;
  624. .prevents_item {
  625. width: 95%;
  626. margin: 0 auto 30rpx;
  627. border-radius: 10rpx;
  628. box-shadow: 0 0 10rpx #bcb9ca;
  629. padding: 20rpx 40rpx 20rpx 80rpx;
  630. box-sizing: border-box;
  631. position: relative;
  632. background-color: #fff;
  633. .prevents_item_img {
  634. width: 30rpx;
  635. height: 50rpx;
  636. position: absolute;
  637. top: -4rpx;
  638. left: 30rpx;
  639. }
  640. .prevents_item_top {
  641. display: flex;
  642. justify-content: space-between;
  643. height: 60rpx;
  644. border-bottom: 2rpx solid #F4F4F4;
  645. line-height: 60rpx;
  646. font-size: 26rpx;
  647. .red {
  648. color: #ff0000;
  649. }
  650. .green {
  651. color: #7DBB91;
  652. }
  653. }
  654. .prevents_item_bot {
  655. margin-top: 20rpx;
  656. font-size: 26rpx;
  657. color: #BDBDBD;
  658. .prevents_item_bot_item {
  659. height: 60rpx;
  660. line-height: 60rpx;
  661. display: flex;
  662. justify-content: space-between;
  663. color: #909696;
  664. p:first-child {
  665. width: 80%;
  666. overflow: hidden; //溢出隐藏
  667. white-space: nowrap; //禁止换行
  668. text-overflow: ellipsis; //...
  669. }
  670. p:nth-child(2) {
  671. height: 45rpx;
  672. color: #00B075;
  673. border-bottom: 1px solid #00B075;
  674. }
  675. }
  676. .prevents_item_bot_sapn0 {
  677. color: #00B075;
  678. }
  679. .prevents_item_bot_sapn1 {
  680. color: #FF4747;
  681. }
  682. .prevents_item_bot_sapn2 {
  683. color: #FFAB00;
  684. }
  685. }
  686. }
  687. }
  688. .top {
  689. position: fixed;
  690. right: 10px;
  691. bottom: 40px;
  692. z-index: 100;
  693. image {
  694. width: 100rpx;
  695. height: 100rpx;
  696. }
  697. .backtop {
  698. display: flex;
  699. justify-content: flex-end;
  700. margin-bottom: 10rpx;
  701. }
  702. .more {
  703. display: flex;
  704. }
  705. .box {
  706. width: 80rpx;
  707. height: 80rpx;
  708. background-color: rgba(161, 161, 161, 0.45);
  709. border-radius: 50%;
  710. text-align: center;
  711. line-height: 80rpx;
  712. box-sizing: border-box;
  713. margin: 14rpx 10rpx 0 0;
  714. color: #fff;
  715. }
  716. }
  717. .slot-content {
  718. width: 60%;
  719. margin: 30rpx auto;
  720. display: flex;
  721. line-height: 70rpx;
  722. }
  723. .slot-contentremark {
  724. width: 70%;
  725. margin: 30rpx auto;
  726. display: flex;
  727. line-height: 70rpx;
  728. }
  729. </style>