<view class="activity-img">
  <image src="{{dataMap.photo}}"></image>
</view>
<view class="activity-detail">
  <view class="activity-title">{{dataMap.serviceName}}</view>
  <view class="activity-info">
    <view class="activity-text">
      <image src="../../images/people.png"></image>
      <text>活动人数：</text>
      {{dataMap.count }}
    </view>
    <view class="activity-text">
      <image src="../../images/time.png"></image>
      <text>活动时间：</text>
      {{dataMap.startTime}}至{{dataMap.endTime}}
    </view>
    <view class="activity-text">
      <image src="../../images/people.png"></image>
      <text>活动地址：</text>
      {{dataMap.address }}
    </view>
  </view>
  <view class="activity-container">
    <view class="part">
      <view class="part-title">
        活动详情
        <view class="comment-btn" bindtap="toActivityHis">评论列表</view>
      </view>
      <rich-text class="part-content" nodes="{{dataMap.introduce}}"></rich-text>
    </view>
  </view>
</view>
<view class="sign-box" wx-if="{{dataMap.status == 'enroll'}}">
  <picker bindchange="teamChange" value="{{teamIndex}}" range="{{teamArray}}" wx:if="{{dataMap.voluntaryType == '2'}}">
    <view class="sign-btn" data-serviceId="{{dataMap.volunteerServiceId }}" data-type="{{dataMap.voluntaryType }}" bindtap="enroll">报名</view>
  </picker>
  <view class="sign-btn" wx:if="{{dataMap.voluntaryType == '1'}}" data-serviceId="{{dataMap.volunteerServiceId }}" data-type="{{dataMap.voluntaryType }}" bindtap="volunteerEnroll">报名</view>
</view>
<view class="sign-box" wx-if="{{dataMap.status == 'isEnroll'}}">
  <picker bindchange="teamCancelChange" value="{{teamIndex}}" range="{{teamArray}}" wx:if="{{dataMap.voluntaryType == '2'}}">
    <view class="sign-btn" wx:if="{{dataMap.voluntaryType == '2'}}" data-serviceId="{{dataMap.volunteerServiceId }}" data-type="{{dataMap.voluntaryType }}" bindtap="enroll">取消报名</view>
  </picker>
  <view class="sign-btn" wx:if="{{dataMap.voluntaryType == '1'}}" data-serviceId="{{dataMap.volunteerServiceId }}" data-type="{{dataMap.voluntaryType }}" bindtap="volunteerCancelEnroll">取消报名</view>
</view>