<nav type="back" background-color="#ffffff" frontColor="#000000" title="退款/售后" />
<view class="title">确认界面</view>
<view class="cardbox">
  <view class="title2">确认退换信息</view>
  <view class="roombox">
    <image src="{{order.targetObject[0].image||'https://file-cloud.fmode.cn//tmp/mqHkA2qV3Q8nca3dc59bad49de6e5ae57afa81d78ae8.jpeg'}}"></image>
    <view class="room">
      <view class="room-name">{{order.targetObject[0].name}}</view>
      <view class="room-text2">
        <block wx:if="{{order.specMap[order.targetObject[0].objectId].spec}}">
          {{order.specMap[order.targetObject[0].objectId].spec}}
          <van-icon name="cross" />{{order.specMap[order.targetObject[0].objectId].count}}
        </block>
        <block wx:for="{{order.specMap[order.targetObject[0].objectId].list}}" wx:key="index">
          {{item.spec}}
          <van-icon name="cross" />{{item.count}}
        </block>
      </view>
    </view>
  </view>
  <view class="text1">
    <view class="tex1">退换方式</view>
    <view class="tex3">{{order.way}}</view>
  </view>
  <view class="text1">
    <view class="tex1">退货退款的原因</view>
    <view class="tex3">{{order.cause}}</view>
  </view>

  <!-- <view class="text1">
    <view class="tex1">描述和凭证</view>
    <view class="tex3">{{order.text}}</view>
  </view>
  <view class="uploadbox">
    <view class="box">
      <block wx:for="{{order.refundImgs}}" wx:key="index">
        <view class="image">
          <image data-src="{{item}}" data-urls="{{order.refundImgs}}" bind:tap="previewImage" src="{{item}}" mode="" />
        </view>
      </block>
    </view>
  </view> -->
  <view class="text1">
    <view class="tex1">店铺地址</view>
    <view class="tex3">
      <view data-str="{{order.store.storeAddress}}" bind:tap="copyStr">
        {{order.store.storeAddress||'暂未上传，请联系客服'}}
        <van-icon name="orders-o" />
      </view>
      <view>收件人：<text data-str="{{order.store.user.realname}}" bind:tap="copyStr"> {{order.store.user.realname}} </text> <text data-str="{{order.store.user.mobile}}" bind:tap="copyStr"> {{order.store.user.mobile}} </text></view>
    </view>
  </view>
  <block wx:if="{{order.way!='店内退换'}}">
    <view class="text1" bind:tap="openExpress">
      <view class="tex1">
        快递公司
        <view class="tex1-1">*</view>
      </view>
      <view class="tex3">
        <view>{{checkExp.name}}
          <van-icon name="arrow" custom-style='margin-left:10rpx' />
        </view>
      </view>
    </view>
    <view class="text1">
      <view class="tex1">
        快递单号
        <view class="tex1-1">*</view>
      </view>
    </view>
    <view class="areabox">
      <textarea placeholder="请输入快递单号" auto-height model:value='{{expressNum}}'></textarea>
    </view>
  </block>



</view>
<view class="submitbox">
  <view class="submit" bind:tap="submit">提交</view>
</view>

<!-- 指针查询 -->
<van-popup show="{{ isShowExpress }}" position="bottom" bind:close="closeExpress" round>
  <view class="popup">
    <view class="title">选择快递公司</view>
    <van-search bind:change="valChange" placeholder="请输入搜索关键词" />
    <scroll-view class="itemBox" bindscrolltolower="getPointerItem" scroll-y>
      <block wx:for="{{expComList}}" wx:for-item="pointer_item" wx:key="pointer_item">
        <view class="item" data-index="{{index}}" bind:tap="checkPointer" style="color:{{checkExp.objectId==pointer_item.objectId?'#F89B7F':'black'}};">
          {{pointer_item.name}}
          <van-icon name="success" wx:if="{{checkExp.objectId==pointer_item.objectId}}" color="#F89B7F" />
        </view>
      </block>
    </scroll-view>
  </view>
</van-popup>