|
|
@ -1,12 +1,12 @@ |
|
|
|
<view class="page"> |
|
|
|
<view class="title"> |
|
|
|
<view class="banner"> |
|
|
|
<!-- <view class="title"> |
|
|
|
<view class="banner"> --> |
|
|
|
<!-- 背景图 --> |
|
|
|
<image src="/images/banner.png" class="banner-bg" mode="widthFix" /> |
|
|
|
<!-- <image src="/images/banner.png" class="banner-bg" mode="widthFix" /> |
|
|
|
<view class="info"> |
|
|
|
<view class="name">{{curGridName}}</view> |
|
|
|
<view class="name">{{curGridName}}</view> --> |
|
|
|
<!-- <image bindtap="toSetUp" class="icon icon-right-1" src="/images/shezhi.png"></image> --> |
|
|
|
<image bindtap="logout" class="icon icon-right-1" src="/images/logout.png"></image> |
|
|
|
<!-- <image bindtap="logout" class="icon icon-right-1" src="/images/logout.png"></image> |
|
|
|
<image bindtap="toNotice" wx:if="{{notice == 0}}" class="icon icon-right-2" src="/images/notice.png"></image> |
|
|
|
<image bindtap="toNotice" wx:else class="icon icon-right-2" src="/images/notice-xz.png"></image> |
|
|
|
</view> |
|
|
@ -24,7 +24,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
<!-- 书记在线 --> |
|
|
|
<!-- <view class="sudoku clerkOnline" wx:if="{{panel.length !==0}}"> |
|
|
|
<view class="content"> |
|
|
@ -36,38 +36,58 @@ |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
<!-- 九宫格循环 --> |
|
|
|
<block wx:for="{{panel}}" wx:for-item="itemPanel"> |
|
|
|
<view class="detailed"> |
|
|
|
<view class="detailed-name">{{itemPanel.mainLabel}}</view> |
|
|
|
<view class="sudoku"> |
|
|
|
<view class="content"> |
|
|
|
<view wx:for="{{itemPanel.childNav}}" wx:for-index="index" wx:for-item="itemChild" data-state="{{index}}" data-tmp="{{itemPanel.templateInfo.templateCode}}" data-navcode="{{itemChild.navCode}}" bindtap="toTabs" hover-stay-time="150" hover-class="grid-hover" class="item"> |
|
|
|
<image src="{{itemChild.icon}}" /> |
|
|
|
<view class="name">{{itemChild.label}}</view> |
|
|
|
<!-- 书记在线特殊处理 --> |
|
|
|
<button wx:if="{{itemChild.navCode == 10011 && checkUpdateAvatar}}" class="button" open-type="getUserInfo" catchgetuserinfo="getInfo" hover-stop-propagation="{{propagation}}"></button> |
|
|
|
<!-- 工作日志特殊处理 --> |
|
|
|
<view wx:if="{{itemChild.navCode == 10021 && workCheckUpdateAvatar}}" class="but" data-navCode="{{itemChild.navCode}}" catchtap="navigateToUd" hover-stop-propagation="{{propagation}}"> |
|
|
|
<button data-navCode="{{itemChild.navCode}}" class="button button-wid" open-type="getUserInfo" bindgetuserinfo="getInfoWork"></button> |
|
|
|
</view> |
|
|
|
<!-- 周报告 --> |
|
|
|
<view wx:if="{{itemChild.navCode == 10022 && workCheckUpdateAvatar}}" class="but button-weekly" data-navCode="{{itemChild.navCode}}" catchtap="navigateToUd" hover-stop-propagation="{{propagation}}"> |
|
|
|
<button data-navCode="{{itemChild.navCode}}" class="button button-wid button-weekly" open-type="getUserInfo" bindgetuserinfo="getInfoWork"></button> |
|
|
|
</view> |
|
|
|
<!-- 月报告 --> |
|
|
|
<view wx:if="{{itemChild.navCode == 10023 && workCheckUpdateAvatar}}" class="but button-monthly" data-navCode="{{itemChild.navCode}}" catchtap="navigateToUd" hover-stop-propagation="{{propagation}}"> |
|
|
|
<button data-navCode="{{itemChild.navCode}}" class="button button-wid button-monthly" open-type="getUserInfo" bindgetuserinfo="getInfoWork"></button> |
|
|
|
</view> |
|
|
|
<view wx:if="{{itemChild.navCode == 10024 && workCheckUpdateAvatar}}" class="but button-left" data-navCode="{{itemChild.navCode}}" catchtap="navigateToUd" hover-stop-propagation="{{propagation}}"> |
|
|
|
<button data-navCode="{{itemChild.navCode}}" class="button button-wid button-left" open-type="getUserInfo" bindgetuserinfo="getInfoWork"></button> |
|
|
|
</view> |
|
|
|
<view wx:if="{{itemChild.num>0}}" class="number {{itemChild.label.length === 2 ? 'number-left-2': itemChild.label.length === 3 ? 'number-left-3': itemChild.label.length === 4 ? 'number-left-4':itemChild.label.length === 5 ? 'number-left-5':itemChild.label.length === 6 ? 'number-left-6' :''}}"> |
|
|
|
<text wx:if="{{itemChild.num > 999}}">999+</text> |
|
|
|
<text wx:else>{{itemChild.num}}</text> |
|
|
|
<view class="title-new"> |
|
|
|
<view class="grid-any"> |
|
|
|
<view bindtap="gridChange" class="grid-name"> |
|
|
|
<view>{{curGridName}}</view> |
|
|
|
<image src="/images/down.png"></image> |
|
|
|
</view> |
|
|
|
<view class="grid-set"> |
|
|
|
<image wx:if="{{notice == 0}}" bindtap="toNotice" class="notice" src="/images/notice.png"></image> |
|
|
|
<image bindtap="toNotice" wx:else class="notice" src="/images/notice-xz.png"></image> |
|
|
|
<image bindtap="logout" class="logout" src="/images/logout.png"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="explain-new"> |
|
|
|
<image src="/images/ic_dang2.png"></image> |
|
|
|
<view class="explain-name-new">可按照网格支部查看</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="list-all"> |
|
|
|
<block wx:for="{{panel}}" wx:for-item="itemPanel"> |
|
|
|
<view class="detailed"> |
|
|
|
<view class="detailed-name">{{itemPanel.mainLabel}}</view> |
|
|
|
<view class="sudoku"> |
|
|
|
<view class="content"> |
|
|
|
<view wx:for="{{itemPanel.childNav}}" wx:for-index="index" wx:for-item="itemChild" data-state="{{index}}" data-tmp="{{itemPanel.templateInfo.templateCode}}" data-navcode="{{itemChild.navCode}}" bindtap="toTabs" hover-stay-time="150" hover-class="grid-hover" class="item"> |
|
|
|
<image src="{{itemChild.icon}}" /> |
|
|
|
<view class="name">{{itemChild.label}}</view> |
|
|
|
<!-- 书记在线特殊处理 --> |
|
|
|
<button wx:if="{{itemChild.navCode == 10011 && checkUpdateAvatar}}" class="button" open-type="getUserInfo" catchgetuserinfo="getInfo" hover-stop-propagation="{{propagation}}"></button> |
|
|
|
<!-- 工作日志特殊处理 --> |
|
|
|
<view wx:if="{{itemChild.navCode == 10021 && workCheckUpdateAvatar}}" class="but" data-navCode="{{itemChild.navCode}}" catchtap="navigateToUd" hover-stop-propagation="{{propagation}}"> |
|
|
|
<button data-navCode="{{itemChild.navCode}}" class="button button-wid" open-type="getUserInfo" bindgetuserinfo="getInfoWork"></button> |
|
|
|
</view> |
|
|
|
<!-- 周报告 --> |
|
|
|
<view wx:if="{{itemChild.navCode == 10022 && workCheckUpdateAvatar}}" class="but button-weekly" data-navCode="{{itemChild.navCode}}" catchtap="navigateToUd" hover-stop-propagation="{{propagation}}"> |
|
|
|
<button data-navCode="{{itemChild.navCode}}" class="button button-wid button-weekly" open-type="getUserInfo" bindgetuserinfo="getInfoWork"></button> |
|
|
|
</view> |
|
|
|
<!-- 月报告 --> |
|
|
|
<view wx:if="{{itemChild.navCode == 10023 && workCheckUpdateAvatar}}" class="but button-monthly" data-navCode="{{itemChild.navCode}}" catchtap="navigateToUd" hover-stop-propagation="{{propagation}}"> |
|
|
|
<button data-navCode="{{itemChild.navCode}}" class="button button-wid button-monthly" open-type="getUserInfo" bindgetuserinfo="getInfoWork"></button> |
|
|
|
</view> |
|
|
|
<view wx:if="{{itemChild.navCode == 10024 && workCheckUpdateAvatar}}" class="but button-left" data-navCode="{{itemChild.navCode}}" catchtap="navigateToUd" hover-stop-propagation="{{propagation}}"> |
|
|
|
<button data-navCode="{{itemChild.navCode}}" class="button button-wid button-left" open-type="getUserInfo" bindgetuserinfo="getInfoWork"></button> |
|
|
|
</view> |
|
|
|
<view wx:if="{{itemChild.num>0}}" class="number {{itemChild.label.length === 2 ? 'number-left-2': itemChild.label.length === 3 ? 'number-left-3': itemChild.label.length === 4 ? 'number-left-4':itemChild.label.length === 5 ? 'number-left-5':itemChild.label.length === 6 ? 'number-left-6' :''}}"> |
|
|
|
<text wx:if="{{itemChild.num > 999}}">999+</text> |
|
|
|
<text wx:else>{{itemChild.num}}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</block> |
|
|
|
</block> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |