Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
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
崔立强
db-game-template
Commits
32145380
Commit
32145380
authored
Nov 26, 2019
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3c10354a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
7 deletions
+9
-7
index.html
egret/index.html
+1
-1
hbNoPrize_bg.png
egret/resource/assets/hbNoPrize/hbNoPrize_bg.png
+0
-0
HbNoPrizeSkin.exml
egret/resource/skins/HbNoPrizeSkin.exml
+1
-1
HbNoPrize.ts
egret/src/HongbaoRain/HbNoPrize.ts
+3
-2
HbPrize.ts
egret/src/HongbaoRain/HbPrize.ts
+3
-2
iqiyiAjaxElement.json
mock/json/iqiyiAjaxElement.json
+1
-1
No files found.
egret/index.html
View file @
32145380
...
...
@@ -53,7 +53,7 @@
<script
type=
"text/javascript"
src=
"https://res.wx.qq.com/open/js/jweixin-1.2.0.js"
></script>
<script
src=
"//statics-web.iqiyi.com/common/jssdk/iqiyiJsBridge-v2-min.js"
></script>
<script>
window
[
'hbRainTime'
]
=
20
;
window
[
'hbRainTime'
]
=
1
;
window
[
'hbTips'
]
=
88.8
;
function
iqiyiShare
()
{
...
...
egret/resource/assets/hbNoPrize/hbNoPrize_bg.png
View replaced file @
3c10354a
View file @
32145380
76 KB
|
W:
|
H:
85.6 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/skins/HbNoPrizeSkin.exml
View file @
32145380
...
...
@@ -10,7 +10,7 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Button
id=
"ok_btn"
label=
""
y=
"701"
x=
"102"
>
<e:Button
id=
"ok_btn"
label=
""
y=
"701"
x=
"102"
scaleY=
"1"
scaleX=
"1"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"hbNoPrize_ok_btn_png"
source.down=
"hbNoPrize_ok_btn_png"
source.disabled=
"hbNoPrize_ok_btn_png"
/>
...
...
egret/src/HongbaoRain/HbNoPrize.ts
View file @
32145380
...
...
@@ -33,9 +33,11 @@ export default class HbNoPrize extends Panel {
if
(
extra
.
shared
)
{
this
.
share_btn
.
visible
=
false
;
this
.
shareTips
.
visible
=
false
;
this
.
ok_btn
.
x
=
240
;
}
else
{
this
.
share_btn
.
visible
=
true
;
this
.
shareTips
.
visible
=
true
;
this
.
ok_btn
.
x
=
102
;
}
}
...
...
@@ -52,7 +54,7 @@ export default class HbNoPrize extends Panel {
console
.
log
(
res
.
kShareChannel
);
if
(
res
.
kShareChannel
!=
'copyURL'
)
{
// 如果是复制链接,则不算分享成功
NetManager
.
ins
.
iqiyiHbRainAddTime
((
success
,
res
)
=>
{
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
INDEX_SCENE
);
this
.
onTouchClose
(
);
if
(
!
success
)
{
showToast
(
'分享次数达到上限'
);
return
;
...
...
@@ -74,7 +76,6 @@ export default class HbNoPrize extends Panel {
onTouchClose
():
any
{
super
.
onTouchClose
();
NetManager
.
ins
.
clickLog
(
getlogItem
(
13
));
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
INDEX_SCENE
);
}
...
...
egret/src/HongbaoRain/HbPrize.ts
View file @
32145380
...
...
@@ -37,9 +37,11 @@ export default class HbPrize extends Panel {
if
(
extra
.
shared
)
{
this
.
share_btn
.
visible
=
false
;
this
.
shareTips
.
visible
=
false
;
this
.
ok_btn
.
x
=
146
;
}
else
{
this
.
share_btn
.
visible
=
true
;
this
.
shareTips
.
visible
=
true
;
this
.
ok_btn
.
x
=
0
;
}
// console.log(this.data);
this
.
prizeImg
.
source
=
this
.
data
.
imgUrl
;
...
...
@@ -59,7 +61,7 @@ export default class HbPrize extends Panel {
console
.
log
(
res
.
kShareChannel
);
if
(
res
.
kShareChannel
!=
'copyURL'
)
{
// 如果是复制链接,则不算分享成功
NetManager
.
ins
.
iqiyiHbRainAddTime
((
success
,
res
)
=>
{
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
INDEX_SCENE
);
this
.
onTouchClose
(
);
if
(
!
success
)
{
showToast
(
'分享次数达到上限'
);
return
;
...
...
@@ -84,7 +86,6 @@ export default class HbPrize extends Panel {
onTouchClose
():
any
{
super
.
onTouchClose
();
NetManager
.
ins
.
clickLog
(
getlogItem
(
13
));
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
INDEX_SCENE
);
}
...
...
mock/json/iqiyiAjaxElement.json
View file @
32145380
...
...
@@ -10,7 +10,7 @@
},
"extra"
:
{
"shared"
:
false
,
"joinCount"
:
0
,
"joinCount"
:
1
,
"nextTimestamp"
:
1574684710000
,
"currentTimeSlot"
:
5
},
...
...
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