equip-detail.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792
  1. <template>
  2. <view>
  3. <view :class="['info',equipInfo.is_online==1?'on':'off']">
  4. <view class="" @click="copy(equipInfo)">
  5. 设备ID:{{equipInfo.imei||equipInfo.device_id}}
  6. <image src="http://static.yfpyx.com/bigdata_app/image/environment/fuzhi.png" mode="" class="tishi"></image>
  7. </view>
  8. <view class="">
  9. 设备名称:{{equipInfo.device_name}}
  10. </view>
  11. <view class="">
  12. 设备类型:{{equipInfo.type|equipType}}{{equipInfo.type_name}}
  13. </view>
  14. <view class="">
  15. 最新上报时间:{{equipInfo.addtime||equipInfo.uptime | timeFormat}}
  16. </view>
  17. <view class="">
  18. 设备地址:{{equipInfo.address?equipInfo.address:"--"}}
  19. </view>
  20. <view v-if="type==7" @click="setTime(equipInfo.d_id)">
  21. <text space="emsp">载玻片、培养液更换时间</text>
  22. <u-icon name="edit-pen" color="#f0ad4e" size="28"></u-icon>
  23. </view>
  24. <view v-if="type==4" @click="addYx(equipInfo.d_id)">
  25. <text space="emsp">添加诱芯</text>
  26. <u-icon name="edit-pen" color="#f0ad4e" size="28"></u-icon>
  27. </view>
  28. <u-popup v-model="setTimeShow" mode="center" width="600rpx">
  29. <u-field label="载玻片更换时间" placeholder="选择日期" label-width='240' required :error-message="glassErr" v-model="glass_slide_time"
  30. @click="glass_show=true">
  31. </u-field>
  32. <u-field label="培养液更换时间" placeholder="选择日期" label-width='240' required :error-message="culErr" v-model="cultivate_time"
  33. @click="cultivate_show=true">
  34. </u-field>
  35. <view class="btn-box">
  36. <u-button @click="setTimeSubmit" size="mini" type="success">确定</u-button>
  37. </view>
  38. <u-calendar v-model="glass_show" mode="date" @change="timeChange($event,'glass')"></u-calendar>
  39. <u-calendar v-model="cultivate_show" mode="date" @change="timeChange($event,'cultivate')"></u-calendar>
  40. </u-popup>
  41. <u-popup v-model="yxShow" mode="center" width="600rpx">
  42. <u-field label="监测害虫名称" label-width='240' required :error-message="xyErr" v-model="decoy" class="field">
  43. </u-field>
  44. <view class="btn-box">
  45. <u-button @click="yxSubmit" size="mini" type="success">确定</u-button>
  46. </view>
  47. </u-popup>
  48. <u-toast ref="toast" />
  49. </view>
  50. <view class="equip_part">
  51. <template v-if="equipInfo.type==7">
  52. <view class="item1" v-for="item in bzy" v-if="item.tf" @click="partClick(item.path)">
  53. <image :src="'http://static.yfpyx.com/bigdata_app'+item.icon" mode="widthFix"></image>
  54. <view class="">
  55. {{item.tex}}
  56. </view>
  57. </view>
  58. </template>
  59. <template v-else-if="equipInfo.type==3">
  60. <view class="item2" v-for="item in curEquip" v-if="item.tf" @click="partClick(item.path)">
  61. <image :src="'http://static.yfpyx.com/bigdata_app'+item.icon" mode="widthFix"></image>
  62. <view class="">
  63. {{item.tex}}
  64. </view>
  65. </view>
  66. </template>
  67. <template v-else>
  68. <view class="item3" v-for="item in curEquip" v-if="item.tf" @click="partClick(item.path)">
  69. <image :src="'http://static.yfpyx.com/bigdata_app'+item.icon" mode="widthFix"></image>
  70. <view class="">
  71. {{item.tex}}
  72. </view>
  73. </view>
  74. </template>
  75. </view>
  76. <view class="tit">
  77. <p>实时数据</p>
  78. <p class="span" @click="partClicks">历史数据>>></p>
  79. </view>
  80. <view class="newtishi" v-if="!newtishitf">
  81. 暂无数据
  82. </view>
  83. <view class="newState" v-else>
  84. <view class="item" v-for="item in curState">
  85. <image :src="'http://static.yfpyx.com/bigdata_app'+item.icon" mode="widthFix"></image>
  86. <view class="info-con">
  87. <view class="active">
  88. {{item.txt}}
  89. </view>
  90. <view class="val">
  91. {{item.value | formatValue(item.txt,type)}}
  92. </view>
  93. </view>
  94. </view>
  95. </view>
  96. </view>
  97. </template>
  98. <script>
  99. import equipState from "../../../static/js/equipState_dict.json"
  100. export default {
  101. data() {
  102. return {
  103. city:"",
  104. type: null, //设备类型
  105. device_status: null,
  106. equipInfo: {},
  107. cbd: [{
  108. icon: '/image/cb/1.png',
  109. tex: '查看图片',
  110. path: '/pages/cb/cbd/equip-set/imgpage',
  111. tf:false
  112. },
  113. // {
  114. // icon: '/image/cb/2.png',
  115. // tex: '历史数据',
  116. // path: '/pages/cb/cbd/equip-set/historyfile',
  117. // tf:false
  118. // },
  119. {
  120. icon: '/image/cb/3.png',
  121. tex: '害虫统计',
  122. path: '/pages/cb/cbd/equip-set/statistics',
  123. tf:false
  124. }, {
  125. icon: '/image/cb/4.png',
  126. tex: '设备控制',
  127. path: '/pages/cb/cbd/equip-set/equip-set',
  128. tf:false
  129. }, {
  130. icon: '/image/cb/5.png',
  131. tex: '短信预警',
  132. path: '/pages/cb/cbd/equip-set/note',
  133. tf:false
  134. }, {
  135. icon: '/image/cb/6.png',
  136. tex: 'sim卡详情',
  137. path: '/pages/cb/sim/sim',
  138. tf:true
  139. },{
  140. icon: '/image/environment/7.png',
  141. tex: '一键报修',
  142. path: '/pages/afterSale/addafter',
  143. tf:true
  144. }],
  145. bzy: [{
  146. icon: '/image/cb/4.png',
  147. tex: '设备控制',
  148. path: '/pages/cb/bzy/equip-set/equip-set',
  149. tf:false
  150. }, {
  151. icon: '/image/cb/1.png',
  152. tex: '查看图片',
  153. path: '/pages/cb/cbd/equip-set/imgpage',
  154. tf:false
  155. },
  156. // {
  157. // icon: '/image/cb/2.png',
  158. // tex: '历史数据',
  159. // path: '/pages/cb/bzy/equip-set/bzyhistoryile',
  160. // tf:false
  161. // },
  162. {
  163. icon: '/image/cb/6.png',
  164. tex: 'sim卡详情',
  165. path: '/pages/cb/sim/sim',
  166. tf:false
  167. },{
  168. icon: '/image/environment/7.png',
  169. tex: '一键报修',
  170. path: '/pages/afterSale/addafter',
  171. tf:true
  172. }],
  173. xy: [{
  174. icon: '/image/cb/4.png',
  175. tex: '设备控制',
  176. path: '/pages/cb/xy/equip-set/equip-set',
  177. tf:false
  178. }, {
  179. icon: '/image/cb/6.png',
  180. tex: 'sim卡详情',
  181. path: '/pages/cb/sim/sim',
  182. tf:false
  183. }, {
  184. icon: '/image/cb/2.png',
  185. tex: '历史数据',
  186. path: '/pages/cb/xy/equip-set/xyhistoryile',
  187. tf:false
  188. },{
  189. icon: '/image/environment/7.png',
  190. tex: '一键报修',
  191. path: '/pages/afterSale/addafter',
  192. tf:true
  193. }],
  194. newState: {}, //设备最新状态
  195. setTimeShow: false,
  196. glass_show: false,
  197. cultivate_show: false,
  198. cultivate_time: "",
  199. glass_slide_time: "",
  200. glassErr: '',
  201. culErr: '',
  202. yxShow: false, //诱芯弹框
  203. xyErr: '',
  204. decoy: '',
  205. newtishitf:false,
  206. }
  207. },
  208. computed: {
  209. curEquip() {
  210. switch (this.type) {
  211. case 3:
  212. return this.cbd;
  213. case 7:
  214. return this.bzy;
  215. case 4:
  216. return this.xy
  217. }
  218. },
  219. curState() {
  220. switch (this.type) {
  221. case 3:
  222. let blbs = "" //灯管状态
  223. if (this.newState.lamp != undefined) {
  224. if (this.newState.ws == 1) {
  225. if (this.newState.lamp == 1) {
  226. blbs = "工作中";
  227. } else if (equipState.lux == 0) {
  228. blbs = "N/A(未检测到传感器)";
  229. } else {
  230. blbs = "异常";
  231. }
  232. } else {
  233. blbs = "关闭";
  234. }
  235. } else {
  236. blbs = "--";
  237. }
  238. return [{
  239. icon: '/image/cb/icon02.png',
  240. txt: '在线状态',
  241. value: Number(this.device_status) == 1 ? '在线' : '离线',
  242. },
  243. {
  244. icon: '/image/cb/icon05.png',
  245. txt: '开关状态',
  246. value: Number(this.newState.ds) == 1 ? '开机' : '关机'
  247. },
  248. {
  249. icon: '/image/cb/icon13.png',
  250. txt: '通道状态',
  251. value: Number(this.newState.upds) == 1 ? '落虫' : '排水'
  252. },
  253. {
  254. icon: '/image/cb/icon10.png',
  255. txt: '加热状态',
  256. value: Number(this.newState.hs) == 1 ? '加热' : '正常'
  257. }, {
  258. icon: '/image/cb/icon08.png',
  259. txt: '环境温度(℃)',
  260. value: this.newState.at=="2.5"||this.newState.at=="25"||this.newState.at==""?this.newState.new_tem:this.newState.at
  261. }, {
  262. icon: '/image/cb/icon07.png',
  263. txt: '环境湿度(%)',
  264. value:this.newState.ah=="30"||this.newState.ah=="3.0"||this.newState.ah==""?this.newState.new_hum:this.newState.ah
  265. }, {
  266. icon: '/image/cb/icon16.png',
  267. txt: '信号强度',
  268. value: this.newState.csq
  269. }, {
  270. icon: '/image/cb/icon12.png',
  271. txt: '设备版本',
  272. value: this.newState.dver
  273. },
  274. {
  275. icon: '/image/cb/icon17.png',
  276. txt: '雨控状态',
  277. value: Number(this.newState.rps) == 1 ? "雨控" : '正常'
  278. }, {
  279. icon: '/image/cb/icon14.png',
  280. txt: '温控状态',
  281. value: Number(this.newState.tps) == 1 ? "温控" : '正常'
  282. }, {
  283. icon: '/image/cb/icon06.png',
  284. txt: '光控状态',
  285. value: Number(this.newState.lps) == 1 ? "光控" : '正常'
  286. }, {
  287. icon: '/image/cb/icon01.png',
  288. txt: '灯管状态',
  289. value: blbs
  290. }, {
  291. icon: '/image/cb/icon11.png',
  292. txt: '上仓门',
  293. value: Number(this.newState.upds) == 1 ? "打开" : '关闭'
  294. }, {
  295. icon: '/image/cb/icon15.png',
  296. txt: '下仓门',
  297. value: Number(this.newState.dnds) == 1 ? "打开" : '关闭'
  298. }
  299. ]
  300. case 7:
  301. return [{
  302. icon: '/image/cb/icon02.png',
  303. txt: '在线状态',
  304. value: Number(this.device_status) == 1 ? '在线' : '离线',
  305. },
  306. {
  307. icon: '/image/cb/icon05.png',
  308. txt: '设备开关',
  309. value: Number(this.newState.ds) == 1 ? '开启' : '关闭'
  310. },
  311. {
  312. icon: '/image/cb/bzy/3.png',
  313. txt: '摄像头状态',
  314. value: this.newState.usb_sta == 1 ? '异常' : '正常'
  315. },
  316. {
  317. icon: '/image/prevention/44.png',
  318. txt: '当前电压',
  319. value: this.newState.v_bat
  320. }, {
  321. icon: '/image/cb/icon08.png',
  322. txt: '环境温度(℃)',
  323. value: this.newState.at=="2.5"||this.newState.at=="25"||this.newState.at==""?this.newState.new_tem:this.newState.at
  324. }, {
  325. icon: '/image/prevention/66.png',
  326. txt: '环境湿度(%)',
  327. value:this.newState.ah=="30"||this.newState.ah=="3.0"||this.newState.ah==""?this.newState.new_hum:this.newState.ah
  328. }, {
  329. icon: '/image/cb/icon16.png',
  330. txt: '信号强度',
  331. value: this.newState.csq
  332. }, {
  333. icon: '/image/cb/bzy/8.png',
  334. txt: '已培养时间',
  335. value: this.newState.staytime
  336. }, {
  337. icon: '/image/cb/icon12.png',
  338. txt: '设备版本',
  339. value: this.newState.dver
  340. }, {
  341. icon: '/image/cb/icon09.png',
  342. txt: '保温仓当前温度',
  343. value: this.newState.pre_temp
  344. }, {
  345. icon: '/image/cb/icon08.png',
  346. txt: '保温仓设定温度',
  347. value: this.newState.set_temp
  348. }
  349. ];
  350. case 4:
  351. return [{
  352. icon: '/image/cb/icon02.png',
  353. txt: '在线状态',
  354. value: Number(this.device_status) == 1 ? '在线' : '离线',
  355. },
  356. {
  357. icon: '/image/cb/icon05.png',
  358. txt: '设备开关',
  359. value: this.newState.ds == 1 ? '开启' : '关闭'
  360. },
  361. {
  362. icon: '/image/cb/icon02.png',
  363. txt: '工作状态',
  364. value: this.newState.ws == 1 ? '工作' : ' 待机'
  365. },
  366. {
  367. icon: '/image/cb/icon12.png',
  368. txt: '设备版本',
  369. value: this.newState.dver
  370. },
  371. {
  372. icon: '/image/cb/icon08.png',
  373. txt: '环境温度(℃)',
  374. value: this.newState.at=="2.5"||this.newState.at=="25"||this.newState.at==""?this.newState.new_tem:this.newState.at
  375. },
  376. {
  377. icon: '/image/cb/icon07.png',
  378. txt: '环境湿度(%)',
  379. value:this.newState.ah=="30"||this.newState.ah=="3.0"||this.newState.ah==""?this.newState.new_hum:this.newState.ah
  380. },
  381. {
  382. icon: '/image/prevention/105.png',
  383. txt: '充电电压',
  384. value: this.newState.cv
  385. },
  386. {
  387. icon: '/image/prevention/106.png',
  388. txt: '电池电压',
  389. value: this.newState.bv
  390. },
  391. {
  392. icon: '/image/cb/icon16.png',
  393. txt: '信号强度',
  394. value: this.newState.csq
  395. },
  396. {
  397. icon: '/image/cb/xy/9.png',
  398. txt: '充电状态',
  399. value: Number(this.newState.cs) == 1 ? '充电' : '正常'
  400. },
  401. {
  402. icon: '/image/cb/xy/10.png',
  403. txt: '电池状态',
  404. value: this.newState.bs
  405. },
  406. ]
  407. }
  408. }
  409. },
  410. filters: {
  411. equipType(type) {
  412. switch (type) {
  413. case 3:
  414. return "虫情测报灯";
  415. case 7:
  416. return "孢子仪";
  417. case 4:
  418. return "性诱测报"
  419. }
  420. },
  421. formatValue(val, a1, a2) {
  422. if (a2 == 4 && a1 == "电池状态") {
  423. switch (Number(val)) {
  424. case 0:
  425. return '正常';
  426. break;
  427. case 1:
  428. return '欠压';
  429. break;
  430. case 2:
  431. return '过压';
  432. break;
  433. }
  434. } else {
  435. return val ? val : '无'
  436. }
  437. }
  438. },
  439. onLoad(option) {
  440. this.equipInfo = JSON.parse(option.info)
  441. this.type = Number(this.equipInfo.type) || Number(this.equipInfo.equip_type)
  442. this.device_status = this.equipInfo.is_online
  443. this.getState()
  444. console.log(this.equipInfo)
  445. this.selectaddress(this.lat,this.lng)
  446. uni.getStorage({
  447. key:"jurisdiction",
  448. success:(res)=>{
  449. console.log(JSON.parse(res.data))
  450. let items = JSON.parse(res.data).filter((item)=>{
  451. return item.purview_name == "测报系统"
  452. })
  453. console.log(items)
  454. let items2 = items[0].children.filter((item)=>{
  455. return item.purview_name == "虫情测报灯"
  456. })
  457. let items3 = items[0].children.filter((item)=>{
  458. return item.purview_name == "性诱测报"
  459. })
  460. let items4 = items[0].children.filter((item)=>{
  461. return item.purview_name == "孢子仪"
  462. })
  463. console.log(items2)
  464. var arr = items2[0].children
  465. for(var i =0;i<arr.length;i++){
  466. switch (arr[i].purview_name){
  467. case "数据详情":
  468. this.cbd[1].tf = true
  469. break
  470. case "查看图片":
  471. this.cbd[0].tf = true
  472. break
  473. case "设备控制":
  474. this.cbd[3].tf = true
  475. break
  476. case "害虫统计":
  477. this.cbd[2].tf = true
  478. this.cbd[4].tf = true
  479. break
  480. case "SIM卡":
  481. this.cbd[5].tf = true
  482. break
  483. }
  484. }
  485. console.log(items3[0].children)
  486. var arr2 = items3[0].children
  487. for(var i =0;i<arr2.length;i++){
  488. switch (arr2[i].purview_name){
  489. case "设备控制":
  490. this.xy[0].tf = true
  491. break;
  492. case "SIM卡":
  493. this.xy[1].tf = true
  494. break;
  495. case "数据详情":
  496. this.xy[2].tf = true
  497. break;
  498. }
  499. }
  500. console.log(items4[0].children)
  501. var arr3 = items4[0].children
  502. for(var i =0;i<arr3.length;i++){
  503. switch (arr3[i].purview_name){
  504. case "设备控制":
  505. this.bzy[0].tf = true
  506. break;
  507. case "查看图片":
  508. this.bzy[1].tf = true
  509. break;
  510. case "数据详情":
  511. this.bzy[2].tf = true
  512. break;
  513. case "SIM卡":
  514. this.bzy[3].tf = true
  515. break;
  516. }
  517. }
  518. }
  519. })
  520. },
  521. methods: {
  522. async getState() {
  523. const res = await this.$myRequest({
  524. url: '/api/api_gateway?method=forecast.worm_lamp.device_history_data',
  525. data: {
  526. device_type_id: this.equipInfo.type || this.equipInfo.equip_type,
  527. device_id: this.equipInfo.imei || this.equipInfo.device_id,
  528. page: 1,
  529. page_size: 1,
  530. }
  531. })
  532. console.log(res)
  533. console.log(1222)
  534. if(res.counts!=0){
  535. this.newState = res.data[0].d_h_t
  536. this.newtishitf = true
  537. }else{
  538. this.newtishitf = false
  539. }
  540. },
  541. partClick(path) {
  542. console.log(path)
  543. uni.navigateTo({
  544. url: path + '?d_id=' + this.equipInfo.d_id + "&device_id=" + this.equipInfo.imei + "&device_type="+this.type
  545. });
  546. },
  547. partClicks(){
  548. var path = ""
  549. if(this.type==3){
  550. path="/pages/cb/cbd/equip-set/historyfile"
  551. }else if(this.type == 7){
  552. path="/pages/cb/bzy/equip-set/bzyhistoryile"
  553. }
  554. uni.navigateTo({
  555. url: path + '?d_id=' + this.equipInfo.d_id + "&device_id=" + this.equipInfo.imei + "&device_type="+this.type
  556. });
  557. },
  558. async setTime(d_id) {
  559. const res = await this.$myRequest({
  560. url: '/api/api_gateway?method=device.device_manage.get_spore_time',
  561. data: {
  562. device_type_id: this.type,
  563. d_id
  564. }
  565. })
  566. this.glass_slide_time = res.glass_slide_time ? this.formatTime(res.glass_slide_time * 1000, 'yyyy-MM-dd') : ''
  567. this.cultivate_time = res.cultivate_time ? this.formatTime(res.cultivate_time * 1000, 'yyyy-MM-dd') : ''
  568. this.setTimeShow = true
  569. },
  570. timeChange(e, a) {
  571. if (a == 'glass') {
  572. this.glass_slide_time = e.result
  573. this.glassErr = ''
  574. } else {
  575. this.cultivate_time = e.result
  576. this.culErr = ''
  577. }
  578. },
  579. async setTimeSubmit() {
  580. if (!this.glass_slide_time) {
  581. this.glassErr = "请填写载玻片更换时间"
  582. }
  583. if (!this.cultivate_time) {
  584. this.culErr = "请填写培养液更换时间"
  585. return
  586. }
  587. let glass = parseInt(
  588. new Date(this.glass_slide_time).getTime() / 1000
  589. );
  590. let cultivate = parseInt(
  591. new Date(this.cultivate_time).getTime() / 1000
  592. );
  593. const res = await this.$myRequest({
  594. url: '/api/api_gateway?method=device.device_manage.updata_spore_time',
  595. data: {
  596. device_type_id: this.type,
  597. d_id: this.equipInfo.d_id,
  598. glass_slide_time: glass,
  599. cultivate_time: cultivate
  600. }
  601. })
  602. if (res) {
  603. this.$refs.toast.show({
  604. title: '修改成功!',
  605. type: 'success',
  606. })
  607. }
  608. this.setTimeShow = false
  609. },
  610. async addYx(d_id) {
  611. const res = await this.$myRequest({
  612. url: '/api/api_gateway?method=device.device_manage.get_spore_time',
  613. data: {
  614. device_type_id: this.type,
  615. d_id
  616. }
  617. })
  618. this.decoy = res.decoy;
  619. this.yxShow = true
  620. },
  621. async yxSubmit() {
  622. if (!this.decoy) {
  623. this.xyErr = "请填写监测害虫名称";
  624. return false
  625. }
  626. const res = await this.$myRequest({
  627. url: '/api/api_gateway?method=device.device_manage.updata_spore_time',
  628. data: {
  629. device_type_id: this.type,
  630. d_id: this.equipInfo.d_id,
  631. decoy: this.decoy
  632. }
  633. })
  634. if (res) {
  635. this.xyErr = ""
  636. this.yxShow = false
  637. }
  638. },
  639. selectaddress(lat,lng) { //获取分布位置
  640. uni.request({
  641. url: '/dpc/ws/geocoder/v1/?location='+lat+","+lng+"&key=B2EBZ-2UW6P-RDJDG-LCMLE-AIQUS-CGFMJ",
  642. success: (res) => {
  643. if(res==0){
  644. this.city = res.data.result.address
  645. }
  646. }
  647. })
  648. },
  649. copy(item){
  650. console.log(item)
  651. uni.setClipboardData({
  652. data: item.imei||item.device_id,
  653. success: function () {
  654. console.log('success');
  655. }
  656. });
  657. },
  658. },
  659. }
  660. </script>
  661. <style lang='scss'>
  662. page {
  663. padding: 20rpx;
  664. box-sizing: border-box;
  665. .info {
  666. padding: 20rpx 40rpx;
  667. color: #fff;
  668. line-height: 50rpx;
  669. font-size: 26rpx;
  670. background-size: 100% auto;
  671. background-repeat: no-repeat;
  672. background-color: #0DC6B6;
  673. background-position: top left;
  674. box-sizing: border-box;
  675. width: 100%;
  676. .tishi{
  677. width: 28rpx;
  678. height: 28rpx;
  679. margin: 0rpx 0 0 20rpx;
  680. }
  681. }
  682. .on {
  683. background-image: url('http://static.yfpyx.com/bigdata_app/image/cb/onBg.png')
  684. }
  685. .off {
  686. background-image: url('http://static.yfpyx.com/bigdata_app/image/cb/offBg.png')
  687. }
  688. .equip_part {
  689. display: flex;
  690. flex-wrap: wrap;
  691. text-align: center;
  692. font-size: 28rpx;
  693. color: #666;
  694. line-height: 50rpx;
  695. image {
  696. width: 52rpx;
  697. }
  698. .item1 {
  699. padding: 20rpx 0;
  700. box-sizing: border-box;
  701. flex-basis: 25%;
  702. }
  703. .item2 {
  704. padding: 20rpx 10rpx;
  705. box-sizing: border-box;
  706. flex-basis: 33%;
  707. /* flex-grow: 1; */
  708. }
  709. .item3{
  710. padding: 20rpx 0;
  711. box-sizing: border-box;
  712. flex-basis: 25%;
  713. }
  714. }
  715. .tit {
  716. font-weight: 800;
  717. height: 50rpx;
  718. font-size: 30rpx;
  719. margin-bottom: 20rpx;
  720. display: flex;
  721. justify-content: space-between;
  722. .span{
  723. color: #6e6c76;
  724. font-size: 24rpx;
  725. display: flex;
  726. justify-content: space-between;
  727. /* margin-top: 12rpx; */
  728. }
  729. }
  730. .newtishi{
  731. width: 90%;
  732. margin: 0 auto;
  733. text-align: center;
  734. padding-top: 40rpx;
  735. font-size: 32rpx;
  736. }
  737. .newState {
  738. display: flex;
  739. flex-wrap: wrap;
  740. text-align: center;
  741. margin: 0 -10rpx;
  742. .item {
  743. display: flex;
  744. flex-wrap: nowrap;
  745. margin: 10rpx;
  746. width: 345rpx;
  747. justify-content: flex-start;
  748. padding: 20rpx 10rpx;
  749. box-sizing: border-box;
  750. border-radius: 4px;
  751. box-shadow: 0px 0px 5px 3px rgba(136, 136, 136, .1);
  752. font-size: 24rpx;
  753. .info-con {
  754. padding-left: 30rpx;
  755. text-align: left;
  756. line-height: 40rpx;
  757. }
  758. image {
  759. width: 70rpx;
  760. }
  761. }
  762. }
  763. .btn-box {
  764. text-align: center;
  765. padding: 30rpx;
  766. }
  767. .field {
  768. /deep/.uni-input-input {
  769. border: 2rpx solid #FF0000;
  770. border-radius: 24rpx;
  771. width: 140px;
  772. padding-left: 10rpx;
  773. box-sizing: border-box;
  774. }
  775. }
  776. }
  777. </style>