<view class="toptip {{tipStaus}} text-white {{tipType}}" style='top:{{CustomBar}}px;'>{{tipText}}</view>
<cu-custom bgColor="bg-color" isBack="{{true}}" title="修改产品">
  <!-- <view slot="content">添加产品</view> -->
</cu-custom>
<view class="form">
  <form bindsubmit="formSubmit">
    <view>
      <text>产品名称 <text style="color:red;width:5vw;">*</text> </text>
      <input placeholder="请输入产品名称" type='text' value="{{item.name}}" name ='name'></input>
    </view>
    <view>
      <text>生产企业<text style="color:red;width:5vw;">*</text></text>
      <input placeholder="请输入生产企业" type='text' value="{{item.companyName}}" name= 'companyName'></input>
    </view>
    <view>
      <text>产品条形码</text>
      <input placeholder="请输入产品条形码" type='text' value="{{code}}" bindinput="setCode" name = "code"></input>
      <image src="/img/chan.png" bindtap="scanCode"></image>
    </view>
    <view wx:for="{{modelList}}" wx:for-item="item" wx:key="index">
      <text>{{item.keyStr}}<text style="color:red;width:5vw;">*</text></text>
      <input placeholder="请输入{{item.keyStr}}" type='text' value="{{item.valueStr}}" name='{{item.keyStr}}'></input>
    </view>
    <button style="margin-top:100rpx;" form-type="submit" class="foot">保存</button>
  </form>
</view>