index.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. <template>
  2. <view class="home" >
  3. <!-- 头部 -->
  4. <navbar :back="false" title="首页" :bgcolor="backgroundColor" color="#fff" fixed zIndex="1010" :center="true" :custom='true' @getTop="getTop"/>
  5. <image :src="bgimg" class="homebg"></image>
  6. <view class="hometop">
  7. <swiper class="swiper" circular :indicator-active-color="activecolor" :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval"
  8. :duration="duration">
  9. <swiper-item>
  10. <image :src="swpimga" class="swiperimg"></image>
  11. </swiper-item>
  12. <swiper-item>
  13. <image :src="swpimga" class="swiperimg"></image>
  14. </swiper-item>
  15. <swiper-item>
  16. <image :src="swpimga" class="swiperimg"></image>
  17. </swiper-item>
  18. </swiper>
  19. </view>
  20. <view class="htlists">
  21. <view class="flexc flexdc w33">
  22. <image :src="topimga" class="htlisti"></image>
  23. <view class="f13 c0 ">招商政策</view>
  24. </view>
  25. <view class="flexc flexdc w33">
  26. <image :src="topimgb" class="htlisti"></image>
  27. <view class="f13 c0 ">使用指南</view>
  28. </view>
  29. <view class="flexc flexdc w33">
  30. <image :src="topimgc" class="htlisti"></image>
  31. <view class="f13 c0 ">权益内容</view>
  32. </view>
  33. </view>
  34. <view class="hgbox">
  35. <view class="flex1 ">
  36. <view class="hgboxtit">权益管理</view>
  37. <view class="hgboxtxt">可对拥有权益进行人员分配</view>
  38. </view>
  39. <view class="flex0 hgboxrtit">去管理</view>
  40. </view>
  41. <view class="hmlists">
  42. <view class="hmtop">
  43. <view class="hmtoptit">我的权益</view>
  44. <view class="hmtoptxt">
  45. 权益具体说明
  46. <image :src="rimg"></image>
  47. </view>
  48. </view>
  49. <view class="hmlist">
  50. <view class="hmlistt">
  51. <view class="hmlista">
  52. <image :src="mbgimg" class="hmlistai"></image>
  53. <view class="hmlistat">投资服务</view>
  54. </view>
  55. <view class="hmlistr">可享用</view>
  56. </view>
  57. <view class="hmlistb">
  58. <view class="flex1 mbt5">
  59. <view class="f13 c0 lh18">在我市投资过程中问题可直接向与乡镇反馈</view>
  60. <view class="f13 c0 lh18">市政府政务大厅相关业务实行代办服务</view>
  61. <view class="hmline"></view>
  62. </view>
  63. <image :src="lista" class="hmlistbr"></image>
  64. </view>
  65. </view>
  66. <view class="hmlist">
  67. <view class="hmlistt">
  68. <view class="hmlista">
  69. <image :src="mbgimg" class="hmlistai"></image>
  70. <view class="hmlistat">子女入学</view>
  71. </view>
  72. <view class="hmlistr">可享用</view>
  73. </view>
  74. <view class="hmlistb">
  75. <view class="flex1 mbt5">
  76. <view class="f13 c0 lh18">优先就近安排子女义务教育阶段学校就读</view>
  77. <view class="f13 c0 lh18">优先安排子女转入城区省示范高中就读</view>
  78. <view class="hmline"></view>
  79. </view>
  80. <image :src="lista" class="hmlistbr"></image>
  81. </view>
  82. </view>
  83. <view class="hmlist">
  84. <view class="hmlistt">
  85. <view class="hmlista">
  86. <image :src="mbgimg" class="hmlistai"></image>
  87. <view class="hmlistat">医疗保障</view>
  88. </view>
  89. <view class="hmlistr">可享用</view>
  90. </view>
  91. <view class="hmlistb">
  92. <view class="flex1 mbt5">
  93. <view class="f13 c0 lh18">每年享受医院的免费健康体检</view>
  94. <view class="f13 c0 lh18">提供免费核酸检测并开通绿色优先通道</view>
  95. <view class="hmline"></view>
  96. </view>
  97. <image :src="lista" class="hmlistbr"></image>
  98. </view>
  99. </view>
  100. </view>
  101. <!-- 底部 导航栏 currentPage 当前页面ID -->
  102. <tab-bar :currentPage="0"></tab-bar>
  103. </view>
  104. </template>
  105. <script>
  106. import url from "@/util/url";
  107. let {host} = url
  108. //导入组件
  109. import tabBar from '@/components/tabbar/tabbar.vue'
  110. export default {
  111. data() {
  112. return {
  113. padtop:this.$http._GET.customBarH||0,
  114. backgroundColor: 'transparent',
  115. bgimg:require('@/static/image/bg.png'),
  116. swpimga:require("@/static/image/swipera.png"),
  117. indicatorDots: true,
  118. autoplay: false,
  119. activecolor:'#ffffff',
  120. interval: 2000,
  121. duration: 500,
  122. topimga:require("@/static/image/topa.png"),
  123. topimgb:require("@/static/image/topb.png"),
  124. topimgc:require("@/static/image/topc.png"),
  125. rimg:require("@/static/image/rimg.png"),
  126. mbgimg:require("@/static/image/mbg.png"),
  127. lista:require("@/static/image/lista.png"),
  128. };
  129. },
  130. components:{
  131. tabBar
  132. },
  133. methods: {
  134. getTop(e){
  135. this.padtop=e;
  136. },
  137. // 监听滚动
  138. },
  139. onPageScroll(res) {
  140. var scrolltop=res.scrollTop;
  141. if(scrolltop>0){
  142. this.backgroundColor='linear-gradient(60deg, #6A6BF1, #CB4BFA)'
  143. }else{
  144. this.backgroundColor='transparent'
  145. }
  146. },
  147. };
  148. </script>
  149. <style scoped lang="scss">
  150. .home{min-height: 100vh;background: #FFFFFF;overflow: auto;
  151. .homebg{width: 100%;height: 376rpx;}
  152. .hometop{margin-top:-208rpx;}
  153. .swiper{height: 260rpx;margin: 0 34rpx 28rpx;
  154. .swiperimg{width: 100%;height: 100%;}
  155. }
  156. .htlists{margin-bottom: 20rpx;display: flex;padding: 0 10rpx 32rpx;
  157. .htlisti{width: 146rpx;height: 146rpx;margin-bottom: 12rpx;}
  158. }
  159. .hgbox{margin:0rpx 32rpx 16rpx;background: #1B1B1D;border-radius: 14rpx;padding: 20rpx 20rpx 20rpx 16rpx;display: flex;align-items: center;justify-content: space-between;min-height: 128rpx;box-sizing: border-box;
  160. .hgboxtit{font-size: 34rpx;font-weight: bold;color: #C1A76B;margin-bottom: 8rpx;}
  161. .hgboxtxt{font-size: 24rpx;color: #B7AC93;}
  162. .hgboxrtit{width: 136rpx;height: 48rpx;background: linear-gradient(-89deg, #C6A36D, #E8D18A);border-radius: 24rpx;font-size: 26rpx;color: #FFFFFF;text-align: center;line-height: 48rpx;}
  163. }
  164. }
  165. .hmlists{padding:0 32rpx;
  166. .hmtop{padding: 28rpx 0;display: flex;align-items: center;justify-content: space-between;
  167. .hmtoptit{font-size: 34rpx;font-weight: bold;color: #3F3F3F;position: relative;line-height: 48rpx;
  168. &:after{width:38rpx;height: 6rpx;background: #B461F8;border-radius:2rpx;position: absolute;content: "";left: 50%;margin-left: -19rpx;bottom: -12rpx;border-radius: 2rpx;}
  169. }
  170. .hmtoptxt{
  171. font-size: 26rpx;color: #666666;
  172. display: flex;align-items: center;
  173. image{width: 16rpx;height: 28rpx;margin-left: 18rpx;}
  174. }
  175. }
  176. .hmlist{width: 100%;min-height: 188rpx;background: #F4F4F4;
  177. border-radius: 14rpx;padding: 0 22rpx 14rpx 14rpx;box-sizing: border-box;margin-bottom: 20rpx;
  178. .hmlistt{
  179. display: flex;justify-content: space-between;margin-bottom: 8rpx;
  180. .hmlista{position: relative;width: 112rpx;height: 48rpx;
  181. .hmlistai{width: 112rpx;height: 48rpx;}
  182. .hmlistat{font-size: 22rpx;font-weight: bold;color: #FFFFFF;line-height: 40rpx;text-align: center;position: absolute;left: 0;top: 0;right: 0;bottom: 0;}
  183. }
  184. .hmlistr{min-width: 70rpx;height: 26rpx;background: rgba(124, 198, 35, 0.3);border-radius: 12rpx;text-align: center;line-height: 26rpx;font-size: 16rpx;color: #21C050;padding: 0 10rpx;margin: 10rpx 10rpx 0 0 ;}
  185. }
  186. .hmlistb{
  187. display: flex;justify-content: space-between;
  188. .hmlistbr{margin-left: 16rpx;width: 140rpx;height: 102rpx;flex: 0 0 auto;}
  189. .hmline{width: 22rpx;height: 2rpx;background: #C5C5C5;margin-top: 16rpx;}
  190. }
  191. }
  192. }
  193. </style>