Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
ZheShangBank_TaoQuan_20240612
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
ZheShangBank_TaoQuan_20240612
Commits
3a81d111
Commit
3a81d111
authored
Jun 25, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整理一下代码
parent
27fbf538
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
224 additions
and
120 deletions
+224
-120
ShareCenter.ts
assets/Scripts/ShareCenter.ts
+1
-6
TaskCenter.ts
assets/Scripts/TaskCenter.ts
+1
-1
index.html
build/web-mobile/index.html
+116
-113
分享落地页.html
分享落地页.html
+106
-0
No files found.
assets/Scripts/ShareCenter.ts
View file @
3a81d111
...
...
@@ -42,12 +42,7 @@ export default class ShareCenter {
thumbnail
:
shareData
.
thumbnail
,
url
:
`
${
shareOrigin
||
location
.
origin
}${
this
.
shareUrl
}
&appKey=
${
appKey
}
&openBs=openbs&inviteCode=
${
this
.
inviteCode
}
&channel=
${
getUrlParam
(
"channel"
)}
`
}
// 游戏去炫耀 不同的分享信息
if
(
type
===
SHARE_TYPE
.
FLAUNT
)
{
shareParams
.
title
=
shareData
.
game_title
shareParams
.
content
=
shareData
.
game_content
shareParams
.
thumbnail
=
shareData
.
game_thumbnail
}
// app分享
await
appShare
(
shareParams
);
...
...
assets/Scripts/TaskCenter.ts
View file @
3a81d111
...
...
@@ -42,7 +42,7 @@ export default class TaskCenter {
/** 邀请任务 */
if
(
code
?.
startsWith
(
"it"
))
{
beforeDoComplete
(
item
,
()
=>
{
ShareCenter
.
ins
.
doShare
(
SHARE_TYPE
.
INVITE
);
ShareCenter
.
ins
.
doShare
();
});
}
/** 浏览任务 */
...
...
build/web-mobile/index.html
View file @
3a81d111
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<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"
/>
<!--https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html-->
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black-translucent"
>
<meta
name=
"format-detection"
content=
"telephone=no"
>
<!-- force webkit on 360 -->
<meta
name=
"renderer"
content=
"webkit"
/>
<meta
name=
"force-rendering"
content=
"webkit"
/>
<!-- force edge on IE -->
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
/>
<meta
name=
"msapplication-tap-highlight"
content=
"no"
>
<!-- force full screen on some browser -->
<meta
name=
"full-screen"
content=
"yes"
/>
<meta
name=
"x5-fullscreen"
content=
"true"
/>
<meta
name=
"360-fullscreen"
content=
"true"
/>
<!--fix fireball/issues/3568 -->
<!--<meta name="browsermode" content="application">-->
<meta
name=
"x5-page-mode"
content=
"app"
>
<!--<link rel="apple-touch-icon" href=".png" />-->
<!--<link rel="apple-touch-icon-precomposed" href=".png" />-->
<script
src=
"//yun.duiba.com.cn/h5/lib/zepto.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/polaris/declare-process.edbd0793356569c4e3aa91ec7d0aebf5a7bd7364.js"
crossorigin=
"anonymous"
></script>
<script
src=
"//yun.duiba.com.cn/polaris/SVGA.Lite.v2.1.1.d3a67cbc13c591c53c6f87ab34c57ce387010374.js"
crossorigin=
"anonymous"
></script>
<script
src=
"//yun.duiba.com.cn/aurora/assets/2403d1edf2acd15b179306b6ddaa5f0967d78a8f.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1719231805381/style.css"
/>
<style>
.sui-captcha
{
visibility
:
hidden
;
position
:
fixed
;
z-index
:
10000
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
background-color
:
rgba
(
0
,
0
,
0
,
0.7
);
/*.neCaptcha-dialog::after {
position: absolute;
content: '加载中…';
width: 100%;
height: 30px;
top: -40px;
left: 0;
text-align: center;
line-height: 30px;
font-size: 16px;
color: #ffff00;
}*/
}
.neCaptcha-dialog
{
visibility
:
hidden
;
background-color
:
#fff
;
box-shadow
:
0
0
8px
0
rgba
(
0
,
0
,
0
,
0.35
);
-webkit-box-shadow
:
0
0
8px
0
rgba
(
0
,
0
,
0
,
0.35
);
position
:
absolute
;
left
:
50%
;
top
:
45%
;
-moz-transform
:
translate
(
-50%
,
-50%
);
-ms-transform
:
translate
(
-50%
,
-50%
);
-o-transform
:
translate
(
-50%
,
-50%
);
transform
:
translate
(
-50%
,
-50%
);
-webkit-transform
:
translate
(
-50%
,
-50%
);
padding
:
10px
;
min-width
:
100px
;
border-radius
:
10px
;
width
:
80%
;
}
</style>
</head>
<body>
<div
id=
"GameDiv"
cc_exact_fit_screen=
"true"
>
<div
id=
"Cocos3dGameContainer"
>
<canvas
id=
"GameCanvas"
oncontextmenu=
"event.preventDefault()"
tabindex=
"99"
></canvas>
</div>
</div>
<!-- Polyfills bundle. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1719231805381/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<!-- SystemJS support. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1719231805381/src/system.bundle.js"
charset=
"utf-8"
></script>
<!-- Import map -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1719231805381/src/import-map.json"
type=
"systemjs-importmap"
charset=
"utf-8"
></script>
<script>
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/1719231805381/index.js'
).
catch
(
function
(
err
)
{
console
.
error
(
err
);
})
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<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"
/>
<!--https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html-->
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black-translucent"
>
<meta
name=
"format-detection"
content=
"telephone=no"
>
<!-- force webkit on 360 -->
<meta
name=
"renderer"
content=
"webkit"
/>
<meta
name=
"force-rendering"
content=
"webkit"
/>
<!-- force edge on IE -->
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
/>
<meta
name=
"msapplication-tap-highlight"
content=
"no"
>
<!-- force full screen on some browser -->
<meta
name=
"full-screen"
content=
"yes"
/>
<meta
name=
"x5-fullscreen"
content=
"true"
/>
<meta
name=
"360-fullscreen"
content=
"true"
/>
<!--fix fireball/issues/3568 -->
<!--<meta name="browsermode" content="application">-->
<meta
name=
"x5-page-mode"
content=
"app"
>
<!--<link rel="apple-touch-icon" href=".png" />-->
<!--<link rel="apple-touch-icon-precomposed" href=".png" />-->
<script
src=
"//yun.duiba.com.cn/h5/lib/zepto.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/polaris/declare-process.edbd0793356569c4e3aa91ec7d0aebf5a7bd7364.js"
crossorigin=
"anonymous"
></script>
<script
src=
"//yun.duiba.com.cn/polaris/SVGA.Lite.v2.1.1.d3a67cbc13c591c53c6f87ab34c57ce387010374.js"
crossorigin=
"anonymous"
></script>
<script
src=
"//yun.duiba.com.cn/aurora/assets/2403d1edf2acd15b179306b6ddaa5f0967d78a8f.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1719234949469/style.css"
/>
<style>
.sui-captcha
{
visibility
:
hidden
;
position
:
fixed
;
z-index
:
10000
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
background-color
:
rgba
(
0
,
0
,
0
,
0.7
);
/*.neCaptcha-dialog::after {
position: absolute;
content: '加载中…';
width: 100%;
height: 30px;
top: -40px;
left: 0;
text-align: center;
line-height: 30px;
font-size: 16px;
color: #ffff00;
}*/
}
.neCaptcha-dialog
{
visibility
:
hidden
;
background-color
:
#fff
;
box-shadow
:
0
0
8px
0
rgba
(
0
,
0
,
0
,
0.35
);
-webkit-box-shadow
:
0
0
8px
0
rgba
(
0
,
0
,
0
,
0.35
);
position
:
absolute
;
left
:
50%
;
top
:
45%
;
-moz-transform
:
translate
(
-50%
,
-50%
);
-ms-transform
:
translate
(
-50%
,
-50%
);
-o-transform
:
translate
(
-50%
,
-50%
);
transform
:
translate
(
-50%
,
-50%
);
-webkit-transform
:
translate
(
-50%
,
-50%
);
padding
:
10px
;
min-width
:
100px
;
border-radius
:
10px
;
width
:
80%
;
}
</style>
<script
id=
"sparkVConsoleJS"
>
var
script
=
document
.
createElement
(
'script'
);
script
.
src
=
"//yun.duiba.com.cn/webapp/js/duiba-vconsole-1.0.0.js"
document
.
head
.
append
(
script
);
</script></head>
<body>
<div
id=
"GameDiv"
cc_exact_fit_screen=
"true"
>
<div
id=
"Cocos3dGameContainer"
>
<canvas
id=
"GameCanvas"
oncontextmenu=
"event.preventDefault()"
tabindex=
"99"
></canvas>
</div>
</div>
<!-- Polyfills bundle. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1719234949469/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<!-- SystemJS support. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1719234949469/src/system.bundle.js"
charset=
"utf-8"
></script>
<!-- Import map -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1719234949469/src/import-map.json"
type=
"systemjs-importmap"
charset=
"utf-8"
></script>
<script>
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/1719234949469/index.js'
).
catch
(
function
(
err
)
{
console
.
error
(
err
);
})
</script>
</body>
</html>
...
...
分享落地页.html
0 → 100644
View file @
3a81d111
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<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"
/>
<!--https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html-->
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black-translucent"
>
<meta
name=
"format-detection"
content=
"telephone=no"
>
<!-- force webkit on 360 -->
<meta
name=
"renderer"
content=
"webkit"
/>
<meta
name=
"force-rendering"
content=
"webkit"
/>
<!-- force edge on IE -->
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
/>
<meta
name=
"msapplication-tap-highlight"
content=
"no"
>
<!-- force full screen on some browser -->
<meta
name=
"full-screen"
content=
"yes"
/>
<meta
name=
"x5-fullscreen"
content=
"true"
/>
<meta
name=
"360-fullscreen"
content=
"true"
/>
<!--fix fireball/issues/3568 -->
<!--<meta name="browsermode" content="application">-->
<meta
name=
"x5-page-mode"
content=
"app"
>
<!--<link rel="apple-touch-icon" href=".png" />-->
<!--<link rel="apple-touch-icon-precomposed" href=".png" />-->
<script
src=
"//yun.duiba.com.cn/js-libs/rem/1.1.3/rem.min.js"
></script>
<style>
html
,
body
{
margin
:
0
;
padding
:
0
;
width
:
100%
;
height
:
100%
;
overflow
:
hidden
;
}
#root
{
width
:
100%
;
height
:
100%
;
overflow-x
:
hidden
;
overflow-y
:
auto
;
position
:
absolute
;
}
.bg
{
width
:
7.5rem
;
height
:
16.24rem
;
background-image
:
url("//yun.duiba.com.cn/polaris/landBg.548680b684c921adc9443e009e6023ab74b4d0a4.jpg")
;
background-size
:
100%
100%
;
}
.btn
{
position
:
absolute
;
left
:
1.36rem
;
top
:
12.93rem
;
width
:
4.66rem
;
height
:
2.18rem
;
background-image
:
url("//yun.duiba.com.cn/polaris/%E6%8C%89%E9%92%AE.026f26596b6711d71192d7dc64b34a488cda8cfa.png")
;
background-size
:
100%
100%
;
}
</style>
</head>
<body>
<div
id=
"root"
>
<div
class=
"bg"
></div>
<div
class=
"btn"
onclick=
"clickBtn()"
></div>
</div>
<div
class=
"tip"
>
<div
class=
"tip_txt"
></div>
</div>
<script>
var
appActivityId
=
'20240709'
function
clickBtn
()
{
// if (isWeChat()) {
// showShareGuide("请在默认浏览器中打开")
// } else {
location
.
href
=
'smsczbmbank://push_czbank?tag=thdmktact&activityId='
+
appActivityId
;
setTimeout
(()
=>
{
const
oA
=
document
.
createElement
(
"a"
);
oA
.
href
=
'http://m.czbank.com'
;
document
.
body
.
appendChild
(
oA
);
oA
.
click
();
oA
.
remove
();
},
3000
);
// }
}
</script>
</body>
</html>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment