App/Wap/View/Show/index.html
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/** 展示活动自助管理 **/
function hidtel($phone){
return preg_replace('/(1[34578]{1}[0-9])[0-9]{4}([0-9]{4})/i','$1****$2',$phone);
}
//截取utf8字符串
function utf8Substr($str, $from, $len)
{
return preg_replace('#^(?:[\x00-\x7F]|[\xC0-\xFF][\x80-\xBF]+){0,'.$from.'}'.
'((?:[\x00-\x7F]|[\xC0-\xFF][\x80-\xBF]+){0,'.$len.'}).*#s',
'$1',$str);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no" name="viewport" id="viewport" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<title><?php echo $news['title']; ?></title>
<meta name="description" content="微信模板" />
<meta name="keywords" content="" />
<link href="__PUBLIC__/styles/default/css/base.css" type="text/css" rel="stylesheet" />
<link href="__PUBLIC__/styles/default/css/zlcomm.css?v=00" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="__PUBLIC__/styles/default/js/jquery-1.8.0.min.js" charset="utf-8"></script>
<script type="text/javascript" src="__PUBLIC__/styles/default/js/scroll.js" charset="utf-8"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
wx.config({
debug: false,
appId: '{$signPackage["appId"]}',
timestamp: '{$signPackage["timestamp"]}',
nonceStr: '{$signPackage["nonceStr"]}',
signature: '{$signPackage["signature"]}',
jsApiList: [
// 所有要调用的 API 都要加到这个列表中
'onMenuShareTimeline','onMenuShareAppMessage'
]
});
wx.ready(function () {
// 在这里调用 API
wx.onMenuShareTimeline({
title: "{$news['title']}",// 分享标题
link: "http://demo.0766city.com/xcrm/index.php?m=Wap&c=Show&a=index&hdid={$hdid}", // 分享链接
desc: "{$news['xxsm']}", // 分享描述
imgUrl: "http://demo.0766city.com{$news.style.fx}", // 分享图标
trigger: function () {
//alert("点击分享:");
},
success: function () {
// 用户确认分享后执行的回调函数
//alert("分享成功");
},
cancel: function () {
// 用户取消分享后执行的回调函数
//alert("用户取消分享");
后面还有 45 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。