index.vue 26 KB

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