<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>
  <view class="topName">
    <text>名称</text>
    <input placeholder="请输入新增产品类别" type='text' bindinput="setPruductTypeName" value='{{productTypeName}}'></input>
  </view>
  <view class="productDetail">
    <text>自定义产品信息</text>
    <scroll-view scroll-y enable-back-to-top wx:if="{{modelList}}">
      <view>
        <block wx:for="{{ modelList }}" wx:for-item="item" wx:for-index="index" wx:key="index">
          <view class="productInfo {{ item.isTouchMove ? 'touch-move-active' : '' }}" bindtouchstart="touchStart"
            bindtouchmove="touchMove" data-index="{{ index }}">
            <view class="info">
              <text>{{item.name}}</text>
            </view>
            <view class="del" bindtap="delModel" data-index="{{ index }}"> 删除 </view>
          </view>
        </block>
      </view>
    </scroll-view>
    <block wx:for="{{lists}}" wx:key="{{index}}">
      <view>
        <input class='create-li' data-index="{{index}}" placeholder="请输入产品信息" bindinput='bindKeyInput'></input>
      </view>
    </block>
    <view class="submit" bindtap='addList'>
      <image src="/img/bg-add.png"></image> 新增产品信息
      <!-- <button class='add-li' bindtap='delList'>删除选项</button> -->
    </view>
  </view>
  <view class="foot" bindtap="submit">
    <text>保存</text>
  </view>
</view>