Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
super-miner
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
super-miner
Commits
ed599fd7
Commit
ed599fd7
authored
May 28, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除startsWith方法
隐藏关闭按钮
parent
bdce535e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
9 deletions
+30
-9
PKMatching.ts
assets/scripts/dialogs/PKMatching.ts
+2
-2
webService.ts
assets/scripts/net/webService.ts
+1
-1
index.html
index.html
+27
-6
No files found.
assets/scripts/dialogs/PKMatching.ts
View file @
ed599fd7
...
...
@@ -41,7 +41,7 @@ export default class PKMatching extends DialogContent {
this
.
AvatarOther
.
enabled
=
false
;
this
.
AvatarWaiting
.
enabled
=
true
;
this
.
CloseButton
.
enabled
=
tru
e
;
this
.
CloseButton
.
enabled
=
fals
e
;
this
.
stop
();
if
(
channel
===
1
){
...
...
@@ -69,7 +69,7 @@ export default class PKMatching extends DialogContent {
this
.
AvatarOther
.
enabled
=
true
;
this
.
AvatarWaiting
.
enabled
=
false
;
this
.
CloseButton
.
enabled
=
false
;
//
this.CloseButton.enabled = false;
setTimeout
(
this
.
hide
,
1000
,
'success'
);
}
...
...
assets/scripts/net/webService.ts
View file @
ed599fd7
...
...
@@ -16,7 +16,7 @@ import {utils, engine} from "scilla";
export
function
callApi
(
uri
:
string
,
params
:
any
=
null
,
method
:
string
=
'post'
,
responseType
=
'json'
,
ignoreSuccessField
=
false
):
Promise
<
any
>
{
let
ts
=
Date
.
now
()
+
Math
.
floor
(
Math
.
random
()
*
9999999
);
let
url
=
uri
.
startsWith
(
'//'
)
?
uri
:
`
${
engine
.
customConfig
.
webServiceUrl
}${
uri
}
?_=
${
ts
}
`
;
let
url
=
uri
.
indexOf
(
'//'
)
===
0
?
uri
:
`
${
engine
.
customConfig
.
webServiceUrl
}${
uri
}
?_=
${
ts
}
`
;
params
=
params
||
{};
...
...
index.html
View file @
ed599fd7
...
...
@@ -16,18 +16,36 @@
margin
:
0
;
border
:
0
;
}
html
,
body
{
html
,
body
{
height
:
100%
;
background-color
:
#282C34
;
}
#floatLayer
::-webkit-scrollbar
{
display
:
none
}
#loading
{
position
:
absolute
;
left
:
0
;
right
:
0
;
top
:
0
;
bottom
:
0
;
display
:
flex
;
display
:
-webkit-flex
;
justify-content
:
center
;
-webkit-justify-content
:
center
;
align-items
:
center
;
-webkit-align-items
:
center
;
}
#floatLayer
::-webkit-scrollbar
{
display
:
none
}
</style>
<!--<script src="https://cdn.bootcss.com/fetch/3.0.0/fetch.min.js"></script>-->
<script
src=
"https://cdn.bootcss.com/fetch-jsonp/1.1.3/fetch-jsonp.min.js"
></script>
</head>
<body>
<div
id=
"gameContainer"
style=
"width: 100%;height: 100%;overflow: hidden;"
></div>
<div
id=
"loading"
style=
"position:absolute;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;align-items:center;"
>
<div
id=
"loading"
>
<img
src=
"loading.gif"
/>
</div>
<script
src=
"debug/bundle.js"
></script>
...
...
@@ -43,6 +61,7 @@
title
:
''
,
//活动标题
rule
:
'<p><span style="color: rgb(51, 51, 51);">活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则</span></p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello end</p>'
,
//规则
loginFlag
:
false
,
//是否登录 true是为登录
logined
:
true
,
//是否登录 true是为登录
earnCreditsUrl
:
'http://www.baidu.com'
,
//加积分接口
unitName
:
'贝壳'
,
//积分单位
userNickname
:
'超级登山包'
,
//用户昵称
...
...
@@ -51,17 +70,19 @@
configJson
:
'{"background":"//yun.duiba.com.cn/h5/miningMachine/home-bg.jpg","pk_button_normal":"//yun.duiba.com.cn/h5/miningMachine/pk-btn.png","pk_button_disabled":"//yun.duiba.com.cn/h5/miningMachine/pk-filter-btn.png","dig_button_normal":"//yun.duiba.com.cn/h5/miningMachine/mining-btn.png","dig_button_disabled":"//yun.dui88.com/h5/miningMachine/mining-filter-btn.png","dialog_background":"//yun.duiba.com.cn/h5/miningMachine/modal-bg.png","dialog_button":"//yun.duiba.com.cn/h5/miningMachine/modal-btn.png","pk_button_label_normal":"#FFF591","pk_button_label_disabled":"#666666","dig_button_label_normal":"#D12C00","dig_button_label_disabled":"#666666","dialog_text_color":"#AB5400","dialog_button_label":"#FFF591"}'
};
function
requirelogin
(){
function
requirelogin
()
{
console
.
log
(
'requirelogin'
);
}
setTimeout
(
function
()
{
var
loadingEl
=
document
.
getElementById
(
'loading'
);
function
onProcess
(
p
){
if
(
p
>=
1
){
function
onProcess
(
p
)
{
if
(
p
>=
1
)
{
loadingEl
.
style
.
display
=
'none'
;
}
}
var
options
=
{};
//window['inputOptions'] ||
window
[
'super-miner'
].
startup
(
document
.
getElementById
(
'gameContainer'
),
options
,
onProcess
);
},
100
);
...
...
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