to_send.html
5.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!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>