149 lines
4.9 KiB
HTML
149 lines
4.9 KiB
HTML
<!DOCTYPE html>
|
||
<html>
|
||
|
||
<head>
|
||
<meta charset="UTF-8" />
|
||
<script>
|
||
var coverSupport =
|
||
"CSS" in window &&
|
||
typeof CSS.supports === "function" &&
|
||
(CSS.supports("top: env(a)") || CSS.supports("top: constant(a)"));
|
||
document.write(
|
||
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
|
||
(coverSupport ? ", viewport-fit=cover" : "") +
|
||
'" />'
|
||
);
|
||
</script>
|
||
<!-- <script
|
||
type="text/javascript"
|
||
src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"
|
||
></script>
|
||
<script>
|
||
window.jWeixin = window.wx;
|
||
delete window.wx;
|
||
</script>
|
||
<script src="https://www.cs.com.cn/js/2020/jquery-3.4.1.min.js"></script> -->
|
||
<!-- <link rel="icon" href="/src/assets/favicon.ico" /> -->
|
||
<title></title>
|
||
<!--preload-links-->
|
||
<!--app-context-->
|
||
</head>
|
||
|
||
<body>
|
||
<div id="app"><!--app-html--></div>
|
||
<script type="module" src="/src/main.ts"></script>
|
||
<script>
|
||
(function (w, d, s, q, i) {
|
||
w[q] = w[q] || [];
|
||
var f = d.getElementsByTagName(s)[0], j = d.createElement(s);
|
||
j.async = true;
|
||
j.id = 'beacon-aplus';
|
||
j.src = 'https://d.alicdn.com/alilog/mlog/aplus/' + i + '.js';
|
||
f.parentNode.insertBefore(j, f);
|
||
})(window, document, 'script', 'aplus_queue', '203467608');
|
||
|
||
//集成应用的appKey
|
||
aplus_queue.push({
|
||
action: 'aplus.setMetaInfo',
|
||
arguments: ['appKey', '68d7b06e8560e34872b9f3a7']
|
||
});
|
||
/************************以下内容为可选配置内容****************************/
|
||
//sdk提供手动pv发送机制,启用手动pv(即关闭自动pv),需设置aplus-waiting=MAN;
|
||
//注意:由于单页面路由改变时不会刷新页面,无法自动发送pv,所以对于单页应用,强烈建议您关闭自动PV, 手动控制PV事件
|
||
aplus_queue.push({
|
||
action: 'aplus.setMetaInfo',
|
||
arguments: ['aplus-waiting', 'MAN']
|
||
});
|
||
//是否开启调试模式
|
||
aplus_queue.push({
|
||
action: 'aplus.setMetaInfo',
|
||
arguments: ['DEBUG', true]
|
||
});
|
||
//是否指定用作计算umid的id类型,默认为cnaid,目前支持:
|
||
//1. 微信和QQ: openid; 字节和百度 anonymousid; 支付宝 alipay_id
|
||
//2. 微信、QQ、字节、百度平台的 unionid
|
||
//3. 业务方自己生成的随机id uuid
|
||
// aplus_queue.push({
|
||
// action: 'aplus.setMetaInfo',
|
||
// arguments: ['aplus-idtype', 'xxxx'] //取值参考见附表1
|
||
// });
|
||
</script>
|
||
|
||
<!-- <script type="text/javascript">
|
||
var link = location.href.split("#")[0];
|
||
console.log("🚀 ~ link:", link);
|
||
var link2 = location.href.split("#")[1];
|
||
console.log("🚀 ~ link2:", link2);
|
||
$.ajax({
|
||
url: "https://cankao.cs.com.cn/mini/wechat/share",
|
||
type: "GET",
|
||
data: {
|
||
url: link,
|
||
},
|
||
async: true,
|
||
dataType: "json",
|
||
success: function (res) {
|
||
const { data } = res;
|
||
console.log("🚀 ~ data:", data);
|
||
jWeixin.config({
|
||
debug: false,
|
||
appId: data.appId,
|
||
timestamp: data.timestamp,
|
||
nonceStr: data.nonceStr,
|
||
signature: data.signature,
|
||
jsApiList: [
|
||
"updateAppMessageShareData",
|
||
"updateTimelineShareData",
|
||
"onMenuShareTimeline",
|
||
"onMenuShareAppMessage",
|
||
],
|
||
});
|
||
jWeixin.error(function (res) {
|
||
console.log(res);
|
||
});
|
||
|
||
jWeixin.ready(function () {
|
||
jWeixin.updateAppMessageShareData({
|
||
title: "中证参考",
|
||
desc: "天下事 早知道",
|
||
link: link,
|
||
imgUrl: "https://cankao.cs.com.cn/static/share-default.jpg",
|
||
success: function () {},
|
||
});
|
||
|
||
jWeixin.updateTimelineShareData({
|
||
title: "中证参考",
|
||
desc: "天下事 早知道",
|
||
link: link,
|
||
imgUrl: "https://cankao.cs.com.cn/static/share-default.jpg",
|
||
success: function () {},
|
||
});
|
||
jWeixin.onMenuShareAppMessage({
|
||
title: "中证参考",
|
||
desc: "天下事 早知道",
|
||
link: link,
|
||
imgUrl: "https://cankao.cs.com.cn/static/share-default.jpg",
|
||
trigger: function (res) {},
|
||
success: function (res) {},
|
||
cancel: function (res) {},
|
||
fail: function (res) {},
|
||
});
|
||
|
||
jWeixin.onMenuShareTimeline({
|
||
title: "中证参考",
|
||
desc: "天下事 早知道",
|
||
link: link,
|
||
imgUrl: "https://cankao.cs.com.cn/static/share-default.jpg",
|
||
trigger: function (res) {},
|
||
success: function (res) {},
|
||
cancel: function (res) {},
|
||
fail: function (res) {},
|
||
});
|
||
});
|
||
},
|
||
error: function (error) {},
|
||
});
|
||
</script> -->
|
||
</body>
|
||
|
||
</html> |