editProduct.wxml 1.3 KB

1234567891011121314151617181920212223242526
  1. <view class="toptip {{tipStaus}} text-white {{tipType}}" style='top:{{CustomBar}}px;'>{{tipText}}</view>
  2. <cu-custom bgColor="bg-color" isBack="{{true}}" title="修改产品">
  3. <!-- <view slot="content">添加产品</view> -->
  4. </cu-custom>
  5. <view class="form">
  6. <form bindsubmit="formSubmit">
  7. <view>
  8. <text>产品名称 <text style="color:red;width:5vw;">*</text> </text>
  9. <input placeholder="请输入产品名称" type='text' value="{{item.name}}" name ='name'></input>
  10. </view>
  11. <view>
  12. <text>生产企业<text style="color:red;width:5vw;">*</text></text>
  13. <input placeholder="请输入生产企业" type='text' value="{{item.companyName}}" name= 'companyName'></input>
  14. </view>
  15. <view>
  16. <text>产品条形码</text>
  17. <input placeholder="请输入产品条形码" type='text' value="{{code}}" bindinput="setCode" name = "code"></input>
  18. <image src="/img/chan.png" bindtap="scanCode"></image>
  19. </view>
  20. <view wx:for="{{modelList}}" wx:for-item="item" wx:key="index">
  21. <text>{{item.keyStr}}<text style="color:red;width:5vw;">*</text></text>
  22. <input placeholder="请输入{{item.keyStr}}" type='text' value="{{item.valueStr}}" name='{{item.keyStr}}'></input>
  23. </view>
  24. <button style="margin-top:100rpx;" form-type="submit" class="foot">保存</button>
  25. </form>
  26. </view>