Program.wxml 2.4 KB
<!--pages/Program/Program.wxml-->
<view wx:for='{{list}}' wx:key>
  <view class='line_box'></view>
  <view class='content_box'>
    <view class='item_list'>
      <view>产品名称</view>
      <view class='list_input'>
        <input placeholder='请输入产品名称' value='{{item.name}}' bindinput='setName' data-index='{{index}}' placeholder-class='pl_style' disabled='{{item.last_state}}'></input>
      </view>
    </view>
    <view class='item_list'>
      <view>保险公司</view>
      <view class='list_input'>
        <input placeholder='请输入保险公司' value='{{item.firm}}' bindinput='setFirm' data-index='{{index}}' placeholder-class='pl_style' disabled='{{item.last_state}}'></input>
      </view>
    </view>
    <view class='item_list'>
      <view>保障内容</view>
      <view class='list_input'>
        <textarea placeholder='请输入保障内容' value='{{item.text}}' bindinput='setText' data-index='{{index}}' placeholder-class='pl_style' disabled='{{item.last_state}}'></textarea>
      </view>
    </view>
  </view>
  <view class='list_btn_box'>
    <view class='list_btn' bindtap='del' data-id='{{item.id}}' wx:if='{{item.last_state}}'>删除方案</view>
    <view class='list_btn add_btn' bindtap='addPlan' data-id='{{item.id}}' data-index='{{index}}' wx:if='{{item.add_state}}'>添加方案</view>
  </view>
  <!-- <view class='line_box'></view> -->
</view>
<!-- <view wx:if='{{}}'>
  <view class='content_box'>
    <view class='item_list'>
      <view>产品名称</view>
      <view class='list_input'>
        <input placeholder='请输入产品名称' value='{{temobj.name}}' bindinput='settemname'></input>
      </view>
    </view>
    <view class='item_list'>
      <view>保险公司</view>
      <view class='list_input'>
        <input placeholder='请输入保险公司' value='{{temobj.firm}}' bindinput='settemfirm'></input>
      </view>
    </view>
    <view class='item_list'>
      <view>保障内容</view>
      <view class='list_input'>
        <textarea placeholder='请输入保障内容' value='{{temobj.text}}' bindinput='settemtext'></textarea>
      </view>
    </view>
  </view>
  <view class='list_btn_box'>
    <view class='list_btn' bindtap='deltemobj'>删除方案</view>
    <view class='list_btn add_btn' bindtap='addtemobj'>添加方案</view>
  </view>
</view> -->
<view class='bottom_box'>
  <view class='save_btn' bindtap='allsave'>保存</view>
</view>