editSku.wxml 859 B

12345678910111213141516171819202122
  1. <view class="text-center">
  2. <view class="bg-f head i-flex weight fsz-28 py10 border-bottom">
  3. <view class="i-flex-item">名称</view>
  4. <view class="w100">剩余库存</view>
  5. <view class="w100">修改库存</view>
  6. </view>
  7. <view class="list" wx:if="{{need_data.length}}">
  8. <form bindsubmit="formSubmit">
  9. <view class="item bg-f i-flex py10 border-bottom" wx:for="{{need_data}}" wx:key="id">
  10. <view class="i-flex-item">{{item.title}}</view>
  11. <view class="item-num w100 {{item.stock<goods_stock_notice?'red':''}}">{{item.stock}}</view>
  12. <view class="item-edit w100">
  13. <input type="number" placeholder="请填写数量" name="ipt_{{item.id}}"></input>
  14. </view>
  15. </view>
  16. <view class="btn-area p15">
  17. <button formType="submit">保存</button>
  18. </view>
  19. </form>
  20. </view>
  21. </view>