<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">一张宝贝走天下<text style="font-weight:600">【现金券】</text></view>
    <view class="content-card">
      <view class="content-card-time">
       <view class="font14 middle white">—<text class="content-card-title middle">{{info.description}}</text>—</view>
        <view class="font16 white">￥<text class="font35">{{info.price}}</text></view>
        <view class="white">{{info.expireTime}}</view>
      </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}}">
      <view class="content-card-time">
       <view class="font14 middle white">—<text class="content-card-title middle">{{info.description}}</text>—</view>
        <view class="font16 white">￥<text class="font35">{{info.price}}</text></view>
        <view class="white">{{info.expireTime}}</view>
      </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 buttons-ones}}">
      <button  class='button button-radius button-plain' wx:if="{{info.status!=5}}">
        <navigator url="/pages/home/index" hover-class="none" open-type="switchTab">
          查看活动
        </navigator>
      </button>
      <button class='button button-radius button-subtitle' bindtap="seeCard" wx:else>查看现金券</button>
    </view>
  </view>
</view>
<recommend aid="-1" wx:if="{{info.articleType!=1}}"/>
<navigator class="common_fix common_home" open-type="reLaunch" url="/pages/home/index" hover-class="none">
	<text class="icon icon-home"></text>
</navigator>
