<!--packageI/ys_crmBind/crmBind.wxml-->
<view id="ys_crmBind">
  <view class="crm-binb-success" wx:if="{{showSuccess}}">
    <view class="title">恭喜您注册成功！</view>
    <view style="line-height: 24px;font-size: 15px;">
      系统检测到您是益生康健会员已为您自动绑定，<block wx:if="{{selectMember && selectMember.Address != ''}}">绑定账户中的收件地址为{{
        selectMember.Address }}，</block>如有疑问可联系<view class="warn-text" wx:if="{{cservice}}" catchtap="linkService">在线客服
      </view>
      <view class="warn-text" wx:if="{{!cservice}}">
        <button open-type="contact" plain>在线客服</button>
      </view>
      <block wx:if="{{mobile}}">，或致电：<view class="warn-text" catchtap="callPhone">{{ mobile }}</view>
      </block>
    </view>
    <view class="fixed-bottom">
      <van-button type="primary" block color="#f15353" style="margin:24px auto 0;font-size:15px;" catchtap="clonePages">关闭</van-button>
    </view>
  </view>
  <view class="crm-binb-select" wx:if="{{showSelectBind}}">
    <view class="text">系统检测到您存在多个益生康健线下账户，请在以下收件信息中，选择一个账户进行绑定：</view>
    <van-radio-group value="{{ selectRadio }}" bind:change="onChange">
      <van-radio name="{{index}}" wx:for="{{crm_member_list}}" checked-color="#fc692f">{{ item.Address}}</van-radio>
    </van-radio-group>

    <view class="fixed-bottom">
      <van-button type="primary" block color="#f15353" style="margin:24px auto 0;font-size:15px;" catchtap="bindCrm">
        确认绑定</van-button>
      <view class="size-text" wx:if="{{cservice}}" catchtap="linkService">都不是我, 联系客服</view>
      <button wx:if="{{!cservice}}" class="size-text" open-type="contact" plain>都不是我, 联系客服</button>
    </view>
  </view>
</view>