Commit 1cfe34ec authored by 俞嘉婷's avatar 俞嘉婷

loading common

parent cce7a450
......@@ -92,28 +92,28 @@ export class Start extends Component {
}
async start() {
// this.setProgress(0.05);
// // await this.loadZipBundle(0.05, 0.3);
// const pkg = [
// {
// path: "common",
// type: "bundle",
// },
// {
// path: "runMainPage",
// type: "bundle"
// },
// {
// path: "runGamePage",
// type: "bundle"
// },
// ];
// const list = await getPreLoadList(pkg, this.setProgress, 0.05, 0.2);
// await preload(list, this.setProgress, 0.2, 1);
this.setProgress(0.05);
// await this.loadZipBundle(0.05, 0.3);
const pkg = [
{
path: "common",
type: "bundle",
},
// {
// path: "runMainPage",
// type: "bundle"
// },
// {
// path: "runGamePage",
// type: "bundle"
// },
];
const list = await getPreLoadList(pkg, this.setProgress, 0.05, 0.2);
await preload(list, this.setProgress, 0.2, 1);
await changeScene(runMainPage);
}
......
......@@ -4,7 +4,7 @@
<head>
<meta charset="utf-8">
<title>蛇来运转</title>
<title>美好财趣节</title>
<!--http://www.html5rocks.com/en/mobile/mobifying/-->
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,minimum-scale=1,maximum-scale=1,minimal-ui=true" />
......
......@@ -4,7 +4,7 @@
<head>
<meta charset="utf-8">
<title>蛇来运转</title>
<title>美好财趣节</title>
<!--http://www.html5rocks.com/en/mobile/mobifying/-->
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,minimum-scale=1,maximum-scale=1,minimal-ui=true" />
......@@ -106,12 +106,12 @@
}
</style>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735085656532/src/assets/plugin/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735085656532/src/assets/plugin/declare-process.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735085656532/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735085656532/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/1735085656532/style.css" />
<link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735085656532/custom.css" />
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735086060511/src/assets/plugin/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735086060511/src/assets/plugin/declare-process.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735086060511/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735086060511/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/1735086060511/style.css" />
<link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735086060511/custom.css" />
<!-- <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/libs/eruda.min.js"></script>-->
<!-- <script>eruda.init()</script>-->
......@@ -125,20 +125,20 @@
</div>
<!-- Polyfills bundle. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735085656532/src/polyfills.bundle.js" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735086060511/src/polyfills.bundle.js" charset="utf-8"></script>
<!-- SystemJS support. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735085656532/src/system.bundle.js" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1735086060511/src/system.bundle.js" charset="utf-8"></script>
<script src="https://yun.duiba.com.cn/aurora/assets/03cc8b25df7f900745f5db17effa0eccc2ae724e.js"></script>
<!-- Import map -->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1735085656532/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1735086060511/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<script type="systemjs-importmap" charset="utf-8">
{"imports":{"cc":"//yun.duiba.com.cn/db_games/ccc_game/template3d/1735085656532/cocos-js/cc.js"}}
{"imports":{"cc":"//yun.duiba.com.cn/db_games/ccc_game/template3d/1735086060511/cocos-js/cc.js"}}
</script>
<script>
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1735085656532/index.js').catch(function (err) {
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1735086060511/index.js').catch(function (err) {
console.error(err);
})
</script>
......
<html>
<head>
<meta charset="utf-8" />
<title>蛇来运转</title>
<title>美好财趣节</title>
<meta
name="viewport"
content="width=device-width,user-scalable=no,initial-scale=1,minimum-scale=1,maximum-scale=1,minimal-ui=true"
......
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