<import src="./template/introduce.wxml"/>
<view class="give">
  <view class="give-content" wx:if="{{info.status==0}}">
    <view class="content-photo">
      <image src="{{info.avatar}}" mode="aspectFill"/>
    </view>
    <view class="font16" style="font-weight:550">{{info.nickname}}</view>
    <view class="give-you">赠你</view>
    <view class="font14 mTop10" style="font-weight:600">【冬夏令营成长卡】</view>
    <view class="font14 mTop5">价值1999元，免费参加活动</view>
    <view class="content-card">
      <image class="card-image" src="{{info.cardLogo}}" mode="aspectFill"/>
      <view class="content-card-time">
        <text>
            No.{{info.cardNo}}
            有效期：{{info.expireTime}}
        </text>
      </view>
    </view>
    <input class="content-input" type="number" cursor-spacing='20' placeholder="输入手机号领取" maxlength="11" bindinput="inputChange"></input>
    <button class="content-button" type="warn" bindtap="submit">立即领取</button>
  </view>
  <view class="result-content" wx:else>
    <view class="content-card" hidden="{{info.status!=5}}">
      <image class="card-image" src="{{info.cardLogo}}" mode="aspectFill"/>
      <view class="content-card-time">
        <text>
            No.{{info.cardNo}}
            有效期：{{info.expireTime}}
        </text>
      </view>
    </view>
    <view class="icon result-icon subtitleColor {{info.status==3?'icon-cry':'icon-smile'}}"></view>
    <view class="font14">
      <view wx:if="{{info.status==1}}">
          <text>
            恭喜你，
            <text class="weight">【冬夏令营成长卡】</text>领取成功。
          </text>
      </view>
      <view wx:if="{{info.status==3}}">
          <text>
            你来晚了，
            <text class="weight">【冬夏令营成长卡】</text>已被领取。
          </text>
      </view>
      <view wx:if="{{info.status==5}}">
        <text>
          你送出的<text class="weight">【冬夏令营成长卡】</text>
          已被<text class="subtitleColor">{{info.phone || ''}}</text>领取。
        </text>
      </view>
    </view>
    <view class="buttons-row buttons-gutter {{info.status==5?'buttons-ones':''}}">
      <button  class='button button-radius button-plain' hidden="{{info.status==5}}">
        <navigator url="/pages/home/index" hover-class="none" open-type="switchTab">
          查看活动
        </navigator>
      </button>
    </view>
  </view>
  <view class="mTop20">
    <template is="legal" data="{{isClass:true}}" />
  </view>
</view>
<navigator class="common_fix common_home" open-type="reLaunch" url="/pages/home/index" hover-class="none">
	<text class="icon icon-home"></text>
</navigator>
