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
e4bf6e85
Commit
e4bf6e85
authored
Oct 14, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5a1d5f2e
Changes
13
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
130 additions
and
172 deletions
+130
-172
.DS_Store
.DS_Store
+0
-0
workspace.xml
.idea/workspace.xml
+5
-57
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+5
-2
phone_panel.tmproject
egret/resource/TextureMerger/phone_panel.tmproject
+1
-0
preload.tmproject
egret/resource/TextureMerger/preload.tmproject
+1
-1
rule_panel.tmproject
egret/resource/TextureMerger/rule_panel.tmproject
+1
-0
default.thm.json
egret/resource/default.thm.json
+20
-20
StartSceneSkin.exml
egret/resource/skins/StartSceneSkin.exml
+2
-2
NoPrizePanel.ts
egret/src/Panels/NoPrizePanel/NoPrizePanel.ts
+6
-0
PhonePanel.ts
egret/src/Panels/PhonePanel/PhonePanel.ts
+5
-0
PrizePanel.ts
egret/src/Panels/PrizePanel/PrizePanel.ts
+3
-18
StartScene.ts
egret/src/Scene/StartScene/StartScene.ts
+70
-71
getCarousel.json
mock/json/getCarousel.json
+11
-1
No files found.
.DS_Store
View file @
e4bf6e85
No preview for this file type
.idea/workspace.xml
View file @
e4bf6e85
This diff is collapsed.
Click to expand it.
egret/libs/tw/manager/NetManager.ts
View file @
e4bf6e85
...
...
@@ -1576,7 +1576,9 @@ export class NetManager extends ABNetManager {
uri
:
'/customActivity/fuzhouBank/bigWheel/getPhone'
,
type
:
'get'
,
dataType
:
'json'
,
param
:
{},
param
:
{
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
,
},
callback
:
callback
,
};
this
.
send
(
net
);
...
...
@@ -1594,6 +1596,7 @@ export class NetManager extends ABNetManager {
type
:
'post'
,
dataType
:
'json'
,
param
:
{
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
,
phone
:
phone
},
callback
:
callback
,
...
...
@@ -1609,7 +1612,7 @@ export class NetManager extends ABNetManager {
const
net
:
INetData
=
{
name
:
NetName
.
SUBMIT_PHONE
,
uri
:
'/customActivity/fuzhouBank/bigWheel/getCarousel'
,
type
:
'
pos
t'
,
type
:
'
ge
t'
,
dataType
:
'json'
,
param
:
{
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
...
...
egret/resource/TextureMerger/phone_panel.tmproject
0 → 100644
View file @
e4bf6e85
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"phone_panel","version":5,"files":["../assets/phone_panel/phone_btn.png","../assets/phone_panel/phone_bg.png"]}
\ No newline at end of file
egret/resource/TextureMerger/preload.tmproject
View file @
e4bf6e85
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"preload","version":5,"files":["../assets/common/closeBtn.png","../assets/start_scene/start_myPrize_btn.png"]}
\ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"preload","version":5,"files":["../assets/common/closeBtn.png","../assets/start_scene/start_myPrize_btn.png","../assets/rule_panel/rule_bg.png","../assets/noPrize_panel/NoPrize_btn.png","../assets/noPrize_panel/NoPrize_bg.png","../assets/noTimes_panel/noTimes_btn.png","../assets/phone_panel/phone_bg.png","../assets/phone_panel/phone_btn.png"]}
\ No newline at end of file
egret/resource/TextureMerger/rule_panel.tmproject
0 → 100644
View file @
e4bf6e85
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"rule_panel","version":5,"files":["../assets/rule_panel/rule_bg.png"]}
\ No newline at end of file
egret/resource/default.thm.json
View file @
e4bf6e85
{
"skins"
:
{},
"autoGenerateExmlsList"
:
true
,
"exmls"
:
[
"resource/skins/AlertSkin.exml"
,
"resource/skins/LoadingSceneSkin.exml"
,
"resource/skins/LoadingSkin.exml"
,
"resource/skins/MyPrizeItemSkin.exml"
,
"resource/skins/MyPrizeSceneSkin.exml"
,
"resource/skins/NoPrizePanelSkin.exml"
,
"resource/skins/NoTimesPanelSkin.exml"
,
"resource/skins/Priz
ePanelSkin.exml"
,
"resource/skins/Rul
ePanelSkin.exml"
,
"resource/skins/StartScene
Skin.exml"
,
"resource/skins/PhonePanel
Skin.exml"
,
"resource/skins/ToastPanelSkin.exml"
,
"resource/skins/ui/IconButtonSkin.exml"
,
"resource/skins/ui/ProgressBarSkin.exml"
,
"resource/skins/ui/TimeProgressBarSkin.exml"
],
"path"
:
"resource/default.thm.json"
"skins"
:
{},
"autoGenerateExmlsList"
:
true
,
"exmls"
:
[
"resource/skins/AlertSkin.exml"
,
"resource/skins/LoadingSceneSkin.exml"
,
"resource/skins/LoadingSkin.exml"
,
"resource/skins/MyPrizeItemSkin.exml"
,
"resource/skins/MyPrizeSceneSkin.exml"
,
"resource/skins/NoPrizePanelSkin.exml"
,
"resource/skins/NoTimesPanelSkin.exml"
,
"resource/skins/Phon
ePanelSkin.exml"
,
"resource/skins/Priz
ePanelSkin.exml"
,
"resource/skins/RulePanel
Skin.exml"
,
"resource/skins/StartScene
Skin.exml"
,
"resource/skins/ToastPanelSkin.exml"
,
"resource/skins/ui/IconButtonSkin.exml"
,
"resource/skins/ui/ProgressBarSkin.exml"
,
"resource/skins/ui/TimeProgressBarSkin.exml"
],
"path"
:
"resource/default.thm.json"
}
\ No newline at end of file
egret/resource/skins/StartSceneSkin.exml
View file @
e4bf6e85
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"LoadingSceneSkin"
width=
"750"
height=
"1624"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Image
source=
"start_bg_png"
/>
<e:Image
y=
"285"
source=
"info_bg_png"
horizontalCenter=
"0"
/>
<e:Image
id=
"infoImg"
y=
"285"
source=
"info_bg_png"
horizontalCenter=
"0"
/>
<e:Group
id=
"infoGroup"
y=
"285"
height=
"48"
anchorOffsetX=
"0"
width=
"355.5"
horizontalCenter=
"0"
>
<e:Rect
id=
"infoMask"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
width=
"355.5"
height=
"48"
y=
"0"
x=
"0"
/>
<e:Label
id=
"label1"
text=
"Label"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
verticalAlign=
"middle"
height=
"48"
width=
"355.5"
y=
"0"
x=
"0"
size=
"24"
textAlign=
"center"
/>
...
...
@@ -37,7 +37,7 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Image
id=
"hand"
scaleX=
"1"
scaleY=
"1"
source=
"start_hand_png"
x=
"391
.15"
y=
"376
"
touchEnabled=
"false"
/>
<e:Image
id=
"hand"
scaleX=
"1"
scaleY=
"1"
source=
"start_hand_png"
x=
"391
"
y=
"367
"
touchEnabled=
"false"
/>
</e:Group>
<e:Group
y=
"27"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
height=
"60.39"
width=
"750"
horizontalCenter=
"0"
>
<e:Button
id=
"act_btn"
label=
""
anchorOffsetY=
"21"
left=
"0"
verticalCenter=
"0"
>
...
...
egret/src/Panels/NoPrizePanel/NoPrizePanel.ts
View file @
e4bf6e85
import
Panel
from
"../../MVC/views/Panel"
;
import
{
GDispatcher
}
from
"../../../libs/tc/util/GDispatcher"
;
export
default
class
NoPrizePanel
extends
Panel
{
public
group
:
eui
.
Group
;
...
...
@@ -16,6 +17,11 @@ export default class NoPrizePanel extends Panel {
this
.
closeBtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTouchTap
,
this
);
}
onTouchTap
()
{
GDispatcher
.
dispatchEvent
(
'panelEffect'
);
return
super
.
onTouchTap
();
}
removeEvents
()
{
this
.
ok_btn
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTouchTap
,
this
);
this
.
closeBtn
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTouchTap
,
this
);
...
...
egret/src/Panels/PhonePanel/PhonePanel.ts
View file @
e4bf6e85
...
...
@@ -3,6 +3,9 @@ import { NetManager } from '../../../libs/tw/manager/NetManager';
import
TopLayerCtrl
from
'../../MVC/ctrls/topLayerCtrl'
;
import
{
ModuleTypes
}
from
'../../Comm/types/sceneTypes'
;
import
PanelCtrl
from
'../../MVC/ctrls/panelCtrl'
;
import
getItem
=
egret
.
localStorage
.
getItem
;
import
{
getlogItem
}
from
"../../getlogItem"
;
import
{
GDispatcher
}
from
"../../../libs/tc/util/GDispatcher"
;
export
default
class
PhonePanel
extends
Panel
{
...
...
@@ -36,6 +39,7 @@ export default class PhonePanel extends Panel {
let
_y
=
this
.
group
.
y
;
this
.
group
.
y
=
_y
-
300
;
egret
.
Tween
.
get
(
this
.
group
).
to
({
y
:
_y
},
800
,
egret
.
Ease
.
bounceOut
);
NetManager
.
ins
.
showLog
(
getlogItem
(
4
));
}
initInput
()
{
...
...
@@ -57,6 +61,7 @@ export default class PhonePanel extends Panel {
}
onTap_Submit
()
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
4
));
PanelCtrl
.
instance
.
btnDelay
(
this
.
submitBtn
);
if
(
!
(
/^1
(
3|4|5|6|7|8|9
)\d{9}
$/
.
test
(
this
.
myEditableText
.
text
)))
{
TopLayerCtrl
.
instance
.
show
(
ModuleTypes
.
TOAST_PANEL
,
{
msg
:
"请输入正确手机号"
});
...
...
egret/src/Panels/PrizePanel/PrizePanel.ts
View file @
e4bf6e85
...
...
@@ -3,6 +3,7 @@ import { DataManager } from "../../../libs/tw/manager/DataManager";
import
{
NetName
}
from
"../../../libs/tw/enum/NetName"
;
import
{
PrizeTypes
}
from
"../../Scene/StartScene/RotaryData"
;
import
{
NetManager
}
from
"../../../libs/tw/manager/NetManager"
;
import
{
GDispatcher
}
from
"../../../libs/tc/util/GDispatcher"
;
export
default
class
PrizePanel
extends
Panel
{
public
group
:
eui
.
Group
;
...
...
@@ -14,8 +15,6 @@ export default class PrizePanel extends Panel {
public
get
skinKey
()
{
return
'PrizePanel'
}
public
get
groupName
()
{
return
'prize_panel'
}
private
url
:
string
;
constructor
(
data
?)
{
super
(
data
);
...
...
@@ -26,26 +25,12 @@ export default class PrizePanel extends Panel {
}
onTouchTap
(){
GDispatcher
.
dispatchEvent
(
'getCount'
);
GDispatcher
.
dispatchEvent
(
'panelEffect'
);
super
.
onTouchTap
();
}
touch_tap_ok_btn
()
{
// if (this.data == 'coupon') { // 如果是优惠卷则查询链接并跳转
// let userRecordId = DataManager.ins.getData(NetName.GET_PRIZE).data.userRecordId;
// NetManager.ins.getCouponInfo((success) => {
// if (!success) {
// return;
// }
// let link = DataManager.ins.getData(NetName.GET_COUPON_INFO).data.link;
// window.location.href = link;
// }, userRecordId, () => {
// let data = DataManager.ins.getData(NetName.GET_COUPON_INFO);
// return !(data.success && data.code == '0000000000')
// }, 10);
//
// } else { // 不是优惠卷直接跳转链接
// window.location.href = this.url;
// }
window
.
location
.
href
=
this
.
data
.
link
;
}
...
...
egret/src/Scene/StartScene/StartScene.ts
View file @
e4bf6e85
This diff is collapsed.
Click to expand it.
mock/json/getCarousel.json
View file @
e4bf6e85
...
...
@@ -3,5 +3,15 @@
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
1548915321930
,
"data"
:
"6666"
"data"
:
[
"1111"
,
"2222"
,
"3333"
,
"4444"
,
"5555"
,
"6666"
,
"7777"
,
"8888"
,
"9999"
]
}
\ 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