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