index.vue 26 KB

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