Explorar o código

项目总计取第一条数据sequence1字段

xiaohaizhao %!s(int64=2) %!d(string=hai) anos
pai
achega
fa9b6f396b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packageA/salesHourglass/index.wxml

+ 1 - 1
packageA/salesHourglass/index.wxml

@@ -11,7 +11,7 @@
     <f2 onRender="{{onRenderChart}}" />
 </view>
 <view class="tips">
-    项目总计:{{full||0}}
+    项目总计:{{statistics.length ? statistics[0].sequence1 : 0}}
 </view>
 <view class="item" wx:for="{{statistics}}" wx:key="stagename">
     <view class="label">{{item.stagename}}</view>