Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
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
xiaoxiaole
Commits
7d496c31
Commit
7d496c31
authored
Oct 14, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Plain Diff
1
parents
9c387b85
6c7f4446
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
150 additions
and
52 deletions
+150
-52
PrizePanel.ts
egret/libs/new_wx/components/PrizePanel.ts
+1
-1
invite.tmproject
egret/resource/TextureMerger/invite.tmproject
+1
-1
MyExmlPlugin.ts
egret/scripts/MyExmlPlugin.ts
+1
-0
MapScene.ts
egret/src/mapScene/MapScene.ts
+3
-2
BoxPanel.ts
egret/src/panels/BoxPanel.ts
+1
-3
SignPrizePanel.ts
egret/src/panels/SignPrizePanel.ts
+1
-1
shareCtrl3.ts
egret/src/shareCtrl3.ts
+97
-0
mapRank copy.json
mock/happyclear/mapRank copy.json
+44
-0
mapRank.json
mock/happyclear/mapRank.json
+1
-44
No files found.
egret/libs/new_wx/components/PrizePanel.ts
View file @
7d496c31
...
@@ -20,7 +20,7 @@ export default class PrizePanel extends Panel {
...
@@ -20,7 +20,7 @@ export default class PrizePanel extends Panel {
setGray
(
this
[
'picc'
]);
setGray
(
this
[
'picc'
]);
this
.
_level
=
parseInt
(
data
.
level
+
''
);
this
.
_level
=
parseInt
(
data
.
level
+
''
);
const
itemid
=
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
).
lottery
.
itemId
;
const
itemid
=
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
).
lottery
.
itemId
;
this
.
data
.
img
=
`http://yun.duiba.com.cn/db_games/101
4
/
${
itemid
}
.png`
;
this
.
data
.
img
=
`http://yun.duiba.com.cn/db_games/101
5
/
${
itemid
}
.png`
;
this
[
'shareBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
[
'shareBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
15
));
NetManager
.
ins
.
clickLog
(
getlogItem
(
15
));
...
...
egret/resource/TextureMerger/invite.tmproject
View file @
7d496c31
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"invite","version":5,"files":["../assets/invite/invite_invite.png","../assets/invite/invite_help.png","../assets/invite/invite_btn.png","../assets/invite/invite_bg.png","../assets/invite/prize/invitePrize_btn.png","../assets/invite/prize/invitePrize_bg.png","../assets/invite/prize/invitePrize_game_btn.png","../assets/invite/cutTime/invateCut_bg.png","../assets/invite/cutTime/invateCut_btn.png","../assets/invite/invite_wx_tip.png"]}
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"invite","version":5,"files":["../assets/invite/invite_invite.png","../assets/invite/invite_help.png","../assets/invite/invite_btn.png","../assets/invite/invite_bg.png","../assets/invite/prize/invitePrize_btn.png","../assets/invite/prize/invitePrize_bg.png","../assets/invite/prize/invitePrize_game_btn.png","../assets/invite/cutTime/invateCut_bg.png","../assets/invite/cutTime/invateCut_btn.png","../assets/invite/invite_wx_tip.png","../assets/invite/rule/invite_rule_bg.png"]}
\ No newline at end of file
\ No newline at end of file
egret/scripts/MyExmlPlugin.ts
View file @
7d496c31
...
@@ -8,6 +8,7 @@ import { ExmlPlugin2 } from "./ExmlPlugin2";
...
@@ -8,6 +8,7 @@ import { ExmlPlugin2 } from "./ExmlPlugin2";
export
class
MyExmlPlugin
extends
ExmlPlugin2
implements
plugins
.
Command
{
export
class
MyExmlPlugin
extends
ExmlPlugin2
implements
plugins
.
Command
{
async
onFile
(
file
:
plugins
.
File
)
{
async
onFile
(
file
:
plugins
.
File
)
{
const
excludes
=
[
const
excludes
=
[
'cutTimeFont.png'
,
'nums.png'
,
'nums.png'
,
'nums2.png'
'nums2.png'
];
];
...
...
egret/src/mapScene/MapScene.ts
View file @
7d496c31
...
@@ -355,8 +355,9 @@ export default class MapScene extends Scene {
...
@@ -355,8 +355,9 @@ export default class MapScene extends Scene {
updateFriends
()
{
updateFriends
()
{
NetManager
.
ins
.
hc_mapRank
(()
=>
{
NetManager
.
ins
.
hc_mapRank
(()
=>
{
const
{
data
}
=
DataManager
.
ins
.
getData
(
'hc_mapRank'
);
const
hc_mapRank
=
DataManager
.
ins
.
getData
(
'hc_mapRank'
).
data
;
data
.
forEach
((
ele
)
=>
{
if
(
!
hc_mapRank
)
return
;
hc_mapRank
.
forEach
((
ele
)
=>
{
this
.
addAvatar
(
ele
.
levelNum
,
ele
.
rank
[
0
]);
this
.
addAvatar
(
ele
.
levelNum
,
ele
.
rank
[
0
]);
});
});
});
});
...
...
egret/src/panels/BoxPanel.ts
View file @
7d496c31
...
@@ -15,9 +15,7 @@ export default class BoxPanel extends Panel {
...
@@ -15,9 +15,7 @@ export default class BoxPanel extends Panel {
// this.data.img = DataManager.ins.getData('getPlugOrderStatus').lottery.imgurl;
// this.data.img = DataManager.ins.getData('getPlugOrderStatus').lottery.imgurl;
const
itemid
=
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
).
lottery
.
itemId
;
const
itemid
=
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
).
lottery
.
itemId
;
this
.
data
.
img
=
`http://yun.duiba.com.cn/db_games/09302/
${
itemid
}
.png`
;
this
.
data
.
img
=
`http://yun.duiba.com.cn/db_games/1015/
${
itemid
}
.png`
;
addAdComp
(
84
,
739
,
this
)
}
}
showlog
()
{
showlog
()
{
NetManager
.
ins
.
showLog
(
getlogItem
(
17
));
NetManager
.
ins
.
showLog
(
getlogItem
(
17
));
...
...
egret/src/panels/SignPrizePanel.ts
View file @
7d496c31
...
@@ -18,7 +18,7 @@ export default class SignPrizePanel extends Panel {
...
@@ -18,7 +18,7 @@ export default class SignPrizePanel extends Panel {
this
[
'numsgroup'
].
visible
=
false
;
this
[
'numsgroup'
].
visible
=
false
;
}
else
{
}
else
{
if
(
customInfo
.
itemId
)
if
(
customInfo
.
itemId
)
this
[
'img'
].
source
=
`http://yun.duiba.com.cn/db_games/101
4
/
${
customInfo
.
itemId
}
.png`
;
this
[
'img'
].
source
=
`http://yun.duiba.com.cn/db_games/101
5
/
${
customInfo
.
itemId
}
.png`
;
}
}
this
[
'nums'
].
text
=
'x'
+
customInfo
.
prizeCount
;
this
[
'nums'
].
text
=
'x'
+
customInfo
.
prizeCount
;
...
...
egret/src/shareCtrl3.ts
0 → 100644
View file @
7d496c31
import
ComponentBase
from
"../libs/new_wx/components/ComponentBase"
;
import
layers
from
"../libs/new_wx/views/layers"
;
import
getHomeData
from
"./getHomeData"
;
import
{
iswx
}
from
"./iswx"
;
import
{
callShareApi
}
from
"./shareCtrl"
;
const
img
:
any
=
document
.
getElementById
(
'pic'
);
img
.
style
.
display
=
'none'
;
class
Share3
extends
ComponentBase
{
type
;
setType
(
type
:
any
)
{
this
.
type
=
type
;
this
[
'pic1'
].
visible
=
false
;
this
[
'pic2'
].
visible
=
false
;
this
[
'pic'
+
type
].
visible
=
true
;
}
start
()
{
this
.
once
(
egret
.
TouchEvent
.
ADDED_TO_STAGE
,
()
=>
{
this
.
height
=
this
.
stage
.
stageHeight
;
},
this
);
this
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
hideShare3
();
},
this
);
const
data
=
getHomeData
();
this
[
'tipsTxt0'
].
text
=
`超过了
${
Math
.
ceil
(
Math
.
random
()
*
100
)}
%的好友`
;
this
[
'lvTxt'
].
text
=
data
.
levels
.
length
==
0
?
1
:
data
.
levels
.
length
;
this
[
'lvTxt0'
].
text
=
data
.
levels
.
length
;
this
[
'btn1'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
if
(
iswx
())
{
//微信端
}
else
{
//端内
this
.
getFunc
(
'2'
);
//朋友圈
}
hideShare3
();
},
this
);
this
[
'btn2'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
if
(
iswx
())
{
//微信端
}
else
{
//端内
this
.
getFunc
(
'1'
);
//好友微信
}
hideShare3
();
},
this
);
}
//channel 1 好友 2 朋友圈
getFunc
(
channel
:
string
)
{
// let base64;
// if(this.type==1)
// base64= getPrintScreenData(this['pic' + this.type], 0, 0, 579, 866);
// else
// base64= getPrintScreenData(this['pic' + this.type], 0, 0, 600, 965);
// NetManager.ins.imgUrl((success) => {
// const data = DataManager.ins.getData('imgURL');
// img.src = base64;
// img.src = data.data;
if
(
this
.
type
==
1
)
callShareApi
(
'https://yun.duiba.com.cn/db_games/xxshareshare2.jpg'
,
channel
);
else
callShareApi
(
'https://yun.duiba.com.cn/db_games/xxlshare.jpg'
,
channel
);
// }, base64);
}
get
skinKey
()
{
return
'Share3'
;
}
}
let
inited
=
false
;
let
_share
:
Share3
;
const
initShare
=
()
=>
{
const
layer
=
layers
.
shareLayer
;
const
share
=
new
Share3
();
share
.
loadSkin
();
share
.
start
();
layer
.
addChild
(
share
);
_share
=
share
;
};
const
showShare3
=
(
type
)
=>
{
if
(
!
inited
)
{
initShare
();
inited
=
true
;
}
_share
.
setType
(
type
);
layers
.
shareLayer
.
visible
=
true
;
}
const
hideShare3
=
()
=>
{
layers
.
shareLayer
.
visible
=
false
;
}
mock/happyclear/mapRank copy.json
0 → 100644
View file @
7d496c31
{
"success"
:
true
,
"code"
:
null
,
"desc"
:
null
,
"timestamp"
:
1566199822308
,
"data"
:[
{
"levelNum"
:
4
,
"rank"
:[
{
"nickName"
:
"昵称"
,
"avatar"
:
"http://yun.dui88.com/images/201604/c6s5l4dgea.jpg"
,
"stars"
:
1
,
"maxScore"
:
123
,
"rank"
:
"排名"
}
]
},
{
"levelNum"
:
70
,
"rank"
:[
{
"nickName"
:
"昵称"
,
"avatar"
:
"http://yun.dui88.com/images/201604/c6s5l4dgea.jpg"
,
"stars"
:
1
,
"maxScore"
:
123
,
"rank"
:
"排名"
}
]
},
{
"levelNum"
:
71
,
"rank"
:[
{
"nickName"
:
"昵称"
,
"avatar"
:
"http://yun.dui88.com/images/201604/c6s5l4dgea.jpg"
,
"stars"
:
1
,
"maxScore"
:
123
,
"rank"
:
"排名"
}
]
}
]
}
\ No newline at end of file
mock/happyclear/mapRank.json
View file @
7d496c31
{
{
"success"
:
true
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
1571055191222
,
"data"
:
null
}
"success"
:
true
,
\ No newline at end of file
"code"
:
null
,
"desc"
:
null
,
"timestamp"
:
1566199822308
,
"data"
:[
{
"levelNum"
:
4
,
"rank"
:[
{
"nickName"
:
"昵称"
,
"avatar"
:
"http://yun.dui88.com/images/201604/c6s5l4dgea.jpg"
,
"stars"
:
1
,
"maxScore"
:
123
,
"rank"
:
"排名"
}
]
},
{
"levelNum"
:
70
,
"rank"
:[
{
"nickName"
:
"昵称"
,
"avatar"
:
"http://yun.dui88.com/images/201604/c6s5l4dgea.jpg"
,
"stars"
:
1
,
"maxScore"
:
123
,
"rank"
:
"排名"
}
]
},
{
"levelNum"
:
71
,
"rank"
:[
{
"nickName"
:
"昵称"
,
"avatar"
:
"http://yun.dui88.com/images/201604/c6s5l4dgea.jpg"
,
"stars"
:
1
,
"maxScore"
:
123
,
"rank"
:
"排名"
}
]
}
]
}
\ 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