index.vue 23 KB

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