index.vue 22 KB

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