<!--pages/my/share/share.wxml-->
<view class="topBox">
    <image class="user" src="/image/my/fenxianghaoyou.png"></image>

    <view class="tips">您的朋友 大黄 邀请你体验海星洗护</view>
</view>


<view class="contioner">
    <image src="/image/my/tit.png" class="tit"></image>

    <view class="yhj">
        <image class="img-bgs" src="/image/my/bg-yhj.png"></image>

        <view class="msg">
            <view class="price">15<text class="tips">元</text></view>

            <view class="name">新人特惠洗护券</view>
        </view>
    </view>
</view>

<view class="footerBtn" bindtap="closeShow" >
    领取
</view>

<van-overlay show="{{ show }}" bind:click="onClickHide">
    <view class="wrapper">
        <image src="/image/my/hongbao-bg.png" class="img-bgs"></image>

        <view class="content" wx:if="{{type == 1}}">
            <view class="inputbox flex ju-b">
                <input type="text" placeholder="请输入手机号"/>
            </view>
            <view class="inputbox flex ju-b">
                <input type="text" placeholder="请输入验证码"/>
                <view class="button">获取验证码</view>
            </view>

            <view class="btn" bindtap="changeType" data-type="2">领取</view>
        </view>

        <view class="content" wx:if="{{type == 2}}">
            <image class="state" src="/image/my/success.png"></image>
            <view class="tips">领取成功</view>
            <view class="btn" bindtap="changeType" data-type="3">前往小程序下单</view>
            
        </view>

        <view class="content" wx:if="{{type == 3}}">
            <image class="state" src="/image/my/fail.png"></image>
            <view class="tips">领取失败</view>
            <view class="tips m-top-20">你已经领取过了！</view>
            
        </view>

        <image src="/image/my/close.png" bindtap="closeShow" class="close"></image>
    </view>
</van-overlay>