index.html
2.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>学考无忧-我的推广</title>
<link rel="stylesheet" href="__TMPL__/public/assets/css/reset.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
<style>
html,
body {
width: 100%;
height: 100%;
display: flex;
display: -webkit-flex;
justify-content: flex-start;
align-items: flex-start;
flex-direction: column;
}
/*.code_Box {*/
/*background: #FF5C19 url("{:cmf_get_image_url($share_image)}") no-repeat top left;*/
/*background-size: 100%;*/
/*-webkit-background-size: 100%;*/
/*}*/
</style>
</head>
<body>
<!-- 顶部 -->
<div class="order_top" style="background-color: #FF5C19">
<a href="javascript:history.back(-1)">
<img src="__TMPL__/public/assets/images/left2.png" alt="">
</a>
<p style="color:white">我的推广</p>
</div>
<div class="code_Box" style="<if condition='$status eq 2'>background-color: #FE3A00;<else />background-color: #fff;</if>margin-top: 0.88rem;">
<img src="{:cmf_get_image_url($share_image)}" style="-webkit-background-size: 100%;background-size: 100%;height: auto;width: 100%;"/>
</div>
<script src="__TMPL__/public/assets/js/base.js"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
</body>
<script>
wx.config({$jssdk});
wx.ready(function () {
var shareData = {
title: "{$share.share_title}",
desc: "{$share.share_desc}",
link: "{$share.share_url}",
imgUrl: "{$share.share_image}",
success: function () {
//分享成功返回信息
}
}
//分享到朋友圈
wx.onMenuShareTimeline(shareData);
//分享给朋友
wx.onMenuShareAppMessage(shareData);
})
</script>
</html>