<view class="top-tab">
  <view class="tab-box {{type==1?'active':''}}" data-type="1" bindtap="changeTab">
    <image src="../../images/selected-l.png" class="selected-l"></image>
    我发起
    <image src="../../images/selected-r.png" class="selected-r"></image>
  </view>
  <view class="tab-box {{type==2?'active':''}}" data-type="2" bindtap="changeTab">
    <image src="../../images/selected-l.png" class="selected-l"></image>
    我参加
    <image src="../../images/selected-r.png" class="selected-r"></image>
  </view>
</view>
<view class="volunteer-activity">
  <view class="activity">
    <view class="activity-box" bindtap="goDetail" data-id="{{item.volunteerServiceId}}" wx:for="{{dataMap}}">
      <view class="activity-img">
        <image src="{{item.photo}}"></image>
      </view>
      <view class="activity-info">
        <view class="title">
          <view class="activity-title">{{item.serviceName}}</view>
        </view>
        <view class="date">{{item.startTime}}至{{item.endTime}}</view>
      </view>
    </view>
  </view>
</view>
<view class="new-team">
  <view class="new-team-btn" bindtap="newActivity">发起新活动</view>
</view>