<import src="../../wxParse/wxParse.wxml" />
<navbar home back text="活动详情" background="#ffff"></navbar>
<view style="height:{{navigationBarHeight}} "></view>
<!-- <button class='goback' bindtap='goback'>
  <image src='{{homeSelectedO}}' mode="widthFix"></image>
  <text class='btnTxt'>首页</text>
</button> -->
<!-- 活动正常排版格式 -->
<view class='coupons' style='{{data.type!=2?"padding-bottom: 160rpx":0}};'>
  <view class="coupons-body">
    <view class='banner' style="{{mouldConfig.answerImgH}}">
      <image src='{{data.coverImg}}' style="{{mouldConfig.answerImgH}}"></image>
    </view>
    <view class='box'> 
      <view class='act'>
        <view class='fenxiang' bindtap='showshare'>
          <button class='share user-motto' open-type="share" data-id="{{data.id}}" style="height:52rpx;width:100rpx;position: absolute;top: 10rpx;right: 10rpx;background: transparent;" hover-class="other-button-hover"></button>
          <image src='{{fenxiang}}' mode="widthFix"></image>
          <text class='gift'>分享</text>
        </view>
        <text class='txt001'>{{data.title}}</text>
        <text class='txt002'>{{data.subTitle}}</text>
        <view class="proct">
          <text>活动说明</text>
          <text class='detail' wx:if="{{data.type == 1}}">{{data.detail}}</text>
        </view>
        <view class='num' wx:if="{{ifBtn}}">
          <view class='member'>1、活动人数:{{data.personLimit}}人</view>
          <view class='integral' wx:if='{{data.credit}}'>
            <text>消耗积分:</text>
            <text class='integralNum'>{{data.credit}}</text> 积分
          </view>
        </view>
        <view class='time' wx:if="{{ifBtn}}">2、报名有效日期</view>
        <view class='time' style='margin-left:36rpx' wx:if="{{ifBtn}}">{{startTime}}--{{endTime}}</view>
        <view class='time' wx:if="{{!ifBtn}}">1、活动有效日期</view>
        <view class='time' wx:if="{{ifBtn}}">3、活动有效日期</view>
        <view class='time' style='margin-left:36rpx'>{{activityStartTime}}--{{activityEndTime}}</view>
      </view>
    </view>
  </view>
</view>
<!-- 自由图文格式 -->
<view wx:if="{{data.type == 2}}">
  <view class="content">
    <template is="wxParse" data="{{wxParseData:article.nodes}}" />
  </view>
</view>

<view class="apply" wx:if="{{joinStatus==3}}">已报名</view>
<button wx:if="{{activityStatus == 0&&ifBtn}}" disabled class='signUpHr' hover-class='opacity'>报名未开始</button>
<button wx:if="{{activityStatus == 1&&ifBtn&&joinStatus!=3}}" class='signUp' data-activityId="{{activityId}}" bindtap='goSignUp' hover-class='opacity'>我要报名</button>
<button wx:if="{{joinStatus==3&&activityStatus==1}}" disabled class='signUpHr' hover-class='opacity'>活动进行中</button>
<button wx:if="{{activityStatus == 2}}" disabled class='signUpHr' hover-class='opacity'>报名已结束</button>
<button wx:if="{{activityStatus == 5}}" disabled class='signUpHr' hover-class='opacity'>活动未上线</button>
<button wx:if="{{activityStatus == 6}}" disabled class='signUpHr' hover-class='opacity'>活动已下线</button>
<button wx:if="{{activityStatus == 7}}" disabled class='signUpHr' hover-class='opacity'>活动已结束</button>
<button wx:if="{{activityStatus == 8}}" disabled class='signUpHr' hover-class='opacity'>无需报名</button>
<!-- <button wx:if="{{activityStatus == 3&&ifBtn}}" disabled class='signUpHr' hover-class='opacity'>已报名</button> -->