<!-- 退款条例弹框 -->
<refund bindclose="closeRefund" type="{{type}}" show="{{refundShow}}"></refund>
<view class="refund">
  <view class="list content-box">
    <image src="{{datas.logo}}" mode="aspectFill" binderror="img"></image>
    <view class="listRight">
      <view class="listTitle">{{datas.title}}</view>
      <view class="listField">{{datas.atype == 0 ? '场次':'颜色'}}：{{datas.sessionName}}</view>
      <view class="listField">{{datas.atype == 0 ? (info.military==1?'排':'套餐'):'尺寸'}}：<text wx:for="{{datas.meals}}" wx:key="unique">{{item.policyName}}（{{item.num}}）</text></view>
    </view>
  </view>

  <!-- 退款原因选择 -->
  <view class="content-box padding">
    <view class="reason">
      <view>退款原因：</view>
      <!-- <view class="grey">请选择 ></view> -->
      <picker bindchange="changeReason" value="{{reasonIndex}}" range="{{reasonList}}">
        <!-- <view wx:if="{{reasonIndex==-1}}" class="grey">请选择 ></view> -->
        <view class="grey">{{default}}</view>
      </picker>
    </view>
    <textarea wx:if="{{showtext == true }}" class="textarea" bindinput="confirm" placeholder="请填写原因"></textarea>
    <!-- 根据后端返回的参数做展示 -->
    <view class="replace" wx:if="{{info.subOrders[index].changeStatus==0}}">
      <view>场次时间不合适的话，不妨换个场次？</view>
      <view class="replace_Right" bindtap="changeMeals">换场次</view>
    </view>
  </view>
  <!-- 6.3.1 -->
  <!-- 外侧父元素 -->

  <view class="content-box ft26">
    <view class="backPrice">
      <text>退款金额：</text>
      <view class="dis">
        <view class="price">
          <text class="a1">￥</text>{{orderInfo.sumRefundPrice}}
        </view>
        <view class="grey" bindtap="showProp">
          退款条例 >
        </view>
      </view>
    </view>
    <!-- <view class="divLine"></view> -->
    <view class="divLineTwo">
      <view class="detailed">
        <view class="detailedTwo">明细如下</view>
      </view>
    </view>

    <view class="rule">
      退款规则：
    </view>
    <view class="ruleChild">
      <view class="subtitleColor" wx:if="{{orderInfo.deductRate*100==0&&orderInfo.refundRule!=5}}">当前日期申请退款不需扣费</view>
      <view class="subtitleColor" wx:elif="{{orderInfo.payStatus==15}}">当前日期申请退款不需扣费</view>
      <!-- <view class="subtitleColor" wx:if="{{orderInfo.deductRate*100==0&&orderInfo.refundRule!=5}}">当前日期申请退款不需扣费</view>
      <view class="subtitleColor" wx:if="{{orderInfo.deductRate*100==0&&orderInfo.refundRule!=5}}">当前日期申请退款不需扣费</view> -->
      <view class="subtitleColor" wx:if="{{orderInfo.refundRule==5}}">特殊活动，一经付款，不予退款</view>
      <view class="subtitleColor" wx:if="{{orderInfo.deductRate*100!=0&&orderInfo.refundRule!=5}}"> · 当前日期是出发前{{orderInfo.dayBeforeStart}}天，退款需扣费{{orderInfo.deductRate*100}}%，退{{100-orderInfo.deductRate*100}}%</view>
      <view class="gray">· 总支付金额：{{orderInfo.resultIncome}}元</view>
      <view class="gray">· 需扣费：{{orderInfo.sumDeduct}}元（{{orderInfo.deductRate*100}}%）</view>
      <view class="gray">· 退款金额：{{orderInfo.sumRefundPrice}}元（{{100-orderInfo.deductRate*100}}%）</view>
    </view>
    <view class="form">
      退款金额组成：
    </view>
    <view class="ruleChild">
      <view class="gray"> · 现金：{{orderInfo.price}}元-{{orderInfo.priceDeduct}}元（扣费）={{orderInfo.priceRefund}}元</view>
      <view wx:if="{{orderInfo.money!=0}}" class="gray">· 账户余额：{{orderInfo.money}}元-{{orderInfo.moneyDeduct}}元（扣费）={{orderInfo.moneyRefund}}元</view>
      <view wx:if="{{orderInfo.coin!=0}}" class="gray">· 佣金钱包：{{orderInfo.coin}}元-{{orderInfo.coinDeduct}}元（扣费）={{orderInfo.coinRefund}}元</view>
    </view>
    <view class="form">
      注：
    </view>
    <view style="color:rgb(155, 154, 154)">
      ·若因孩子生病、疫情等特殊情况无法参与活动而产生扣费，需提交证明给宝大大进行处理
    </view>
    <view style="margin-bottom:20rpx;color:rgb(155, 154, 154)">
      ·若享受过换场次优惠，则退款时需补回
    </view>
  </view>

  <view class="mode content-box">
    <view class="way">
      <view class="mode_left">
        退款方式：
      </view>
      <view class="subtitleColor back" wx:if="{{orderInfo.overdue==0}}">原路返回（预计需要3-10工作日）</view>
      <view class="twoSon" wx:if="{{orderInfo.overdue==1}}">
        <!-- <view class="twoSon"> -->
        <view class="listReason" bindtap="bindreason" data-type="1">
          <view class="bit {{current == 1?'current':''}}"></view>
          <view class="reason">支付宝</view>
        </view>
        <view class="listReason" bindtap="bindreason" data-type="2">
          <view class="bit {{current == 2?'current':''}}"></view>
          <view class="reason">银行卡</view>
        </view>
      </view>

    </view>
    <!-- 选择支付宝出现的输入框 -->
    <view class="Alipay" wx:if="{{current==1&&orderInfo.overdue==1}}">
      <!-- <view class="Alipay"> -->
      <view class="Account">
        <view class="account">
          支付宝户号：
        </view>
        <input bindinput="changeAlipay" class="card" type="text" placeholder="请输入户号" />
      </view>
      <view class="Account">
        <view class="account">
          支付宝账号：
        </view>
        <input bindinput="changeaccount" class="card" type="text" placeholder="请输入账号" />
      </view>
    </view>
    <!-- 选择银行卡出现的输入框 -->
    <view class="bank" wx:if="{{current==2&&orderInfo.overdue==1}}">
      <!-- <view class="bank"> -->
      <view class="Account">
        <view class="account">
          卡户名：
        </view>
        <input bindinput="changebankName" class="card" type="text" placeholder="请输入卡的开户名称" />
      </view>
      <view class="Account">
        <view class="account">
          银行名称：
        </view>
        <input bindinput="changeName" class="card" type="text" placeholder="请输入银行名，如工商银行" />
      </view>
      <view class="Account">
        <view class="account">
          银行卡号：
        </view>
        <input bindinput="ChangeBankcardNo" class="card" type="text" placeholder="请输入银行卡号" />
      </view>
      <view class="Account">
        <view class="account">
          开户行：
        </view>
        <input bindinput="changedeposit" class="card" type="text" placeholder="如中国人民银行奇台县支行" />
      </view>
    </view>

    <view class="examine" wx:if="{{current==2||current==1&&orderInfo.overdue==1}}">审核通过后退款金额预计会在<text class="subtitleColor">3~10个工作日</text>退回至填写的退款账号</view>
  </view>



  <!-- <view class="title">退款金额</view>
  <view class="content-box refundDet">
    <block wx:if="{{datas.atype == 1 && status !=15}}">请咨询客服(15355045807)</block>
    <block wx:elif="{{status == 15}}">全额退款</block>
    <block wx:else>根据【<text class="subtitleColor">取消条款</text>】约定金额</block>
  </view>
  <view class="title">退款方式</view>
  <view class="content-box refundDet">原路返回（{{datas.atype=="1"?'收到货后':''}}3-10个工作日）</view>
  <view class="title">退款方式</view>
  <view class="content-box">
    <view class="listReason" wx:for="{{reasonData}}" wx:key="unique" bindtap="bindreason" data-type="{{item.type}}">
      <view class="reason">{{item.txt}}</view>
      <view class="bit {{current == item.type?'current':''}}"></view>
    </view>
    <textarea wx:if="{{current == 0 && !mask}}" class="textarea" bindinput="confirm" bindconfirm="confirm" placeholder="请输入退款原因"></textarea>
  </view>
  <view class="title" wx:if="{{datas.atype == 1&&datas.refundAddress}}">退货地址</view>
  <view class="content-box refundDet" style="line-height: 1.8;" wx:if="{{datas.atype == 1&&datas.refundAddress}}">
    <view>浙江省杭州市萧山区建设一路与风情大道交叉口中栋国际（北干科创园）银座1幢1609-1610</view>
		<view>邮政编码：310000</view>
		<view>收件人：宝小小（收）</view>
		<view>联系电话：15355045807</view>
    
    <text>{{datas.refundAddress}}</text>
  </view> -->

</view>
<view class="bottomBG"></view>
<view class="bottom sub-refund" bindtap="refundRequest">提交退款</view>

<view class="suc" hidden="{{!mask}}">
  <view class="icon-zfcg"></view>
  <view class="sucTitle">操作成功</view>
  <!-- <view class="sucTit">{{refundBack}}</view> -->

  <view class="tips-messages-content" wx:if="{{datas.atype == 1}}">
    发货后需前往订单详情页填写对应的退货物流信息，收到货后3~10工作日内处理
  </view>
  <view class="tips-messages-content" wx:else>
    您的退款申请已提交，工作人员将在3-10个工作日内处理
  </view>
  <button class="backBtn" bindtap="backBtn">返回</button>
</view>

<!-- 点击换场次弹出的sku -->
<sku show="{{showSku}}" orderInfo="{{orderInfo}}"  bindshowFund="showFund" s1="{{info.sid}}" s2="{{info.pid}}" military="{{info.military}}" aid="{{info.aid}}" atype="{{info.atype}}" changeSku="{{true}}" bind:confirmChange="confirmChange" bindshowCode="showCode" bind:close="closeSku"></sku>
<service show="{{codeShow}}" bindsure="isOK"></service>