index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804
  1. <template>
  2. <view>
  3. <view class="weather">
  4. <image :src="
  5. 'https://webstaticimg.oss-cn-hangzhou.aliyuncs.com/bigdata_app/img/weather/' +
  6. weatherinfo.wea +
  7. '.png'
  8. " mode="" class="weaimg"></image>
  9. <view class="weatext">
  10. <view class="weatext_title">
  11. {{ hello }}
  12. </view>
  13. <view class=""> 欢迎登录云飞智控 </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">
  19. </image>
  20. <view class="textbox">
  21. {{ weatherinfo.district || '-' }}
  22. </view>
  23. </view>
  24. <view class="weatherinfo_item">
  25. <image :src="$imageURL+'/bigdata_app/newindex/wendu.png'" mode="" class="weaimg"></image>
  26. <view class="textbox"> {{ weatherinfo.at || '-' }}℃ </view>
  27. </view>
  28. <view class="weatherinfo_item">
  29. <image :src="$imageURL+'/bigdata_app/newindex/shidu.png'" mode="" class="weaimg"></image>
  30. <view class="textbox"> {{ weatherinfo.ah || '-' }} </view>
  31. </view>
  32. <view class="weatherinfo_item">
  33. <view class="first_item"> PM2.5 </view>
  34. <view class="textbox">
  35. {{ weatherinfo.air_pm25 || '-' }}
  36. </view>
  37. </view>
  38. </view>
  39. <view class="functionbox">
  40. <view class="functionbox_title"> 功能应用 </view>
  41. <view class="functionbox_text">
  42. <view class="functionbox_text_item" v-if="jurisdiction.sqtf" @click="tabfunction(0)">
  43. <image :src="$imageURL+'/bigdata_app/newindex/base.png'" mode="" class="itemimg">
  44. </image>
  45. <view class=""> 四情基地 </view>
  46. </view>
  47. <view class="functionbox_text_item" @click="tabfunction(1)">
  48. <image :src="$imageURL+'/bigdata_app/newindex/worm.png'" mode="" class="itemimg">
  49. </image>
  50. <view class=""> 田间随识 </view>
  51. </view>
  52. <view class="functionbox_text_item" v-if="jurisdiction.zjtf" @click="tabfunction(2)">
  53. <image :src="$imageURL+'/bigdata_app/newindex/knowledge.png'" mode=""
  54. class="itemimg"></image>
  55. <view class=""> 知识百科 </view>
  56. </view>
  57. <view class="functionbox_text_item" @click="tabfunction(3)">
  58. <image :src="$imageURL+'/bigdata_app/newindex/aftersale.png'" mode=""
  59. class="itemimg"></image>
  60. <view class=""> 售后服务 </view>
  61. </view>
  62. </view>
  63. </view>
  64. <view class="facilitybox">
  65. <view class="facilitybox_title"> 系统设备 </view>
  66. <view class="facilitybox_itembox">
  67. <view class="facilitybox_item" v-if="jurisdiction.cbtf" @click="tabequipment('../cb/index/index')">
  68. <image :src="$imageURL+'/bigdata_app/newindex/cb.png'" mode="" class="itemimg">
  69. </image>
  70. <view class=""> 测报系统 </view>
  71. </view>
  72. <view class="facilitybox_item" v-if="jurisdiction.cbyj" @click="tabequipment('../cbqxyj/cbwarn')">
  73. <image :src="$imageURL+'/bigdata_app/newindex/cbyj.png'" mode="" class="itemimg">
  74. </image>
  75. <view class=""> 测报预警 </view>
  76. </view>
  77. <view class="facilitybox_item" v-if="jurisdiction.fztf" @click="tabequipment('../prevention/index')">
  78. <image :src="$imageURL+'/bigdata_app/newindex/fz.png'" mode="" class="itemimg">
  79. </image>
  80. <view class=""> 防治系统 </view>
  81. </view>
  82. <view class="facilitybox_item" v-if="jurisdiction.jktf" @click="tabequipment('../monitor/index')">
  83. <image :src="$imageURL+'/bigdata_app/newindex/jk.png'" mode="" class="itemimg">
  84. </image>
  85. <view class=""> 监控系统 </view>
  86. </view>
  87. <view class="facilitybox_item" v-if="jurisdiction.hjtf" @click="tabequipment('../environment/index')">
  88. <image :src="$imageURL+'/bigdata_app/newindex/hj.png'" mode="" class="itemimg">
  89. </image>
  90. <view class=""> 环境监测 </view>
  91. </view>
  92. <view class="facilitybox_item" v-if="jurisdiction.qxz" @click="tabequipment('../qxzyj/cbwarn', 5)">
  93. <image :src="$imageURL+'/bigdata_app/newindex/qxyj.png'" mode="" class="itemimg">
  94. </image>
  95. <view class=""> 气象预警 </view>
  96. </view>
  97. <view class="facilitybox_item" v-if="jurisdiction.sq" @click="tabequipment('../qxzyj/cbwarn', '15')">
  98. <image :src="$imageURL+'/bigdata_app/newindex/sqyj.png'" mode="" class="itemimg">
  99. </image>
  100. <view class=""> 墒情预警 </view>
  101. </view>
  102. <view class="facilitybox_item" v-if="jurisdiction.ggtf" @click="tabequipment('../irrigate/index')">
  103. <image :src="$imageURL+'/bigdata_app/newindex/guangai.png'" mode="" class="itemimg">
  104. </image>
  105. <view class=""> 智能灌溉 </view>
  106. </view>
  107. <view class="facilitybox_item" v-if="jurisdiction.sbtf"
  108. @click="tabequipment('../equipMange/index/index')">
  109. <image :src="$imageURL+'/bigdata_app/newindex/user.png'" mode="" class="itemimg">
  110. </image>
  111. <view class=""> 用户管理 </view>
  112. </view>
  113. </view>
  114. </view>
  115. <view class="insectattack">
  116. <view class="insectattack_title" @click="worm">
  117. <view class=""> 虫情百科 </view>
  118. <view class="iconbox">
  119. <u-icon name="arrow-right"></u-icon>
  120. </view>
  121. </view>
  122. </view>
  123. <view class="insectattack">
  124. <view class="insectattack_title" @click="virus">
  125. <view class=""> 病害百科 </view>
  126. <view class="iconbox">
  127. <u-icon name="arrow-right"></u-icon>
  128. </view>
  129. </view>
  130. </view>
  131. </view>
  132. </template>
  133. <script>
  134. export default {
  135. data() {
  136. return {
  137. weatherinfo: {
  138. wea: '晴',
  139. },
  140. hello: '',
  141. jurisdiction: {
  142. cbtf: false,
  143. jktf: false,
  144. hjtf: false,
  145. fztf: false,
  146. sytf: false,
  147. sbtf: false,
  148. sqtf: false,
  149. zjtf: false,
  150. ggtf: false,
  151. qxz: false,
  152. sq: false,
  153. cbyj: false,
  154. },
  155. show: false,
  156. url: '',
  157. loadTF: false,
  158. };
  159. },
  160. watch: {
  161. url(news) {
  162. if (news != '') {
  163. uni.pageScrollTo({
  164. scrollTop: 0,
  165. duration: 500,
  166. });
  167. }
  168. },
  169. },
  170. methods: {
  171. moveHandle() {
  172. return;
  173. },
  174. async getcity(lng, lat) {
  175. const res = await this.$myRequest({
  176. url: '/api/api_gateway?method=device.device_manage.weathers',
  177. data: {
  178. lng: lng,
  179. lat: lat,
  180. },
  181. });
  182. // uni.showToast({
  183. // title: JSON.stringify(res[0]),
  184. // duration: 20000,
  185. // icon:'none'
  186. // });
  187. // console.log(res);
  188. this.weatherinfo = res[0];
  189. },
  190. async getUserlogin() {
  191. const res = await this.$myRequest({
  192. url: '/api/api_gateway?method=user.login.user_login_info',
  193. });
  194. // this.jurisdiction = {
  195. // cbtf: false,
  196. // jktf: false,
  197. // hjtf: false,
  198. // fztf: false,
  199. // sytf: false,
  200. // sbtf: false,
  201. // sqtf: false,
  202. // zjtf: false,
  203. // }
  204. uni.setStorage({
  205. key: 'jurisdiction',
  206. data: JSON.stringify(res.children),
  207. });
  208. uni.setStorage({
  209. key: 'myuser_type',
  210. data: JSON.stringify(res.myuser_type),
  211. });
  212. uni.setStorage({
  213. key: 'myuid',
  214. data: JSON.stringify(res.myuid),
  215. });
  216. let QueryPermission = (id) => {
  217. let list = res.children;
  218. for (var i = 0; i < list.length; i++) {
  219. if (list[i].children) {
  220. var data = list[i].children;
  221. for (var j = 0; j < data.length; j++) {
  222. if (data[j].children) {
  223. var item = data[j].children;
  224. for (var k = 0; k < item.length; k++) {
  225. if (item[k].pur_id == id) {
  226. return true;
  227. }
  228. }
  229. }
  230. }
  231. }
  232. }
  233. return false;
  234. };
  235. this.jurisdiction = {
  236. cbtf: false,
  237. jktf: false,
  238. hjtf: false,
  239. fztf: false,
  240. sytf: false,
  241. sbtf: false,
  242. sqtf: false,
  243. zjtf: false,
  244. qxz: QueryPermission(242),
  245. sq: QueryPermission(284),
  246. cbyj: QueryPermission(243),
  247. };
  248. console.log(res.children);
  249. for (var i = 0; i < res.children.length; i++) {
  250. switch (res.children[i].pur_id) {
  251. case 36:
  252. this.jurisdiction.cbtf = true; //"测报系统"
  253. break;
  254. case 42:
  255. this.jurisdiction.jktf = true; //"可视农业"
  256. break;
  257. case 40:
  258. this.jurisdiction.hjtf = true; //"环境监测系统"
  259. break;
  260. case 44:
  261. this.jurisdiction.fztf = true; //"防治系统"
  262. break;
  263. case 58:
  264. this.jurisdiction.sytf = true; //"溯源系统"
  265. break;
  266. case 28:
  267. this.jurisdiction.sbtf = true; //"系统管理"
  268. break;
  269. case 25:
  270. this.jurisdiction.sqtf = true; //"四情基地"
  271. break;
  272. case 124:
  273. this.jurisdiction.zjtf = true; //"专家诊断"
  274. break;
  275. // case "灌溉控制系统":
  276. // this.jurisdiction.sftf = true
  277. // break;
  278. case 202:
  279. this.jurisdiction.ggtf = true; //"灌溉控制系统"
  280. break;
  281. }
  282. }
  283. },
  284. tabfunction(index) {
  285. if (index == 0) {
  286. uni.navigateTo({
  287. url: '../fourBase/index',
  288. });
  289. } else if (index == 1) {
  290. // var that = this
  291. // this.show = true
  292. uni.navigateTo({
  293. url: '/pages/identifyPest/identifyPest',
  294. });
  295. } else if (index == 2) {
  296. uni.navigateTo({
  297. url: '../expertDiagnosis/index',
  298. });
  299. } else if (index == 3) {
  300. uni.navigateTo({
  301. url: '../afterSale/index',
  302. });
  303. }
  304. },
  305. tabequipment(url, type) {
  306. console.log(url);
  307. uni.navigateTo({
  308. url: `${url}${type ? `?typeId=${type}` : ''}`,
  309. });
  310. },
  311. // onok(ev) {
  312. // this.path = this.url;
  313. // console.log(ev);
  314. // this.loadTF = true;
  315. // uni.showLoading({
  316. // mask: true,
  317. // success: function () {
  318. // console.log(999);
  319. // },
  320. // });
  321. // var publiukey = `-----BEGIN PUBLIC KEY-----
  322. // MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC6m92fXUrccS4SoLg4W4jPRNua
  323. // 4BcRk4ldLcqPuQpD2Mds2+hw+Gi+0MUnshF/r/DTcCJgkt7rtoY9EB6/XJ6MFw14
  324. // whhESFie/lZUWRsk8M89Rkr8m5rwmBl+uLAd5LopyshFqKTBXeT2ytHP1JCQLPBO
  325. // 34Fy4/yEz4qEzkzBuwIDAQAB
  326. // -----END PUBLIC KEY-----`;
  327. // var time = +new Date();
  328. // var str2 = 'YuNfEi' + time + 'YuNfEi';
  329. // var pubblicData = jsencrypt.setEncrypt(publiukey, str2);
  330. // if (this.flag == 2) {
  331. // console.log('111');
  332. // // pest.pests.insect_discern 虫害
  333. // uni.uploadFile({
  334. // // url: 'http://114.115.147.140:8002/api/api_gateway?method=base.bases.base_photo', //仅为示例,非真实的接口地址
  335. // url: 'https://wx.hnyfwlw.com/api/api_gateway?method=pest.pests.insect_discern', //仅为示例,非真实的接口地址
  336. // filePath: ev.path,
  337. // name: 'img_file',
  338. // formData: {
  339. // user: 'test',
  340. // sign: pubblicData,
  341. // },
  342. // success: (uploadFileRes) => {
  343. // this.loadTF = false;
  344. // console.log(JSON.parse(uploadFileRes.data));
  345. // uni.navigateTo({
  346. // url:
  347. // '../disandpests/index?datas=' +
  348. // uploadFileRes.data +
  349. // '&path=' +
  350. // ev.path,
  351. // });
  352. // },
  353. // fail(res) {
  354. // console.log(res);
  355. // },
  356. // });
  357. // } else if (this.flag == 1) {
  358. // //pest.pests.insect_discern病害识别
  359. // // uni.showLoading({
  360. // // title: '加载中'
  361. // // });
  362. // uni.uploadFile({
  363. // // url: 'http://114.115.147.140:8002/api/api_gateway?method=base.bases.base_photo', //仅为示例,非真实的接口地址
  364. // url: 'https://wx.hnyfwlw.com/api/api_gateway?method=pest.pests.plant_discern', //仅为示例,非真实的接口地址
  365. // filePath: ev.path,
  366. // name: 'img_file',
  367. // formData: {
  368. // user: 'test',
  369. // sign: pubblicData,
  370. // },
  371. // success: (uploadFileRes) => {
  372. // this.loadTF = false;
  373. // console.log(JSON.parse(uploadFileRes.data));
  374. // uni.navigateTo({
  375. // url:
  376. // '../disandpests/index?datas=' +
  377. // uploadFileRes.data +
  378. // '&path=' +
  379. // ev.path,
  380. // });
  381. // },
  382. // });
  383. // }
  384. // this.url = '';
  385. // },
  386. // oncancle() {
  387. // // url设置为空,隐藏控件
  388. // this.url = '';
  389. // },
  390. // confirm() {
  391. // this.flag = 1;
  392. // uni.chooseImage({
  393. // count: 1, //默认9
  394. // // sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  395. // sourceType: ['camera', 'album'], //从相册选择
  396. // success: (res) => {
  397. // this.url = res.tempFilePaths[0];
  398. // },
  399. // });
  400. // console.log(1);
  401. // },
  402. // cancel() {
  403. // this.flag = 2;
  404. // uni.chooseImage({
  405. // count: 1, //默认9
  406. // // sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  407. // sourceType: ['camera', 'album'], //从相册选择
  408. // success: (res) => {
  409. // console.log(1);
  410. // this.url = res.tempFilePaths[0];
  411. // },
  412. // });
  413. // },
  414. worm() {
  415. uni.navigateTo({
  416. url: '../expertDiagnosis/wormcase?name=虫情百科',
  417. });
  418. },
  419. virus() {
  420. uni.navigateTo({
  421. url: '../expertDiagnosis/wormcase?name=病害百科',
  422. });
  423. },
  424. introduce(id, title) {
  425. uni.navigateTo({
  426. url: '../expertDiagnosis/introduce?id=' + id + '&title=' + title,
  427. });
  428. },
  429. checkLocationPermission(isTest) {
  430. let session_key = uni.getStorageSync('session_key');
  431. let _this = this;
  432. // 当用户登录之后再弹位置权限框
  433. if (session_key) {
  434. uni.getSetting({
  435. success(res) {
  436. console.log(res);
  437. if (res.authSetting['scope.userLocation']) {
  438. uni.getLocation({
  439. type: 'wgs84 ',
  440. success: (res) => {
  441. // console.log(res, 'loacation');
  442. // uni.showToast({
  443. // title: `${res.longitude}, ${res.longitude}`,
  444. // duration: 20000,
  445. // icon:'none'
  446. // });
  447. _this.getcity(res.longitude, res.latitude);
  448. },
  449. fail(e) {
  450. // uni.showModal({
  451. // title: '提示',
  452. // content: JSON.stringify(e),
  453. // success: function (res) {
  454. // if (res.confirm) {
  455. // console.log('用户点击确定');
  456. // } else if (res.cancel) {
  457. // console.log('用户点击取消');
  458. // }
  459. // }
  460. // });
  461. uni.showToast({
  462. title: '系统未开启定位或未授权微信定位',
  463. duration: 5000,
  464. icon: 'none'
  465. });
  466. }
  467. });
  468. } else {
  469. uni.authorize({
  470. scope: 'scope.userLocation',
  471. success: () => {
  472. // 用户已授权
  473. uni.getLocation({
  474. type: 'wgs84 ',
  475. success: (res) => {
  476. console.log(res, 'loacation');
  477. _this.getcity(res.longitude, res.latitude);
  478. },
  479. });
  480. },
  481. fail: () => {
  482. // 用户拒绝授权,可引导用户至设置页手动开启
  483. if (isTest) {
  484. uni.showModal({
  485. title: '需要授权',
  486. content: '天气功能需要获取您的地理位置,请在设置中打开位置权限',
  487. success: (modalRes) => {
  488. if (modalRes.confirm) {
  489. uni.openSetting()
  490. } else {
  491. uni.showToast({
  492. title: '您拒绝了授权,将无法查看天气信息',
  493. duration: 2000,
  494. icon: 'none'
  495. });
  496. }
  497. },
  498. })
  499. }
  500. },
  501. })
  502. }
  503. }
  504. })
  505. }
  506. }
  507. },
  508. onLoad() {
  509. console.log(this.$isneutral);
  510. var time = new Date();
  511. var hours = time.getHours();
  512. if (hours < 12) {
  513. this.hello = '上午好!';
  514. } else {
  515. this.hello = '下午好!';
  516. }
  517. this.getUserlogin();
  518. this.checkLocationPermission(true); // 首次加载弹框提醒
  519. },
  520. onShow() {
  521. this.loadTF = false;
  522. this.getUserlogin();
  523. this.checkLocationPermission();
  524. },
  525. };
  526. </script>
  527. <style lang="less">
  528. page {
  529. background-image: url(https://s3.hnyfwlw.com/webstaticimg/bigdata_app/newindex/bg.png);
  530. background-size: 100%;
  531. background-repeat: no-repeat;
  532. background-color: #f9f9f9;
  533. }
  534. .weather {
  535. display: flex;
  536. width: 85%;
  537. margin: 0 auto;
  538. padding-top: 40rpx;
  539. .weaimg {
  540. width: 296rpx;
  541. height: 296rpx;
  542. }
  543. .weatext {
  544. width: 300rpx;
  545. text-align: center;
  546. font-size: 36rpx;
  547. color: #fff;
  548. padding-top: 60rpx;
  549. margin-left: 60rpx;
  550. .weatext_title {
  551. font-size: 80rpx;
  552. margin-bottom: 30rpx;
  553. }
  554. }
  555. }
  556. .weatherinfo {
  557. display: flex;
  558. background-color: rgba(255, 255, 255, 0.2);
  559. width: 85%;
  560. margin: 60rpx auto;
  561. padding: 30rpx;
  562. justify-content: space-around;
  563. border-radius: 170rpx;
  564. .weatherinfo_item {
  565. text-align: center;
  566. .first_item {
  567. height: 50rpx;
  568. margin-bottom: 10rpx;
  569. color: #fff;
  570. line-height: 50rpx;
  571. }
  572. .weaimg {
  573. width: 50rpx;
  574. height: 50rpx;
  575. }
  576. .textbox {
  577. text-align: center;
  578. color: #fff;
  579. }
  580. }
  581. }
  582. .functionbox {
  583. width: 85%;
  584. margin: 0 auto;
  585. padding: 30rpx;
  586. // box-sizing: border-box;
  587. background-color: #fff;
  588. border-radius: 30rpx;
  589. .functionbox_title {
  590. padding-left: 20rpx;
  591. font-size: 34rpx;
  592. }
  593. .functionbox_text {
  594. display: flex;
  595. justify-content: space-around;
  596. margin-top: 30rpx;
  597. .functionbox_text_item {
  598. text-align: center;
  599. color: #616666;
  600. .itemimg {
  601. width: 60rpx;
  602. height: 60rpx;
  603. margin-bottom: 20rpx;
  604. }
  605. }
  606. }
  607. }
  608. .facilitybox {
  609. width: 90%;
  610. margin: 0 auto;
  611. padding: 30rpx;
  612. .facilitybox_title {
  613. font-size: 34rpx;
  614. // padding-left: 20rpx;
  615. }
  616. .facilitybox_itembox {
  617. display: flex;
  618. // justify-content: space-around;
  619. flex-wrap: wrap;
  620. margin-top: 30rpx;
  621. .facilitybox_item {
  622. width: 25%;
  623. text-align: center;
  624. color: #616666;
  625. margin-bottom: 20rpx;
  626. .itemimg {
  627. width: 100rpx;
  628. height: 100rpx;
  629. margin-bottom: 20rpx;
  630. }
  631. }
  632. }
  633. }
  634. .insectattack {
  635. width: 90%;
  636. margin: 0 auto;
  637. padding: 30rpx;
  638. .insectattack_title {
  639. font-size: 34rpx;
  640. // padding-left: 20rpx;
  641. display: flex;
  642. justify-content: space-between;
  643. .iconbox {
  644. width: 40rpx;
  645. height: 40rpx;
  646. background-color: #cfd6d6;
  647. color: #909696;
  648. border-radius: 40rpx;
  649. line-height: 40rpx;
  650. text-align: center;
  651. font-size: 20rpx;
  652. }
  653. }
  654. .insectattack_listbox {
  655. // padding: 0 20rpx;
  656. overflow-x: auto;
  657. .insectattack_list {
  658. width: 1104rpx;
  659. display: flex;
  660. margin-top: 30rpx;
  661. flex-wrap: wrap;
  662. .list_box {
  663. // background-color: #f00;
  664. background-size: 100% 100%;
  665. width: 246rpx;
  666. height: 324rpx;
  667. margin-right: 30rpx;
  668. border-radius: 20rpx;
  669. position: relative;
  670. .list_boxbg {
  671. width: 100%;
  672. height: 100%;
  673. position: absolute;
  674. top: 0;
  675. left: 0;
  676. z-index: -1;
  677. .list_boxbg_img {
  678. width: 100%;
  679. height: 100%;
  680. }
  681. }
  682. .list_box_xiang {
  683. width: 95%;
  684. margin-top: 0rpx auto;
  685. display: flex;
  686. justify-content: flex-end;
  687. padding-top: 20rpx;
  688. .list_box_xiang_click {
  689. padding: 8rpx 15rpx;
  690. background-color: rgba(0, 0, 0, 0.2);
  691. color: #fff;
  692. font-size: 20rpx;
  693. border-radius: 52rpx;
  694. }
  695. }
  696. .list_box_info {
  697. width: 90%;
  698. margin: 130rpx auto 0;
  699. height: 120rpx;
  700. border-radius: 10rpx;
  701. background-image: linear-gradient(to right,
  702. #ffffff,
  703. rgba(255, 255, 255, 0.44));
  704. padding: 10rpx;
  705. box-sizing: border-box;
  706. .list_box_info_name {
  707. font-weight: 700;
  708. }
  709. .list_box_info_text {
  710. font-size: 18rpx;
  711. overflow: hidden;
  712. text-overflow: ellipsis;
  713. display: -webkit-box;
  714. -webkit-box-orient: vertical;
  715. -webkit-line-clamp: 2;
  716. }
  717. }
  718. }
  719. // .list_box1 {
  720. // background-image: url(../../static/images/newindex/cao.png);
  721. // }
  722. // .list_box2 {
  723. // background-image: url(../../static/images/newindex/yee.jpg);
  724. // }
  725. // .list_box3 {
  726. // background-image: url(../../static/images/newindex/lingc.jpg);
  727. // }
  728. // .list_box4 {
  729. // background-image: url(../../static/images/newindex/ming.png);
  730. // }
  731. // .list_box5 {
  732. // background-image: url(../../static/images/newindex/mai.png);
  733. // }
  734. // .list_box6 {
  735. // background-image: url(../../static/images/newindex/dadou.jpg)
  736. // }
  737. // .list_box7 {
  738. // background-image: url(../../static/images/newindex/yumi.png);
  739. // }
  740. // .list_box8 {
  741. // background-image: url(../../static/images/newindex/dao.png);
  742. // }
  743. }
  744. }
  745. }
  746. .loading {
  747. position: absolute;
  748. top: 0;
  749. left: 0;
  750. z-index: 100;
  751. width: 100%;
  752. height: 100vh;
  753. background-color: rgba(0, 0, 0, 0.5);
  754. display: flex;
  755. justify-content: center;
  756. align-items: center;
  757. }
  758. </style>