summaryList.wxml 10.1 KB
<!-- 保障方案 -->
<view class='popup_box' wx:if='{{popup_state}}'>
  <view class='iconfont icon-guanbi2' bindtap='cancelCase'></view>
  <view class='popup_item' wx:for='{{caselist1}}' wx:key=''>
    <view class='left_box'>
      <view class='item_left' bindtap='popupState' data-index='{{index}}'>
        <view class="iconfont icon-fangkuang  {{item.choose_state?'icon-xuanzhongkuang':''}}"></view>
      </view>
    </view>
    <view class='item_right'>
      <view class='rifght_cell'>
        <view class='popup_name'>产品名称</view>
        <view class='popup_content'>{{item.name}}</view>
      </view>
      <view class='rifght_cell'>
        <view class='popup_name'>保险公司</view>
        <view class='popup_content'>{{item.firm}}</view>
      </view>
      <view class='rifght_cell'>
        <view class='popup_name'>保障内容</view>
        <view class='popup_content'>{{item.text}}</view>
      </view>
    </view>
  </view>
  <view class='null_box'></view>
  <view class='popup_btn' bindtap='confirmCase'>确认</view>
</view>

<block wx:else>
  <!-- 保单报告 -->
  <view class='top_box'>
    <view class='banner_title'>您的家庭保单体检报告</view>
    <view class='banner_content'>致:{{touser}}</view>
  </view>
  <!-- 保险顾问 -->
  <view class='personal_box'>
    <view class='banner_box'>
      <view class='content_title'>
        <text class='line'></text>
        <text class='title'>您的保险顾问</text>
      </view>
    </view>
    <view class='personal_content'>
      <view class='head_box'>
        <view class='head_portrait'>
          <image src='{{userinfo.avatar}}'></image>
        </view>
        <view>
          <view class='name'>{{userinfo.name}}
          </view>
          <view>电话 {{userinfo.mobile}}</view>
        </view>
      </view>
      <button class='list_icon_box' bindtap='makePhoneCall'>
        <view class='iconfont icon-dianhua2'></view>
      </button>
    </view>
  </view>
  <!-- 家庭成员 -->
  <view class='box'>
    <view class='banner_box'>
      <view class='content_title'>
        <text class='line'></text>
        <text class='title'>家庭成员</text>
      </view>
    </view>
    <view class='member'>
      <view class="member_list {{item.member_state?'member_active':''}}" wx:for='{{familymember}}' wx:key='' data-index='{{index}}' bindtap='memberCharge'>{{item.name}}</view>
    </view>
  </view>

  <view class="viewbox">
    <!-- 保单选项 -->
    <view class='tab_box'>
      <view class="tab_item {{tab_state==0?'tab_active':''}}" data-index='0' bindtap='tabCharge'>报告与建议</view>
      <view class="tab_item {{tab_state==1?'tab_active':''}}" data-index='1' bindtap='tabCharge'>保额汇总</view>
      <view class="tab_item {{tab_state==2?'tab_active':''}}" data-index='2' bindtap='tabCharge'>保单明细</view>
      <!-- ({{list_num}}) -->
    </view>

    <!-- 报告与建议 -->
    <view class='report_box' wx:if='{{tab_state==0}}'>
      <view class='medical_report_box'>
        <view class='banner_box'>
          <view class='content_title'>
            <text class='title'>体检报告</text>
          </view>
        </view>
        <view class='report_content'>
  
          <textarea value='{{report}}' bindinput='report' wx:if="{{show}}"></textarea>
           <text wx:else>{{report}}</text>
        </view>
       
      </view>
      <view class='medical_report_box'>
        <view class='banner_box'>
          <view class='content_title'>
            <text class='title'>建议</text>
          </view>
        </view>
        <view class='report_content'>
          <textarea value='{{advise}}' bindinput='suggest'></textarea>
        </view>
      </view>
      <!-- 缺口保障推荐方案 -->
      <view class='plan_box'>
        <view class='plan_title'>保障缺口推荐方案
          <text class='info'>(选填)</text>
        </view>
        <view class='plan_content' wx:for='{{caselist}}' wx:key='' wx:if="{{item.choose_state}}">
          <view class='iconfont icon-guanbi' bindtap='delCaselist' data-index='{{index}}'></view>
          <view class='plan_list'>
            <view class='plan_name'>产品名称</view>
            <view class='plan_input'>
              <input type='text' placeholder='重大疾病保' value='{{item.name}}' bindinput='planName' data-index='{{index}}' data-id='{{item.id}}' focus='' disabled='{{selected}}'></input>
            </view>
          </view>
          <view class='plan_list'>
            <view class='plan_name'>保险公司</view>
            <view class='plan_input'>
              <input type='text' placeholder='重大疾病保' value='{{item.firm}}' bindinput='planFirm' data-index='{{index}}' data-id='{{item.id}}' focus='' disabled='{{selected}}'></input>
            </view>
          </view>
          <view class='plan_list'>
            <view class='plan_name'>保障内容</view>
            <view class='plan_input'>
              <textarea placeholder='请输入保障内容' value='{{item.text}}' class='area_box' bindinput='planText' data-index='{{index}}' data-id='{{item.id}}' disabled='{{selected}}'>
              </textarea>
            </view>
          </view>
        </view>
      </view>
      <view class='plan_content'>
        <view class='plan_list'>
          <view class='add_plan'>
            <view>增加推荐方案</view>
            <view class="iconfont {{clickstate==1?'jia':'icon-wuuiconxiangjifangda'}}" bindtap='recommendCaseList'></view>
          </view>
        </view>
      </view>
    </view>

    <!-- 保额汇总 -->
    <block wx:elif='{{tab_state==1}}'>
      <view class='summary_item' wx:for='{{collect}}' wx:key='' wx:for-index='mindex' wx:if='{{item.collect_state}}'>
        <view class='summary_info'>{{item.name}}</view>
        <view class='summary_box'>
          <view class='summary_title_box'>
            <view class='summary_title'>保障类别</view>
            <view class='summary_title'>实际保额</view>
            <view class='summary_title'>建议保额</view>
            <view class='summary_title'>保障缺口</view>
          </view>
          <view class='summary_content_box'>
            <view class='summary_list' wx:for='{{item.list}}' wx:key wx:for-item='its' wx:for-index='sindex'>
              <view class='summary_content'>{{its.name}}</view>
              <view class='summary_content'>
                <text>{{its.num}} </text>
                <text wx:if="{{its.name == '每日住院津贴'}}">元/天</text>
                <text wx:else>万</text>
              </view>
              <view class='summary_content forehead'>
                <input type='number' placeholder='请输入' value="{{its.plan}}" bindinput='suggestForehead' data-num='{{its.num}}' data-sindex='{{sindex}}' data-mindex='{{mindex}}' focus='' disabled='{{selected}}'></input>
              </view>
              <view class='summary_content gap'>{{its.gap}}</view>
            </view>
          </view>
        </view>
      </view>
    </block>
    <!-- 保单明细 -->
    <block class='' wx:elif='{{tab_state==2}}'>
      <view class='banner_info'>向左滑动查看更多内容</view>
      <view class=''>
        <view class='content_item_box'>
          <view class='list_title_box'>
            <view class='item_list'>
              <view class='list_title'>被保险人</view>
            </view>
            <view class='item_list'>
              <view class='list_title'>保单号</view>
            </view>
            <view class='item_list'>
              <view class='list_title'>产品名称</view>
            </view>
            <view class='item_list'>
              <view class='list_title'>保险公司</view>
            </view>
            <view class='item_list'>
              <view class='list_title'>生效日期</view>
            </view>
            <view class='item_list' wx:for='{{guarantee}}' wx:key='' wx:for-item='sit'>
              <view class='list_title'>{{sit.name}}</view>
            </view>
          </view>
          <scroll-view scroll-x style="flex:0 0 auto">
            <view class='scroll_content_box'>
              <view class='list_content_box' wx:for='{{information}}' wx:key='' wx:if='{{item.information_state}}'>
                <view class='item_list'>
                  <view class='list_title'>{{item.recognizee}}</view>
                </view>
                <view class='item_list'>     
                  <view class='list_title' style='text-decoration:underline;color:#348af0;' bindtap='summaryDetail' data-InId='{{item.id}}'>{{item.in_num}}</view>
                </view>
                <view class='item_list'>
                  <view class='list_title'>{{item.main_risks}}</view>
                </view>
                <view class='item_list'>
                  <view class='list_title' wx:if='{{item.firm}}'>{{item.firm}}</view>
                  <view class='list_title' style='color:#fff' wx:else>无</view>
                </view>
                <view class='item_list'>
                  <view class='list_title' wx:if='{{item.compact_time}}'>{{item.compact_time}}</view>
                  <view class='list_title' style='color:#fff' wx:else>无</view>
                </view>
                <view class='item_list' wx:for='{{item.more}}' wx:key='' wx:for-item='its'>
                  <view class='list_title'>{{its.num}} </view>
                </view>
              </view>
            </view>
          </scroll-view>
        </view>
      </view>
    </block>
  </view>

  <!-- 底部按钮 -->
  <view class='null_box'></view>
  <cover-view class='bottom_box'>
    <cover-view class='plan_btn'>
      <button class='plan_btn' style='width:100%;border:0' data-status='{{status}}' bindtap="{{save_state?'saveInfo':''}}" disabled="{{savedis}}">
        <text style='color:#fff'>测试测试 </text>
        <text style='color:#0286ff;'>保存 </text>
        保存
        <text style='color:#fff'>测试测试</text>
      </button>
    </cover-view>
    <cover-view class="plan_btn2 {{shareState?'plan_active':''}}">
      <button class="plan_btn2 {{shareState?'plan_active':''}}" style='border:0;' open-type="{{shareState?'share':''}}" data-status='{{status}}'>发送给客户</button>
    </cover-view>
  </cover-view>

</block>