index.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998
  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. this.getSwiperList();
  446. this.getPark();
  447. this.getNotice();
  448. this.getAttract(); //招商接口
  449. },
  450. onShareAppMessage() {
  451. url: "/pages/index/index";
  452. },
  453. methods: {
  454. swiperChange(e) {
  455. this.swiperCurrent = e.detail.current;
  456. },
  457. getSwiperList() {
  458. let md5Sign = md5(
  459. "method=" +
  460. "common" +
  461. "&timestamp=" +
  462. getApp().globalData.globalTimestamp +
  463. "&secret=" +
  464. getApp().globalData.secret
  465. );
  466. let url =
  467. getApp().globalData.shareUrl +
  468. "api/api.php" +
  469. "?method=common&source=main_pics&action=list&timestamp=" +
  470. getApp().globalData.globalTimestamp +
  471. "&sign=" +
  472. md5Sign;
  473. uni.request({
  474. url: url,
  475. method: "POST",
  476. header: {
  477. "content-type": "application/x-www-form-urlencoded",
  478. },
  479. data: {
  480. order_by: "weight desc",
  481. s_status: 1,
  482. page: 1,
  483. page_size: 7,
  484. },
  485. success: (res) => {
  486. console.log(res);
  487. if (res.data.code === 200) {
  488. res.data.data.list.forEach((item) => {
  489. item.pic_path = getApp().globalData.shareUrl + item.pic_path;
  490. });
  491. this.swiperList = res.data.data.list;
  492. }
  493. },
  494. fail: () => {
  495. console.log("连接失败");
  496. },
  497. });
  498. },
  499. getPark() {
  500. let md5Sign = md5(
  501. "method=" +
  502. "park" +
  503. "&timestamp=" +
  504. getApp().globalData.globalTimestamp +
  505. "&secret=" +
  506. getApp().globalData.secret
  507. );
  508. let url =
  509. getApp().globalData.shareUrl +
  510. "api/api.php" +
  511. "?method=park&source=park&action=list&timestamp=" +
  512. getApp().globalData.globalTimestamp +
  513. "&sign=" +
  514. md5Sign;
  515. uni.request({
  516. url: url,
  517. method: "POST",
  518. header: {
  519. "content-type": "application/x-www-form-urlencoded",
  520. },
  521. data: {
  522. order_by: "weight desc",
  523. s_show: 1,
  524. page: 1,
  525. page_size: 5,
  526. },
  527. success: (res) => {
  528. if (res.data.code === 200) {
  529. res.data.data.list.forEach((item) => {
  530. if (item.park_pics.length) {
  531. item.park_pics[0].pic_path =
  532. getApp().globalData.shareUrl + item.park_pics[0].pic_path;
  533. }
  534. });
  535. this.parkList = res.data.data.list;
  536. }
  537. },
  538. fail: () => {
  539. console.log("连接失败");
  540. },
  541. });
  542. },
  543. getNotice() {
  544. let md5Sign = md5(
  545. "method=" +
  546. "common" +
  547. "&timestamp=" +
  548. getApp().globalData.globalTimestamp +
  549. "&secret=" +
  550. getApp().globalData.secret
  551. );
  552. let url =
  553. getApp().globalData.shareUrl +
  554. "api/api.php" +
  555. "?method=common&source=notice&action=list&timestamp=" +
  556. getApp().globalData.globalTimestamp +
  557. "&sign=" +
  558. md5Sign;
  559. uni.request({
  560. url: url,
  561. method: "POST",
  562. header: {
  563. "content-type": "application/x-www-form-urlencoded",
  564. },
  565. data: {
  566. // order_by: "weight desc",
  567. // s_show: 1,
  568. // page: 1,
  569. // page_size: 5,
  570. },
  571. success: (res) => {
  572. if (res.data.code === 200) {
  573. // console.log(res.data.data.list);
  574. this.noticeList = res.data.data.list.map((item) => {
  575. switch (item.type) {
  576. case "1":
  577. item.icon = "/static/navList/activity-icon.png";
  578. item.title = "活动预告 | " + item.title;
  579. break;
  580. case "2":
  581. item.icon = "/static/navList/policy-icon.png";
  582. item.title = "政策速览 | " + item.title;
  583. break;
  584. case "3":
  585. item.icon = "/static/navList/notice-icon.png";
  586. item.title = "通知公告 | " + item.title;
  587. break;
  588. }
  589. return item;
  590. });
  591. }
  592. },
  593. fail: () => {
  594. console.log("连接失败");
  595. },
  596. });
  597. },
  598. getAttract() {
  599. let md5Sign = md5(
  600. "method=" +
  601. "common" +
  602. "&timestamp=" +
  603. getApp().globalData.globalTimestamp +
  604. "&secret=" +
  605. getApp().globalData.secret
  606. );
  607. let url =
  608. getApp().globalData.shareUrl +
  609. "api/api.php" +
  610. "?method=common&source=business&action=list&timestamp=" +
  611. getApp().globalData.globalTimestamp +
  612. "&sign=" +
  613. md5Sign;
  614. let postData = {
  615. page: 1,
  616. page_size: 2,
  617. };
  618. uni.request({
  619. url: url,
  620. method: "POST",
  621. header: {
  622. "content-type": "application/x-www-form-urlencoded",
  623. },
  624. data: postData,
  625. success: (res) => {
  626. if (res.data.code === 200) {
  627. res.data.data.list.forEach((item) => {
  628. item.pic_url = getApp().globalData.shareUrl + item.pic_url;
  629. });
  630. this.attractList = res.data.data.list;
  631. }
  632. },
  633. fail: () => {
  634. console.log("连接失败");
  635. },
  636. });
  637. },
  638. getActive() {
  639. let md5Sign = md5(
  640. "method=" +
  641. "common" +
  642. "&timestamp=" +
  643. getApp().globalData.globalTimestamp +
  644. "&secret=" +
  645. getApp().globalData.secret
  646. );
  647. let url =
  648. getApp().globalData.shareUrl +
  649. "api/api.php" +
  650. "?method=common&source=activity&action=list&timestamp=" +
  651. getApp().globalData.globalTimestamp +
  652. "&sign=" +
  653. md5Sign;
  654. let postData = {
  655. page: 1,
  656. page_size: 2,
  657. };
  658. uni.request({
  659. url: url,
  660. method: "POST",
  661. header: {
  662. "content-type": "application/x-www-form-urlencoded",
  663. },
  664. data: postData,
  665. success: (res) => {
  666. console.log(res);
  667. if (res.data.code === 200) {
  668. let list = res.data.data.list;
  669. this.activityList = list.map((item) => {
  670. /*
  671. url: "/static/activity/2.png",
  672. title: "智能制造商标品牌培育系列培训活动",
  673. way: "市场监督管理局",
  674. date: "2021-08-07",
  675. read: 322,
  676. share: 1,
  677. type: 0, //0线下
  678. */
  679. let ob = {
  680. url: "",
  681. title: "",
  682. department: "",
  683. time: "",
  684. browe: 0,
  685. share: 0,
  686. type: "",
  687. id: "",
  688. };
  689. ob.url = getApp().globalData.shareUrl + item.pic_url;
  690. ob.title = item.name;
  691. ob.department = item.sponsor;
  692. ob.time = this.$options.filters["globalTime"](item.start_time);
  693. ob.browe =
  694. parseInt(item.base_read_count) + parseInt(item.real_read_count);
  695. ob.share =
  696. parseInt(item.real_repost_count) +
  697. parseInt(item.base_repost_count);
  698. ob.isOnline = item.type == 1 ? 1 : 0;
  699. ob.id = item.id;
  700. return ob;
  701. });
  702. }
  703. },
  704. fail: () => {
  705. console.log("连接失败");
  706. },
  707. });
  708. },
  709. goParkDetailFn(id) {
  710. uni.navigateTo({
  711. url: "/pages/park/park_deatil?id=" + id,
  712. });
  713. },
  714. goNoticeDeatil(id) {
  715. uni.navigateTo({
  716. url: "/pages/notice/notice_deatil?id=" + id,
  717. });
  718. },
  719. goAttractDeatil(id,type) {
  720. if(type == '0')return
  721. uni.navigateTo({
  722. url: "/pages/attract/attract_deatil?id=" + id,
  723. });
  724. },
  725. goActiveDeatil(id) {
  726. uni.navigateTo({
  727. url: "/pages/activity/activity_deatil?id=" + id,
  728. });
  729. },
  730. goAttract() {
  731. uni.navigateTo({
  732. url: "/pages/attract/index",
  733. });
  734. },
  735. goNotice() {
  736. uni.navigateTo({
  737. url: "/pages/notice/index",
  738. });
  739. },
  740. goActive() {
  741. uni.navigateTo({
  742. url: "/pages/activity/index",
  743. });
  744. },
  745. },
  746. onPageScroll(e) {
  747. this.scrollVal = e.scrollTop;
  748. if (e.scrollTop < uni.getSystemInfoSync().windowHeight) {
  749. this.footFlag = true;
  750. }
  751. },
  752. onReachBottom() {
  753. this.footFlag = false;
  754. },
  755. };
  756. </script>
  757. <style>
  758. .unclick {
  759. background-color: #bfbfbf !important;
  760. }
  761. .content {
  762. display: flex;
  763. flex-direction: column;
  764. align-items: center;
  765. justify-content: center;
  766. position: relative;
  767. }
  768. .logo {
  769. height: 200rpx;
  770. width: 200rpx;
  771. margin-top: 200rpx;
  772. margin-left: auto;
  773. margin-right: auto;
  774. margin-bottom: 50rpx;
  775. }
  776. .text-area {
  777. display: flex;
  778. justify-content: center;
  779. }
  780. .title {
  781. font-size: 36rpx;
  782. color: #8f8f94;
  783. }
  784. .groove-img {
  785. width: 100%;
  786. height: 100rpx;
  787. bottom: -22rpx;
  788. position: absolute;
  789. }
  790. .rowDot {
  791. display: flex;
  792. position: absolute;
  793. top: 310rpx;
  794. left: 80rpx;
  795. }
  796. .dots {
  797. flex-direction: row;
  798. justify-content: center;
  799. align-items: center;
  800. align-content: center;
  801. }
  802. .dot {
  803. margin-right: 8rpx;
  804. width: 40rpx;
  805. height: 8rpx;
  806. opacity: 1;
  807. border-radius: 6rpx;
  808. background: #fff5f9;
  809. }
  810. .dot.active {
  811. background: #ff4e54;
  812. }
  813. .swiper-content {
  814. /* border-radius: 0 0 10% 10%; */
  815. }
  816. .page-nav-box {
  817. width: 80%;
  818. /* height: 320rpx; */
  819. display: flex;
  820. flex-wrap: wrap;
  821. padding: 20rpx 10rpx 30rpx 10rpx;
  822. box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.1);
  823. border-radius: 32rpx;
  824. position: absolute;
  825. top: 360rpx;
  826. background-color: #fff;
  827. }
  828. .nav-content {
  829. width: 25%;
  830. height: 130rpx;
  831. display: flex;
  832. flex-direction: column;
  833. align-items: center;
  834. margin-top: 20rpx;
  835. font-size: 22rpx;
  836. justify-content: space-around;
  837. letter-spacing: 0.02em;
  838. color: #0d1937;
  839. font-family: PingFang SC;
  840. font-style: normal;
  841. font-weight: 600;
  842. }
  843. .notice-box {
  844. width: 83%;
  845. margin-top: 320rpx;
  846. margin-bottom: 20rpx;
  847. }
  848. .notice-title-box {
  849. width: 100%;
  850. display: flex;
  851. justify-content: space-between;
  852. align-items: center;
  853. margin-bottom: 40rpx;
  854. }
  855. .notice-font {
  856. font-family: PingFang SC;
  857. font-style: normal;
  858. font-weight: 600;
  859. font-size: 32rpx;
  860. letter-spacing: 0.02em;
  861. color: #0d1937;
  862. }
  863. .notice-more-font {
  864. font-size: 24rpx;
  865. color: #146afb;
  866. display: flex;
  867. align-items: center;
  868. }
  869. .notice-content-box {
  870. display: flex;
  871. padding: 30rpx;
  872. background-color: #ffffff;
  873. box-shadow: 0px 4rpx 32rpx rgba(0, 0, 0, 0.1);
  874. border-radius: 32rpx;
  875. margin-top: 20rpx;
  876. justify-content: space-between;
  877. }
  878. .maskModal {
  879. width: 100%;
  880. position: absolute;
  881. background-color: rgba(0, 0, 0, 0.4);
  882. border-radius: 32rpx;
  883. height: 100%;
  884. top: 0;
  885. right: 0;
  886. display: flex;
  887. align-items: center;
  888. justify-content: center;
  889. color: #fff;
  890. font-size: 28rpx;
  891. font-weight: bold;
  892. }
  893. .notice-content-font {
  894. font-size: 26rpx;
  895. color: #0d1937;
  896. font-weight: 600;
  897. overflow: hidden;
  898. text-overflow: ellipsis;
  899. white-space: nowrap;
  900. }
  901. .notice-content-time {
  902. font-size: 18rpx;
  903. letter-spacing: 0.02em;
  904. color: #cfcfcf;
  905. margin-right: 14rpx;
  906. }
  907. .park-box {
  908. border-radius: 32rpx;
  909. margin-right: 20rpx;
  910. position: relative;
  911. height: 450rpx;
  912. }
  913. .park-content-box {
  914. width: 394rpx;
  915. background-color: #ffffff;
  916. border-radius: 56rpx 0px 32rpx 32rpx;
  917. position: absolute;
  918. top: 210rpx;
  919. font-size: 24rpx;
  920. padding: 30rpx;
  921. box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.1);
  922. }
  923. .park-title {
  924. font-weight: 600;
  925. line-height: 36rpx;
  926. letter-spacing: 0.02em;
  927. color: #0d1937;
  928. }
  929. .park-address {
  930. font-weight: 600;
  931. font-size: 19rpx;
  932. letter-spacing: 0.02em;
  933. color: #cfcfcf;
  934. margin-top: 10rpx;
  935. }
  936. .park-title-img {
  937. width: 16rpx;
  938. height: 16rpx;
  939. margin-right: 4rpx;
  940. }
  941. .park-footer-box {
  942. margin-top: 30rpx;
  943. }
  944. .park-footer-img {
  945. width: 24rpx;
  946. height: 24rpx;
  947. margin-right: 6rpx;
  948. }
  949. .park-footer-font {
  950. color: #cfcfcf;
  951. font-size: 19rpx;
  952. margin-top: 10rpx;
  953. }
  954. .width-30 {
  955. width: 30%;
  956. }
  957. .attract-content {
  958. color: #697594;
  959. font-weight: 600;
  960. font-size: 20rpx;
  961. margin-top: 8rpx;
  962. overflow: hidden;
  963. text-overflow: ellipsis;
  964. white-space: nowrap;
  965. }
  966. .online-box {
  967. width: 12rpx;
  968. height: 12rpx;
  969. border-radius: 50%;
  970. background-color: #589cff;
  971. margin-right: 5rpx;
  972. }
  973. .offline-box {
  974. width: 12rpx;
  975. height: 12rpx;
  976. border-radius: 50%;
  977. background-color: #ffcf86;
  978. margin-right: 5rpx;
  979. }
  980. .color-a7adba {
  981. color: #a7adba;
  982. }
  983. </style>