coolhwm/leshare-seller-wepy

这段代码没有看懂,请指导下

Opened this issue · 1 comments

数据源

{"code":0,"data":[{"status":0,"total":5},{"status":1,"total":6},{"status":2,"total":10},{"status":3,"total":5},{"status":6,"total":3},{"status":7,"total":3},{"status":8,"total":7},{"status":9,"total":10}]}

<view>
      <view class="count-box row-around bg-white">
        <navigator class="count-item column-center"  @tap="order('2')" open-type="switchTab" url="../order/index">
          <text class="count-value">{{order.n2}}</text>
          <text class="muted">待接单订单</text>
        </navigator>
        <view class="vr"/>
        <navigator class="count-item column-center"  @tap="order('9')" open-type="switchTab" url="../order/index">
          <text class="count-value">{{order.n9}}</text>
          <text class="muted">待发货订单</text>
        </navigator>
        <view class="vr"/>
        <navigator class="count-item column-center"  @tap="order('3')" open-type="switchTab" url="../order/index">
          <text class="count-value">{{order.n3}}</text>
          <text class="muted">待送达订单</text>
        </navigator>
        <view class="vr"/>
        <!--<navigator class="count-item column-center" @tap="order('5')" open-type="switchTab" url="../order/index">-->
          <!--<text class="count-value">{{order.n5}}</text>-->
          <!--<text class="muted">待退款订单</text>-->
        <!--</navigator>-->
      </view>

这段代码中绑定的order.n2,order.n9,order.n3,是什么意思啊?我没有看懂啊。请指导下。谢谢。

数据在调用API后处理了一下,数据源这种格式在前端不太好提取