index.vue 26 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006
  1. <template>
  2. <view class="content">
  3. <top-title
  4. :titleValue="title"
  5. :pageScroll="scrollVal"
  6. style="width: 100%"
  7. ></top-title>
  8. <view class="page-section-spacing" style="width: 100%; position: relative">
  9. <swiper
  10. class="swiper"
  11. indicator-dots="false"
  12. autoplay="true"
  13. duration="500"
  14. style="height: 440rpx"
  15. @change="swiperChange"
  16. >
  17. <swiper-item
  18. v-for="(item, index) in swiperList"
  19. :key="index"
  20. class="swiper-content"
  21. >
  22. <image
  23. :src="item.pic_path"
  24. mode="aspectFill"
  25. style="width: 100%; height: 100%"
  26. ></image>
  27. </swiper-item>
  28. </swiper>
  29. <image src="../../static/Intersect.svg" class="groove-img"></image>
  30. <view class="rowDot">
  31. <view v-for="(item, index) in swiperList" :key="index" class="dots">
  32. <view
  33. :class="['dot', index === swiperCurrent ? 'active' : '']"
  34. ></view>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="page-nav-box">
  39. <navigator
  40. v-for="(item, index) in navList"
  41. :key="index"
  42. :url="item.path"
  43. open-type="navigate"
  44. class="nav-content"
  45. >
  46. <image
  47. :src="item.url"
  48. mode="aspectFit"
  49. style="width: 38px; height: 38px"
  50. ></image>
  51. <view>{{ item.content }}</view>
  52. </navigator>
  53. </view>
  54. <view class="notice-box">
  55. <view class="notice-title-box">
  56. <view class="notice-font">通知公告</view>
  57. <view class="notice-more-font">
  58. <view style="margin-right: 8rpx; font-size: 22rpx" @click="goNotice"
  59. >更多</view
  60. >
  61. <image
  62. src="../../static/right-arrow-blue.png"
  63. mode="aspectFill"
  64. style="width: 12rpx; height: 16rpx"
  65. ></image>
  66. </view>
  67. </view>
  68. <view
  69. class="notice-content-box"
  70. style="justify-content: flex-start"
  71. v-for="(item, index) in noticeList"
  72. :key="index"
  73. @click="goNoticeDeatil(item.id)"
  74. >
  75. <image
  76. :src="item.icon"
  77. mode="aspectFit"
  78. style="width: 34px; height: 34px"
  79. ></image>
  80. <view class="notice-content display-around-column" style="width: 88%">
  81. <view class="notice-content-font" style="margin-left: 40rpx">{{
  82. item.title
  83. }}</view>
  84. <view class="notice-content-time" style="margin-left: 40rpx">{{
  85. item.publish_time | globalTime
  86. }}</view>
  87. </view>
  88. </view>
  89. </view>
  90. <view class="notice-box" style="margin-top: 40rpx">
  91. <view class="notice-title-box">
  92. <view class="notice-font">推荐园区</view>
  93. <navigator
  94. class="notice-more-font"
  95. url="../park/index"
  96. open-type="navigate"
  97. >
  98. <view style="margin-right: 8rpx; font-size: 22rpx">更多</view>
  99. <image
  100. src="/static/right-arrow-blue.png"
  101. mode="aspectFill"
  102. style="width: 12rpx; height: 16rpx"
  103. ></image>
  104. </navigator>
  105. </view>
  106. <view
  107. class="display-flex-start"
  108. style="overflow-x: scroll; overflow-y: hidden; position: relative"
  109. >
  110. <view
  111. class="park-box"
  112. v-for="item in parkList"
  113. :key="item.id"
  114. @click="goParkDetailFn(item.id)"
  115. >
  116. <image
  117. :src="item.park_pics[0].pic_path || '/static/park/1.png'"
  118. mode="aspectFill"
  119. style="
  120. width: 452rpx;
  121. height: 250rpx;
  122. border-radius: 32rpx 32rpx 0 0;
  123. "
  124. ></image>
  125. <view class="park-content-box">
  126. <view class="park-title">{{ item.name }}</view>
  127. <view class="park-address display-flex-start">
  128. <view class="display-flex-start" style="margin-right: 10rpx"
  129. ><image
  130. src="/static/park/park-time.png"
  131. mode="aspectFill"
  132. class="park-title-img"
  133. ></image
  134. >{{ item.addtime | globalTime }}建成</view
  135. >
  136. <view class="display-flex-start"
  137. ><image
  138. src="/static/park/park-name.png"
  139. mode="aspectFill"
  140. class="park-title-img"
  141. ></image
  142. >{{ item.manager }}</view
  143. >
  144. </view>
  145. <view class="park-footer-box display-between">
  146. <view class="display-between-column width-30">
  147. <view class="display-flex-start"
  148. ><image
  149. src="/static/park/park-num.png"
  150. mode="aspectFill"
  151. class="park-footer-img"
  152. ></image
  153. >{{ item.company_count }}</view
  154. >
  155. <view class="park-footer-font">企业数量</view>
  156. </view>
  157. <view class="display-between-column width-30">
  158. <view class="display-flex-start">
  159. <image
  160. src="/static/park/park-area.png"
  161. mode="aspectFill"
  162. class="park-footer-img"
  163. ></image>
  164. {{ item.cover_area
  165. }}<text style="font-size: 12rpx">亩</text></view
  166. >
  167. <view class="park-footer-font">占地面积</view>
  168. </view>
  169. <view class="display-between-column width-30">
  170. <view class="display-flex-start">
  171. <image
  172. src="/static/park/park-area2.png"
  173. mode="aspectFill"
  174. class="park-footer-img"
  175. ></image>
  176. {{ item.building_area
  177. }}<text style="font-size: 12rpx">万㎡</text></view
  178. >
  179. <view class="park-footer-font">建设面积</view>
  180. </view>
  181. </view>
  182. </view>
  183. </view>
  184. </view>
  185. </view>
  186. <view class="notice-box" style="margin-top: 20rpx">
  187. <view class="notice-title-box">
  188. <view class="notice-font">招商专区</view>
  189. <view class="notice-more-font">
  190. <view style="margin-right: 8rpx; font-size: 22rpx" @click="goAttract"
  191. >更多</view
  192. >
  193. <image
  194. src="/static/right-arrow-blue.png"
  195. mode="aspectFill"
  196. style="width: 12rpx; height: 16rpx"
  197. ></image>
  198. </view>
  199. </view>
  200. <view
  201. class="notice-content-box"
  202. v-for="(item, index) in attractList"
  203. :key="index"
  204. style="justify-content: start; position: relative"
  205. @click="goAttractDeatil(item.id, item.time_type)"
  206. >
  207. <view class="maskModal" v-if="item.time_type == 0">
  208. <text>敬请期待</text>
  209. </view>
  210. <image
  211. :src="item.pic_url"
  212. mode="aspectFill"
  213. style="
  214. width: 112rpx;
  215. height: 112rpx;
  216. margin-right: 20rpx;
  217. border-radius: 10rpx;
  218. "
  219. ></image>
  220. <view class="notice-content" style="width: 75%">
  221. <view class="notice-content-font">{{ item.title }}</view>
  222. <view class="attract-content">{{ item.desc }}</view>
  223. <view
  224. class="notice-content-time"
  225. style="margin-top: 20rpx; font-size: 20rpx"
  226. v-if="item.time_type == 1"
  227. >{{ item.time | globalTime }}</view
  228. >
  229. <view
  230. class="notice-content-time"
  231. style="margin-top: 20rpx; font-size: 20rpx"
  232. v-else
  233. >时间:待定</view
  234. >
  235. </view>
  236. </view>
  237. </view>
  238. <view class="notice-box" style="margin-top: 20rpx">
  239. <view class="notice-title-box">
  240. <view class="notice-font">区内活动</view>
  241. <view class="notice-more-font">
  242. <view style="margin-right: 8rpx; font-size: 22rpx" @click="goActive"
  243. >更多</view
  244. >
  245. <image
  246. src="/static/right-arrow-blue.png"
  247. mode="aspectFill"
  248. style="width: 12rpx; height: 16rpx"
  249. ></image>
  250. </view>
  251. </view>
  252. <view
  253. class="notice-content-box"
  254. v-for="(item, index) in activityList"
  255. :key="index"
  256. style="justify-content: start; padding: 30rpx 0 30rpx 30rpx"
  257. @click="goActiveDeatil(item.id)"
  258. >
  259. <image
  260. :src="item.url"
  261. style="
  262. width: 112rpx;
  263. height: 112rpx;
  264. margin-right: 20rpx;
  265. border-radius: 10%;
  266. "
  267. ></image>
  268. <view class="notice-content" style="width: 75%">
  269. <view class="notice-content-font">{{
  270. item.title
  271. }}</view>
  272. <view class="display-flex-start" style="margin-top: 20rpx">
  273. <view
  274. class="notice-content-time display-flex-start color-a7adba"
  275. v-show="item.isOnline"
  276. ><view class="online-box"></view>线上</view
  277. >
  278. <view
  279. class="notice-content-time display-flex-start color-a7adba"
  280. v-show="!item.isOnline"
  281. ><view class="offline-box"></view>线下</view
  282. >
  283. <view class="notice-content-time color-a7adba">{{
  284. item.department
  285. }}</view>
  286. <view class="notice-content-time color-a7adba">{{
  287. item.time
  288. }}</view>
  289. </view>
  290. <view class="display-flex-end" style="margin-top: 20rpx">
  291. <view class="notice-content-time">浏览 {{ item.browe }}</view>
  292. <view class="notice-content-time">分享 {{ item.share }}</view>
  293. </view>
  294. </view>
  295. </view>
  296. </view>
  297. <foot-tabs :selectedIndex="0" :isShow="footFlag"></foot-tabs>
  298. </view>
  299. </template>
  300. <script>
  301. import md5 from "@/common/md5.js";
  302. import topTitle from "@/components/top-title/top-title.vue";
  303. import footTabs from "@/components/foot-tabs/footTabs.vue";
  304. export default {
  305. components: {
  306. "foot-tabs": footTabs,
  307. "top-title": topTitle,
  308. },
  309. data() {
  310. return {
  311. title: "Air企通",
  312. scrollVal: Number,
  313. footFlag: true,
  314. swiperList: [
  315. {
  316. img: "/static/swiper/swiper1.jpg",
  317. },
  318. {
  319. img: "/static/swiper/swiper2.jpg",
  320. },
  321. ],
  322. swiperCurrent: 0,
  323. navList: [
  324. {
  325. url: "/static/navList/appeal.png",
  326. path: "/pages/appeal/index",
  327. content: "提诉求",
  328. },
  329. {
  330. url: "/static/navList/policy.png",
  331. path: "/pages/policy/index",
  332. content: "搜政策",
  333. },
  334. {
  335. url: "/static/navList/park.png",
  336. path: "/pages/park/index",
  337. content: "找园区",
  338. },
  339. {
  340. url: "/static/navList/activity.png",
  341. path: "/pages/activity/index",
  342. content: "找活动",
  343. },
  344. {
  345. url: "/static/navList/supply.png",
  346. path: "/pages/supply/index",
  347. content: "发供需",
  348. },
  349. {
  350. url: "/static/navList/enterprise.png",
  351. path: "/pages/enterprise/index",
  352. content: "查企业",
  353. },
  354. {
  355. url: "/static/navList/service.png",
  356. path: "/pages/service/index",
  357. content: "找服务",
  358. },
  359. ],
  360. noticeList: [
  361. // {
  362. // url: "/static/navList/policy-icon.png",
  363. // title: "政策速览 | 小微企业、个体工商户税费...",
  364. // time: "2021-08-05",
  365. // },
  366. // {
  367. // url: "/static/navList/activity-icon.png",
  368. // title: "活动预告 | 想了解跨境电商?8月5日带...",
  369. // time: "2021-08-04",
  370. // },
  371. // {
  372. // url: "/static/navList/notice-icon.png",
  373. // title: "通知公告 | 2022年首批次重点新材料扶...",
  374. // time: "2021-08-03",
  375. // },
  376. ],
  377. parkList: [
  378. // {
  379. // url:'/static/park/1.png',
  380. // title:'华潮科技产业园',
  381. // time:'2015-10-25',
  382. // num:484,
  383. // area1:1.72,
  384. // area2:1.01
  385. // },
  386. // {
  387. // url:'/static/park/1.png',
  388. // title:'华潮科技产业园',
  389. // time:'2015-10-25',
  390. // num:484,
  391. // area1:1.72,
  392. // area2:1.01
  393. // },
  394. // {
  395. // url:'/static/park/1.png',
  396. // title:'华潮科技产业园',
  397. // time:'2015-10-25',
  398. // num:484,
  399. // area1:1.72,
  400. // area2:1.01
  401. // },
  402. ],
  403. attractList: [
  404. // {
  405. // url: "/static/attract/1.png",
  406. // title: "工业互联网",
  407. // subtitle: "工业互联网是全球工业系统与高级计算、分析、...",
  408. // time: "2021-09-05",
  409. // },
  410. // {
  411. // url: "/static/attract/2.png",
  412. // title: "生产性服务业",
  413. // subtitle: "生产性服务业是指为保持工业生产过程的连续性...",
  414. // time: "2021-09-05",
  415. // },
  416. ],
  417. activityList: [
  418. // {
  419. // url: "/static/activity/2.png",
  420. // title: "400场讲座,200门课程,免费送上门!就等你申请",
  421. // isOnline: 1,
  422. // department: "区人力资源局",
  423. // time: "2021-09-05",
  424. // browe: "322",
  425. // share: "2",
  426. // },
  427. // {
  428. // url: "/static/activity/1.png",
  429. // title: "智能制造商标品牌培育系列培训活动",
  430. // isOnline: 0,
  431. // department: "市场监督管理局",
  432. // time: "2021-09-05",
  433. // browe: "322",
  434. // share: "2",
  435. // },
  436. ],
  437. };
  438. },
  439. onShow() {
  440. uni.hideTabBar({});
  441. this.getActive();
  442. },
  443. onLoad() {
  444. uni.showLoading({
  445. title: "加载中",
  446. mask: true,
  447. });
  448. this.getSwiperList();
  449. this.getPark();
  450. this.getNotice();
  451. this.getAttract(); //招商接口
  452. },
  453. onShareAppMessage() {
  454. url: "/pages/index/index";
  455. },
  456. methods: {
  457. swiperChange(e) {
  458. this.swiperCurrent = e.detail.current;
  459. },
  460. getSwiperList() {
  461. let md5Sign = md5(
  462. "method=" +
  463. "common" +
  464. "&timestamp=" +
  465. getApp().globalData.globalTimestamp +
  466. "&secret=" +
  467. getApp().globalData.secret
  468. );
  469. let url =
  470. getApp().globalData.shareUrl +
  471. "api/api.php" +
  472. "?method=common&source=main_pics&action=list&timestamp=" +
  473. getApp().globalData.globalTimestamp +
  474. "&sign=" +
  475. md5Sign;
  476. uni.request({
  477. url: url,
  478. method: "POST",
  479. header: {
  480. "content-type": "application/x-www-form-urlencoded",
  481. },
  482. data: {
  483. order_by: "weight desc",
  484. s_status: 1,
  485. page: 1,
  486. page_size: 7,
  487. },
  488. success: (res) => {
  489. console.log(res);
  490. if (res.data.code === 200) {
  491. res.data.data.list.forEach((item) => {
  492. item.pic_path = getApp().globalData.shareUrl + item.pic_path;
  493. });
  494. this.swiperList = res.data.data.list;
  495. }
  496. },
  497. fail: () => {
  498. console.log("连接失败");
  499. },
  500. });
  501. },
  502. getPark() {
  503. let md5Sign = md5(
  504. "method=" +
  505. "park" +
  506. "&timestamp=" +
  507. getApp().globalData.globalTimestamp +
  508. "&secret=" +
  509. getApp().globalData.secret
  510. );
  511. let url =
  512. getApp().globalData.shareUrl +
  513. "api/api.php" +
  514. "?method=park&source=park&action=list&timestamp=" +
  515. getApp().globalData.globalTimestamp +
  516. "&sign=" +
  517. md5Sign;
  518. uni.request({
  519. url: url,
  520. method: "POST",
  521. header: {
  522. "content-type": "application/x-www-form-urlencoded",
  523. },
  524. data: {
  525. order_by: "weight desc",
  526. s_show: 1,
  527. page: 1,
  528. page_size: 5,
  529. },
  530. success: (res) => {
  531. if (res.data.code === 200) {
  532. res.data.data.list.forEach((item) => {
  533. if (item.park_pics.length) {
  534. item.park_pics[0].pic_path =
  535. getApp().globalData.shareUrl + item.park_pics[0].pic_path;
  536. }
  537. });
  538. this.parkList = res.data.data.list;
  539. }
  540. },
  541. fail: () => {
  542. console.log("连接失败");
  543. },
  544. });
  545. },
  546. getNotice() {
  547. let md5Sign = md5(
  548. "method=" +
  549. "common" +
  550. "&timestamp=" +
  551. getApp().globalData.globalTimestamp +
  552. "&secret=" +
  553. getApp().globalData.secret
  554. );
  555. let url =
  556. getApp().globalData.shareUrl +
  557. "api/api.php" +
  558. "?method=common&source=notice&action=list&timestamp=" +
  559. getApp().globalData.globalTimestamp +
  560. "&sign=" +
  561. md5Sign;
  562. uni.request({
  563. url: url,
  564. method: "POST",
  565. header: {
  566. "content-type": "application/x-www-form-urlencoded",
  567. },
  568. data: {
  569. // order_by: "weight desc",
  570. // s_show: 1,
  571. page: 1,
  572. page_size:3,
  573. },
  574. success: (res) => {
  575. if (res.data.code === 200) {
  576. // console.log(res.data.data.list);
  577. this.noticeList = res.data.data.list.map((item) => {
  578. switch (item.type) {
  579. case "1":
  580. item.icon = "/static/navList/activity-icon.png";
  581. item.title = "活动预告 | " + item.title;
  582. break;
  583. case "2":
  584. item.icon = "/static/navList/policy-icon.png";
  585. item.title = "政策速览 | " + item.title;
  586. break;
  587. case "3":
  588. item.icon = "/static/navList/notice-icon.png";
  589. item.title = "通知公告 | " + item.title;
  590. break;
  591. }
  592. return item;
  593. });
  594. }
  595. console.log(this.noticeList)
  596. },
  597. fail: () => {
  598. console.log("连接失败");
  599. },
  600. });
  601. },
  602. getAttract() {
  603. let md5Sign = md5(
  604. "method=" +
  605. "common" +
  606. "&timestamp=" +
  607. getApp().globalData.globalTimestamp +
  608. "&secret=" +
  609. getApp().globalData.secret
  610. );
  611. let url =
  612. getApp().globalData.shareUrl +
  613. "api/api.php" +
  614. "?method=common&source=business&action=list&timestamp=" +
  615. getApp().globalData.globalTimestamp +
  616. "&sign=" +
  617. md5Sign;
  618. let postData = {
  619. // page: 1,
  620. // page_size: 4,
  621. };
  622. uni.request({
  623. url: url,
  624. method: "POST",
  625. header: {
  626. "content-type": "application/x-www-form-urlencoded",
  627. },
  628. data: postData,
  629. success: (res) => {
  630. if (res.data.code === 200) {
  631. res.data.data.list.forEach((item) => {
  632. item.pic_url = getApp().globalData.shareUrl + item.pic_url;
  633. });
  634. this.attractList = res.data.data.list.filter(
  635. (item) => item.show != 0
  636. );
  637. this.attractList = this.attractList.length > 2 ? this.attractList.slice(0,2) : this.attractList
  638. }
  639. },
  640. fail: () => {
  641. console.log("连接失败");
  642. },
  643. });
  644. },
  645. getActive() {
  646. let md5Sign = md5(
  647. "method=" +
  648. "common" +
  649. "&timestamp=" +
  650. getApp().globalData.globalTimestamp +
  651. "&secret=" +
  652. getApp().globalData.secret
  653. );
  654. let url =
  655. getApp().globalData.shareUrl +
  656. "api/api.php" +
  657. "?method=common&source=activity&action=list&timestamp=" +
  658. getApp().globalData.globalTimestamp +
  659. "&sign=" +
  660. md5Sign;
  661. let postData = {
  662. page: 1,
  663. page_size: 2,
  664. s_cancel : 0
  665. };
  666. uni.request({
  667. url: url,
  668. method: "POST",
  669. header: {
  670. "content-type": "application/x-www-form-urlencoded",
  671. },
  672. data: postData,
  673. success: (res) => {
  674. console.log(res);
  675. if (res.data.code === 200) {
  676. let list = res.data.data.list;
  677. this.activityList = list.map((item) => {
  678. /*
  679. url: "/static/activity/2.png",
  680. title: "智能制造商标品牌培育系列培训活动",
  681. way: "市场监督管理局",
  682. date: "2021-08-07",
  683. read: 322,
  684. share: 1,
  685. type: 0, //0线下
  686. */
  687. let ob = {
  688. url: "",
  689. title: "",
  690. department: "",
  691. time: "",
  692. browe: 0,
  693. share: 0,
  694. type: "",
  695. id: "",
  696. };
  697. ob.url = getApp().globalData.shareUrl + item.pic_url;
  698. ob.title = item.name;
  699. ob.department = item.sponsor;
  700. ob.time = this.$options.filters["globalTime"](item.start_time);
  701. ob.browe =
  702. parseInt(item.base_read_count) + parseInt(item.real_read_count);
  703. ob.share =
  704. parseInt(item.real_repost_count) +
  705. parseInt(item.base_repost_count);
  706. ob.isOnline = item.type == 1 ? 1 : 0;
  707. ob.id = item.id;
  708. return ob;
  709. });
  710. }
  711. },
  712. fail: () => {
  713. console.log("连接失败");
  714. },
  715. });
  716. },
  717. goParkDetailFn(id) {
  718. uni.navigateTo({
  719. url: "/pages/park/park_deatil?id=" + id,
  720. });
  721. },
  722. goNoticeDeatil(id) {
  723. uni.navigateTo({
  724. url: "/pages/notice/notice_deatil?id=" + id,
  725. });
  726. },
  727. goAttractDeatil(id, type) {
  728. if (type == "0") return;
  729. uni.navigateTo({
  730. url: "/pages/attract/attract_deatil?id=" + id,
  731. });
  732. },
  733. goActiveDeatil(id) {
  734. uni.navigateTo({
  735. url: "/pages/activity/activity_deatil?id=" + id,
  736. });
  737. },
  738. goAttract() {
  739. uni.navigateTo({
  740. url: "/pages/attract/index",
  741. });
  742. },
  743. goNotice() {
  744. uni.navigateTo({
  745. url: "/pages/notice/index",
  746. });
  747. },
  748. goActive() {
  749. uni.navigateTo({
  750. url: "/pages/activity/index",
  751. });
  752. },
  753. },
  754. onPageScroll(e) {
  755. this.scrollVal = e.scrollTop;
  756. if (e.scrollTop < uni.getSystemInfoSync().windowHeight) {
  757. this.footFlag = true;
  758. }
  759. },
  760. onReachBottom() {
  761. this.footFlag = false;
  762. },
  763. };
  764. </script>
  765. <style>
  766. .unclick {
  767. background-color: #bfbfbf !important;
  768. }
  769. .content {
  770. display: flex;
  771. flex-direction: column;
  772. align-items: center;
  773. justify-content: center;
  774. position: relative;
  775. }
  776. .logo {
  777. height: 200rpx;
  778. width: 200rpx;
  779. margin-top: 200rpx;
  780. margin-left: auto;
  781. margin-right: auto;
  782. margin-bottom: 50rpx;
  783. }
  784. .text-area {
  785. display: flex;
  786. justify-content: center;
  787. }
  788. .title {
  789. font-size: 36rpx;
  790. color: #8f8f94;
  791. }
  792. .groove-img {
  793. width: 100%;
  794. height: 100rpx;
  795. bottom: -22rpx;
  796. position: absolute;
  797. }
  798. .rowDot {
  799. display: flex;
  800. position: absolute;
  801. top: 310rpx;
  802. left: 80rpx;
  803. }
  804. .dots {
  805. flex-direction: row;
  806. justify-content: center;
  807. align-items: center;
  808. align-content: center;
  809. }
  810. .dot {
  811. margin-right: 8rpx;
  812. width: 40rpx;
  813. height: 8rpx;
  814. opacity: 1;
  815. border-radius: 6rpx;
  816. background: #fff5f9;
  817. }
  818. .dot.active {
  819. background: #ff4e54;
  820. }
  821. /* .swiper-content { */
  822. /* border-radius: 0 0 10% 10%; */
  823. /* } */
  824. .page-nav-box {
  825. width: 80%;
  826. /* height: 320rpx; */
  827. display: flex;
  828. flex-wrap: wrap;
  829. padding: 20rpx 10rpx 30rpx 10rpx;
  830. box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.1);
  831. border-radius: 32rpx;
  832. position: absolute;
  833. top: 360rpx;
  834. background-color: #fff;
  835. }
  836. .nav-content {
  837. width: 25%;
  838. height: 130rpx;
  839. display: flex;
  840. flex-direction: column;
  841. align-items: center;
  842. margin-top: 20rpx;
  843. font-size: 22rpx;
  844. justify-content: space-around;
  845. letter-spacing: 0.02em;
  846. color: #0d1937;
  847. font-family: PingFang SC;
  848. font-style: normal;
  849. font-weight: 600;
  850. }
  851. .notice-box {
  852. width: 83%;
  853. margin-top: 320rpx;
  854. margin-bottom: 20rpx;
  855. }
  856. .notice-title-box {
  857. width: 100%;
  858. display: flex;
  859. justify-content: space-between;
  860. align-items: center;
  861. margin-bottom: 40rpx;
  862. }
  863. .notice-font {
  864. font-family: PingFang SC;
  865. font-style: normal;
  866. font-weight: 600;
  867. font-size: 32rpx;
  868. letter-spacing: 0.02em;
  869. color: #0d1937;
  870. }
  871. .notice-more-font {
  872. font-size: 24rpx;
  873. color: #146afb;
  874. display: flex;
  875. align-items: center;
  876. }
  877. .notice-content-box {
  878. display: flex;
  879. padding: 30rpx;
  880. background-color: #ffffff;
  881. box-shadow: 0px 4rpx 32rpx rgba(0, 0, 0, 0.1);
  882. border-radius: 32rpx;
  883. margin-top: 20rpx;
  884. justify-content: space-between;
  885. }
  886. .maskModal {
  887. width: 100%;
  888. position: absolute;
  889. background-color: rgba(0, 0, 0, 0.4);
  890. border-radius: 32rpx;
  891. height: 100%;
  892. top: 0;
  893. right: 0;
  894. display: flex;
  895. align-items: center;
  896. justify-content: center;
  897. color: #fff;
  898. font-size: 28rpx;
  899. font-weight: bold;
  900. }
  901. .notice-content-font {
  902. font-size: 26rpx;
  903. color: #0d1937;
  904. font-weight: 600;
  905. overflow: hidden;
  906. text-overflow: ellipsis;
  907. white-space: nowrap;
  908. }
  909. .notice-content-time {
  910. font-size: 18rpx;
  911. letter-spacing: 0.02em;
  912. color: #cfcfcf;
  913. margin-right: 14rpx;
  914. }
  915. .park-box {
  916. border-radius: 32rpx;
  917. margin-right: 20rpx;
  918. position: relative;
  919. height: 450rpx;
  920. }
  921. .park-content-box {
  922. width: 394rpx;
  923. background-color: #ffffff;
  924. border-radius: 56rpx 0px 32rpx 32rpx;
  925. position: absolute;
  926. top: 210rpx;
  927. font-size: 24rpx;
  928. padding: 30rpx;
  929. box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.1);
  930. }
  931. .park-title {
  932. font-weight: 600;
  933. line-height: 36rpx;
  934. letter-spacing: 0.02em;
  935. color: #0d1937;
  936. }
  937. .park-address {
  938. font-weight: 600;
  939. font-size: 19rpx;
  940. letter-spacing: 0.02em;
  941. color: #cfcfcf;
  942. margin-top: 10rpx;
  943. }
  944. .park-title-img {
  945. width: 16rpx;
  946. height: 16rpx;
  947. margin-right: 4rpx;
  948. }
  949. .park-footer-box {
  950. margin-top: 30rpx;
  951. }
  952. .park-footer-img {
  953. width: 24rpx;
  954. height: 24rpx;
  955. margin-right: 6rpx;
  956. }
  957. .park-footer-font {
  958. color: #cfcfcf;
  959. font-size: 19rpx;
  960. margin-top: 10rpx;
  961. }
  962. .width-30 {
  963. width: 30%;
  964. }
  965. .attract-content {
  966. color: #697594;
  967. font-weight: 600;
  968. font-size: 20rpx;
  969. margin-top: 8rpx;
  970. overflow: hidden;
  971. text-overflow: ellipsis;
  972. white-space: nowrap;
  973. }
  974. .online-box {
  975. width: 12rpx;
  976. height: 12rpx;
  977. border-radius: 50%;
  978. background-color: #589cff;
  979. margin-right: 5rpx;
  980. }
  981. .offline-box {
  982. width: 12rpx;
  983. height: 12rpx;
  984. border-radius: 50%;
  985. background-color: #ffcf86;
  986. margin-right: 5rpx;
  987. }
  988. .color-a7adba {
  989. color: #a7adba;
  990. }
  991. </style>