You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

91 lines
3.3 KiB

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>{$title}</title>
<meta content="{$title}" name="keywords" />
<meta content="{$description}" name="description" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="{THEME_PATH}admin/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="{THEME_PATH}admin/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
</head>
<body class="page-container-bg-solid">
<div class="container">
<h2>{$title}</h2>
<p style="margin-bottom: 20px;">{dr_date($inputtime)} &nbsp;&nbsp;{$author}</p>
{if $thumb}<p><img src="{dr_get_file($thumb)}"></p>{/if}
{$content}
</div>
<style>
img {width: 100%}
h2 {
padding-bottom: 10px;
margin-bottom: 20px;
border-bottom: 1px solid #e7e7eb;
}
</style>
{php $signPackage=dr_weixin_jssdk(); }
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
wx.config({
debug: true,
appId: '<?php echo $signPackage["appId"];?>',
timestamp: <?php echo $signPackage["timestamp"];?>,
nonceStr: '<?php echo $signPackage["nonceStr"];?>',
signature: '<?php echo $signPackage["signature"];?>',
jsApiList: ['onMenuShareTimeline', 'onMenuShareQQ', 'onMenuShareQZone', 'onMenuShareAppMessage']
});
wx.ready(function () {
// 在这里调用 API
wx.onMenuShareTimeline({
title: '{$title}', // 分享标题
desc: '{$description}', // 分享描述
link: '{dr_now_url()}', // 分享链接
imgUrl: '{dr_get_file($thumb)}', // 分享图标
success: function () {
// 用户确认分享后执行的回调函数
},
cancel: function () {
// 用户取消分享后执行的回调函数
}
});
wx.onMenuShareAppMessage({
title: '{$title}', // 分享标题
desc: '{$description}', // 分享描述
link: '{dr_now_url()}', // 分享链接
imgUrl: '{dr_get_file($thumb)}', // 分享图标
success: function () {
// 用户确认分享后执行的回调函数
},
cancel: function () {
// 用户取消分享后执行的回调函数
}
});
wx.onMenuShareQQ({
title: '{$title}', // 分享标题
desc: '{$description}', // 分享描述
link: '{dr_now_url()}', // 分享链接
imgUrl: '{dr_get_file($thumb)}', // 分享图标
success: function () {
// 用户确认分享后执行的回调函数
},
cancel: function () {
// 用户取消分享后执行的回调函数
}
});
wx.onMenuShareQZone({
title: '{$title}', // 分享标题
desc: '{$description}', // 分享描述
link: '{dr_now_url()}', // 分享链接
imgUrl: '{dr_get_file($thumb)}', // 分享图标
success: function () {
// 用户确认分享后执行的回调函数
},
cancel: function () {
// 用户取消分享后执行的回调函数
}
});
});
</script>
</body>
</html>