index.vue 19 KB

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