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
acbce1cf
Commit
acbce1cf
authored
Nov 27, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
01c7408c
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
31 additions
and
17 deletions
+31
-17
index.html
egret/index.html
+4
-4
sign_quan10.png
egret/resource/assets/sign/sign_quan10.png
+0
-0
sign_quan15.png
egret/resource/assets/sign/sign_quan15.png
+0
-0
sign_quan23.png
egret/resource/assets/sign/sign_quan23.png
+0
-0
sign_quan36.png
egret/resource/assets/sign/sign_quan36.png
+0
-0
default.res.json
egret/resource/default.res.json
+16
-1
SignItemSkin.exml
egret/resource/skins/SignItemSkin.exml
+3
-0
TaskCenter.ts
egret/src/panels/TaskCenter/TaskCenter.ts
+8
-12
No files found.
egret/index.html
View file @
acbce1cf
...
...
@@ -123,13 +123,13 @@
</script>
<script>
window
[
'signconfigs'
]
=
[
{
nums
:
'0.
08元'
,
type
:
'quan8
'
},
{
nums
:
'0.
10元'
,
type
:
'quan10
'
},
{
nums
:
'*1'
,
type
:
'hammer'
},
{
nums
:
'0.1
2元'
,
type
:
'quan12
'
},
{
nums
:
'0.1
5元'
,
type
:
'quan15
'
},
{
nums
:
'*1'
,
type
:
'boom'
},
{
nums
:
'0.
16元'
,
type
:
'quan16
'
},
{
nums
:
'0.
23元'
,
type
:
'quan23
'
},
{
nums
:
'*1'
,
type
:
'steps'
},
{
nums
:
'0.
28元'
,
type
:
'quan28
'
}
{
nums
:
'0.
36元'
,
type
:
'quan36
'
}
];
// localStorage.clear();
window
[
'imgver'
]
=
'11112'
...
...
egret/resource/assets/sign/sign_quan10.png
0 → 100644
View file @
acbce1cf
7.5 KB
egret/resource/assets/sign/sign_quan15.png
View replaced file @
01c7408c
View file @
acbce1cf
8.02 KB
|
W:
|
H:
7.48 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/assets/sign/sign_quan23.png
0 → 100644
View file @
acbce1cf
7.73 KB
egret/resource/assets/sign/sign_quan36.png
0 → 100644
View file @
acbce1cf
7.71 KB
egret/resource/default.res.json
View file @
acbce1cf
...
...
@@ -73,7 +73,7 @@
"name"
:
"exchange"
},
{
"keys"
:
"signitem_png,signicon6_png,signicon5_png,signicon4_png,signicon3_png,signicon2_png,signicon_blood_png,signbtn4_png,signbtn3_png,signbtn2_png,signbtn1_png,signbg_png,sign_quan88_png,sign_quan8_png,sign_quan58_png,sign_quan38_png,sign_quan28_png,sign_quan16_png,sign_quan15_png,sign_quan12_png,sign_line2_png,sign_line_png,sign_light_png,sign_icon1_png"
,
"keys"
:
"signitem_png,signicon6_png,signicon5_png,signicon4_png,signicon3_png,signicon2_png,signicon_blood_png,signbtn4_png,signbtn3_png,signbtn2_png,signbtn1_png,signbg_png,sign_quan88_png,sign_quan8_png,sign_quan58_png,sign_quan38_png,sign_quan28_png,sign_quan16_png,sign_quan15_png,sign_quan12_png,sign_line2_png,sign_line_png,sign_light_png,sign_icon1_png
,sign_quan10_png,sign_quan23_png,sign_quan36_png
"
,
"name"
:
"sign"
},
{
...
...
@@ -3675,6 +3675,21 @@
"url"
:
"assets/map/txtbg_purple.png"
,
"type"
:
"image"
,
"name"
:
"txtbg_purple_png"
},
{
"url"
:
"assets/sign/sign_quan10.png"
,
"type"
:
"image"
,
"name"
:
"sign_quan10_png"
},
{
"url"
:
"assets/sign/sign_quan23.png"
,
"type"
:
"image"
,
"name"
:
"sign_quan23_png"
},
{
"url"
:
"assets/sign/sign_quan36.png"
,
"type"
:
"image"
,
"name"
:
"sign_quan36_png"
}
]
}
\ No newline at end of file
egret/resource/skins/SignItemSkin.exml
View file @
acbce1cf
...
...
@@ -14,6 +14,9 @@
<e:Image
id=
"blood"
x=
"98.04"
y=
"60.35"
source=
"signicon_blood_png"
visible=
"false"
/>
<e:Image
id=
"random"
x=
"98.73"
y=
"50.4"
source=
"signicon6_png"
visible=
"false"
/>
<e:Image
id=
"quan15"
x=
"95.42"
y=
"56.76"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
height=
"79.34"
source=
"sign_quan15_png"
visible=
"false"
/>
<e:Image
id=
"quan10"
x=
"95"
y=
"56"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
height=
"79.34"
source=
"sign_quan10_png"
visible=
"false"
/>
<e:Image
id=
"quan23"
x=
"95"
y=
"56"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
height=
"79.34"
source=
"sign_quan23_png"
visible=
"false"
/>
<e:Image
id=
"quan36"
x=
"95"
y=
"56"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
height=
"79.34"
source=
"sign_quan36_png"
visible=
"false"
/>
<e:Image
id=
"quan38"
x=
"95.42"
y=
"56.76"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
source=
"sign_quan38_png"
visible=
"false"
/>
<e:Image
id=
"quan58"
x=
"99.42"
y=
"56.76"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
source=
"sign_quan58_png"
visible=
"false"
/>
<e:Image
id=
"quan12"
source=
"sign_quan12_png"
x=
"95"
y=
"56"
visible=
"false"
/>
...
...
egret/src/panels/TaskCenter/TaskCenter.ts
View file @
acbce1cf
import
Panel
from
"../../../libs/new_wx/components/Panel"
;
import
getSkinPath
from
"../../../libs/new_wx/utils/getSkinPath"
;
import
log
=
egret
.
log
;
import
{
createRedBagIcon
}
from
"../../mapScene/RedBagAni"
;
import
nrSetRenderMode
=
egret_native
.
nrSetRenderMode
;
import
{
NetName
}
from
"../../../libs/tw/enum/NetName"
;
import
{
NetManager
}
from
"../../../libs/tw/manager/NetManager"
;
import
PanelCtrl
from
"../../../libs/new_wx/ctrls/panelCtrl"
;
import
{
ModuleTypes
}
from
"../../../libs/new_wx/types/sceneTypes"
;
import
Bitmap
=
egret
.
Bitmap
;
export
default
class
TaskCenter
extends
Panel
{
public
closeBtn
:
eui
.
Button
;
...
...
@@ -60,12 +57,12 @@ export default class TaskCenter extends Panel {
* 任务中心列表
*/
class
TaskCenterItem
extends
eui
.
ItemRenderer
{
public
taskImg
:
eui
.
Image
;
public
title
:
eui
.
Label
;
public
remark
:
eui
.
Label
;
public
btnGroup
:
eui
.
Group
;
public
btnImg
:
eui
.
Image
;
public
btnLabel
:
eui
.
Label
;
public
taskImg
:
eui
.
Image
;
public
title
:
eui
.
Label
;
public
remark
:
eui
.
Label
;
public
btnGroup
:
eui
.
Group
;
public
btnImg
:
eui
.
Image
;
public
btnLabel
:
eui
.
Label
;
constructor
()
{
super
();
...
...
@@ -104,7 +101,6 @@ class TaskCenterItem extends eui.ItemRenderer {
}
PanelCtrl
.
instance
.
show
(
'taskCenterPrize'
,
res
.
data
);
},
this
.
data
.
subActivityId
);
},
this
);
}
else
if
(
done
<
limit
)
{
// 已完成
this
.
btnImg
.
source
=
'TaskCenter_'
+
'goTask'
+
'Btn_png'
;
...
...
@@ -112,7 +108,7 @@ class TaskCenterItem extends eui.ItemRenderer {
this
.
btnLabel
.
strokeColor
=
0x1376df
;
this
.
btnGroup
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
// 跳转任务链接
window
.
location
.
href
=
this
.
data
.
appIncompletelink
;
window
.
location
.
assign
(
this
.
data
.
appIncompletelink
)
;
},
this
);
}
else
{
this
.
btnImg
.
source
=
'TaskCenter_'
+
'done'
+
'Btn_png'
;
...
...
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