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
5c248596
Commit
5c248596
authored
Jun 28, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
89d66558
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
56 additions
and
48 deletions
+56
-48
.DS_Store
.DS_Store
+0
-0
PrizeDialogContent.ts
assets/scripts/dialogs/PrizeDialogContent.ts
+2
-1
SceneStart.ts
assets/scripts/scenes/SceneStart.ts
+16
-7
fuck.html
fuck.html
+2
-2
manifest.json
manifest.json
+2
-2
dojion.json
mock/customActivity/sjf/activity/dojion.json
+34
-36
No files found.
.DS_Store
View file @
5c248596
No preview for this file type
assets/scripts/dialogs/PrizeDialogContent.ts
View file @
5c248596
...
...
@@ -10,6 +10,7 @@ import DialogContent from "../popup/DialogContent";
import
{
setScale
,
getY
,
setY
}
from
"../transformUtils"
;
import
{
setText
}
from
"../entityUtils"
;
import
{
callApi
}
from
"../net/webService"
;
import
{
getRecordURL
}
from
"../scenes/SceneStart"
;
export
default
class
PrizeDialogContent
extends
DialogContent
{
name
:
Entity
;
...
...
@@ -72,7 +73,7 @@ export default class PrizeDialogContent extends DialogContent {
}
else
{
//线下
imgUrl
=
data
.
imgurl
;
this
.
_link
=
window
[
'recordUrl'
]
;
this
.
_link
=
getRecordURL
();
;
setY
(
this
.
useBtn
,
this
.
_y
+
30
)
}
...
...
assets/scripts/scenes/SceneStart.ts
View file @
5c248596
...
...
@@ -54,7 +54,7 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie
}
if
(
limit
<
0
)
limit
=
0
;
setText
(
this
.
countTxt
,
`剩余
可抽奖次数为
${
limit
}
`
);
setText
(
this
.
countTxt
,
`剩余
次数:
${
limit
}
`
);
}
onClick_startbtn
()
{
...
...
@@ -109,8 +109,13 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie
// console.log('onGotDojoin', this.doJoin);
if
(
data
.
prizeType
==
0
)
{
//幸运奖
this
.
startbtn
.
getComponent
(
Button
).
enabled
=
true
;
if
(
data
.
luck
&&
data
.
luck
.
luckBagDetail
)
{
this
.
bubbling
(
'showDialog'
,
'Prize'
,
{
isDuibaPrize
:
true
,
data
:
data
.
luck
});
if
(
data
&&
data
.
lottery
)
{
this
.
bubbling
(
'showDialog'
,
'Prize'
,
{
isDuibaPrize
:
true
,
data
:
{
exposure
:
data
.
exposure
,
luckBagDetail
:
data
.
lottery
}
});
}
else
{
this
.
bubbling
(
'showDialog'
,
'Alert'
,
'您与奖品擦肩而过~'
);
}
...
...
@@ -131,10 +136,9 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie
onGotDojoinError
(
error
)
{
this
.
startbtn
.
getComponent
(
Button
).
enabled
=
true
;
if
(
error
===
'40000
1
'
)
{
if
(
error
===
'40000
5
'
)
{
this
.
bubbling
(
'showToast'
,
'活动还未开始
\
n敬请期待~'
);
}
else
if
(
error
===
'400005'
)
{
}
else
if
(
error
===
'400006'
)
{
this
.
bubbling
(
'showToast'
,
'活动已结束
\
n下次早点来哦~'
);
}
else
if
(
error
===
'400002'
)
{
...
...
@@ -173,7 +177,7 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie
}
onClick_recordbtn
()
{
alert
(
'onClick_recordbtn'
)
window
.
location
.
href
=
getRecordURL
();
// globalEvent.emit('alert', {title: 'Success', content: 'You complete this puzzle', button: 'Next level'}, this.onAlertClose);
}
...
...
@@ -200,3 +204,8 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie
}
}
export
const
getRecordURL
=
()
=>
{
return
`/customActivity/sjf/activity/recordIndex?weddingId=
${
window
[
'CFG'
].
weddingId
}
&activityId=
${
window
[
'CFG'
].
activityId
}
&brickType=6`
;
}
fuck.html
View file @
5c248596
...
...
@@ -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/15616
07340
/bundle.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/15616
34601
/bundle.js"
></script>
<script>
setTimeout
(
function
()
{
var
loadingEl
=
document
.
getElementById
(
'loading'
);
...
...
@@ -34,7 +34,7 @@
}
var
options
=
{
resPath
:
"//yun.duiba.com.cn/db_games/15616
07340
/"
resPath
:
"//yun.duiba.com.cn/db_games/15616
27312
/"
};
window
[
'shuijf'
].
startup
(
document
.
getElementById
(
'gameContainer'
),
options
,
onProcess
);
},
100
);
...
...
manifest.json
View file @
5c248596
...
...
@@ -16,8 +16,8 @@
"entryScene"
:
"main"
},
"webServiceUrl-"
:
"http://10.10.93.204:7555 http://localhost:3010"
,
"webServiceUrl"
:
""
,
"webServiceUrl
2
"
:
"http://localhost:4001"
"webServiceUrl
1
"
:
""
,
"webServiceUrl"
:
"http://localhost:4001"
},
"dataCenterConfig"
:
{
"dataCenterRoot"
:
[
...
...
mock/customActivity/sjf/activity/dojion.json
View file @
5c248596
...
...
@@ -2,7 +2,6 @@
"code"
:
null
,
"data"
:
{
"imgurl"
:
null
,
"luck"
:
{
"exposure"
:
{
"dpm"
:
"1.4.1.0"
,
"os"
:
"Android"
,
...
...
@@ -19,7 +18,7 @@
"domain"
:
"//activity.tuia.cn"
,
"slotId"
:
null
},
"luckBagDetail
"
:
{
"lottery
"
:
{
"androidDownloadUrl"
:
"//activity.tuia.cn/activity/redirect?orderId=39&activityId=2&appId=1&consumerId=1561541886179&materialId=18245&os=Android&advertId=2958&ip=127.0.0.1&activityUseType=0&dpm=1.4.1.0&dcm=104.2958.0.0&device_type=directad&url=www.baidu.com"
,
"link"
:
null
,
"stInfoDpmImg"
:
null
,
...
...
@@ -37,7 +36,6 @@
"couponCode"
:
null
,
"isDownloadUrl"
:
null
,
"validate"
:
"2019-04-26"
}
},
"orderId"
:
39
,
"freeLimit"
:
-6
,
...
...
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