微信 小程序组件 循环

//循环
<block wx:key="style" wx:for="{{item.style}}" wx:for-item="its" wx:for-index="itx">
<!-- <view > -->
<view class='rob-merch-list flexba'>
<view class='merch-list-left'>
<text>{{its.symbol}}</text>
<text>(库存{{its.repertory}}件)</text>
</view>
<view class='merch-list-right'>
<!-- {{its.num}} -->
<view class="merch-stepper flexca">
<!-- 减号 -->
<view class="merch-stepper-symbol flexca}" data-alphb-itx="{{index}}" data-alpha-itx="{{itx}}" data-alpha-beta="0" bindtap="changeNum">
<text>-</text>
</view>
<!-- 数值 -->
<view class="nownum">{{its.buynum}}</view>
<!-- 加号 -->
<view class="merch-stepper-symbol flexca" data-alphb-itx="{{index}}" data-alpha-itx="{{itx}}" data-alpha-beta="1" bindtap="changeNum">
<text>+</text>
</view>
 
</view>
</view>
</view>
<!-- </view> -->
</block>
posted @ 2017-10-09 11:07  ThisCall  阅读(986)  评论(0编辑  收藏  举报