myactivity.wxml 4.0 KB
<!-- 任务栏-->
<view class="navbar">
    <view class="item {{nav==1?'choose':''}}" bindtap="bindNav" data-nav="{{1}}">活动打卡</view>
    <view class="item {{nav==2?'choose':''}}" bindtap="bindNav" data-nav="{{2}}">待提交报告</view>
    <view class="item {{nav==3?'choose':''}}" bindtap="bindNav" data-nav="{{3}}">完成的活动</view>
</view>

<view class="line"></view>
<view class="goods_index">

    <view wx:if="{{nav==1}}">
        <!-- 打卡 -->
        <view class="navbar">
            <view class="item {{navs==1?'choose':''}}" bindtap="bindtype" data-navs="{{1}}">待打卡</view>
            <view class="item {{navs==2?'choose':''}}" bindtap="bindtype" data-navs="{{2}}">已完成打卡</view>
        </view>
        <!-- 待打卡 -->
        <view wx:if="{{navs==1}}" >
            <view class="myactive_wrap" bindtap="getdaka" data-id="{{item.id}}" wx:for="{{list}}">
                <view class="myactive_time">
                    <image src="/imgs/shijian-19.png"></image>{{item.date}}
                    {{item.start_clock_time}}-{{item.end_clock_time}}
                </view>
                <view class="myactive_list">
                    <image src="{{item.activity.thumbnail}}"></image>
                    <view class="myactive_name">
                        <view>{{item.activity_name}}</view>
                        <view class="myactive_gps">
                            <image src="/imgs/didian-14.png"></image> {{item.address}}
                        </view>
                    </view>
                </view>
                <view class="daka">待打卡</view>
            </view>
        </view>
        <!--打卡已完成  -->
        <view wx:elif="{{navs==2}}">
            <view class="myactive_wrap" wx:for="{{list}}">
                <view class="myactive_time">
                    <image src="/imgs/shijian-19.png"></image>{{item.date}}
                    {{ item.start_clock_time}}-{{item.end_clock_time}}
                </view>
                <view class="myactive_list">
                    <image src="{{item.activity.thumbnail}}"></image>
                    <view class="myactive_name">
                        <view>{{item.activity_name}}</view>
                        <view class="myactive_gps">
                            <image src="/imgs/didian-14.png"></image> {{item.address}}
                        </view>
                    </view>
                </view>
                <view class="daka">完成打卡</view>

            </view>
        </view>



    </view>
<!--待提交报告  -->
    <view wx:elif="{{nav==2}}">
        <view class="myactive_wrap" wx:for="{{datalist}}">
            <view class="myactive_time">
                <image src="/imgs/shijian-19.png"></image>{{item.start_time}}
                {{ item.start_clock_time}}-{{item.end_clock_time}}
            </view>
            <view class="myactive_list">
                <image src="{{item.thumbnail}}"></image>
                <view class="myactive_name">
                    <view>{{item.activity_name}}</view>
                    <view class="myactive_gps">
                        获得5小时工时
                    </view>
                </view>
            </view>
            <view class="daka dasubmit" bindtap="getreport">提交报告</view>
        </view>
    </view>

<!-- 完成的活动 -->
    <view wx:elif="{{nav==3}}">
        <view class="myactive_wrap"  wx:for="{{datalist}}">
            <view class="myactive_time">
                <image src="/imgs/shijian-19.png"></image>{{item.start_time}}
                {{ item.start_clock_time}}-{{item.end_clock_time}}

            </view>
            <view class="myactive_list">
                <image src="{{item.thumbnail}}"></image>
                <view class="myactive_name">
                    <view>{{item.activity_name}}</view>
                    <view class="myactive_gps">
                        <image src="/imgs/didian-14.png"></image> 获得5小时工时
                    </view>
                </view>
            </view>
        </view>
    </view>



</view>