img_txt.wxml 4.2 KB
<view class='main'>
  <view class='top_img'>
    <image src='{{datalist.thumbnail}}'></image>
  </view>
  <view class='text_title'>{{datalist.activity_name}}</view>
  <view class='text_time' wx:if='{{status=="1"}}'>{{datalist.time}}</view>
  <view class='text_content'>
    <import src="../../wxParse/wxParse.wxml" />
    <template is='wxParse' data='{{wxParseData:content.nodes}}' />
  </view>
  <view class='memberbox' wx:if='{{datalist.join.length>0 && type != 1 && datalist.admin !=1}}'>
    <view class='title'>已成功报名人员</view>
    <view class='member' wx:for='{{datalist.join}}' wx:key='index'>
      <view class="top">
        <image src='{{item.photo}}' mode="aspectFill" />
        <text>{{item.name}}</text>
      </view>
      <view class="duty">{{item.duty}}</view>
    </view>
  </view>
</view>
<view wx:if="{{type!= 1 && datalist.admin !=1}}">
  <navigator class='foot' url="/pages/enroll/enroll?id={{id}}" wx:if='{{datalist.button_status == 1 || datalist.button_status == 7}}' hover-class="none">报名</navigator>
  <view class='foot' wx:if='{{datalist.button_status == 2}}' style='background: #FFD700; color: #fff;'>待审核</view>
  <navigator class='foot' wx:if='{{datalist.button_status == 3}}' url="/pages/word_report/word_report?id={{id}}" hover-class="none">工作汇报</navigator>
  <view class='foot' wx:if='{{datalist.button_status == 4}}' style='background: #ccc;color: #fff;'>工作汇报</view>
  <view class='foot' wx:if='{{datalist.button_status == 5}}' style='background: #ccc;color: #fff;'>已结束</view>
  <navigator url='/pages/result/result' class='foot' wx:if='{{datalist.button_status == 6}}' hover-class="none">成为志愿者</navigator>

</view>
<view class="btn_box">
  <navigator class="btn-item" style="background: url('https://volunteer.cnpu.org/static/images/index.png') no-repeat center;background-size: cover;" url="/pages/index/index" open-type="switchTab">首页</navigator>
  <view class="btn-item" style="background: url('{{datalist.button_status == 2?'/imgs/edit.png':'https://volunteer.cnpu.org/static/images/edit@.png'}}') no-repeat center;background-size: cover;" bindtap="{{datalist.button_status == 2?'edit_info':''}}" wx:if="{{1< datalist.button_status && datalist.button_status<6 && datalist.admin !=1}}">编辑</view>
  <view class="btn-item" style="background: url('{{datalist.button_status == 5?'https://volunteer.cnpu.org/static/images/out@.png':'https://volunteer.cnpu.org/static/images/out.png'}}') no-repeat center;background-size: cover;" wx:if="{{2<datalist.button_status && datalist.button_status<6 && datalist.admin !=1}}" bindtap="change_cover" data-id="1">退出</view>
  <view class="btn-item" style="background: url('https://volunteer.cnpu.org/static/images/share.png') no-repeat center;background-size: cover;" bindtap="change_cover" data-id="2">分享</view>
</view>

<view class="cover_box" catchtouchmove="true" catchtap="change_cover" data-id="{{cover_id}}" wx:if="{{cover_type}}">
  <view class="show_box" wx:if="{{cover_id == 1}}">
    <view class="s_title">确定退出此活动?</view>
    <view class="select_box">
      <view class="b_item" catchtap="change_cover" data-id="1">取消</view>
      <view class="b_item" catchtap="out">确认</view>
    </view>
  </view>
  <view class="poster_box" wx:if="{{cover_id == 2}}" style="background: url('{{poster}}') no-repeat center;background-size: cover;">
    <view class="select_box" style="margin-top:812rpx;">
      <view catchtap="change_cover" catchtap="save_poster" class="b_item">保存到相册</view>
      <button class="b_item" open-type="share">发送给朋友</button>
    </view>
  </view>
</view>

<view class="c_item" wx:for="{{join_info}}" wx:key="index">
  <view class="c_title">{{item.title}}</view>
  <view class="c_box">
    <view class="i_info {{item.arr.length>3 && zindex<item.arr.length-1?'line':''}}" wx:for="{{item.arr}}" wx:for-item="zitem" wx:for-index="zindex" wx:key="zindex" data-status="{{zitem.status}}" data-user_id="{{zitem.id}}" bindtap="look_more">
      <image src="{{zitem.photo}}" mode="aspectFill" />
      <view class="name">{{zitem.name}}</view>
      <view class="status {{zitem.status>1?(zitem.status == 2?'bgb':'bga'):'bgc'}}">{{zitem.status>1?(zitem.status == 2?'未通过':'已通过'):'待审核'}}</view>
    </view>
  </view>
</view>