index.vue 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  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>
  84. </view>
  85. </template>
  86. <script>
  87. export default {
  88. data() {
  89. return {
  90. swiperList:[
  91. {
  92. img:'/static/swiper/swiper1.jpg'
  93. },
  94. {
  95. img:'/static/swiper/swiper2.jpg'
  96. },
  97. ],
  98. navList:[
  99. {
  100. url:'/static/navList/appeal.png',
  101. path:'/pages/appeal/index',
  102. content:'提诉求'
  103. },
  104. {
  105. url:'/static/navList/policy.png',
  106. path:'/pages/policy/index',
  107. content:'搜政策'
  108. },
  109. {
  110. url:'/static/navList/park.png',
  111. path:'/pages/park/index',
  112. content:'找园区'
  113. },
  114. {
  115. url:'/static/navList/activity.png',
  116. path:'/pages/activity/index',
  117. content:'找活动'
  118. },
  119. {
  120. url:'/static/navList/supply.png',
  121. path:'/pages/supply/index',
  122. content:'发供需'
  123. },
  124. {
  125. url:'/static/navList/enterprise.png',
  126. path:'/pages/enterprise/index',
  127. content:'查企业'
  128. },
  129. {
  130. url:'/static/navList/service.png',
  131. path:'/pages/service/index',
  132. content:'找服务'
  133. },
  134. ],
  135. noticeList:[
  136. {
  137. url:'/static/navList/policy-icon.png',
  138. title:'政策速览 | 小微企业、个体工商户税费...',
  139. time:'2021-08-05'
  140. },
  141. {
  142. url:'/static/navList/activity-icon.png',
  143. title:'活动预告 | 想了解跨境电商?8月5日带...',
  144. time:'2021-08-04'
  145. },
  146. {
  147. url:'/static/navList/policy-icon.png',
  148. title:'政策速览 | 2022年首批次重点新材料扶...',
  149. time:'2021-08-03'
  150. },
  151. ],
  152. parkList:[
  153. {
  154. url:'/static/park/1.png',
  155. title:'华潮科技产业园',
  156. time:'2015-10-25',
  157. num:484,
  158. area1:1.72,
  159. area2:1.01
  160. },
  161. {
  162. url:'/static/park/1.png',
  163. title:'华潮科技产业园',
  164. time:'2015-10-25',
  165. num:484,
  166. area1:1.72,
  167. area2:1.01
  168. },
  169. {
  170. url:'/static/park/1.png',
  171. title:'华潮科技产业园',
  172. time:'2015-10-25',
  173. num:484,
  174. area1:1.72,
  175. area2:1.01
  176. },
  177. ]
  178. }
  179. },
  180. onLoad() {
  181. },
  182. methods: {
  183. }
  184. }
  185. </script>
  186. <style>
  187. .content {
  188. display: flex;
  189. flex-direction: column;
  190. align-items: center;
  191. justify-content: center;
  192. }
  193. .logo {
  194. height: 200rpx;
  195. width: 200rpx;
  196. margin-top: 200rpx;
  197. margin-left: auto;
  198. margin-right: auto;
  199. margin-bottom: 50rpx;
  200. }
  201. .text-area {
  202. display: flex;
  203. justify-content: center;
  204. }
  205. .title {
  206. font-size: 36rpx;
  207. color: #8f8f94;
  208. }
  209. .page-nav-box {
  210. width: 80%;
  211. /* height: 320rpx; */
  212. display: flex;
  213. flex-wrap: wrap;
  214. padding: 20rpx 10rpx 30rpx 10rpx;
  215. box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.1);
  216. border-radius: 32rpx;
  217. position: absolute;
  218. top: 300rpx;
  219. background-color: #fff;
  220. }
  221. .nav-content {
  222. width: 25%;
  223. height: 130rpx;
  224. display: flex;
  225. flex-direction: column;
  226. align-items: center;
  227. margin-top: 20rpx;
  228. font-size: 22rpx;
  229. justify-content: space-around;
  230. letter-spacing: 0.02em;
  231. color: #0D1937;
  232. font-family: PingFang SC;
  233. font-style: normal;
  234. font-weight: 600;
  235. }
  236. .notice-box{
  237. width: 83%;
  238. margin-top: 300rpx;
  239. margin-bottom:20rpx;
  240. }
  241. .notice-title-box{
  242. width: 100%;
  243. display: flex;
  244. justify-content: space-between;
  245. align-items: center;
  246. margin-bottom:40rpx;
  247. }
  248. .notice-font {
  249. font-family: PingFang SC;
  250. font-style: normal;
  251. font-weight: 600;
  252. font-size: 32rpx;
  253. letter-spacing: 0.02em;
  254. color: #0D1937;
  255. }
  256. .notice-more-font {
  257. font-size: 24rpx;
  258. color: #146AFB;
  259. display: flex;
  260. align-items: center;
  261. }
  262. .notice-content-box {
  263. display: flex;
  264. padding: 30rpx;
  265. background-color: #FFFFFF;
  266. box-shadow: 0px 4rpx 32rpx rgba(0, 0, 0, 0.1);
  267. border-radius: 32rpx;
  268. margin-top: 20rpx;
  269. justify-content: space-between;
  270. }
  271. .notice-content-font {
  272. font-size:26rpx;
  273. color: #0D1937;
  274. font-weight: 600;
  275. overflow: hidden;
  276. text-overflow: ellipsis;
  277. white-space: nowrap;
  278. }
  279. .notice-content-time {
  280. font-size: 18rpx;
  281. letter-spacing: 0.02em;
  282. color: #CFCFCF;
  283. }
  284. .park-box {
  285. border-radius: 32rpx;
  286. margin-right: 20rpx;
  287. position: relative;
  288. height: 440rpx;
  289. }
  290. .park-content-box {
  291. width: 394rpx;
  292. background-color: #FFFFFF;
  293. border-radius: 56rpx 0px 32rpx 32rpx;
  294. position: absolute;
  295. top: 210rpx;
  296. font-size: 24rpx;
  297. padding: 30rpx;
  298. box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.1);
  299. }
  300. .park-title {
  301. font-weight: 600;
  302. line-height: 36rpx;
  303. letter-spacing: 0.02em;
  304. color: #0D1937;
  305. }
  306. .park-address {
  307. font-weight: 600;
  308. font-size: 19rpx;
  309. letter-spacing: 0.02em;
  310. color: #CFCFCF;
  311. margin-top: 10rpx;
  312. }
  313. .park-title-img {
  314. width: 16rpx;
  315. height: 16rpx;
  316. margin-right: 4rpx;
  317. }
  318. .park-footer-box {
  319. margin-top: 30rpx;
  320. }
  321. .park-footer-img{
  322. width: 24rpx;
  323. height: 24rpx;
  324. margin-right: 6rpx;
  325. }
  326. .park-footer-font {
  327. color: #CFCFCF;
  328. font-size: 19rpx;
  329. margin-top: 10rpx;
  330. }
  331. .width-30 {
  332. width: 30%;
  333. }
  334. </style>