index.wxml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <view style="width: 1rpx;height: {{capsule.top-6+'px'}};" />
  2. <view class="header" />
  3. <!-- 自定义nav -->
  4. <view style="position: fixed;top: 0; z-index: 999999999;">
  5. <view style="width: 100vw;height: {{capsule.top-6+'px'}};background-color:#085CDF;" />
  6. <view class="header">
  7. <navigator url="/pages/login/selectSite" open-type="reLaunch" class="header_title">
  8. {{user.sitename}}
  9. <van-icon name="arrow-down" />
  10. </navigator>
  11. </view>
  12. </view>
  13. <!-- 轮播区域 -->
  14. <view class="banner">
  15. <view class="banner_oval" />
  16. <swiper class='banner_content'>
  17. <swiper-item wx:for="{{bannerList}}">
  18. <image src="{{item.attinfos[0].url}}" mode="aspectFill" data-hyperlink="{{hyperlink}}" bindtap="bannerClick" />
  19. </swiper-item>
  20. </swiper>
  21. </view>
  22. <view style="height: 130rpx;" />
  23. <!-- 滚动通知 -->
  24. <view class="scroll-area" data-item="{{notice}}" catchtap="toMsg" wx:if="{{notice}}">
  25. <van-notice-bar custom-class='notice-bar' background="none" data-item="{{notice}}" color='#666' text="{{notice.message}}">
  26. <text slot="left-icon" data-item="{{notice}}" class="iconfont icon-a-shouyexiaoxigundongquxiaoxi" />
  27. </van-notice-bar>
  28. </view>
  29. <!-- 宫格区域 -->
  30. <My_card custom-class='grld'>
  31. <navigator url="#" class="item" wx:for="{{gridList}}" wx:key="{{index}}" data-item="{{item}}" catchtap="applications">
  32. <view class="iconfont {{item.icon}}" />
  33. <text>{{item.name}}</text>
  34. <view wx:if="{{item.count}}" class="badge">{{item.count}}</view>
  35. </navigator>
  36. </My_card>
  37. <!-- 数据概况 -->
  38. <block wx:if="{{per.query(subassembly,'homedatadisplay')}}">
  39. <view class="general-situation">
  40. <view class="title">
  41. <text class="iconfont icon-a-shouyeshujugaikuangzhanshishuju"></text>
  42. 数据概况
  43. </view>
  44. <view class="time">更新于:2022-02-12</view>
  45. </view>
  46. <My_card custom-class='data-display' hover>
  47. <view class="item" wx:for="{{6}}">
  48. <view class="label">销售额(¥)</view>
  49. <view class="nubmer">9999.99</view>
  50. </view>
  51. </My_card>
  52. </block>
  53. <!-- 通告 -->
  54. <My_card wx:if="{{annunciateList.length>0 && per.query(subassembly,'homenoticelist')}}" title='最新通告' class="annunciate">
  55. <view class="unread" slot='title-r' bindtap="toAnnunciate">
  56. <block wx:if="{{unreadNum!=0}}">
  57. {{unreadNum}}条未读
  58. <view class="circle" />
  59. </block>
  60. <block wx:else>查看全部</block>
  61. <van-icon class="icon" name="arrow" />
  62. </view>
  63. <block wx:for="{{annunciateList}}">
  64. <navigator url="#" class="item-box" data-item="{{item}}" bindtap="toAnnunciateDetails">
  65. <Item item='{{item}}' />
  66. </navigator>
  67. <view wx:if="{{index!=annunciateList.length-1}}" style="width: 100%; border-top: 1rpx solid #EEEEEE; margin-left: 30rpx;" />
  68. </block>
  69. </My_card>
  70. <view style="height: 140rpx;" />
  71. <wxs src='../../../utils/wxmlQueryPer.wxs' module="per" />