<!--package_A/pages/goods-detail/index.wxml-->
<view class="goods_detail">
    <!-- 轮播图 -->
    <swiper class="swiper_box" autoplay>
        <swiper-item class="swiper_item" wx:for="{{coverList}}" wx:key="index">
            <image style="width:100vw;height: 435rpx;" mode="scaleToFill" src="{{item}}"></image>
        </swiper-item>
    </swiper>
    <!-- 商品信息 -->
    <view class="goods_info">
        <view class="goods_name">{{detail.goodsName}}</view>
        <view class="goods_points_num">
            <view class="goods_point">
                <text style="color: #3175E8; font-size: 38rpx;">{{detail.goodsPoints}}</text> 积分
            </view>
            <view class="goods_num_box">
                <text class="operate_num" bindtap="reduceNum">-</text>
                <text class="goods_num">{{numbers}}</text>
                <text class="operate_num" bindtap="addNum">＋</text>
            </view>
        </view>
    </view>
    <!-- 商品规格 -->
    <view class="goods_info">
        <text class="goods_name">规格</text>
        <text class="goods_desc">{{detail.goodsSpec}}</text>
    </view>
    <!-- 店铺信息 -->
    <view class="stores_info">
        <image class="stores_img" src="{{storeDetail.shopsImage}}"></image>
        <view class="stores_message">
            <text class="goods_name">{{storeDetail.shopsName}}</text>
            <text class="goods_desc">{{storeDetail.shopsAddress}}</text>
        </view>
    </view>
    <!-- 详情图片展示 -->
    <view class="detail_images">
        <image wx:for="{{detailImages}}"  wx:key="index" style="width: 100vw;" mode="widthFix" src="{{item}}"></image>
    </view>

    <!-- 按钮 -->
    <view class="btn_box">
        <view class="btn_item" bindtap="exchangeGoods">立即兑换</view>
    </view>

</view>
