Program.wxml 2.0 KB
<!--pages/Program/Program.wxml-->
<view class='line_box'></view>
<view wx:for='{{list}}' wx:key>
  <view class='content_box'>
    <view class='item_list'>
      <view>产品名称</view>
      <view class='list_input'>
        <input placeholder='请输入产品名称' value='{{item.name}}' bindinput='setmame' 
        data-index='{{index}}'></input>
      </view>
    </view>
    <view class='item_list'>
      <view>保险公司</view>
      <view class='list_input'>
        <input placeholder='请输入保险公司' value='{{item.firm}}' bindinput='setfirm' 
        data-index='{{index}}'></input>
      </view>
    </view>
    <view class='item_list'>
      <view>保障内容</view>
      <view class='list_input'>
        <input placeholder='请输入保障内容' value='{{item.text}}' bindinput='settext' data-index='{{index}}'></input>
      </view>
    </view>
  </view>
  <view class='list_btn_box'>
    <view class='list_btn'  bindtap='del' id='{{item.id}}'>删除方案</view>
  </view>
  <view class='line_box'></view>
</view>
<view>
  <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>