Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
game2048
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
王剑峰
game2048
Commits
e531565a
Commit
e531565a
authored
Apr 24, 2020
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
1f50f558
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
panelCtrl.ts
module/ctrls/panelCtrl.ts
+6
-1
TaskPanel.ts
src/panels/TaskPanel.ts
+4
-5
No files found.
module/ctrls/panelCtrl.ts
View file @
e531565a
...
...
@@ -31,7 +31,12 @@ export default class PanelCtrl {
this
.
_parent
=
parent
;
let
bg
=
new
Graphics
();
bg
.
beginFill
(
0
,
1
);
bg
.
drawRect
(
0
,
layers
.
stageOffsetY
-
parent
.
y
,
layers
.
stageWidth
,
layers
.
stageHeight
);
bg
.
drawRect
(
layers
.
stageOffsetX
-
parent
.
x
,
layers
.
stageOffsetY
-
parent
.
y
,
layers
.
stageWidth
,
layers
.
stageHeight
);
bg
.
endFill
();
bg
.
visible
=
false
;
this
.
_parent
.
addChild
(
bg
);
...
...
src/panels/TaskPanel.ts
View file @
e531565a
...
...
@@ -91,11 +91,10 @@ export class TaskPanel extends Panel {
//修改按钮状态
for
(
var
i
=
0
;
i
<
list
.
length
;
i
++
)
{
var
l
=
list
[
i
];
//未完成
if
(
!
l
.
isComplete
)
{
//未完成
!l.isComplete
if
(
l
.
taskDrawStatus
==
0
)
{
this
[
l
.
taskName
].
canGetStatus
=
false
;
this
[
l
.
taskName
].
enabled
=
true
;
if
(
l
.
taskName
==
TaskType
.
doOrder
)
this
.
toShowMsg
=
1
//标记是没完成的
}
//三个状态,到时确认
...
...
@@ -203,7 +202,7 @@ class CusButton extends Button {
case
TaskType
.
doCollect
:
sendTbNet
(
TbNetName
.
navigateTo
,
{
url
:
""
},
//收藏页面路径待写
{
url
:
'/pages/collectGoods/collectGoods'
},
//收藏页面路径待写
()
=>
{
},
true
);
...
...
@@ -219,7 +218,7 @@ class CusButton extends Button {
case
TaskType
.
doOrder
:
sendTbNet
(
TbNetName
.
navigateTo
,
{
url
:
""
},
//下单页面路径待写
{
url
:
'/pages/orderGoods/orderGoods'
},
//下单页面路径待写
()
=>
{
},
true
);
...
...
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