index.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. <template>
  2. <view class="content">
  3. <view class="page-section-spacing" style="width: 100%;">
  4. <swiper class="swiper"
  5. indicator-dots="true"
  6. autoplay="true"
  7. duration="500"
  8. style="height:400rpx">
  9. <swiper-item v-for="(item , index) in swiperList" :key="index">
  10. <image :src="item.img" mode="aspectFill" style="width: 100%;height: 100%;"></image>
  11. </swiper-item>
  12. </swiper>
  13. </view>
  14. <view class="page-nav-box">
  15. <navigator v-for="(item , index) in navList" :key="index" :url="item.path" open-type="navigate" class="nav-content">
  16. <image :src="item.url" mode="aspectFit" style="width: 38px;height: 38px;"></image>
  17. <view>{{item.content}}</view>
  18. </navigator>
  19. </view>
  20. <view class="notice-box">
  21. <view class="notice-title-box">
  22. <view class="notice-font">通知公告</view>
  23. <view class="notice-more-font">
  24. <view style="margin-right: 8rpx;font-size: 22rpx;">更多</view>
  25. <image src="../../static/right-arrow-blue.png" mode="aspectFill" style="width: 12rpx;height: 16rpx;"></image>
  26. </view>
  27. </view>
  28. <view class="notice-content-box" v-for="(item , index) in noticeList" :key="index">
  29. <image :src="item.url" mode="aspectFit" style="width:34px;height:34px;"></image>
  30. <view class="notice-content display-around-column">
  31. <view class="notice-content-font">{{item.title}}</view>
  32. <view class="notice-content-time">{{item.time}}</view>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="notice-box" style="margin-top: 40rpx;">
  37. <view class="notice-title-box">
  38. <view class="notice-font">推荐园区</view>
  39. <view class="notice-more-font">
  40. <view style="margin-right: 8rpx;font-size: 22rpx;">更多</view>
  41. <image src="/static/right-arrow-blue.png" mode="aspectFill" style="width: 12rpx;height: 16rpx;"></image>
  42. </view>
  43. </view>
  44. <view class="display-flex-start" style=" overflow:scroll;position:relative">
  45. <view class="park-box" v-for="(item , index) in parkList" :key="index">
  46. <image :src="item.url" mode="aspectFill" style="width:452rpx;height:250rpx;border-radius:32rpx 32rpx 0 0;"></image>
  47. <view class="park-content-box">
  48. <view class="park-title">{{item.title}}</view>
  49. <view class="park-address display-flex-start">
  50. <view class="display-flex-start" style="margin-right: 10rpx;"><image src="/static/park/park-time.png" mode="aspectFill" class="park-title-img"></image>{{item.time}}建成</view>
  51. <view class="display-flex-start"><image src="/static/park/park-name.png" mode="aspectFill" class="park-title-img"></image>{{item.title}}</view>
  52. </view>
  53. <view class="park-footer-box display-between">
  54. <view class="display-between-column width-30">
  55. <view class="display-flex-start"><image src="/static/park/park-num.png" mode="aspectFill" class="park-footer-img"></image>{{item.num}}</view>
  56. <view class="park-footer-font">企业数量</view>
  57. </view>
  58. <view class="display-between-column width-30">
  59. <view class="display-flex-start">
  60. <image src="/static/park/park-area.png" mode="aspectFill" class="park-footer-img"></image>
  61. {{item.area1}}<text style="font-size: 12rpx;">万㎡</text></view>
  62. <view class="park-footer-font">占地面积</view>
  63. </view>
  64. <view class="display-between-column width-30">
  65. <view class="display-flex-start">
  66. <image src="/static/park/park-area2.png" mode="aspectFill" class="park-footer-img"></image>
  67. {{item.area2}}<text style="font-size: 12rpx;">万㎡</text></view>
  68. <view class="park-footer-font">建设面积</view>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. <view class="notice-box" style="margin-top:20rpx;">
  76. <view class="notice-title-box">
  77. <view class="notice-font">招商专区</view>
  78. <view class="notice-more-font">
  79. <view style="margin-right: 8rpx;font-size: 22rpx;">更多</view>
  80. <image src="/static/right-arrow-blue.png" mode="aspectFill" style="width: 12rpx;height: 16rpx;"></image>
  81. </view>
  82. </view>
  83. <view class="notice-content-box" v-for="(item , index) in attractList" :key="index" style="justify-content: start;">
  84. <image :src="item.url" mode="aspectFit" style="width:112rpx;height:112rpx;margin-right: 20rpx;"></image>
  85. <view class="notice-content">
  86. <view class="notice-content-font">{{item.title}}</view>
  87. <view class="attract-content">{{item.subtitle}}</view>
  88. <view class="notice-content-time" style="margin-top: 20rpx;">{{item.time}}</view>
  89. </view>
  90. </view>
  91. </view>
  92. <view class="notice-box" style="margin-top:20rpx;">
  93. <view class="notice-title-box">
  94. <view class="notice-font">区内活动</view>
  95. <view class="notice-more-font">
  96. <view style="margin-right: 8rpx;font-size: 22rpx;">更多</view>
  97. <image src="/static/right-arrow-blue.png" mode="aspectFill" style="width: 12rpx;height: 16rpx;"></image>
  98. </view>
  99. </view>
  100. <view class="notice-content-box" v-for="(item , index) in activityList" :key="index" style="justify-content: start;padding: 30rpx 0 30rpx 30rpx;">
  101. <image :src="item.url" mode="aspectFit" style="width:128rpx;height:128rpx;margin-right: 20rpx;"></image>
  102. <view class="notice-content" style="width: 70%;">
  103. <view class="notice-content-font" style="white-space: break-spaces;">{{item.title}}</view>
  104. <view class="display-flex-start" style="margin-top: 20rpx;">
  105. <view class="notice-content-time display-flex-start color-a7adba" v-show="item.isOnline"><view class="online-box"></view>线上</view>
  106. <view class="notice-content-time display-flex-start color-a7adba" v-show="!item.isOnline"><view class="offline-box"></view>线下</view>
  107. <view class="notice-content-time color-a7adba" >{{item.department}}</view>
  108. <view class="notice-content-time color-a7adba" >{{item.time}}</view>
  109. </view>
  110. <view class="display-flex-end" style="margin-top: 20rpx;">
  111. <view class="notice-content-time">浏览 {{item.browe}}</view>
  112. <view class="notice-content-time">分享 {{item.share}}</view>
  113. </view>
  114. </view>
  115. </view>
  116. </view>
  117. </view>
  118. </template>
  119. <script>
  120. export default {
  121. data() {
  122. return {
  123. swiperList:[
  124. {
  125. img:'/static/swiper/swiper1.jpg'
  126. },
  127. {
  128. img:'/static/swiper/swiper2.jpg'
  129. },
  130. ],
  131. navList:[
  132. {
  133. url:'/static/navList/appeal.png',
  134. path:'/pages/appeal/index',
  135. content:'提诉求'
  136. },
  137. {
  138. url:'/static/navList/policy.png',
  139. path:'/pages/policy/index',
  140. content:'搜政策'
  141. },
  142. {
  143. url:'/static/navList/park.png',
  144. path:'/pages/park/index',
  145. content:'找园区'
  146. },
  147. {
  148. url:'/static/navList/activity.png',
  149. path:'/pages/activity/index',
  150. content:'找活动'
  151. },
  152. {
  153. url:'/static/navList/supply.png',
  154. path:'/pages/supply/index',
  155. content:'发供需'
  156. },
  157. {
  158. url:'/static/navList/enterprise.png',
  159. path:'/pages/enterprise/index',
  160. content:'查企业'
  161. },
  162. {
  163. url:'/static/navList/service.png',
  164. path:'/pages/service/index',
  165. content:'找服务'
  166. },
  167. ],
  168. noticeList:[
  169. {
  170. url:'/static/navList/policy-icon.png',
  171. title:'政策速览 | 小微企业、个体工商户税费...',
  172. time:'2021-08-05'
  173. },
  174. {
  175. url:'/static/navList/activity-icon.png',
  176. title:'活动预告 | 想了解跨境电商?8月5日带...',
  177. time:'2021-08-04'
  178. },
  179. {
  180. url:'/static/navList/policy-icon.png',
  181. title:'政策速览 | 2022年首批次重点新材料扶...',
  182. time:'2021-08-03'
  183. },
  184. ],
  185. parkList:[
  186. {
  187. url:'/static/park/1.png',
  188. title:'华潮科技产业园',
  189. time:'2015-10-25',
  190. num:484,
  191. area1:1.72,
  192. area2:1.01
  193. },
  194. {
  195. url:'/static/park/1.png',
  196. title:'华潮科技产业园',
  197. time:'2015-10-25',
  198. num:484,
  199. area1:1.72,
  200. area2:1.01
  201. },
  202. {
  203. url:'/static/park/1.png',
  204. title:'华潮科技产业园',
  205. time:'2015-10-25',
  206. num:484,
  207. area1:1.72,
  208. area2:1.01
  209. },
  210. ],
  211. attractList:[
  212. {
  213. url:'/static/attract/1.png',
  214. title:'工业互联网',
  215. subtitle:'工业互联网是全球工业系统与高级计算、分析、...',
  216. time:'2021-09-05'
  217. },
  218. {
  219. url:'/static/attract/2.png',
  220. title:'生产性服务业',
  221. subtitle:'生产性服务业是指为保持工业生产过程的连续性...',
  222. time:'2021-09-05'
  223. },
  224. ],
  225. activityList:[
  226. {
  227. url:'/static/activity/2.png',
  228. title:'400场讲座,200门课程,免费送上门!就等你申请',
  229. isOnline:1,
  230. department:'区人力资源局',
  231. time:'2021-09-05',
  232. browe:'322',
  233. share:'2'
  234. },
  235. {
  236. url:'/static/activity/1.png',
  237. title:'智能制造商标品牌培育系列培训活动',
  238. isOnline:0,
  239. department:'市场监督管理局',
  240. time:'2021-09-05',
  241. browe:'322',
  242. share:'2'
  243. },
  244. ],
  245. }
  246. },
  247. onLoad() {
  248. },
  249. methods: {
  250. }
  251. }
  252. </script>
  253. <style>
  254. .content {
  255. display: flex;
  256. flex-direction: column;
  257. align-items: center;
  258. justify-content: center;
  259. }
  260. .logo {
  261. height: 200rpx;
  262. width: 200rpx;
  263. margin-top: 200rpx;
  264. margin-left: auto;
  265. margin-right: auto;
  266. margin-bottom: 50rpx;
  267. }
  268. .text-area {
  269. display: flex;
  270. justify-content: center;
  271. }
  272. .title {
  273. font-size: 36rpx;
  274. color: #8f8f94;
  275. }
  276. .page-nav-box {
  277. width: 80%;
  278. /* height: 320rpx; */
  279. display: flex;
  280. flex-wrap: wrap;
  281. padding: 20rpx 10rpx 30rpx 10rpx;
  282. box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.1);
  283. border-radius: 32rpx;
  284. position: absolute;
  285. top: 300rpx;
  286. background-color: #fff;
  287. }
  288. .nav-content {
  289. width: 25%;
  290. height: 130rpx;
  291. display: flex;
  292. flex-direction: column;
  293. align-items: center;
  294. margin-top: 20rpx;
  295. font-size: 22rpx;
  296. justify-content: space-around;
  297. letter-spacing: 0.02em;
  298. color: #0D1937;
  299. font-family: PingFang SC;
  300. font-style: normal;
  301. font-weight: 600;
  302. }
  303. .notice-box{
  304. width: 83%;
  305. margin-top: 300rpx;
  306. margin-bottom:20rpx;
  307. }
  308. .notice-title-box{
  309. width: 100%;
  310. display: flex;
  311. justify-content: space-between;
  312. align-items: center;
  313. margin-bottom:40rpx;
  314. }
  315. .notice-font {
  316. font-family: PingFang SC;
  317. font-style: normal;
  318. font-weight: 600;
  319. font-size: 32rpx;
  320. letter-spacing: 0.02em;
  321. color: #0D1937;
  322. }
  323. .notice-more-font {
  324. font-size: 24rpx;
  325. color: #146AFB;
  326. display: flex;
  327. align-items: center;
  328. }
  329. .notice-content-box {
  330. display: flex;
  331. padding: 30rpx;
  332. background-color: #FFFFFF;
  333. box-shadow: 0px 4rpx 32rpx rgba(0, 0, 0, 0.1);
  334. border-radius: 32rpx;
  335. margin-top: 20rpx;
  336. justify-content: space-between;
  337. }
  338. .notice-content-font {
  339. font-size:26rpx;
  340. color: #0D1937;
  341. font-weight: 600;
  342. overflow: hidden;
  343. text-overflow: ellipsis;
  344. white-space: nowrap;
  345. }
  346. .notice-content-time {
  347. font-size: 18rpx;
  348. letter-spacing: 0.02em;
  349. color: #CFCFCF;
  350. margin-right: 14rpx;
  351. }
  352. .park-box {
  353. border-radius: 32rpx;
  354. margin-right: 20rpx;
  355. position: relative;
  356. height: 450rpx;
  357. }
  358. .park-content-box {
  359. width: 394rpx;
  360. background-color: #FFFFFF;
  361. border-radius: 56rpx 0px 32rpx 32rpx;
  362. position: absolute;
  363. top: 210rpx;
  364. font-size: 24rpx;
  365. padding: 30rpx;
  366. box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.1);
  367. }
  368. .park-title {
  369. font-weight: 600;
  370. line-height: 36rpx;
  371. letter-spacing: 0.02em;
  372. color: #0D1937;
  373. }
  374. .park-address {
  375. font-weight: 600;
  376. font-size: 19rpx;
  377. letter-spacing: 0.02em;
  378. color: #CFCFCF;
  379. margin-top: 10rpx;
  380. }
  381. .park-title-img {
  382. width: 16rpx;
  383. height: 16rpx;
  384. margin-right: 4rpx;
  385. }
  386. .park-footer-box {
  387. margin-top: 30rpx;
  388. }
  389. .park-footer-img{
  390. width: 24rpx;
  391. height: 24rpx;
  392. margin-right: 6rpx;
  393. }
  394. .park-footer-font {
  395. color: #CFCFCF;
  396. font-size: 19rpx;
  397. margin-top: 10rpx;
  398. }
  399. .width-30 {
  400. width: 30%;
  401. }
  402. .attract-content {
  403. color: #697594;
  404. font-weight: 600;
  405. font-size: 20rpx;
  406. margin-top: 8rpx;
  407. overflow: hidden;
  408. text-overflow: ellipsis;
  409. white-space: nowrap;
  410. }
  411. .online-box {
  412. width: 12rpx;
  413. height: 12rpx;
  414. border-radius: 50%;
  415. background-color:#589CFF;
  416. margin-right:5rpx;
  417. }
  418. .offline-box {
  419. width: 12rpx;
  420. height: 12rpx;
  421. border-radius: 50%;
  422. background-color:#FFCF86;
  423. margin-right:5rpx;
  424. }
  425. .color-a7adba{
  426. color: #A7ADBA;
  427. }
  428. </style>