index.wxml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. <My_card custom-class='banner_content' hover>
  17. </My_card>
  18. </view>
  19. <view style="height: 130rpx;" />
  20. <!-- 滚动通知 -->
  21. <view class="scroll-area" data-item="{{notice}}" catchtap="toMsg">
  22. <van-notice-bar custom-class='notice-bar' background="none" color='#666' text="{{notice.message}}">
  23. <text slot="left-icon" class="iconfont icon-a-shouyexiaoxigundongquxiaoxi" />
  24. </van-notice-bar>
  25. </view>
  26. <!-- 宫格区域 -->
  27. <My_card custom-class='grld'>
  28. <navigator url="#" class="item" wx:for="{{gridList}}" wx:key="{{index}}" data-item="{{item}}" catchtap="applications">
  29. <view class="iconfont {{item.icon}}" />
  30. <text>{{item.name}}</text>
  31. </navigator>
  32. </My_card>
  33. <!-- 数据概况 -->
  34. <block wx:if="{{per.query(subassembly,'homedatadisplay')}}">
  35. <view class="general-situation">
  36. <view class="title">
  37. <text class="iconfont icon-a-shouyeshujugaikuangzhanshishuju"></text>
  38. 数据概况
  39. </view>
  40. <view class="time">更新于:2022-02-12</view>
  41. </view>
  42. <My_card custom-class='data-display' hover>
  43. <view class="item" wx:for="{{6}}">
  44. <view class="label">销售额(¥)</view>
  45. <view class="nubmer">9999.99</view>
  46. </view>
  47. </My_card>
  48. </block>
  49. <!-- 通告 -->
  50. <My_card wx:if="{{annunciateList.length>0 && per.query(subassembly,'homenoticelist')}}" title='最新通告' class="annunciate">
  51. <view class="unread" slot='title-r' bindtap="toAnnunciate">
  52. <block wx:if="{{unreadNum!=0}}">
  53. {{unreadNum}}条未读
  54. <view class="circle" />
  55. </block>
  56. <block wx:else>查看全部</block>
  57. <van-icon class="icon" name="arrow" />
  58. </view>
  59. <block wx:for="{{annunciateList}}">
  60. <navigator url="#" class="item-box" data-item="{{item}}" bindtap="toAnnunciateDetails">
  61. <Item item='{{item}}' />
  62. </navigator>
  63. <view wx:if="{{index!=annunciateList.length-1}}" style="width: 100%; border: 1rpx solid #EEEEEE; margin-left: 30rpx;" />
  64. </block>
  65. </My_card>
  66. <view style="height: 140rpx;" />
  67. <wxs src='../../../utils/wxmlQueryPer.wxs' module="per" />