index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817
  1. <template>
  2. <view>
  3. <view class="weather">
  4. <image :src="'https://webstaticimg.oss-cn-hangzhou.aliyuncs.com/bigdata_app/img/weather/'+weatherinfo.wea+'.png'" mode=""
  5. class="weaimg"></image>
  6. <view class="weatext">
  7. <view class="weatext_title">
  8. {{hello}}
  9. </view>
  10. <view class="">
  11. 欢迎登陆云飞智控
  12. </view>
  13. </view>
  14. </view>
  15. <view class="weatherinfo">
  16. <view class="weatherinfo_item">
  17. <image src="http://www.hnyfwlw.com:8006/bigdata_app/newindex/weizhi.png" mode="" class="weaimg"></image>
  18. <view class="textbox">
  19. {{weatherinfo.district}}
  20. </view>
  21. </view>
  22. <view class="weatherinfo_item">
  23. <image src="http://www.hnyfwlw.com:8006/bigdata_app/newindex/wendu.png" mode="" class="weaimg"></image>
  24. <view class="textbox">
  25. {{weatherinfo.at}}℃
  26. </view>
  27. </view>
  28. <view class="weatherinfo_item">
  29. <image src="http://www.hnyfwlw.com:8006/bigdata_app/newindex/shidu.png" mode="" class="weaimg"></image>
  30. <view class="textbox">
  31. {{weatherinfo.ah}}%RH
  32. </view>
  33. </view>
  34. <view class="weatherinfo_item">
  35. <view class="first_item">
  36. PM2.5
  37. </view>
  38. <view class="textbox">
  39. {{weatherinfo.air_pm25}}
  40. </view>
  41. </view>
  42. </view>
  43. <view class="functionbox">
  44. <view class="functionbox_title">
  45. 功能应用
  46. </view>
  47. <view class="functionbox_text">
  48. <view class="functionbox_text_item" v-if="jurisdiction.sqtf" @click="tabfunction(0)">
  49. <image src="http://www.hnyfwlw.com:8006/bigdata_app/newindex/base.png" mode="" class="itemimg"></image>
  50. <view class="">
  51. 四情基地
  52. </view>
  53. </view>
  54. <view class="functionbox_text_item" @click="tabfunction(1)">
  55. <image src="http://www.hnyfwlw.com:8006/bigdata_app/newindex/worm.png" mode="" class="itemimg"></image>
  56. <view class="">
  57. 病虫识别
  58. </view>
  59. </view>
  60. <view class="functionbox_text_item" v-if="jurisdiction.zjtf" @click="tabfunction(2)">
  61. <image src="http://www.hnyfwlw.com:8006/bigdata_app/newindex/knowledge.png" mode="" class="itemimg"></image>
  62. <view class="">
  63. 知识百科
  64. </view>
  65. </view>
  66. <view class="functionbox_text_item" @click="tabfunction(3)">
  67. <image src="http://www.hnyfwlw.com:8006/bigdata_app/newindex/aftersale.png" mode="" class="itemimg"></image>
  68. <view class="">
  69. 售后服务
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. <view class="facilitybox">
  75. <view class="facilitybox_title">
  76. 系统设备
  77. </view>
  78. <view class="facilitybox_itembox">
  79. <view class="facilitybox_item" v-if="jurisdiction.cbtf" @click="tabequipment('../cb/index/index')">
  80. <image src="http://www.hnyfwlw.com:8006/bigdata_app/newindex/cb.png" mode="" class="itemimg"></image>
  81. <view class="">
  82. 测报系统
  83. </view>
  84. </view>
  85. <view class="facilitybox_item" v-if="jurisdiction.fztf" @click="tabequipment('../prevention/index')">
  86. <image src="http://www.hnyfwlw.com:8006/bigdata_app/newindex/fz.png" mode="" class="itemimg"></image>
  87. <view class="">
  88. 防治系统
  89. </view>
  90. </view>
  91. <view class="facilitybox_item" v-if="jurisdiction.jktf" @click="tabequipment('../pages/monitor/index')">
  92. <image src="http://www.hnyfwlw.com:8006/bigdata_app/newindex/jk.png" mode="" class="itemimg"></image>
  93. <view class="">
  94. 监控系统
  95. </view>
  96. </view>
  97. <view class="facilitybox_item" v-if="jurisdiction.hjtf" @click="tabequipment('../environment/index')">
  98. <image src="http://www.hnyfwlw.com:8006/bigdata_app/newindex/hj.png" mode="" class="itemimg"></image>
  99. <view class="">
  100. 环境监测
  101. </view>
  102. </view>
  103. <view class="facilitybox_item" v-if="jurisdiction.ggtf" @click="tabequipment('../irrigate/index')">
  104. <image src="http://www.hnyfwlw.com:8006/bigdata_app/newindex/guangai.png" mode="" class="itemimg"></image>
  105. <view class="">
  106. 智能灌溉
  107. </view>
  108. </view>
  109. <view class="facilitybox_item" v-if="jurisdiction.sbtf" @click="tabequipment('../equipMange/index/index')">
  110. <image src="http://www.hnyfwlw.com:8006/bigdata_app/newindex/user.png" mode="" class="itemimg"></image>
  111. <view class="">
  112. 用户管理
  113. </view>
  114. </view>
  115. </view>
  116. </view>
  117. <view class="insectattack">
  118. <view class="insectattack_title" @click="worm">
  119. <view class="">
  120. 虫情百科
  121. </view>
  122. <view class="iconbox">
  123. <u-icon name="arrow-right"></u-icon>
  124. </view>
  125. </view>
  126. <view class="insectattack_listbox">
  127. <view class="insectattack_list">
  128. <view class="list_box list_box1" @click="introduce(79,'虫情百科')">
  129. <view class="list_boxbg">
  130. <image src="http://www.hnyfwlw.com:8006/bigdata_app/newindex/cao.png" mode="" class="list_boxbg_img"></image>
  131. </view>
  132. <view class="list_box_xiang">
  133. <view class="list_box_xiang_click">
  134. 详情
  135. </view>
  136. </view>
  137. <view class="list_box_info">
  138. <view class="list_box_info_name">
  139. 小地老虎
  140. </view>
  141. <view class="list_box_info_text">
  142. 该虫能危害百余种植物,是对农、林木幼苗危害很大的地下害虫, 在东北主要危害落叶松、红松、水曲柳、核桃楸等苗木
  143. </view>
  144. </view>
  145. </view>
  146. <view class="list_box list_box2" @click="introduce(369,'虫情百科')">
  147. <view class="list_boxbg">
  148. <image src="http://www.hnyfwlw.com:8006/bigdata_app/newindex/yee.jpg" mode="" class="list_boxbg_img"></image>
  149. </view>
  150. <view class="list_box_xiang">
  151. <view class="list_box_xiang_click">
  152. 详情
  153. </view>
  154. </view>
  155. <view class="list_box_info">
  156. <view class="list_box_info_name">
  157. 草地贪夜蛾
  158. </view>
  159. <view class="list_box_info_text">
  160. 草地贪夜蛾被认为是世界上最具破坏性的害虫之一,其巨大的破坏性主要源于其“贪”的本性——贪吃、贪育、贪婪、广适、耐药。
  161. </view>
  162. </view>
  163. </view>
  164. <view class="list_box list_box3" @click="introduce(6,'虫情百科')">
  165. <view class="list_boxbg">
  166. <image src="http://www.hnyfwlw.com:8006/bigdata_app/newindex/lingc.jpg" mode="" class="list_boxbg_img"></image>
  167. </view>
  168. <view class="list_box_xiang">
  169. <view class="list_box_xiang_click">
  170. 详情
  171. </view>
  172. </view>
  173. <view class="list_box_info">
  174. <view class="list_box_info_name">
  175. 棉铃虫
  176. </view>
  177. <view class="list_box_info_text">
  178. 棉铃虫具有高度多食性,可以为害20余科200多种植物,但比较喜食禾本科、锦葵科、茄科和豆科植物的花蕾和果实等繁殖器官。
  179. </view>
  180. </view>
  181. </view>
  182. <view class="list_box list_box4" @click="introduce(67,'虫情百科')">
  183. <view class="list_boxbg">
  184. <image src="http://www.hnyfwlw.com:8006/bigdata_app/newindex/ming.png" mode="" class="list_boxbg_img"></image>
  185. </view>
  186. <view class="list_box_xiang">
  187. <view class="list_box_xiang_click">
  188. 详情
  189. </view>
  190. </view>
  191. <view class="list_box_info">
  192. <view class="list_box_info_name">
  193. 稻纵卷叶螟
  194. </view>
  195. <view class="list_box_info_text">
  196. 生命潜能强,寿命长,产卵期长,产卵量也多。各代雌、雄蛾比例几乎各占半数。蛾子有强烈的趋荫蔽栖息习性
  197. </view>
  198. </view>
  199. </view>
  200. </view>
  201. </view>
  202. </view>
  203. <view class="insectattack">
  204. <view class="insectattack_title" @click="virus">
  205. <view class="">
  206. 病害百科
  207. </view>
  208. <view class="iconbox">
  209. <u-icon name="arrow-right"></u-icon>
  210. </view>
  211. </view>
  212. <view class="insectattack_listbox">
  213. <view class="insectattack_list">
  214. <view class="list_box list_box5" @click="introduce(267,'病害百科')">
  215. <view class="list_boxbg">
  216. <image src="http://www.hnyfwlw.com:8006/bigdata_app/newindex/mai.png" mode="" class="list_boxbg_img"></image>
  217. </view>
  218. <view class="list_box_xiang">
  219. <view class="list_box_xiang_click">
  220. 详情
  221. </view>
  222. </view>
  223. <view class="list_box_info">
  224. <view class="list_box_info_name">
  225. 小麦赤霉病
  226. </view>
  227. <view class="list_box_info_text">
  228. 小麦赤霉病从苗期到穗期均可发生,引起苗腐、茎基腐、秆腐和穗腐,以穗腐危害最大。湿度大时,病部均可见粉红色霉层。
  229. </view>
  230. </view>
  231. </view>
  232. <view class="list_box list_box6" @click="introduce(320,'病害百科')">
  233. <view class="list_boxbg">
  234. <image src="http://www.hnyfwlw.com:8006/bigdata_app/newindex/dadou.jpg" mode="" class="list_boxbg_img"></image>
  235. </view>
  236. <view class="list_box_xiang">
  237. <view class="list_box_xiang_click">
  238. 详情
  239. </view>
  240. </view>
  241. <view class="list_box_info">
  242. <view class="list_box_info_name">
  243. 大豆根腐病
  244. </view>
  245. <view class="list_box_info_text">
  246. 初期茎基部或胚根表皮出现淡红褐色不规则的小斑,后变红褐色凹陷坏死斑,绕根茎扩展致根皮枯死
  247. </view>
  248. </view>
  249. </view>
  250. <view class="list_box list_box7" @click="introduce(292,'病害百科')">
  251. <view class="list_boxbg">
  252. <image src="http://www.hnyfwlw.com:8006/bigdata_app/newindex/yumi.png" mode="" class="list_boxbg_img"></image>
  253. </view>
  254. <view class="list_box_xiang">
  255. <view class="list_box_xiang_click">
  256. 详情
  257. </view>
  258. </view>
  259. <view class="list_box_info">
  260. <view class="list_box_info_name">
  261. 玉米大斑病
  262. </view>
  263. <view class="list_box_info_text">
  264. 玉米大斑病主要为害叶片,严重时也为害叶鞘和苞叶。植株下部叶片先发病,然后向上扩展。
  265. </view>
  266. </view>
  267. </view>
  268. <view class="list_box list_box8" @click="introduce(278,'病害百科')">
  269. <view class="list_boxbg">
  270. <image src="http://www.hnyfwlw.com:8006/bigdata_app/newindex/dao.png" mode="" class="list_boxbg_img"></image>
  271. </view>
  272. <view class="list_box_xiang">
  273. <view class="list_box_xiang_click">
  274. 详情
  275. </view>
  276. </view>
  277. <view class="list_box_info">
  278. <view class="list_box_info_name">
  279. 水稻稻瘟病
  280. </view>
  281. <view class="list_box_info_text">
  282. 发生于三叶前,由种子带菌所致。病苗基部灰黑,上部变褐,卷缩而死,湿度较大时病部产生大量灰黑色霉层。
  283. </view>
  284. </view>
  285. </view>
  286. </view>
  287. </view>
  288. </view>
  289. <u-modal v-model="show" :mask-close-able="true" title="病虫害识别" :show-cancel-button="true" confirm-text="拍病害"
  290. cancel-text="拍虫害" cancel-color="#4BB85F" content="拍照识别病虫害" @confirm="confirm" @cancel="cancel"></u-modal>
  291. <kps-image-cutter @ok="onok" @cancel="oncancle" :url="url" :fixed="false" :blob="true" :maxWidth="500"
  292. :maxHeight="380" :height="380"></kps-image-cutter>
  293. <view class="loading" v-if="loadTF" @touchmove.stop.prevent="moveHandle">
  294. <u-loading mode="flower" size="100" :show="true"></u-loading>
  295. </view>
  296. </view>
  297. </template>
  298. <script>
  299. import kpsImageCutter from "@/components/ksp-image-cutter/ksp-image-cutter.vue";
  300. export default {
  301. components: {
  302. kpsImageCutter
  303. },
  304. data() {
  305. return {
  306. weatherinfo: {
  307. wea:"晴"
  308. },
  309. hello: "",
  310. jurisdiction: {
  311. cbtf: false,
  312. jktf: false,
  313. hjtf: false,
  314. fztf: false,
  315. sytf: false,
  316. sbtf: false,
  317. sqtf: false,
  318. zjtf: false,
  319. ggtf:false,
  320. },
  321. show:false,
  322. url:"",
  323. loadTF:false
  324. }
  325. },
  326. watch:{
  327. url(news){
  328. if(news!=""){
  329. uni.pageScrollTo({
  330. scrollTop: 0,
  331. duration: 500
  332. })
  333. }
  334. }
  335. },
  336. methods: {
  337. moveHandle(){
  338. return
  339. },
  340. async getcity(lng, lat) {
  341. const res = await this.$myRequest({
  342. url: '/api/api_gateway?method=device.device_manage.weathers',
  343. data: {
  344. lng: lng,
  345. lat: lat
  346. }
  347. })
  348. console.log(res)
  349. this.weatherinfo = res[0]
  350. },
  351. async getUserlogin() {
  352. const res = await this.$myRequest({
  353. url: '/api/api_gateway?method=user.login.user_login_info',
  354. })
  355. uni.setStorage({
  356. key: 'jurisdiction',
  357. data: JSON.stringify(res.children),
  358. })
  359. uni.setStorage({
  360. key: 'myuser_type',
  361. data: JSON.stringify(res.myuser_type),
  362. })
  363. this.jurisdiction = {
  364. cbtf: false,
  365. jktf: false,
  366. hjtf: false,
  367. fztf: false,
  368. sytf: false,
  369. sbtf: false,
  370. sqtf: false,
  371. zjtf: false
  372. }
  373. console.log(res.children)
  374. for (var i = 0; i < res.children.length; i++) {
  375. switch (res.children[i].purview_name) {
  376. case "测报系统":
  377. this.jurisdiction.cbtf = true
  378. break;
  379. case "可视农业":
  380. this.jurisdiction.jktf = true
  381. break;
  382. case "环境监测系统":
  383. this.jurisdiction.hjtf = true
  384. break;
  385. case "防治系统":
  386. this.jurisdiction.fztf = true
  387. break;
  388. case "溯源系统":
  389. this.jurisdiction.sytf = true
  390. break;
  391. case "系统管理":
  392. this.jurisdiction.sbtf = true
  393. break;
  394. case "四情基地":
  395. this.jurisdiction.sqtf = true
  396. break;
  397. case "专家诊断":
  398. this.jurisdiction.zjtf = true
  399. break;
  400. case "灌溉控制系统":
  401. this.jurisdiction.ggtf = true
  402. break;
  403. }
  404. }
  405. },
  406. tabfunction(index) {
  407. if (index == 0) {
  408. uni.navigateTo({
  409. url: "../fourBase/index"
  410. })
  411. } else if (index == 1) {
  412. var that = this
  413. this.show = true
  414. } else if (index == 2) {
  415. uni.navigateTo({
  416. url: "../expertDiagnosis/index",
  417. })
  418. } else if (index == 3) {
  419. uni.navigateTo({
  420. url: "../afterSale/index"
  421. })
  422. }
  423. },
  424. tabequipment(url) {
  425. uni.navigateTo({
  426. url: url
  427. })
  428. },
  429. onok(ev) {
  430. this.path = this.url
  431. console.log(ev)
  432. this.loadTF = true
  433. uni.showLoading({
  434. mask: true,
  435. success: function() {
  436. console.log(999)
  437. }
  438. });
  439. if (this.flag == 2) {
  440. console.log('111')
  441. // pest.pests.insect_discern 虫害
  442. uni.uploadFile({
  443. // url: 'http://114.115.147.140:8002/api/api_gateway?method=base.bases.base_photo', //仅为示例,非真实的接口地址
  444. url: 'https://wx.hnyfwlw.com/api/api_gateway?method=pest.pests.insect_discern', //仅为示例,非真实的接口地址
  445. filePath: ev.path,
  446. name: 'img_file',
  447. formData: {
  448. 'user': 'test'
  449. },
  450. success: (uploadFileRes) => {
  451. console.log(JSON.parse(uploadFileRes.data))
  452. uni.navigateTo({
  453. url: "../disandpests/index?datas=" + uploadFileRes.data + "&path=" + ev.path
  454. })
  455. },
  456. fail(res) {
  457. console.log(res)
  458. }
  459. });
  460. } else if (this.flag == 1) {
  461. //pest.pests.insect_discern病害识别
  462. uni.showLoading({
  463. title: '加载中'
  464. });
  465. uni.uploadFile({
  466. // url: 'http://114.115.147.140:8002/api/api_gateway?method=base.bases.base_photo', //仅为示例,非真实的接口地址
  467. url: 'http://8.136.98.49:8002/api/api_gateway?method=pest.pests.plant_discern', //仅为示例,非真实的接口地址
  468. filePath: ev.path,
  469. name: 'img_file',
  470. formData: {
  471. 'user': 'test'
  472. },
  473. success: (uploadFileRes) => {
  474. console.log(JSON.parse(uploadFileRes.data))
  475. uni.navigateTo({
  476. url: "../disandpests/index?datas=" + uploadFileRes.data + "&path=" + ev
  477. .path
  478. })
  479. }
  480. });
  481. }
  482. this.url = "";
  483. },
  484. oncancle() {
  485. // url设置为空,隐藏控件
  486. this.url = ''
  487. },
  488. confirm() {
  489. this.flag = 1
  490. uni.chooseImage({
  491. count: 1, //默认9
  492. // sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  493. sourceType: ['camera', 'album'], //从相册选择
  494. success: (res) => {
  495. this.url = res.tempFilePaths[0]
  496. }
  497. });
  498. console.log(1)
  499. },
  500. cancel() {
  501. this.flag = 2
  502. uni.chooseImage({
  503. count: 1, //默认9
  504. // sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  505. sourceType: ['camera', 'album'], //从相册选择
  506. success: (res) => {
  507. console.log(1)
  508. this.url = res.tempFilePaths[0]
  509. }
  510. });
  511. },
  512. worm() {
  513. uni.navigateTo({
  514. url:"../expertDiagnosis/wormcase?name=虫情百科",
  515. });
  516. },
  517. virus() {
  518. uni.navigateTo({
  519. url:"../expertDiagnosis/wormcase?name=病害百科",
  520. });
  521. },
  522. introduce(id,title) {
  523. uni.navigateTo({
  524. url:"../expertDiagnosis/introduce?id=" + id + "&title=" + title
  525. })
  526. },
  527. },
  528. onLoad() {
  529. console.log(this.$isneutral)
  530. var time = new Date()
  531. var hours = time.getHours()
  532. if (hours < 12) {
  533. this.hello = "上午好!"
  534. } else {
  535. this.hello = "下午好!"
  536. }
  537. uni.getLocation({
  538. type: 'wgs84 ',
  539. success: (res) => {
  540. console.log(res)
  541. this.getcity(res.longitude, res.latitude)
  542. }
  543. })
  544. this.getUserlogin()
  545. }
  546. }
  547. </script>
  548. <style lang="less">
  549. page {
  550. background-image: url(http://www.hnyfwlw.com:8006/bigdata_app/newindex/bg.png);
  551. background-size: 100%;
  552. background-repeat: no-repeat;
  553. background-color: #F9F9F9;
  554. }
  555. .weather {
  556. display: flex;
  557. width: 85%;
  558. margin: 0 auto;
  559. padding-top: 40rpx;
  560. .weaimg {
  561. width: 296rpx;
  562. height: 296rpx;
  563. }
  564. .weatext {
  565. width: 300rpx;
  566. text-align: center;
  567. font-size: 36rpx;
  568. color: #fff;
  569. padding-top: 60rpx;
  570. margin-left: 60rpx;
  571. .weatext_title {
  572. font-size: 80rpx;
  573. margin-bottom: 30rpx;
  574. }
  575. }
  576. }
  577. .weatherinfo {
  578. display: flex;
  579. background-color: rgba(255, 255, 255, 0.2);
  580. width: 85%;
  581. margin: 60rpx auto;
  582. padding: 30rpx;
  583. justify-content: space-around;
  584. border-radius: 170rpx;
  585. .weatherinfo_item {
  586. text-align: center;
  587. .first_item {
  588. height: 50rpx;
  589. margin-bottom: 10rpx;
  590. color: #fff;
  591. line-height: 50rpx;
  592. }
  593. .weaimg {
  594. width: 50rpx;
  595. height: 50rpx;
  596. }
  597. .textbox {
  598. text-align: center;
  599. color: #fff;
  600. }
  601. }
  602. }
  603. .functionbox {
  604. width: 85%;
  605. margin: 0 auto;
  606. padding: 30rpx;
  607. // box-sizing: border-box;
  608. background-color: #fff;
  609. border-radius: 30rpx;
  610. .functionbox_title {
  611. padding-left: 20rpx;
  612. font-size: 34rpx;
  613. }
  614. .functionbox_text {
  615. display: flex;
  616. justify-content: space-around;
  617. margin-top: 30rpx;
  618. .functionbox_text_item {
  619. text-align: center;
  620. color: #616666;
  621. .itemimg {
  622. width: 60rpx;
  623. height: 60rpx;
  624. margin-bottom: 20rpx;
  625. }
  626. }
  627. }
  628. }
  629. .facilitybox {
  630. width: 90%;
  631. margin: 0 auto;
  632. padding: 30rpx;
  633. .facilitybox_title {
  634. font-size: 34rpx;
  635. // padding-left: 20rpx;
  636. }
  637. .facilitybox_itembox {
  638. display: flex;
  639. // justify-content: space-around;
  640. flex-wrap: wrap;
  641. margin-top: 30rpx;
  642. .facilitybox_item {
  643. width: 25%;
  644. text-align: center;
  645. color: #616666;
  646. margin-bottom: 20rpx;
  647. .itemimg {
  648. width: 100rpx;
  649. height: 100rpx;
  650. margin-bottom: 20rpx;
  651. }
  652. }
  653. }
  654. }
  655. .insectattack {
  656. width: 90%;
  657. margin: 0 auto;
  658. padding: 30rpx;
  659. .insectattack_title {
  660. font-size: 34rpx;
  661. // padding-left: 20rpx;
  662. display: flex;
  663. justify-content: space-between;
  664. .iconbox {
  665. width: 40rpx;
  666. height: 40rpx;
  667. background-color: #cfd6d6;
  668. color: #909696;
  669. border-radius: 40rpx;
  670. line-height: 40rpx;
  671. text-align: center;
  672. font-size: 20rpx;
  673. }
  674. }
  675. .insectattack_listbox {
  676. // padding: 0 20rpx;
  677. overflow-x: auto;
  678. .insectattack_list {
  679. width: 1104rpx;
  680. display: flex;
  681. margin-top: 30rpx;
  682. flex-wrap: wrap;
  683. .list_box {
  684. // background-color: #f00;
  685. background-size: 100% 100%;
  686. width: 246rpx;
  687. height: 324rpx;
  688. margin-right: 30rpx;
  689. border-radius: 20rpx;
  690. position: relative;
  691. .list_boxbg{
  692. width: 100%;
  693. height: 100%;
  694. position: absolute;
  695. top: 0;
  696. left: 0;
  697. z-index: -1;
  698. .list_boxbg_img{
  699. width: 100%;
  700. height: 100%;
  701. }
  702. }
  703. .list_box_xiang {
  704. width: 95%;
  705. margin-top: 0rpx auto;
  706. display: flex;
  707. justify-content: flex-end;
  708. padding-top: 20rpx;
  709. .list_box_xiang_click {
  710. padding: 8rpx 15rpx;
  711. background-color: rgba(0, 0, 0, 0.2);
  712. color: #fff;
  713. font-size: 20rpx;
  714. border-radius: 52rpx;
  715. }
  716. }
  717. .list_box_info {
  718. width: 90%;
  719. margin: 130rpx auto 0;
  720. height: 120rpx;
  721. border-radius: 10rpx;
  722. background-image: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0.44));
  723. padding: 10rpx;
  724. box-sizing: border-box;
  725. .list_box_info_name {
  726. font-weight: 700;
  727. }
  728. .list_box_info_text {
  729. font-size: 18rpx;
  730. overflow: hidden;
  731. text-overflow: ellipsis;
  732. display: -webkit-box;
  733. -webkit-box-orient: vertical;
  734. -webkit-line-clamp: 2;
  735. }
  736. }
  737. }
  738. // .list_box1 {
  739. // background-image: url(../../static/images/newindex/cao.png);
  740. // }
  741. // .list_box2 {
  742. // background-image: url(../../static/images/newindex/yee.jpg);
  743. // }
  744. // .list_box3 {
  745. // background-image: url(../../static/images/newindex/lingc.jpg);
  746. // }
  747. // .list_box4 {
  748. // background-image: url(../../static/images/newindex/ming.png);
  749. // }
  750. // .list_box5 {
  751. // background-image: url(../../static/images/newindex/mai.png);
  752. // }
  753. // .list_box6 {
  754. // background-image: url(../../static/images/newindex/dadou.jpg)
  755. // }
  756. // .list_box7 {
  757. // background-image: url(../../static/images/newindex/yumi.png);
  758. // }
  759. // .list_box8 {
  760. // background-image: url(../../static/images/newindex/dao.png);
  761. // }
  762. }
  763. }
  764. }
  765. .loading {
  766. position: absolute;
  767. top: 0;
  768. left: 0;
  769. z-index: 100;
  770. width: 100%;
  771. height: 100vh;
  772. background-color: rgba(0, 0, 0, 0.5);
  773. display: flex;
  774. justify-content: center;
  775. align-items: center;
  776. }
  777. </style>