<wxs module="filters" src="../../../../utils/filter.wxs"></wxs>
<view>
  <!-- 支付成功提示 -->
  <view class="payradio">
    <!-- 提示框 --> 
    <view class="Success_box flex-center">
      <view>
        <view class="flex-center">
          <image src="{{url}}miniapp/images/pay/paysuccess.png"></image>
        </view>
        <view class="Success_box_title fs32">订单支付成功!</view>
      </view>
    </view>

    
    <!-- 链接 -->
    <view class="fs28 pd20" style="padding-top: 0;">
			<view class="flex-center">
			
				<block wx:if="{{options.card == 1}}">
					<!-- <view class="flex-center"> -->
					  <navigator class="btn border c-6" url="/packageA/pages/details_serviceCard/details_serviceCard?order_id={{order.order_id}}">
					    <view>订单详情</view>
					  </navigator>
					<!-- </view> -->
					<!-- <view class="flex-center"> -->
					  <navigator class="btn bg-red white mgl20" url="/pages/user/my_service/i_service">
					    <view>立即预约</view>
					  </navigator>
					<!-- </view> -->
				</block>
				
				<block wx:else>
          
          <navigator class="btn border c-6" bindtap="goto">
            <view>回到首页</view>
          </navigator>
					<navigator class="btn bg-yellow white mgl20" url="/pages/user/order_list/order_list">
					  <view>查看订单</view>
					</navigator>
				</block>
				
			</view>
      
    </view>
    

    <!-- 支付信息 -->
    <view class="payitem_max fs28">
      <!-- 订单编号 -->
      <view class="payitem flex">
        <view>订单编号 :</view>
        <text selectable="true">{{order_sn}}</text>
      </view>

      <!-- 实付金额 -->

      <view class="payitem flex">
        <view>实付金额 :</view>
        <!-- {{filters.toFix()}} -->
				<!-- 卡项订单 -->
				<view class="pay_money" wx:if="{{options.card == 1}}">{{filters.toFix(order.account,2) }}元</view>
				
				<block wx:else>
					<view class="pay_money" wx:if="{{type==1}}">
            <view wx:if="{{order.order_amount==0 && order.user_money==0 && pre_cut>0}}">{{filters.toFix(pre_cut,2)}}元</view>
            <view wx:else>{{filters.toFix(order.order_amount+order.user_money+order.pt_tail_money,2)}}元</view>         
          </view>
					<view class="pay_money" wx:else>
            <view wx:if="{{order.order_amount==0 && order.user_money==0 && pre_cut>0}}">{{filters.toFix(pre_cut,2)}}元</view>
            <view wx:else>{{filters.toFix(allmoney+user_money,2) }}元</view>
          </view>
				</block>
      </view>

      <!-- 支付方式 -->
			<view class="payitem flex" wx:if="{{options.card == 1}}">
			  <view>支付方式 :</view>
			  <view>微信支付</view>
			</view>
			
			<block wx:else>
				<view class="payitem flex" wx:if="{{type==1}}">
				  <view>支付方式 :</view>
				  <view wx:if="{{order.order_amount>0 && order.user_money>0 }}">微信支付,余额支付</view>
				  <view wx:elif="{{order.order_amount>0}}">微信支付</view>
				  <view wx:elif="{{order.user_money>0}}">余额支付</view>
				  <view wx:else>
            <view wx:if="{{pre_cut>0}}">预存抵扣</view>
            <view wx:else>免单</view>
          </view>
				</view>
				<view class="payitem flex"  wx:else>
				    <view>支付方式 :</view>
				    <view wx:if="{{allmoney>0 && user_money>0 }}">微信支付,余额支付</view>
				    <view wx:elif="{{allmoney>0}}">微信支付</view>
				    <view wx:elif="{{user_money>0}}">余额支付</view>
            <view wx:else>
              <view wx:if="{{pre_cut>0}}">预存抵扣</view>
              <view wx:else>免单</view>
            </view>
				</view>
			</block>
      



    </view>
  </view>
  <view class="flex-level">
    <view class="line"></view>
  </view>



  <!-- 跳转链接 -->
  <view>
    <!-- 个人收货信息 -->
    <view class="pay_User fs28" wx:if="{{order.exp_type==0 || order.exp_type==2 }}">
        <view class="payitem flex">
          <view class="pay_Receiving">收货人 :</view>
          <view class="pay_name ellipsis-1">{{order.consignee}}</view>
          <view>{{order.mobile}}</view>
        </view>
        <view class="payitem flex">
          <view class="pay_Receiving">收货地址 :</view>
          <view class="address ellipsis-2">{{order.more_address+order.address}}</view>
        </view>
    </view>

    <!-- 收货门店信息 -->
    <view class="pay_User fs28" wx:else>
      <view class="payitem flex">
        <view class="pay_Receiving">门店 :</view>
				<view class="pay_name ellipsis-1" wx:if="{{options.card == 1}}">{{order.list[0].pickup_name}}</view>
        <view class="pay_name ellipsis-1" wx:else>{{pick.pickup_name}}</view>
      </view>
      <view class="payitem flex">
        <view class="pay_Receiving">门店地址 :</view>
				<view class="pay_name" wx:if="{{options.card == 1}}">{{order.list[0].fulladdress}}</view>
        <view class="address ellipsis-2" wx:else>{{pick.fulladdress}}</view>
      </view>
    </view>

  </view>
</view>


<view class="shequn" style="margin-top:20rpx；"  bindtap="gotoshequn" wx:if="{{banner}}" data-url="{{banner[0].ad_weapplink}}">
   <image src="{{banner[0].ad_code}}" mode="widthFix" style="width: 100%;border-radius: 15rpx;" />
</view>


<!-- 满足抽奖提醒 --> 
<show_encourage id="encourage"></show_encourage>