index.vue 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  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-y: scroll;">
  45. <view class="park-box" v-for="(item , index) in parkList" :key="index">
  46. <image :src="item.url" mode="aspectFill" style="width:452rpx;height:300rpx;border-radius:32rpx;"></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>{{item.title}}</view>
  51. <view>{{item.address}}</view>
  52. </view>
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. </template>
  59. <script>
  60. export default {
  61. data() {
  62. return {
  63. swiperList:[
  64. {
  65. img:'/static/swiper/swiper1.jpg'
  66. },
  67. {
  68. img:'/static/swiper/swiper2.jpg'
  69. },
  70. ],
  71. navList:[
  72. {
  73. url:'/static/navList/appeal.png',
  74. path:'/pages/appeal/index',
  75. content:'提诉求'
  76. },
  77. {
  78. url:'/static/navList/policy.png',
  79. path:'/pages/policy/index',
  80. content:'搜政策'
  81. },
  82. {
  83. url:'/static/navList/park.png',
  84. path:'/pages/park/index',
  85. content:'找园区'
  86. },
  87. {
  88. url:'/static/navList/activity.png',
  89. path:'/pages/activity/index',
  90. content:'找活动'
  91. },
  92. {
  93. url:'/static/navList/supply.png',
  94. path:'/pages/supply/index',
  95. content:'发供需'
  96. },
  97. {
  98. url:'/static/navList/enterprise.png',
  99. path:'/pages/enterprise/index',
  100. content:'查企业'
  101. },
  102. {
  103. url:'/static/navList/service.png',
  104. path:'/pages/service/index',
  105. content:'找服务'
  106. },
  107. ],
  108. noticeList:[
  109. {
  110. url:'/static/navList/policy-icon.png',
  111. title:'政策速览 | 小微企业、个体工商户税费...',
  112. time:'2021-08-05'
  113. },
  114. {
  115. url:'/static/navList/activity-icon.png',
  116. title:'活动预告 | 想了解跨境电商?8月5日带...',
  117. time:'2021-08-04'
  118. },
  119. {
  120. url:'/static/navList/policy-icon.png',
  121. title:'政策速览 | 2022年首批次重点新材料扶...',
  122. time:'2021-08-03'
  123. },
  124. ],
  125. parkList:[
  126. {
  127. url:'/static/park/1.png',
  128. title:'华潮科技产业园',
  129. address:'渭城区·底张镇'
  130. },
  131. {
  132. url:'/static/park/1.png',
  133. title:'华潮科技产业园',
  134. address:'渭城区·底张镇'
  135. },
  136. {
  137. url:'/static/park/1.png',
  138. title:'华潮科技产业园',
  139. address:'渭城区·底张镇'
  140. },
  141. ]
  142. }
  143. },
  144. onLoad() {
  145. },
  146. methods: {
  147. }
  148. }
  149. </script>
  150. <style>
  151. .content {
  152. display: flex;
  153. flex-direction: column;
  154. align-items: center;
  155. justify-content: center;
  156. }
  157. .logo {
  158. height: 200rpx;
  159. width: 200rpx;
  160. margin-top: 200rpx;
  161. margin-left: auto;
  162. margin-right: auto;
  163. margin-bottom: 50rpx;
  164. }
  165. .text-area {
  166. display: flex;
  167. justify-content: center;
  168. }
  169. .title {
  170. font-size: 36rpx;
  171. color: #8f8f94;
  172. }
  173. .page-nav-box {
  174. width: 80%;
  175. /* height: 320rpx; */
  176. display: flex;
  177. flex-wrap: wrap;
  178. padding: 20rpx 10rpx 30rpx 10rpx;
  179. box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.1);
  180. border-radius: 32rpx;
  181. position: absolute;
  182. top: 300rpx;
  183. background-color: #fff;
  184. }
  185. .nav-content {
  186. width: 25%;
  187. height: 130rpx;
  188. display: flex;
  189. flex-direction: column;
  190. align-items: center;
  191. margin-top: 20rpx;
  192. font-size: 22rpx;
  193. justify-content: space-around;
  194. letter-spacing: 0.02em;
  195. color: #0D1937;
  196. font-family: PingFang SC;
  197. font-style: normal;
  198. font-weight: 600;
  199. }
  200. .notice-box{
  201. width: 83%;
  202. margin-top: 300rpx;
  203. margin-bottom:20rpx;
  204. }
  205. .notice-title-box{
  206. width: 100%;
  207. display: flex;
  208. justify-content: space-between;
  209. align-items: center;
  210. margin-bottom:40rpx;
  211. }
  212. .notice-font {
  213. font-family: PingFang SC;
  214. font-style: normal;
  215. font-weight: 600;
  216. font-size: 32rpx;
  217. letter-spacing: 0.02em;
  218. color: #0D1937;
  219. }
  220. .notice-more-font {
  221. font-size: 24rpx;
  222. color: #146AFB;
  223. display: flex;
  224. align-items: center;
  225. }
  226. .notice-content-box {
  227. display: flex;
  228. padding: 30rpx;
  229. background-color: #FFFFFF;
  230. box-shadow: 0px 4rpx 32rpx rgba(0, 0, 0, 0.1);
  231. border-radius: 32rpx;
  232. margin-top: 20rpx;
  233. justify-content: space-between;
  234. }
  235. .notice-content-font {
  236. font-size:26rpx;
  237. color: #0D1937;
  238. font-weight: 600;
  239. overflow: hidden;
  240. text-overflow: ellipsis;
  241. white-space: nowrap;
  242. }
  243. .notice-content-time {
  244. font-size: 18rpx;
  245. letter-spacing: 0.02em;
  246. color: #CFCFCF;
  247. }
  248. .park-box {
  249. border-radius: 32rpx;
  250. margin-right: 20rpx;
  251. position: relative;
  252. }
  253. .park-content-box {
  254. width: 452rpx;
  255. background-color: #FFFFFF;
  256. border-radius: 56rpx 0px 32rpx 32rpx;
  257. position: absolute;
  258. bottom: -25rpx;
  259. font-size: 24rpx;
  260. padding: 20rpx;
  261. }
  262. .park-title {
  263. font-weight: 600;
  264. line-height: 36rpx;
  265. letter-spacing: 0.02em;
  266. color: #0D1937;
  267. }
  268. .park-address {
  269. font-weight: 600;
  270. font-size: 18rpx;
  271. letter-spacing: 0.02em;
  272. color: #CFCFCF;
  273. }
  274. </style>