index.vue 23 KB

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