index.vue 20 KB

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