1 Star 0 Fork 5

still_xiaoyou / mn_demo

forked from 名牛云 / mn_demo 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.html 2.44 KB
一键复制 编辑 原始数据 按行查看 历史
hnlg666 提交于 2022-01-12 03:06 . 上线框架开发demo
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>
<%= htmlWebpackPlugin.options.title %>
</title>
<script>
document.addEventListener('DOMContentLoaded', function() {
document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
})
</script>
<link rel="stylesheet" href="<%= BASE_URL %>static/index.css" />
<link rel="icon" href="/static/images/icon1-1.png" type="image/x-icon">
<link rel="shortcut icon" href="/static/images/icon1-1.png" type="image/x-icon">
</head>
<body>
<!-- <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script> -->
<!-- <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script> -->
<!-- <script type="text/javascript">
$.ajax({
// async: false,
type: "POST",
url: `http://192.168.2.173:8000/bdapi/Statistics/shareparm`,
success: function(res) {
res = JSON.parse(res);
console.log(wx);
wx.config({
...res,
jsApiList: ['updateAppMessageShareData', 'updateTimelineShareData']
});
}
})
wx.ready(function() {
wx.onMenuShareTimeline({
title: '数据周报', // 分享标题
link: window.location.href, // 分享链接
imgUrl: '', // 分享图标
desc: '您的数据周报已送达,请注意查收',
success: function() {
// 用户确认分享后执行的回调函数
},
cancel: function() {
// 用户取消分享后执行的回调函数
}
});
wx.onMenuShareAppMessage({
title: '数据周报', // 分享标题
desc: '您的数据周报已送达,请注意查收', // 分享描述
link: window.location.href, // 分享链接
imgUrl: '', // 分享图标
type: '', // 分享类型,music、video或link,不填默认为link
dataUrl: '', // 如果type是music或video,则要提供数据链接,默认为空
success: function() {
// 用户确认分享后执行的回调函数
},
cancel: function() {
// 用户取消分享后执行的回调函数
}
});
});
</script> -->
<noscript>
<strong>请使用现代浏览器打开</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/yzc/mn-demo.git
git@gitee.com:yzc/mn-demo.git
yzc
mn-demo
mn_demo
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891