index.wxml 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <nav-bar navbar-data='{{nvabarData}}'></nav-bar>
  2. <view class="home">
  3. <view class="main">
  4. <view class="swiper-tab">
  5. <view class="swiper-tab-item {{currentTab==0?'active':''}}" data-current="0" bindtap="clickTab" >政策解读</view>
  6. <view class="swiper-tab-item {{currentTab==1?'active':''}}" data-current="1" bindtap="clickTab">权威发布</view>
  7. </view>
  8. <swiper current="{{currentTab}}" bindchange="swiperTab" style="height:{{sHeight}}">
  9. <swiper-item>
  10. <view class="policyLeft">
  11. <view class="list" wx:key="unique" wx:for="{{policyList}}" wx:for-item="item" id="policy">
  12. <view bindtap="policyListDetail" id="{{list._id}}" data-pid="{{item.id}}">
  13. <!-- <image src="{{item.image}}"></image> -->
  14. <view class="info">
  15. <p>{{item.title}}</p>
  16. <!-- <p>
  17. <span>主题词:{{item.subject_headings}}</span>
  18. <span>政策等级:{{item.subject_classification}}</span>
  19. </p> -->
  20. <view class="infos">
  21. <!-- {{item.brief_introduction}} -->
  22. <text>{{item.brief_introduction}}</text>
  23. <text>{{item.create_time}}</text>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="loadmore loading" wx:if="{{ policyHasMore }}">正在加载...</view>
  30. <view class="loadmore" wx:else>已经到底了</view>
  31. </swiper-item>
  32. <swiper-item>
  33. <view class="policyLeft policyRight">
  34. <view class="list" wx:key="unique" wx:for="{{unscrambleList}}" wx:for-item="item" id="unscramble">
  35. <view bindtap="unscrambleListDetail" id="{{list._id}}" data-unid="{{item.id}}">
  36. <!-- <image src="{{item.image}}"></image> -->
  37. <view class="info">
  38. <p>{{item.title}}</p>
  39. <p>
  40. <span>主题词:{{item.subject_headings}}</span>
  41. <span>政策等级:{{item.subject_classification}}</span>
  42. </p>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. <view class="loadmore loading" wx:if="{{ unscrambleHasMore }}">正在加载...</view>
  48. <view class="loadmore" wx:else>已经到底了</view>
  49. </swiper-item>
  50. </swiper>
  51. </view>
  52. <view class="down">
  53. <van-tabbar active="{{ active }}" bind:change="onChange" class="tabber">
  54. <van-tabbar-item>
  55. <image slot="icon" src="{{ icon.normal }}" mode="aspectFit" style="width: 30px; height: 18px;" />
  56. <image slot="icon-active" src="{{ icon.active }}" mode="aspectFit" style="width: 30px; height: 18px;" />
  57. 首页
  58. </van-tabbar-item>
  59. <van-tabbar-item>
  60. <image slot="icon" src="{{ icon.bankNormal }}" mode="aspectFit" style="width: 30px; height: 18px;" />
  61. <image slot="icon-active" src="{{ icon.bankActive }}" mode="aspectFit" style="width: 30px; height: 18px;" />
  62. 我要融资
  63. </van-tabbar-item>
  64. <van-tabbar-item>
  65. <image slot="icon" src="{{ icon.marketNormal }}" mode="aspectFit" style="width: 30px; height: 18px;" />
  66. <image slot="icon-active" src="{{ icon.marketActive }}" mode="aspectFit" style="width: 30px; height: 18px;" />
  67. 金融超市
  68. </van-tabbar-item>
  69. <van-tabbar-item>
  70. <image slot="icon" src="{{ icon.policyNormal }}" mode="aspectFit" style="width: 30px; height: 18px;" />
  71. <image slot="icon-active" src="{{ icon.policyActive }}" mode="aspectFit" style="width: 30px; height: 18px;" />
  72. 政策解读</van-tabbar-item>
  73. <van-tabbar-item>
  74. <image slot="icon" src="{{ icon.myNormal }}" mode="aspectFit" style="width: 30px; height: 18px;" />
  75. <image slot="icon-active" src="{{ icon.myActive }}" mode="aspectFit" style="width: 30px; height: 18px;" />
  76. 我的</van-tabbar-item>
  77. </van-tabbar>
  78. </view>
  79. </view>