to_send.html 5.71 KB
<!DOCTYPE html >
<html>
<head>
    <meta charset="UTF-8">
    <title>赠送他人</title>
    <meta name="format-detection" content="telephone=no">
    <meta name="viewport" content="minimal-ui=yes,width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="__STATIC__/css/giftuser/common_new.css?v=__CSSVERSION__" />
    <link rel="stylesheet" href="__STATIC__/css/giftuser/swiper.min.css?v=__CSSVERSION__" />
    <link rel="stylesheet" href="__STATIC__/css/giftuser/place_order_new.css?v=__CSSVERSION__" />
    <style>
         html{ background: none}
        .center_show{ background: none; position: fixed; top: 50%; left: 0;  margin-top: -10rem; z-index: 5;
            width: 100%; height:20rem ; text-align: center}
        .center_show p{font-size:0.8rem }
        .center_show img{ height: 15rem;}
        .bottom_notice{ position: fixed; bottom:2.8125rem;left: 0; width: 100%;height: 2.8125rem;
             width: 96%; margin-left: 2%; font-size: 0.75rem}
        .zhezhao{width: 100%; height: 100%; position: fixed; top: 0; left: 0; background-color: rgba(0,0,0,0.8); z-index: 10;}
        .zhezhao img{height: 100%;}.dn{display: none}
    </style>
<body style="background:#f4f4f4; position: relative" >

<!--顶部提示-->
<div class="layout order">
    <ul class="step">
        <li>
            <i></i>
            <span>1.确定数量</span>
            <span></span>
        </li>
        <li>
            <i></i>
            <span>2.完成支付</span>
            <span></span>
        </li>
        <li class="on">
            <i></i>
            <span>3.赠送礼包</span>
            <span></span>
        </li>
    </ul>
</div>
<!--中间内容-->
<div class="center_show" >
    <p><img src="__STATIC__/images/giftuser/keguan.png"></p>
    <p style="font-weight:600">礼包:{$Think.request.ordno}已成功支付</p>
    <p style="margin-top: 0.2rem">请点击下方的按钮"{$btn_text}"</p>
</div>

<div class="bottom_notice">
   客官,您送出的礼物在7天内未被领取,礼物会自动转入"我的礼品库";14天未被领取,相应全额将原路退回至付款账户
</div>
<!--按钮事件-->
<div class="btn_b"><a href="javascript:void(0);">{$btn_text}</a></div>
<div class="zhezhao dn" onclick="close1()"><img src="__STATIC__/images/giftuser/txt_tips_3.png"></div>

</body>
</html>
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script src="__STATIC__/js/jquery.js"></script>
<script src="__STATIC__/js/giftuser/swiper.min.js"></script>
<script src="__PUBLIC__/js/global.js"></script>
<script>
    var ShareTitle="{$share_text}";
    var ShareDesc="快来填写收货地址完成领取吧";
    var wxstoid="{$Think.request.stoid}";
    var ShareImgUrl = "{:getImg($tpshop_config['shop_info_store_logo'])}";
    var ShareLink="{$share_text}"
    //遮罩开关
    $(".btn_b").click(function (){$(".zhezhao").fadeIn(3);})
    function close1() {alert(1); $(".zhezhao").fadeOut(3); }
    
    $(function() {
        if(isWeiXin()){
            $.ajax({
                type : "POST",
                url:"/index.php?m=Mobile&c=Index&a=ajaxGetWxConfig&stoid="+wxstoid+"&t="+Math.random(),
                data:{'askUrl':encodeURIComponent(location.href.split('#')[0])},
                dataType:'JSON',
                success: function(res)
                {
                    wx.config({
                        debug: false,
                        appId: res.appId,
                        timestamp: res.timestamp,
                        nonceStr: res.nonceStr,
                        signature: res.signature,
                        jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareQZone', 'hideOptionMenu'] // 功能列表,我们要使用JS-SDK的什么功能
                    });
                    // config信息验证后会执行ready方法,所有接口调用都必须在config接口获得结果之后,config是一个客户端的异步操作,所以如果需要在 页面加载时就调用相关接口,则须把相关接口放在ready函数中调用来确保正确执行。对于用户触发时才调用的接口,则可以直接调用,不需要放在ready 函数中。
                    wx.ready(function(){
                        // 获取"分享到朋友圈"按钮点击状态及自定义分享内容接口
                        wx.onMenuShareTimeline({
                            title: ShareTitle, // 分享标题
                            link:ShareLink,
                            imgUrl:ShareImgUrl, // 分享图标,
                            success: function (res) {
                                $fenx_url="/index.php/Mobile/Giftuser/send_success/stoid/1";
                            }
                        });
                        // 获取"分享给朋友"按钮点击状态及自定义分享内容接口
                        wx.onMenuShareAppMessage({
                            title: ShareTitle, // 分享标题
                            desc: ShareDesc, // 分享描述
                            link:ShareLink,
                            imgUrl:ShareImgUrl, // 分享图标
                            success: function (res) {
                                $fenx_url="/index.php/Mobile/Giftuser/send_success/stoid/1";
                            }
                        });
                    });
                },
                error:function(){
                    return false;
                }
            });
        }
    });

    function isWeiXin(){
        var ua = window.navigator.userAgent.toLowerCase();
        if(ua.match(/MicroMessenger/i) == 'micromessenger'){
            return true;
        }else{
            return false;
        }
    }



</script>