index.wxml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. <!--pages/publics/publics.wxml-->
  2. <wxs module="filter" src="./util.wxs"></wxs>
  3. <view style="background-color: #F5F5F5">
  4. <scroll-view style="height: {{scroll_height}}rpx;" scroll-y="true">
  5. <!-- 顶部栏 -->
  6. <view class="top">
  7. <image src="{{imgUrl}}topbg.webp" style="width: 100%;height:519rpx"></image>
  8. <image src="{{imgUrl}}publicLogo.png" class="top-logo" style="top: {{navHeight}}rpx"></image>
  9. <!-- <view class="top-serach">
  10. <view class="search-input">
  11. <input style="height: 72rpx;" placeholder="请在此输入关键字" />
  12. </view>
  13. <button class="search-button">
  14. <image src="{{imgUrl}}search.png"></image>
  15. </button>
  16. </view> -->
  17. </view>
  18. <!-- 区政府领导 -->
  19. <view class="learder">
  20. <view style="display:flex" class="content-top">
  21. <view class="content-line"></view>
  22. <view class="content-title">区政府领导</view>
  23. <view class="content-more" bindtap="gotoLeaderDetail">查看更多 >></view>
  24. </view>
  25. <view wx:if="{{isZFLDLoading}}" style="display: flex;justify-content: center;align-items: center;height: 100%;">
  26. <t-loading theme="spinner" size="64rpx" text="加载中..." inheritColor></t-loading>
  27. </view>
  28. <swiper wx:if="{{!isZFLDLoading}}" display-multiple-items="3" autoplay="{{false}}" style="padding: 0 20rpx;height: 290rpx" next-margin="40rpx" snap-to-edge="{{true}}">
  29. <block wx:for="{{leaderList}}" wx:key="*this">
  30. <swiper-item>
  31. <image bindtap="gotoLeaderInfo" data-item="{{item}}" style="width: 198rpx;height:247rpx; background:linear-gradient(#3692c4 0%,#FFFFFF 100%)" src="{{item.DOCPUBURL}}{{item.LDTX[0].APPFILE}}"></image>
  32. <view style="display: flex;align-items: center;white-space: nowrap;width: 200rpx;">
  33. <view class="swiper-name">{{item.CHNLIDNAME}}</view>
  34. <view class="swiper-item">{{item.DRZW}}</view>
  35. </view>
  36. </swiper-item>
  37. </block>
  38. </swiper>
  39. </view>
  40. <!-- 政府信息公开 -->
  41. <view>
  42. <view style="display:flex" class="content-top">
  43. <view class="content-line"></view>
  44. <view class="content-title">政府信息公开</view>
  45. <view class="content-more" bindtap="goToGovernment">查看更多 >></view>
  46. </view>
  47. <view style="padding: 0 40rpx;display: flex;justify-content:space-between;flex-wrap: wrap;">
  48. <view bindtap="goToGovernment" data-index="{{index}}" wx:for="{{governmentInfoList}}" wx:key="index" style="position: relative;padding: 10rpx 0;">
  49. <image src="{{imgUrl}}{{item.pic}}" style="width: 326rpx;height: 157rpx;" />
  50. <view style="font-size: 24rpx;position: absolute;top: 67rpx;left: 8rpx;">{{item.title}}</view>
  51. </view>
  52. </view>
  53. </view>
  54. <!-- 基层政务公开 -->
  55. <view style="margin-bottom: 20rpx;">
  56. <view style="display:flex" class="content-top">
  57. <view class="content-line"></view>
  58. <view class="content-title">基层政务公开</view>
  59. <view class="content-more" bindtap="goToBaseAffairs">查看更多 >></view>
  60. </view>
  61. <view style="padding: 0 8rpx 20rpx 8rpx;background-color: #ffffff;width: 690rpx;margin-left: 30rpx;display: flex;flex-wrap:wrap;justify-content: space-between;">
  62. <view data-item="{{index}}" bindtap="goToBaseAffairsDetail" wx:for="{{baseList}}" wx:for-index="index" wx:for-item="item" wx:key="index" style="position: relative;margin-top: 60rpx;color: #ffffff;font-size: 32rpx;width: 207rpx;height: 94rpx;background-color: #889FFF;border-radius: 8rpx;border: 1rpx solid #4547FF;display: flex;align-items: center;justify-content: center;">
  63. <view data-item="{{index}}" style="position: absolute;top: -40rpx;width: 65rpx;height: 65rpx;">
  64. <image data-item="{{index}}" style="width: 65rpx;height: 65rpx;" src="{{imgUrl + item.pic}}" mode="" />
  65. </view>
  66. <view style="padding-top: 4rpx;">
  67. {{item.name}}
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. <!-- 政策文件 -->
  73. <view style="height: 570rpx;">
  74. <view style="display:flex" class="content-top">
  75. <view class="content-line"></view>
  76. <view class="content-title">政策文件</view>
  77. <view class="content-more" bindtap="goToFileList">查看更多 >></view>
  78. </view>
  79. <view style="margin-top: 5rpx;width: 690rpx;margin-left: 30rpx;box-shadow: 0px -2px 5px 0px rgba(153,153,153,0.17);">
  80. <view style="height: 66rpx;display: flex;background-color: #ffffff;">
  81. <!-- 规范文件 -->
  82. <view style="position: relative;margin-left: 57rpx;" class="tab-item {{fileTab==0?'active':''}}" bindtap="clickFileTab" data-item="0">
  83. <view wx:if="{{ fileTab==0 }}" style="position: absolute;width: 0;height: 0;border-left: 10rpx solid transparent;border-right: 10rpx solid transparent;border-top: 10rpx solid #508FF4;bottom: -13rpx;" />
  84. <view style="height:50rpx;color: #333333;">规范文件</view>
  85. </view>
  86. <!-- 其他文件 -->
  87. <view style="position: relative;margin-left: 70rpx;" class="tab-item {{fileTab==1?'active':''}}" bindtap="clickFileTab" data-item="1">
  88. <view wx:if="{{ fileTab==1 }}" style="position: absolute;width: 0;height: 0;border-left: 10rpx solid transparent;border-right: 10rpx solid transparent;border-top: 10rpx solid #508FF4;bottom: -13rpx;" />
  89. <view style="height:50rpx;color: #333333;">其他文件</view>
  90. </view>
  91. <!-- 废止和失效文件 -->
  92. <view style="position: relative;margin-left: 70rpx;" class="tab-item {{fileTab==2?'active':''}}" bindtap="clickFileTab" data-item="2">
  93. <view wx:if="{{ fileTab==2 }}" style="position: absolute;width: 0;height: 0;border-left: 10rpx solid transparent;border-right: 10rpx solid transparent;border-top: 10rpx solid #508FF4;bottom: -13rpx;" />
  94. <view style="height:50rpx;color: #333333;">废止和失效文件</view>
  95. </view>
  96. </view>
  97. <view style="height: 420rpx;">
  98. <swiper duration="200" current="{{fileItem}}" bindchange="changeFileTab" style="height: 100%">
  99. <swiper-item>
  100. <scroll-view scroll-y="true" style="height: 100%;padding:0;margin:0;">
  101. <view wx:if="{{isZCWJLoading}}" style="display: flex;justify-content: center;align-items: center;height: 100%;">
  102. <t-loading theme="spinner" size="64rpx" text="加载中..." inheritColor></t-loading>
  103. </view>
  104. <include wx:else src="file.wxml" />
  105. </scroll-view>
  106. </swiper-item>
  107. <swiper-item>
  108. <scroll-view scroll-y="true" style="height: 100%;padding:0;margin:0;">
  109. <view wx:if="{{isZCWJLoading}}" style="display: flex;justify-content: center;align-items: center;height: 100%;">
  110. <t-loading theme="spinner" size="64rpx" text="加载中..." inheritColor></t-loading>
  111. </view>
  112. <include wx:else src="file.wxml" />
  113. </scroll-view>
  114. </swiper-item>
  115. <swiper-item>
  116. <scroll-view scroll-y="true" style="height: 100%;padding:0;margin:0;">
  117. <view wx:if="{{isZCWJLoading}}" style="display: flex;justify-content: center;align-items: center;height: 100%;">
  118. <t-loading theme="spinner" size="64rpx" text="加载中..." inheritColor></t-loading>
  119. </view>
  120. <include wx:else src="file.wxml" />
  121. </scroll-view>
  122. </swiper-item>
  123. </swiper>
  124. </view>
  125. </view>
  126. </view>
  127. <!-- 政策解读 -->
  128. <view style="margin-top: 20rpx;">
  129. <view style="display:flex" class="content-top">
  130. <view class="content-line"></view>
  131. <view class="content-title">政策解读</view>
  132. <view class="content-more" bindtap="gotoInterpretation">查看更多 >></view>
  133. </view>
  134. <view class="policy-interpretation">
  135. <view style="display: flex;justify-content: center;">
  136. <view class="navigate-item" id="item{{index}}" wx:for="{{policyInterpretation}}" wx:key="index" data-index="{{index}}" bindtap="tabNav">
  137. <view class="names">{{item.name}}</view>
  138. <view class="currtline {{currentTab === index ? 'active' : ''}}" wx:if="{{currentTab === index}}"></view>
  139. <view wx:if="{{ currentTab === index }}" style="position: absolute;width: 0;height: 0;border-left: 10rpx solid transparent;border-right: 10rpx solid transparent;border-top: 10rpx solid #508FF4;bottom: -5rpx;left: 45rpx;" />
  140. </view>
  141. </view>
  142. <swiper current="{{currentTab}}" bindchange="handleSwiper" autoplay="{{false}}" style="padding: 0 10px;margin-top: 10rpx;height: 320rpx;">
  143. <!-- 文字解读 -->
  144. <swiper-item>
  145. <view wx:if="{{isZCJDLoading}}" style="display: flex;justify-content: center;align-items: center;height: 100%;">
  146. <t-loading theme="spinner" size="64rpx" text="加载中..." inheritColor></t-loading>
  147. </view>
  148. <view wx:if="{{!isZCJDLoading}}" bindtap="gotoZCJDDetail" data-channelid="{{item.CHNLID}}" wx:key="index" wx:for="{{textInterpretationList}}" style="display: flex;align-items: center;justify-content: space-between;flex-wrap: wrap;height: 107rpx;font-size: 28rpx;color: #666666;width: 639rpx;margin-left: 23rpx;border-bottom: 2rpx solid #CCCCCC;">
  149. <view class="limit-text-1" style="width: 500rpx">{{item.DOCTITLE}}</view>
  150. <view>{{filter.formateDate(item.DOCPUBTIME)}}</view>
  151. </view>
  152. </swiper-item>
  153. <!-- 图片解读 -->
  154. <swiper-item>
  155. <view wx:if="{{isZCJDLoading}}" style="display: flex;justify-content: center;align-items: center;height: 100%;">
  156. <t-loading theme="spinner" size="64rpx" text="加载中..." inheritColor></t-loading>
  157. </view>
  158. <view wx:if="{{!isZCJDLoading}}" style="display: flex;justify-content: space-between;">
  159. <view style="width: 327rpx;" bindtap="gotoZCJDDetailByDocId" data-url="{{item.DOCPUBURL}}" data-docid="{{item.DOCID}}" data-channelid="{{item.CHNLID}}" wx:for="{{pictureInterpretationList}}" wx:key="index">
  160. <!-- <image src="{{item.logoImg}}" style="width: 327rpx;height: 185rpx;"></image> -->
  161. <view style="width: 327rpx;height: 185rpx;background-image: url({{item.logoImg}});background-size:cover;"></view>
  162. <view class="limit-text-3" style="font-size: 20rpx;font-family: PingFang SC;color: #666666;">{{item.DOCTITLE}}</view>
  163. </view>
  164. </view>
  165. </swiper-item>
  166. <!-- 视频解读 -->
  167. <swiper-item>
  168. <!-- <view style="display: flex;align-items: center;justify-content: center;">
  169. <view style="height: 30%;width: 30%;">
  170. <t-empty icon="info-circle-filled" description="暂无数据" />
  171. </view>
  172. </view> -->
  173. <view wx:if="{{isZCJDLoading}}" style="display: flex;justify-content: center;align-items: center;height: 100%;">
  174. <t-loading theme="spinner" size="64rpx" text="加载中..." inheritColor></t-loading>
  175. </view>
  176. <view wx:if="{{!isZCJDLoading}}" style="display: flex;justify-content: space-between;">
  177. <view style="width: 327rpx;" bindtap="gotoZCJDDetail" data-channelid="{{item.CHNLID}}" wx:for="{{videoInterpretationList}}" wx:key="index">
  178. <view style="width: 327rpx;height: 185rpx;background-image: url({{item.logoImg}});background-size:cover;"></view>
  179. <view style="font-size: 20rpx;font-family: PingFang SC;color: #666666;">{{item.DOCTITLE}}</view>
  180. </view>
  181. </view>
  182. </swiper-item>
  183. <!-- 媒体解读 -->
  184. <swiper-item>
  185. <!-- <view style="display: flex;align-items: center;justify-content: center;">
  186. <view style="height: 30%;width: 30%;">
  187. <t-empty icon="info-circle-filled" description="暂无数据" />
  188. </view>
  189. </view> -->
  190. <view wx:if="{{isZCJDLoading}}" style="display: flex;justify-content: center;align-items: center;height: 100%;">
  191. <t-loading theme="spinner" size="64rpx" text="加载中..." inheritColor></t-loading>
  192. </view>
  193. <view wx:if="{{!isZCJDLoading}}" bindtap="gotoZCJDDetail" data-channelid="{{item.CHNLID}}" wx:key="index" wx:for="{{mediaInterpretationList}}" style="display: flex;align-items: center;justify-content: space-between;flex-wrap: wrap;height: 107rpx;font-size: 28rpx;color: #666666;width: 639rpx;margin-left: 23rpx;border-bottom: 2rpx solid #CCCCCC;">
  194. <view class="limit-text-1" style="width: 500rpx">{{item.DOCTITLE}}</view>
  195. <view>{{filter.formateDate(item.DOCPUBTIME)}}</view>
  196. </view>
  197. </swiper-item>
  198. </swiper>
  199. </view>
  200. </view>
  201. <!-- 政务专题 -->
  202. <view>
  203. <view style="display:flex" class="content-top">
  204. <view class="content-line"></view>
  205. <view class="content-title">政务专题</view>
  206. <view class="content-more" bindtap="goToZWZT">查看更多 >></view>
  207. </view>
  208. <swiper display-multiple-items="2" autoplay="{{false}}" style="padding: 0 10px;height: 400rpx;;">
  209. <block wx:for="{{topics}}" wx:key="*this">
  210. <swiper-item>
  211. <image src="{{item.pic}}" data-title="{{ item.title }}" bindtap="gotoZWDetail" data-url="{{item.url}}" style="width: 327rpx;height: 227rpx;border-radius: 12rpx;"></image>
  212. </swiper-item>
  213. </block>
  214. </swiper>
  215. </view>
  216. </scroll-view>
  217. </view>