img_txt.wxml 7.4 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}}' 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}}'>成为志愿者</navigator>

</view>

<view class="btn_box">
  <navigator class="btn-item" style="background: url('/imgs/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':'/imgs/edit@.png'}}') no-repeat center;background-size: cover;" bindtap="{{datalist.button_status == 2?'edit_info':''}}" wx:if="{{1<datalist.button_status<6 && datalist.admin !=1}}">编辑</view>
  <view class="btn-item" style="background: url('{{datalist.button_status == 5?'/imgs/out@.png':'/imgs/out.png'}}') no-repeat center;background-size: cover;" wx:if="{{2<datalist.button_status<6 && datalist.admin !=1}}" bindtap="change_cover" data-id="1">退出</view>
  <view class="btn-item" style="background: url('/imgs/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:if="{{join_info.camera.length>0}}">
  <view class="c_title">摄影(设备自带</view>
  <view class="c_box">
    <view class="i_info {{join_info.camera.length>3 && index<join_info.camera.length-2?'line':''}}" wx:for="{{join_info.camera}}" wx:key="index" data-type="{{item.status =='已通过'?'1':0}}" data-user_id="{{item.user_id}}" bindtap="look_more">
      <image src="{{item.photo}}" mode="aspectFill" />
      <view class="name">李强</view>
      <view class="status" wx:if="{{item.status =='已通过'}}" style="background: #41CD79;">已通过</view>
      <view class="status" wx:else style="background: #F84141;">未通过</view>
    </view>
  </view>
</view>
<view class="c_item" wx:if="{{join_info.photo.length>0}}">
  <view class="c_title">摄像(设备自带</view>
  <view class="c_box">
    <view class="i_info {{join_info.photo.length>3 && index<join_info.photo.length-2?'line':''}}" wx:for="{{join_info.photo}}" wx:key="index" data-type="{{item.status =='已通过'?'1':0}}" data-user_id="{{item.user_id}}" bindtap="look_more">
      <image src="{{item.photo}}" mode="aspectFill" />
      <view class="name">李强</view>
      <view class="status" wx:if="{{item.status =='已通过'}}" style="background: #41CD79;">已通过</view>
      <view class="status" wx:else style="background: #F84141;">未通过</view>
    </view>
  </view>
</view>
<view class="c_item" wx:if="{{join_info.motorcade.length>0}}">
  <view class="c_title">爱心车队</view>
  <view class="c_box">
    <view class="i_info {{join_info.motorcade.length>3 && index<join_info.motorcade.length-2?'line':''}}" wx:for="{{join_info.motorcade}}" wx:key="index" data-type="{{item.status =='已通过'?'1':0}}" data-user_id="{{item.user_id}}" bindtap="look_more">
      <image src="{{item.photo}}" mode="aspectFill" />
      <view class="name">李强</view>
      <view class="status" wx:if="{{item.status =='已通过'}}" style="background: #41CD79;">已通过</view>
      <view class="status" wx:else style="background: #F84141;">未通过</view>
    </view>
  </view>
</view>
<view class="c_item" wx:if="{{join_info.question.length>0}}">
  <view class="c_title">线上答疑</view>
  <view class="c_box">
    <view class="i_info {{join_info.question.length>3 && index<join_info.question.length-2?'line':''}}" wx:for="{{join_info.question}}" wx:key="index" data-type="{{item.status =='已通过'?'1':0}}" data-user_id="{{item.user_id}}" bindtap="look_more">
      <image src="{{item.photo}}" mode="aspectFill" />
      <view class="name">李强</view>
      <view class="status" wx:if="{{item.status =='已通过'}}" style="background: #41CD79;">已通过</view>
      <view class="status" wx:else style="background: #F84141;">未通过</view>
    </view>
  </view>
</view>
<view class="c_item" wx:if="{{join_info.ill.length>0}}">
  <view class="c_title">门诊服务</view>
  <view class="c_box">
    <view class="i_info {{join_info.ill.length>3 && index<join_info.ill.length-2?'line':''}}" wx:for="{{join_info.ill}}" wx:key="index" data-type="{{item.status =='已通过'?'1':0}}" data-user_id="{{item.user_id}}" bindtap="look_more">
      <image src="{{item.photo}}" mode="aspectFill" />
      <view class="name">李强</view>
      <view class="status" wx:if="{{item.status =='已通过'}}" style="background: #41CD79;">已通过</view>
      <view class="status" wx:else style="background: #F84141;">未通过</view>
    </view>
  </view>
</view>

<view class="c_item" wx:if="{{join_info.ill.service>0}}">
  <view class="c_title">现场服务(签到、指引、礼仪等</view>
  <view class="c_box">
    <view class="i_info {{join_info.service.length>3 && index<join_info.service.length-2?'line':''}}" wx:for="{{join_info.service}}" wx:key="index" data-type="{{item.status =='已通过'?'1':0}}" data-user_id="{{item.user_id}}" bindtap="look_more">
      <image src="{{item.photo}}" mode="aspectFill" />
      <view class="name">李强</view>
      <view class="status" wx:if="{{item.status =='已通过'}}" style="background: #41CD79;">已通过</view>
      <view class="status" wx:else style="background: #F84141;">未通过</view>
    </view>
  </view>
</view>