<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" bind:tap="openWay">
    <view class="tex1">退换方式</view>
    <view class="tex3">
      {{way}}
      <van-icon name="arrow" custom-style='margin-left:10rpx' />
    </view>
  </view>
  <view class="text1" bind:tap="openCause">
    <view class="tex1">退货退款的原因</view>
    <view class="tex3">
      {{cause}}
      <van-icon name="arrow" custom-style='margin-left:10rpx' />
    </view>
  </view>
  <view class="text1">
    <view class="tex1">
      描述和凭证
      <view class="tex1-1">*</view>
    </view>
    <view class="tex2">
      上传有助于处理问题
    </view>
  </view>
  <view class="areabox">
    <textarea auto-height model:value='{{content}}' maxlength='200'></textarea>
    <view class="number">{{text.length||0}}/200</view>
  </view>
  <view class="uploadbox">
    <image bind:tap="getTemp" class="up" src="https://file-cloud.fmode.cn/EbxZUK5lBI/20250326/og1bfn023609454.jpg" mode="widthFix" />
    <view class="box">
    <block wx:for="{{tempFiles}}" wx:key="index">
      <view class="image">
        <image src="{{item}}" mode="" />
        <van-icon data-index="{{index}}" bind:tap="del" name="cross" />
      </view>
    </block>
    
    </view>
  </view>
</view>
<view class="submitbox">
  <view class="submit" bind:tap="submit">提交</view>
</view>
<!-- 退换方式 -->
<van-action-sheet
  show="{{ isShowWay }}"
  actions="{{ wayList }}"
  bind:close="closeWay"
  bind:select="selectWay"
  description="退换方式"
/>
<!-- 原因 -->
<van-action-sheet
  show="{{ isShowCause }}"
  actions="{{ causeList }}"
  bind:close="closeCause"
  bind:select="selectCause"
  description="原因"
/>