<view class="module-wrap">
    <view class="m-title">
        <view class="hd">
            <view class="hd_name">爆款推荐</view>
        </view>
        <view class="bd"></view>
        <view class="fd"></view>
    </view>
    <view class="big-list">
        <view class="item" wx:for="{{list}}" wx:key="index">
            <navigator class="big-item" hoverClass="hover" url="/pages/goodsDetails/goodsDetails?id={{item.id}}">
                <view class="hd">
                    <view class="image-box __56">
                        <image lazy="loaded" src="{{item.image}}"></image>
                    </view>
                    <view class="issaled" wx:if="{{item.stock==0}}">
                        <image src="/img/issaled.png"></image>
                    </view>
                    <view class="hd_sale">已售 {{item.num_buy}}</view>
                </view>
                <view class="bd">
                    <view style="overflow: hidden;">
                        <view class="title __normal" style="-webkit-line-clamp: 2;">{{item.name}}</view>
                    </view>
                    <view class="__flex">
                        <view class="bd_price">
                            <view class="now-price __large">
                                <view class="symbol">¥</view>
                                <view class="buck">{{item.price_buck}}.</view>
                                <view class="cent">{{item.price_cent}}</view>
                                <view class="qi"></view>
                            </view>
                            <view class="old-price" style="margin: 0px 0px 0px 8px;" wx:if="{{item.marketprice}}">¥{{item.marketprice}}</view>
                            <view style="margin: 0px 0px 0px 10px;" wx:if="{{item.discount}}">
                                <view class="list-discount">
                                    <view class="hd">
                                        <view class="tri"></view>
                                    </view>
                                    <view class="bd">
                                        <view class="num">{{item.discount}}</view>折 </view>
                                </view>
                            </view>
                        </view>
                        <view>
                            <button class="button __large" wx:if="{{item.stock>0}}">立即购买</button>
                            <button class="button __large issele" wx:if="{{item.stock==0}}">已售罄</button>
                        </view>
                    </view>
                </view>
            </navigator>
        </view>
    </view>
</view>
