Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
shuijf
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
wildfirecode13
shuijf
Commits
6c1d5ff6
Commit
6c1d5ff6
authored
Jun 26, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f7d1e176
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
30 additions
and
19 deletions
+30
-19
.DS_Store
.DS_Store
+0
-0
PrizeDialogContent.ts
assets/scripts/dialogs/PrizeDialogContent.ts
+8
-3
usebtn.png
assets/sheets/prize.sht/usebtn.png
+0
-0
.DS_Store
dist/.DS_Store
+0
-0
fuck.html
fuck.html
+5
-3
index.html
index.html
+1
-0
manifest.json
manifest.json
+2
-1
dojion.json
mock/customActivity/sjf/activity/dojion.json
+14
-12
No files found.
.DS_Store
View file @
6c1d5ff6
No preview for this file type
assets/scripts/dialogs/PrizeDialogContent.ts
View file @
6c1d5ff6
...
...
@@ -7,7 +7,7 @@
import
{
TextureRenderer
}
from
"scilla-components/src"
;
import
{
createTexture
,
EngineConfig
,
Entity
,
Texture
}
from
"scilla/src"
;
import
DialogContent
from
"../popup/DialogContent"
;
import
{
setScale
}
from
"../transformUtils"
;
import
{
setScale
,
getY
,
setY
}
from
"../transformUtils"
;
import
{
setText
}
from
"../entityUtils"
;
export
default
class
PrizeDialogContent
extends
DialogContent
{
...
...
@@ -17,6 +17,7 @@ export default class PrizeDialogContent extends DialogContent {
pic
:
Entity
;
useBtn
:
Entity
;
// getOrderStatus:dynamic;
private
_y
;
private
_link
:
string
;
private
loadImage
=
(
url
:
string
):
Promise
<
HTMLImageElement
>
=>
{
return
new
Promise
<
HTMLImageElement
>
((
resolve
,
reject
)
=>
{
...
...
@@ -46,17 +47,21 @@ export default class PrizeDialogContent extends DialogContent {
onAwake
()
{
super
.
onAwake
();
this
.
_y
=
getY
(
this
.
useBtn
)
}
async
setup
({
isDuibaPrize
,
data
})
{
let
imgUrl
:
string
;
this
.
useBtn
.
enabled
=
this
.
name
.
enabled
=
isDuibaPrize
;
//
this.useBtn.enabled = this.name.enabled = isDuibaPrize;
this
.
tips
.
enabled
=
!
isDuibaPrize
;
if
(
isDuibaPrize
)
{
//大牌券
this
.
_link
=
data
.
link
;
imgUrl
=
data
.
imgUrl
;
setY
(
this
.
useBtn
,
this
.
_y
)
}
else
{
//线下
imgUrl
=
data
.
imgurl
;
this
.
_link
=
window
[
'recordUrl'
];
setY
(
this
.
useBtn
,
this
.
_y
+
30
)
}
setText
(
this
.
name
,
data
.
title
)
...
...
assets/sheets/prize.sht/usebtn.png
View replaced file @
f7d1e176
View file @
6c1d5ff6
12 KB
|
W:
|
H:
11.7 KB
|
W:
|
H:
2-up
Swipe
Onion skin
dist/.DS_Store
View file @
6c1d5ff6
No preview for this file type
fuck.html
View file @
6c1d5ff6
...
...
@@ -22,7 +22,7 @@
<div
id=
"gameContainer"
style=
"width: 100%;height: 100%;overflow: hidden;"
></div>
<script
src=
"//yun.duiba.com.cn/db_games/zepto.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/security.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/15615
18207
/bundle.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/15615
37521
/bundle.js"
></script>
<script>
setTimeout
(
function
()
{
...
...
@@ -35,8 +35,8 @@
}
var
options
=
{
resPath
:
"//yun.duiba.com.cn/db_games/15615
18207
/"
};
//window['inputOptions'] ||
resPath
:
"//yun.duiba.com.cn/db_games/15615
37521
/"
};
window
[
'shuijf'
].
startup
(
document
.
getElementById
(
'gameContainer'
),
options
,
onProcess
);
},
100
);
</script>
...
...
@@ -74,6 +74,8 @@
}
</style>
<script
type=
"text/javascript"
>
var
CFG
=
{
'startTime'
:
'Wed Jun 26 17:30:00 CST 2019'
,
...
...
index.html
View file @
6c1d5ff6
...
...
@@ -52,6 +52,7 @@
<div
id=
"loading"
>
<img
src=
"loading.gif"
/>
</div>
<script
src=
"https://cdn.bootcss.com/fetch-jsonp/1.1.3/fetch-jsonp.min.js"
></script>
<script
src=
"./zepto.min.js"
></script>
<script
src=
"./security.js"
></script>
<script
src=
"debug/bundle.js"
></script>
...
...
manifest.json
View file @
6c1d5ff6
...
...
@@ -16,7 +16,8 @@
"entryScene"
:
"main"
},
"webServiceUrl-"
:
"http://10.10.93.204:7555 http://localhost:3010"
,
"webServiceUrl"
:
""
"webServiceUrl"
:
"http://localhost:4001"
,
"webServiceUrl2"
:
"http://localhost:4001"
},
"dataCenterConfig"
:
{
"dataCenterRoot"
:
[
...
...
mock/customActivity/sjf/activity/dojion.json
View file @
6c1d5ff6
{
"success"
:
false
,
"code"
:
"400001"
,
"desc"
:
null
,
"timestamp"
:
1561445946866
,
"code"
:
null
,
"data"
:
{
"orderId"
:
132
,
"prizeId"
:
null
,
"title"
:
null
,
"prizeType"
:
0
,
"orderStatus"
:
1
,
"imgurl"
:
"//yun.duiba.com.cn/developer/img/activityTool/slotMachine/alipay.png"
,
"link"
:
null
}
"imgurl"
:
"//yun.dui88.com/upload/uP99F1462438316972.png"
,
"luck"
:
null
,
"orderId"
:
22
,
"freeLimit"
:
-3
,
"prizeType"
:
4
,
"link"
:
null
,
"orderStatus"
:
2
,
"title"
:
"惊喜娃娃机奖品1"
,
"prizeId"
:
3
},
"success"
:
true
,
"desc"
:
null
,
"timestamp"
:
1561540156975
}
\ No newline at end of file
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