<import-sjs
  name="utils"
  from="./index.sjs"
/>
<wrapper>
  <view class="order-item-container">
    <!-- img -->
    <view class="img-container">
      <default-img
        class="img"
        src="{{orderItem.picList[0]}}"
      />
    </view>
    <!-- 描述信息 -->
    <view class="info">
      <!-- name -->
      <view class="name">{{orderItem.name}}
      </view>
      <!-- unit -->
      <view class="unit">{{orderItem.specDesc}}
      </view>
      <!-- price -->
      <view class="price-container">
        <view class="price {{isMember ? 'member-price' : ''}}">¥{{isMember ? memberPrice : orderItem.sellPrice}}
          <member-price-tag
            a:if="{{isMember}}"
            fontSize="14rpx"
            top="-8px"
            padding="6px 2px"
            right="-30px"
          />
        </view>
        <view class="num">x{{orderItem.num || orderItem.quantity}}</view>
      </view>
    </view>
    <!-- 总价 -->
    <view class="total">
      <view class="total-icon">
        ¥
      </view>
      {{utils.getPrice(isMember ? memberPrice : orderItem.sellPrice,orderItem.num || orderItem.quantity)}}
    </view>
    <view
      a:if="{{refundDetailStatus}}"
      class="refund-status"
    >{{refundDetailStatus === 'REFUND' ? '仅退款': '退货退款'}}
    </view>
  </view>
</wrapper>