<!--components/exchangeInfo/index.wxml-->
<view class="exchange_info">
    <!-- 商品信息 -->
    <view class="info_head">
        <image class="exchange_img" src="{{item.coverImage}}"></image>
        <view class="info_box">
            <view class="goods_title">
                <text class="goods_name" >{{item.goods.goodsName}}</text>
                <view class="status_tab" wx:if="{{item.exchangeFlag === 1}}" style="color: #5472EF;background-color: #DCE3FE;" >已核销</view>
                <view class="status_tab" wx:else style="color: #EB6100;background-color: rgba(235, 97, 0, 0.2);" >未核销</view>
            </view>
            <text class="info_item">{{item.goods.goodsSpec}}</text>
            <view class="points_box">实付：<text style="color: #2D84E4;">{{item.goods.goodsPoints}}</text> 积分</view>
        </view>
    </view>
    <!-- 店铺信息 -->
    <view class="info_foot">
        <view class="stores_info">
            <image class="store_icon" src="../../assets/img/store.png"></image>
            <text class="store_text">商家：{{item.merchant.shopsName}}</text>
        </view>
        <view class="stores_info">
            <image class="store_icon" src="../../assets/img/address.png"></image>
            <text class="store_text">地址：{{item.merchant.shopsAddress}}</text>
        </view>
    </view>
    <!-- 按钮区域 -->
    <slot></slot>

</view>
