index.vue 26 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004
  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: 70%">
  269. <view class="notice-content-font" style="white-space: break-spaces">{{
  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: 5,
  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. },
  596. fail: () => {
  597. console.log("连接失败");
  598. },
  599. });
  600. },
  601. getAttract() {
  602. let md5Sign = md5(
  603. "method=" +
  604. "common" +
  605. "&timestamp=" +
  606. getApp().globalData.globalTimestamp +
  607. "&secret=" +
  608. getApp().globalData.secret
  609. );
  610. let url =
  611. getApp().globalData.shareUrl +
  612. "api/api.php" +
  613. "?method=common&source=business&action=list&timestamp=" +
  614. getApp().globalData.globalTimestamp +
  615. "&sign=" +
  616. md5Sign;
  617. let postData = {
  618. page: 1,
  619. page_size: 2,
  620. };
  621. uni.request({
  622. url: url,
  623. method: "POST",
  624. header: {
  625. "content-type": "application/x-www-form-urlencoded",
  626. },
  627. data: postData,
  628. success: (res) => {
  629. if (res.data.code === 200) {
  630. res.data.data.list.forEach((item) => {
  631. item.pic_url = getApp().globalData.shareUrl + item.pic_url;
  632. });
  633. console.log(res.data.data.list);
  634. this.attractList = res.data.data.list.filter(
  635. (item) => item.show != 0
  636. );
  637. }
  638. },
  639. fail: () => {
  640. console.log("连接失败");
  641. },
  642. });
  643. },
  644. getActive() {
  645. let md5Sign = md5(
  646. "method=" +
  647. "common" +
  648. "&timestamp=" +
  649. getApp().globalData.globalTimestamp +
  650. "&secret=" +
  651. getApp().globalData.secret
  652. );
  653. let url =
  654. getApp().globalData.shareUrl +
  655. "api/api.php" +
  656. "?method=common&source=activity&action=list&timestamp=" +
  657. getApp().globalData.globalTimestamp +
  658. "&sign=" +
  659. md5Sign;
  660. let postData = {
  661. page: 1,
  662. page_size: 2,
  663. };
  664. uni.request({
  665. url: url,
  666. method: "POST",
  667. header: {
  668. "content-type": "application/x-www-form-urlencoded",
  669. },
  670. data: postData,
  671. success: (res) => {
  672. console.log(res);
  673. if (res.data.code === 200) {
  674. let list = res.data.data.list;
  675. this.activityList = list.map((item) => {
  676. /*
  677. url: "/static/activity/2.png",
  678. title: "智能制造商标品牌培育系列培训活动",
  679. way: "市场监督管理局",
  680. date: "2021-08-07",
  681. read: 322,
  682. share: 1,
  683. type: 0, //0线下
  684. */
  685. let ob = {
  686. url: "",
  687. title: "",
  688. department: "",
  689. time: "",
  690. browe: 0,
  691. share: 0,
  692. type: "",
  693. id: "",
  694. };
  695. ob.url = getApp().globalData.shareUrl + item.pic_url;
  696. ob.title = item.name;
  697. ob.department = item.sponsor;
  698. ob.time = this.$options.filters["globalTime"](item.start_time);
  699. ob.browe =
  700. parseInt(item.base_read_count) + parseInt(item.real_read_count);
  701. ob.share =
  702. parseInt(item.real_repost_count) +
  703. parseInt(item.base_repost_count);
  704. ob.isOnline = item.type == 1 ? 1 : 0;
  705. ob.id = item.id;
  706. return ob;
  707. });
  708. }
  709. },
  710. fail: () => {
  711. console.log("连接失败");
  712. },
  713. });
  714. },
  715. goParkDetailFn(id) {
  716. uni.navigateTo({
  717. url: "/pages/park/park_deatil?id=" + id,
  718. });
  719. },
  720. goNoticeDeatil(id) {
  721. uni.navigateTo({
  722. url: "/pages/notice/notice_deatil?id=" + id,
  723. });
  724. },
  725. goAttractDeatil(id, type) {
  726. if (type == "0") return;
  727. uni.navigateTo({
  728. url: "/pages/attract/attract_deatil?id=" + id,
  729. });
  730. },
  731. goActiveDeatil(id) {
  732. uni.navigateTo({
  733. url: "/pages/activity/activity_deatil?id=" + id,
  734. });
  735. },
  736. goAttract() {
  737. uni.navigateTo({
  738. url: "/pages/attract/index",
  739. });
  740. },
  741. goNotice() {
  742. uni.navigateTo({
  743. url: "/pages/notice/index",
  744. });
  745. },
  746. goActive() {
  747. uni.navigateTo({
  748. url: "/pages/activity/index",
  749. });
  750. },
  751. },
  752. onPageScroll(e) {
  753. this.scrollVal = e.scrollTop;
  754. if (e.scrollTop < uni.getSystemInfoSync().windowHeight) {
  755. this.footFlag = true;
  756. }
  757. },
  758. onReachBottom() {
  759. this.footFlag = false;
  760. },
  761. };
  762. </script>
  763. <style>
  764. .unclick {
  765. background-color: #bfbfbf !important;
  766. }
  767. .content {
  768. display: flex;
  769. flex-direction: column;
  770. align-items: center;
  771. justify-content: center;
  772. position: relative;
  773. }
  774. .logo {
  775. height: 200rpx;
  776. width: 200rpx;
  777. margin-top: 200rpx;
  778. margin-left: auto;
  779. margin-right: auto;
  780. margin-bottom: 50rpx;
  781. }
  782. .text-area {
  783. display: flex;
  784. justify-content: center;
  785. }
  786. .title {
  787. font-size: 36rpx;
  788. color: #8f8f94;
  789. }
  790. .groove-img {
  791. width: 100%;
  792. height: 100rpx;
  793. bottom: -22rpx;
  794. position: absolute;
  795. }
  796. .rowDot {
  797. display: flex;
  798. position: absolute;
  799. top: 310rpx;
  800. left: 80rpx;
  801. }
  802. .dots {
  803. flex-direction: row;
  804. justify-content: center;
  805. align-items: center;
  806. align-content: center;
  807. }
  808. .dot {
  809. margin-right: 8rpx;
  810. width: 40rpx;
  811. height: 8rpx;
  812. opacity: 1;
  813. border-radius: 6rpx;
  814. background: #fff5f9;
  815. }
  816. .dot.active {
  817. background: #ff4e54;
  818. }
  819. /* .swiper-content { */
  820. /* border-radius: 0 0 10% 10%; */
  821. /* } */
  822. .page-nav-box {
  823. width: 80%;
  824. /* height: 320rpx; */
  825. display: flex;
  826. flex-wrap: wrap;
  827. padding: 20rpx 10rpx 30rpx 10rpx;
  828. box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.1);
  829. border-radius: 32rpx;
  830. position: absolute;
  831. top: 360rpx;
  832. background-color: #fff;
  833. }
  834. .nav-content {
  835. width: 25%;
  836. height: 130rpx;
  837. display: flex;
  838. flex-direction: column;
  839. align-items: center;
  840. margin-top: 20rpx;
  841. font-size: 22rpx;
  842. justify-content: space-around;
  843. letter-spacing: 0.02em;
  844. color: #0d1937;
  845. font-family: PingFang SC;
  846. font-style: normal;
  847. font-weight: 600;
  848. }
  849. .notice-box {
  850. width: 83%;
  851. margin-top: 320rpx;
  852. margin-bottom: 20rpx;
  853. }
  854. .notice-title-box {
  855. width: 100%;
  856. display: flex;
  857. justify-content: space-between;
  858. align-items: center;
  859. margin-bottom: 40rpx;
  860. }
  861. .notice-font {
  862. font-family: PingFang SC;
  863. font-style: normal;
  864. font-weight: 600;
  865. font-size: 32rpx;
  866. letter-spacing: 0.02em;
  867. color: #0d1937;
  868. }
  869. .notice-more-font {
  870. font-size: 24rpx;
  871. color: #146afb;
  872. display: flex;
  873. align-items: center;
  874. }
  875. .notice-content-box {
  876. display: flex;
  877. padding: 30rpx;
  878. background-color: #ffffff;
  879. box-shadow: 0px 4rpx 32rpx rgba(0, 0, 0, 0.1);
  880. border-radius: 32rpx;
  881. margin-top: 20rpx;
  882. justify-content: space-between;
  883. }
  884. .maskModal {
  885. width: 100%;
  886. position: absolute;
  887. background-color: rgba(0, 0, 0, 0.4);
  888. border-radius: 32rpx;
  889. height: 100%;
  890. top: 0;
  891. right: 0;
  892. display: flex;
  893. align-items: center;
  894. justify-content: center;
  895. color: #fff;
  896. font-size: 28rpx;
  897. font-weight: bold;
  898. }
  899. .notice-content-font {
  900. font-size: 26rpx;
  901. color: #0d1937;
  902. font-weight: 600;
  903. overflow: hidden;
  904. text-overflow: ellipsis;
  905. white-space: nowrap;
  906. }
  907. .notice-content-time {
  908. font-size: 18rpx;
  909. letter-spacing: 0.02em;
  910. color: #cfcfcf;
  911. margin-right: 14rpx;
  912. }
  913. .park-box {
  914. border-radius: 32rpx;
  915. margin-right: 20rpx;
  916. position: relative;
  917. height: 450rpx;
  918. }
  919. .park-content-box {
  920. width: 394rpx;
  921. background-color: #ffffff;
  922. border-radius: 56rpx 0px 32rpx 32rpx;
  923. position: absolute;
  924. top: 210rpx;
  925. font-size: 24rpx;
  926. padding: 30rpx;
  927. box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.1);
  928. }
  929. .park-title {
  930. font-weight: 600;
  931. line-height: 36rpx;
  932. letter-spacing: 0.02em;
  933. color: #0d1937;
  934. }
  935. .park-address {
  936. font-weight: 600;
  937. font-size: 19rpx;
  938. letter-spacing: 0.02em;
  939. color: #cfcfcf;
  940. margin-top: 10rpx;
  941. }
  942. .park-title-img {
  943. width: 16rpx;
  944. height: 16rpx;
  945. margin-right: 4rpx;
  946. }
  947. .park-footer-box {
  948. margin-top: 30rpx;
  949. }
  950. .park-footer-img {
  951. width: 24rpx;
  952. height: 24rpx;
  953. margin-right: 6rpx;
  954. }
  955. .park-footer-font {
  956. color: #cfcfcf;
  957. font-size: 19rpx;
  958. margin-top: 10rpx;
  959. }
  960. .width-30 {
  961. width: 30%;
  962. }
  963. .attract-content {
  964. color: #697594;
  965. font-weight: 600;
  966. font-size: 20rpx;
  967. margin-top: 8rpx;
  968. overflow: hidden;
  969. text-overflow: ellipsis;
  970. white-space: nowrap;
  971. }
  972. .online-box {
  973. width: 12rpx;
  974. height: 12rpx;
  975. border-radius: 50%;
  976. background-color: #589cff;
  977. margin-right: 5rpx;
  978. }
  979. .offline-box {
  980. width: 12rpx;
  981. height: 12rpx;
  982. border-radius: 50%;
  983. background-color: #ffcf86;
  984. margin-right: 5rpx;
  985. }
  986. .color-a7adba {
  987. color: #a7adba;
  988. }
  989. </style>