<popup show="{{show}}" bind:close="close">
  <view class="popup-title">会员折扣</view>
  <view class="center vip-line font14" wx:if="{{params.idcards.ids.length > 0}}">
    <text wx:if="{{datas.userbing && datas.userbing.length > 0}}">
      <block wx:if="{{explainInfo.status!= 0}}">
        {{explainInfo.status == 1 ? '当前选择多个儿童，无折扣，请选一个指定儿童。':explainInfo.status == 2 ? '当前选择非指定儿童，无折扣。':'当前非折扣线路，无折扣。'}}
      </block>
      <block wx:else>
        {{explainInfo.camp==0?'当前是常规半日/单日线，活动费享'+role.days+"折":explainInfo.camp==1?'当前是迷你营，活动费享'+role.mini+"折":explainInfo.camp==2?'当前是冬夏令营，活动费享'+role.camp+"折":''}}，其他费用不打折。
      </block>
    </text>
    <text wx:else>还未绑定儿童，无折扣</text>
  </view>
  <view class="center font14">您当前积分<b>{{datas.score}}</b>分，{{role.levelName}}用户</view>
  <view class="content-box-pad">
    <view class="grids vip-safe-box mTop10">
      <view class="wgrid" wx:if="{{role.days}}">
          <view class="VS-box"><view class="VS-box-text">{{role.days}}</view><text>折</text></view>
          常规半日/单日线
      </view>
      <view class="wgrid" wx:if="{{role.mini}}">
          <view class="VS-box"><view class="VS-box-text">{{role.mini}}</view><text>折</text></view>
          迷你营
      </view>
      <view class="wgrid" wx:if="{{role.camp}}">
          <view class="VS-box"><view class="VS-box-text">{{role.camp}}</view><text>折</text></view>
          冬夏令营
      </view>
    </view>
    <text class='gray font12 mTop10'>注：迷你营指：2天1夜、3天2夜的线路</text>
    <view class="mTop10">
      <view class="font14">限以下儿童使用：</view>
      <text class="font14">
        <block wx:for="{{datas.userbing}}" wx:key="unique">
        <text class="b">{{item.name}}</text>({{item.cardTypeName}}：{{item.cardNo}})
        </block>
      </text>
    </view>
  </view>
  <button bindtap="submit" class="button button-big button-warn" wx:if="{{!params.idcards}}">立即报名{{params.discount != 1 ? '（最高享'+params.discount+'折）':''}}</button>
  <navigator class="button button-big button-warn" url="/pages/account/vip/childs/index" hover-class="none" wx:elif="{{!datas.userbing || datas.userbing.length<=0}}">去查看绑定</navigator>
</popup>