From edd35a251b58b1fad17015deda92324f74458434 Mon Sep 17 00:00:00 2001
From: unknown <unknown@example.com>
Date: 星期三, 17 八月 2022 00:05:30 +0800
Subject: [PATCH] 台账模块、智能咨询模块
---
pages/module_ledger/ledgerhome/ledgerhome.wxml | 65 +++++++++++++++++++++++++++++---
1 files changed, 59 insertions(+), 6 deletions(-)
diff --git a/pages/module_ledger/ledgerhome/ledgerhome.wxml b/pages/module_ledger/ledgerhome/ledgerhome.wxml
index c502f1a..00fbec0 100644
--- a/pages/module_ledger/ledgerhome/ledgerhome.wxml
+++ b/pages/module_ledger/ledgerhome/ledgerhome.wxml
@@ -2,16 +2,69 @@
<view class="page">
<view class="banner-bg"></view>
<view class="page__hd">
- <view class="head_1">鏈湀鍙拌处鎻愪氦鏃ワ細{{deadline}}</view>
- <view wx:if="{{leftday > 0}}" class="head_2">鍓╀綑<text>{{leftday}}</text>澶�</view>
- <view wx:else class="head_2">宸查�炬湡锛岃灏藉揩鎻愪氦</view>
- <view class="head_3">鍑嗘椂浜ゅ彴璐︼紝缁存姢濂戒俊鐢�</view>
+ <!-- <view class="fyui-panel"> -->
+ <view class="head_right" bindtap="changeMonth">
+ <text class="head_tag" >{{showThisMonth ? thisMonth + '鏈湀' : lastMonth + '涓婃湀'}}姹囨��</text>
+ <mp-icon style="margin-left: 4px;" icon="transfer2" color="white" size="{{20}}"></mp-icon>
+ </view>
+ <view class="card">
+ <block wx:if="{{showThisMonth}}">
+ <view class="head_row">
+ <view class="head_row_item">
+ <view class="head_tag">閫夊~椤�</view>
+ <view class="head_1">{{thisMonthInfo.finishedSelect}}<text class="head_row_item_tag">/{{thisMonthInfo.totalSelect}}</text></view>
+ </view>
+ <view class="head_row_item">
+ <view class="head_tag">蹇呭~椤�</view>
+ <view class="head_1">{{thisMonthInfo.finishedMust}}<text class="head_row_item_tag">/{{thisMonthInfo.totalMust}}</text></view>
+ </view>
+ <view class="head_row_item">
+ <view class="head_tag">瀹屾垚搴�</view>
+ <view class="head_1">{{thisMonthInfo.percent}}<text class="head_row_item_tag">%</text></view>
+ </view>
+ </view>
+ <view class="head_row">
+ <view class="head_tag">鏈湡鍙拌处鎻愪氦鏃ワ細{{deadline}}</view>
+ <view wx:if="{{leftday > 0}}" class="head_tag">鍓╀綑<text>{{leftday}}</text>澶�</view>
+ <view wx:else class="head_tag">閫炬湡 <text>{{thisMonthInfo.overtime}}</text>澶�</view>
+ </view>
+ <view class="head_tag">寤鸿锛歿{thisMonthInfo.suggestion}}</view>
+
+ </block>
+ <block wx:else>
+ <view class="head_row">
+ <view class="head_row_item">
+ <view class="head_tag">閫夊~椤�</view>
+ <view class="head_1">{{lastMonthInfo.finishedSelect}}<text class="head_row_item_tag">/{{lastMonthInfo.totalSelect}}</text></view>
+ </view>
+ <view class="head_row_item">
+ <view class="head_tag">蹇呭~椤�</view>
+ <view class="head_1">{{lastMonthInfo.finishedMust}}<text class="head_row_item_tag">/{{lastMonthInfo.totalMust}}</text></view>
+ </view>
+ <view class="head_row_item">
+ <view class="head_tag">瀹屾垚搴�</view>
+ <view class="head_1">{{lastMonthInfo.percent}}<text class="head_row_item_tag">%</text></view>
+ </view>
+ </view>
+ <view class="head_row">
+ <view class="head_tag">鎻愪氦鎯呭喌锛歿{lastMonthInfo.status}}</view>
+ </view>
+ <view class="head_tag">寤鸿锛歿{lastMonthInfo.suggestion}}</view>
+ </block>
+ </view>
+ <view class="head_right">
+ <text class="head_tag" bindtap="gotoHistory">鍘嗗彶璁板綍 ></text>
+ </view>
</view>
+ <!-- </view> -->
<view class="page__bd">
<view class="swiper-tab">
- <scroll-view scroll-left="{{navScrollLeft}}" scroll-x="true" show-scrollbar="false" scroll-with-animation="true">
+ <scroll-view class="swiper-tab_view" scroll-left="{{navScrollLeft}}" scroll-x="true" show-scrollbar="true" scroll-with-animation="true">
<block wx:for="{{tabList}}" wx:key="i">
- <view class="swiper-tab-list {{currentTab==index ? 'on' : ''}}" data-current="{{index}}" bindtap="swichNav">{{item}}</view>
+ <view class="swiper-tab-list {{currentTab==index ? 'on' : ''}}" data-current="{{index}}" bindtap="swichNav">
+ {{item.name}}
+ <text wx:if="{{item.tag > 0}}" class="swiper-tab-list__tag">{{item.tag}}</text>
+ </view>
</block>
</scroll-view>
</view>
--
Gitblit v1.9.3