index.wxml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!-- index.wxml -->
  2. <view class="container">
  3. <!-- 引入组件 -->
  4. <import src="/component/group/group.wxml" />
  5. <import src="/component/hot/hot.wxml" />
  6. <!-- <import src="/component/follow/follow.wxml" /> -->
  7. <import src="/component/my/my.wxml" />
  8. <!-- 调用组件 -->
  9. <template is="{{templates}}" data="{{groupData: groupData, hotData: hotData, followData: followData, myData: myData}}"></template>
  10. <!-- 顶部导航 -->
  11. <view class="top-tab">
  12. <block wx:for="{{tab}}" wx:key="{{index}}">
  13. <!-- <view class="tabbar {{index == myIndex ? 'select':' '}}" bindtap="switcher" data-index="{{index}}" wx:if="{{isIOS ? index === 0? false : true : true}}"> -->
  14. <view class="tabbar {{index == myIndex ? 'select':' '}}" bindtap="switcher" data-index="{{index}}">
  15. <text>{{item.name}}</text>
  16. </view>
  17. </block>
  18. </view>
  19. <!-- <view class="template" wx:if="{{templates == 'hot'}}">
  20. <template is="{{templates}}" data="{{...hotData}}"></template>
  21. </view>
  22. <view class="template" wx:elif="{{templates == 'follow'}}">
  23. <template is="{{templates}}" data="{{followData: followData}}"></template>
  24. </view>
  25. <view class="template" wx:else="{{templates == 'my'}}">
  26. <template is="{{templates}}" data="{{myData: myData}}"></template>
  27. </view> -->
  28. </view>
  29. <!-- <MyToast /> -->
  30. <view hidden="{{hide}}">
  31. <Dialog bindmyevent="jurisdiction" />
  32. </view>
  33. <view class="index-dialog" wx:if="{{indexSignDialog}}">
  34. <form bindsubmit="signInBtn" report-submit="{{true}}" class="index-dialog-wrapper" >
  35. <view class="index-dialog-text">签到领取小红花哦</view>
  36. <view class="index-dialog-btn" >去签到</view>
  37. <button class="index-dialog-btn-hide" form-type="submit"></button>
  38. </form>
  39. </view>
  40. <view class="index-dialog" wx:if="{{indexMissionDialog}}">
  41. <view class="index-dialog-wrapper" bindtap="missionBtn" >
  42. <view class="index-dialog-text">还有<text class="red-text">{{unfinishedCount}}</text>个小红花任务哦</view>
  43. <view class="index-dialog-btn" >查看任务</view>
  44. </view>
  45. </view>
  46. <view class="upgrade" hidden="{{upgradeHide}}">
  47. <view class="upgrade-main">
  48. <image class="close" bindtap="closeUpgrade" src="../../static/image/close.png"></image>
  49. <image class="upgrade-icon" bindtap="goUpgrade" src="https://reader-wx.ai160.com/images/reader/upgrade.png"></image>
  50. </view>
  51. </view>