Commit a88f2a63 authored by 俞嘉婷's avatar 俞嘉婷

share

parent fc3569a5
...@@ -32,30 +32,30 @@ export default class ShareCenter { ...@@ -32,30 +32,30 @@ export default class ShareCenter {
if (success) { if (success) {
url = url + '&inviteCode=' + data?.inviteCode; url = url + '&inviteCode=' + data?.inviteCode;
} }
const inviteInfo = shareInfo.filter(item => item.type == type)[0] }
if (this.isWeChat()) { const inviteInfo = shareInfo.filter(item => item.type == type)[0]
UIMgr.ins.showShare(); if (this.isWeChat()) {
wxShare({ UIMgr.ins.showShare();
title: inviteInfo?.title, wxShare({
content: inviteInfo?.content, title: inviteInfo?.title,
url: url, content: inviteInfo?.content,
thumbnail: inviteInfo?.thumbnail, url: url,
}); thumbnail: inviteInfo?.thumbnail,
return;
}
if (type == 'main') return; //初始化拦截
// @ts-ignore
MFS.share({
"MATE_NAME": inviteInfo?.title,
"MATE_SUB_NAME": inviteInfo?.content,
"PAGE_IMAGE": inviteInfo?.thumbnail,
"OPEN_URL": url,
"PLATFORMS": [
"WechatSession",
"WechatTimeLine"
]
}); });
return;
} }
if (type == 'main') return; //初始化拦截
// @ts-ignore
MFS.share({
"MATE_NAME": inviteInfo?.title,
"MATE_SUB_NAME": inviteInfo?.content,
"PAGE_IMAGE": inviteInfo?.thumbnail,
"OPEN_URL": url,
"PLATFORMS": [
"WechatSession",
"WechatTimeLine"
]
});
} }
/** 判断微信环境 */ /** 判断微信环境 */
......
...@@ -106,12 +106,12 @@ ...@@ -106,12 +106,12 @@
} }
</style> </style>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735568298656/src/assets/plugin/zepto.min.js"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735621821512/src/assets/plugin/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735568298656/src/assets/plugin/declare-process.js"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735621821512/src/assets/plugin/declare-process.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735568298656/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735621821512/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735568298656/src/assets/plugin/jszip.min.v3.10.1.js"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735621821512/src/assets/plugin/jszip.min.v3.10.1.js"></script>
<link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735568298656/style.css" /> <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735621821512/style.css" />
<link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735568298656/custom.css" /> <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735621821512/custom.css" />
<!-- <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/libs/eruda.min.js"></script>--> <!-- <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/libs/eruda.min.js"></script>-->
<!-- <script>eruda.init()</script>--> <!-- <script>eruda.init()</script>-->
...@@ -125,20 +125,20 @@ ...@@ -125,20 +125,20 @@
</div> </div>
<!-- Polyfills bundle. --> <!-- Polyfills bundle. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735568298656/src/polyfills.bundle.js" charset="utf-8"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735621821512/src/polyfills.bundle.js" charset="utf-8"></script>
<!-- SystemJS support. --> <!-- SystemJS support. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735568298656/src/system.bundle.js" charset="utf-8"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735621821512/src/system.bundle.js" charset="utf-8"></script>
<script src="https://yun.duiba.com.cn/aurora/assets/03cc8b25df7f900745f5db17effa0eccc2ae724e.js"></script> <script src="https://yun.duiba.com.cn/aurora/assets/03cc8b25df7f900745f5db17effa0eccc2ae724e.js"></script>
<!-- Import map --> <!-- Import map -->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1735568298656/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>--> <!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1735621821512/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<script type="systemjs-importmap" charset="utf-8"> <script type="systemjs-importmap" charset="utf-8">
{"imports":{"cc":"//yun.duiba.com.cn/db_games/ccc_game/template3d/1735568298656/cocos-js/cc.js"}} {"imports":{"cc":"//yun.duiba.com.cn/db_games/ccc_game/template3d/1735621821512/cocos-js/cc.js"}}
</script> </script>
<script> <script>
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1735568298656/index.js').catch(function (err) { System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1735621821512/index.js').catch(function (err) {
console.error(err); console.error(err);
}) })
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment