<!--pages/record/record.wxml-->

<view class="record_box">
    <view class="record_nav">
        <view class="tab_text {{current == 1?'active':''}}" data-current="1" bindtap="tabs">大转盘</view>
        <view class="tab_text {{current == 2?'active':''}}" data-current="2" bindtap="tabs">刮刮卡</view>
        <view class="tab_text {{current == 3?'active':''}}" data-current="3" bindtap="tabs">砸金蛋</view>
    </view>

    <!--大转盘 S  -->
    <view class="record_tab" wx:if="{{current == 1}}">
        <view class="record_list" wx:if="{{record_b != ''}}" wx:for="{{record_b}}">
            <view class="record_top">收货地址:{{item.address}}</view>
            <view class="record_main">
                <view class="record_pic"><image src="{{item.img}}" mode="aspectFill"></image></view>
                <view class="record_txt">
                    <view class="record_name">{{item.goods_name}}</view>
                    <view class="record_status" wx:if="{{item.status == 1}}">已发货</view>
                    <view class="record_status" wx:if="{{item.status == 2}}">未发货</view>
                    <view class="record_time">中奖时间：{{item.create_time}}</view>
                </view>
            </view>
        </view>
        <view class="no" wx:if="{{record_b == ''}}">暂无中奖纪录</view> 
    </view>
    <!--大转盘 E  -->

    <!--刮刮卡 S  -->
    <view class="record_tab" wx:if="{{current == 2}}">
        <view class="record_list" wx:if="{{record_g != ''}}" wx:for="{{record_g}}">
            <view class="record_top">收货地址:{{item.address}}</view>
            <view class="record_main">
                <view class="record_pic"><image src="{{item.img}}" mode="aspectFill"></image></view>
                <view class="record_txt">
                    <view class="record_name">{{item.goods_name}}</view>
                    <view class="record_status" wx:if="{{item.status == 1}}">已发货</view>
                    <view class="record_status" wx:if="{{item.status == 2}}">未发货</view>
                    <view class="record_time">中奖时间：{{item.create_time}}</view>
                </view>
            </view>
        </view>
        <view class="no" wx:if="{{record_g == ''}}">暂无中奖纪录</view> 
    </view>
    <!--刮刮卡 E  -->

    <!--砸金蛋 S -->
    <view class="record_tab" wx:if="{{current == 3}}">
        <view class="record_list" wx:if="{{record_e != ''}}" wx:for="{{record_e}}">
            <view class="record_top">收货地址:{{item.address}}</view>
            <view class="record_main">
                <view class="record_pic"><image src="{{item.img}}" mode="aspectFill"></image></view>
                <view class="record_txt">
                    <view class="record_name">{{item.goods_name}}</view>
                    <view class="record_status" wx:if="{{item.status == 1}}">已发货</view>
                    <view class="record_status" wx:if="{{item.status == 2}}">未发货</view>
                    <view class="record_time">中奖时间：{{item.create_time}}</view>
                </view>
            </view>
        </view>
        <view class="no" wx:if="{{record_e == ''}}">暂无中奖纪录</view> 
    </view>
    <!--砸金蛋 E -->
    
</view>