Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
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
new_taobao
Commits
6bac692e
Commit
6bac692e
authored
Oct 02, 2020
by
AU-Pro-mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add new code --10
parent
c3eaf564
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
172 additions
and
95 deletions
+172
-95
output.js
project/src/canvas/game/output.js
+39
-20
output.js.map
project/src/canvas/game/output.js.map
+1
-1
output.js
project/src/canvas/game/released/output.js
+39
-20
copyJs.js
project/src/canvas/game/scripts/copyJs.js
+2
-2
comMissionModal.js
...mini/client/components/comMissionModal/comMissionModal.js
+1
-0
goodsModal.axml
taobao_mini/client/components/goodsModal/goodsModal.axml
+2
-1
md.js
taobao_mini/client/md.js
+2
-2
goodsPage.js
taobao_mini/client/pages/goodsPage/goodsPage.js
+3
-3
homePage.axml
taobao_mini/client/pages/homePage/homePage.axml
+1
-1
homePage.js
taobao_mini/client/pages/homePage/homePage.js
+12
-7
myprize.js
taobao_mini/client/pages/myprize/myprize.js
+3
-0
output.js
taobao_mini/client/pages/pagecanvas/output.js
+65
-38
turnTablePage.js
taobao_mini/client/pages/turnTablePage/turnTablePage.js
+2
-0
No files found.
project/src/canvas/game/output.js
View file @
6bac692e
...
@@ -1925,7 +1925,7 @@ var Main = (function () {
...
@@ -1925,7 +1925,7 @@ var Main = (function () {
return
[
4
,
this
.
loadImageTexturesCsd02
(
resCanvasList
)];
return
[
4
,
this
.
loadImageTexturesCsd02
(
resCanvasList
)];
case
2
:
case
2
:
_a
.
sent
();
_a
.
sent
();
ctrls_1
.
changeScene
(
XxlScene_1
.
XxlScene
);
ctrls_1
.
changeScene
(
MainScene_2
.
OpenAni
);
return
[
2
];
return
[
2
];
}
}
});
});
...
@@ -2546,6 +2546,7 @@ var Root = (function (_super) {
...
@@ -2546,6 +2546,7 @@ var Root = (function (_super) {
this
.
goodsContainer
.
startGoods
();
this
.
goodsContainer
.
startGoods
();
Main_1
.
GDispatcher
.
removeEventListener
(
'MatchCompelete'
,
this
.
gameStart
,
this
);
Main_1
.
GDispatcher
.
removeEventListener
(
'MatchCompelete'
,
this
.
gameStart
,
this
);
this
.
gameStartFlag
=
true
;
this
.
gameStartFlag
=
true
;
this
.
touchArea
.
mouseEnable
=
true
;
};
};
Root
.
prototype
.
gameOver
=
function
()
{
Root
.
prototype
.
gameOver
=
function
()
{
return
__awaiter
(
this
,
void
0
,
void
0
,
function
()
{
return
__awaiter
(
this
,
void
0
,
void
0
,
function
()
{
...
@@ -2555,6 +2556,7 @@ var Root = (function (_super) {
...
@@ -2555,6 +2556,7 @@ var Root = (function (_super) {
case
0
:
case
0
:
this
.
time
=
60
;
this
.
time
=
60
;
this
.
gameStartFlag
=
false
;
this
.
gameStartFlag
=
false
;
this
.
touchArea
.
mouseEnable
=
false
;
if
(
!
this
.
userInfo
.
win
)
if
(
!
this
.
userInfo
.
win
)
this
.
scoreBoard
.
scoreRight
+=
3
;
this
.
scoreBoard
.
scoreRight
+=
3
;
this
.
goodsContainer
.
removeAllGoods
();
this
.
goodsContainer
.
removeAllGoods
();
...
@@ -2589,10 +2591,10 @@ var Root = (function (_super) {
...
@@ -2589,10 +2591,10 @@ var Root = (function (_super) {
this
.
scoreBoard
.
updateScore
(
score
);
this
.
scoreBoard
.
updateScore
(
score
);
};
};
Root
.
prototype
.
createTouchRect
=
function
()
{
Root
.
prototype
.
createTouchRect
=
function
()
{
this
.
touchArea
=
Tools_1
.
Tools
.
getRect
(
750
,
5
74
,
0xff22ff
,
0
);
this
.
touchArea
=
Tools_1
.
Tools
.
getRect
(
750
,
8
74
,
0xff22ff
,
0
);
this
.
touchArea
.
x
=
0
;
this
.
touchArea
.
x
=
0
;
this
.
touchArea
.
y
=
10
50
;
this
.
touchArea
.
y
=
7
50
;
this
.
touchArea
.
mouseEnable
=
tru
e
;
this
.
touchArea
.
mouseEnable
=
fals
e
;
this
.
addChild
(
this
.
touchArea
);
this
.
addChild
(
this
.
touchArea
);
this
.
touchArea
.
addEventListener
(
FYGE
.
MouseEvent
.
MOUSE_DOWN
,
this
.
onMouseDownArea
,
this
);
this
.
touchArea
.
addEventListener
(
FYGE
.
MouseEvent
.
MOUSE_DOWN
,
this
.
onMouseDownArea
,
this
);
this
.
touchArea
.
addEventListener
(
FYGE
.
MouseEvent
.
MOUSE_UP
,
this
.
onMouseUpArea
,
this
);
this
.
touchArea
.
addEventListener
(
FYGE
.
MouseEvent
.
MOUSE_UP
,
this
.
onMouseUpArea
,
this
);
...
@@ -2626,6 +2628,7 @@ var Root = (function (_super) {
...
@@ -2626,6 +2628,7 @@ var Root = (function (_super) {
this
.
guide
.
visible
=
false
;
this
.
guide
.
visible
=
false
;
setTimeout
(
function
()
{
setTimeout
(
function
()
{
ctrls_1
.
showPanel
(
MatchingPanel_1
.
MatchingPanel
,
_this
.
userInfo
);
ctrls_1
.
showPanel
(
MatchingPanel_1
.
MatchingPanel
,
_this
.
userInfo
);
_this
.
guide
.
removeEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
_this
.
guideFunc
,
_this
);
},
200
);
},
200
);
}
}
else
{
else
{
...
@@ -2681,6 +2684,9 @@ var Catecher = (function (_super) {
...
@@ -2681,6 +2684,9 @@ var Catecher = (function (_super) {
__extends
(
Catecher
,
_super
);
__extends
(
Catecher
,
_super
);
function
Catecher
(
root
,
dataInfo
)
{
function
Catecher
(
root
,
dataInfo
)
{
var
_this
=
_super
.
call
(
this
)
||
this
;
var
_this
=
_super
.
call
(
this
)
||
this
;
_this
.
timerNumer
=
60
;
_this
.
lt
=
0
;
_this
.
tt
=
0
;
_this
.
sum
=
function
(
m
,
n
)
{
_this
.
sum
=
function
(
m
,
n
)
{
var
num
=
Math
.
floor
(
Math
.
random
()
*
(
m
-
n
)
+
n
);
var
num
=
Math
.
floor
(
Math
.
random
()
*
(
m
-
n
)
+
n
);
return
num
;
return
num
;
...
@@ -2732,8 +2738,7 @@ var Catecher = (function (_super) {
...
@@ -2732,8 +2738,7 @@ var Catecher = (function (_super) {
.
to
({
x
:
424
,
alpha
:
1
},
100
);
.
to
({
x
:
424
,
alpha
:
1
},
100
);
};
};
Catecher
.
prototype
.
destroy
=
function
()
{
Catecher
.
prototype
.
destroy
=
function
()
{
clearInterval
(
this
.
timerFunc
);
this
.
removeEventListener
(
FYGE
.
Event
.
ENTER_FRAME
,
this
.
timerFunc
,
this
);
this
.
timerFunc
=
null
;
};
};
Catecher
.
prototype
.
updateScore
=
function
(
score
)
{
Catecher
.
prototype
.
updateScore
=
function
(
score
)
{
var
scoreNow
=
score
+
this
.
scoreLeft
;
var
scoreNow
=
score
+
this
.
scoreLeft
;
...
@@ -2784,26 +2789,39 @@ var Catecher = (function (_super) {
...
@@ -2784,26 +2789,39 @@ var Catecher = (function (_super) {
this
.
userScore_right
.
updateScore
(
this
.
scoreRight
);
this
.
userScore_right
.
updateScore
(
this
.
scoreRight
);
};
};
Catecher
.
prototype
.
stopTime
=
function
()
{
Catecher
.
prototype
.
stopTime
=
function
()
{
clearInterval
(
this
.
timerFunc
);
this
.
removeEventListener
(
FYGE
.
Event
.
ENTER_FRAME
,
this
.
timerFunc
,
this
);
this
.
timerFunc
=
null
;
};
};
Catecher
.
prototype
.
start
=
function
(
time
)
{
Catecher
.
prototype
.
start
=
function
(
time
)
{
var
_this
=
this
;
this
.
scoreLeft
=
0
;
this
.
scoreLeft
=
0
;
this
.
scoreRight
=
0
;
this
.
scoreRight
=
0
;
this
.
timerNumer
=
time
;
this
.
timerNumer
=
time
;
this
.
updateTime
(
this
.
timerNumer
);
this
.
updateTime
(
this
.
timerNumer
);
this
.
timerFunc
=
setInterval
(
function
()
{
this
.
addEventListener
(
FYGE
.
Event
.
ENTER_FRAME
,
this
.
timerFunc
,
this
);
if
(
_this
.
timerNumer
<=
0
)
{
};
_this
.
_root
.
gameOver
();
Catecher
.
prototype
.
timerFunc
=
function
()
{
clearInterval
(
_this
.
timerFunc
);
if
(
!
this
.
_root
.
gameStartFlag
)
_this
.
timerFunc
=
null
;
return
;
_this
.
updateTime
(
0
);
if
(
this
.
timerNumer
<=
0
)
{
this
.
_root
.
gameOver
();
this
.
updateTime
(
0
);
this
.
lt
=
this
.
tt
=
0
;
this
.
removeEventListener
(
FYGE
.
Event
.
ENTER_FRAME
,
this
.
timerFunc
,
this
);
return
;
}
if
(
this
.
lt
)
{
var
nt
=
new
Date
().
getTime
();
var
dt
=
nt
-
this
.
lt
;
this
.
tt
+=
dt
/
1000
>>
0
;
var
ntt
=
60
-
this
.
tt
;
if
(
ntt
!=
this
.
timerNumer
)
{
this
.
timerNumer
=
ntt
;
this
.
updateTime
(
this
.
timerNumer
);
this
.
lt
=
nt
;
}
}
}
else
{
else
{
_this
.
updateTime
(
--
_this
.
timerNumer
);
this
.
lt
=
new
Date
().
getTime
(
);
}
}
},
1000
);
};
};
Catecher
.
prototype
.
updateTime
=
function
(
time
)
{
Catecher
.
prototype
.
updateTime
=
function
(
time
)
{
this
.
timeText
.
text
=
time
.
toString
()
+
'S'
;
this
.
timeText
.
text
=
time
.
toString
()
+
'S'
;
...
@@ -2837,7 +2855,8 @@ var Catecher = (function (_super) {
...
@@ -2837,7 +2855,8 @@ var Catecher = (function (_super) {
c
.
width
=
120
;
c
.
width
=
120
;
c
.
height
=
120
;
c
.
height
=
120
;
var
a
=
Tools_1
.
Tools
.
getCircle
(
60
,
0x000000
,
1
,
60
,
60
);
var
a
=
Tools_1
.
Tools
.
getCircle
(
60
,
0x000000
,
1
,
60
,
60
);
var
p
=
Tools_1
.
Tools
.
getSprite
(
avatar
,
0
,
0
);
var
p
=
FYGE
.
Sprite
.
fromUrl
(
avatar
);
p
.
x
=
p
.
y
=
0
;
p
.
width
=
120
;
p
.
width
=
120
;
p
.
height
=
120
;
p
.
height
=
120
;
c
[
'updateAvatar'
]
=
function
(
avatar
)
{
p
.
texture
=
RES_1
.
RES
.
getRes
(
avatar
);
};
c
[
'updateAvatar'
]
=
function
(
avatar
)
{
p
.
texture
=
RES_1
.
RES
.
getRes
(
avatar
);
};
...
...
project/src/canvas/game/output.js.map
View file @
6bac692e
This source diff could not be displayed because it is too large. You can
view the blob
instead.
project/src/canvas/game/released/output.js
View file @
6bac692e
...
@@ -1927,7 +1927,7 @@ var Main = (function () {
...
@@ -1927,7 +1927,7 @@ var Main = (function () {
return
[
4
,
this
.
loadImageTexturesCsd02
(
resCanvasList
)];
return
[
4
,
this
.
loadImageTexturesCsd02
(
resCanvasList
)];
case
2
:
case
2
:
_a
.
sent
();
_a
.
sent
();
ctrls_1
.
changeScene
(
XxlScene_1
.
XxlScene
);
ctrls_1
.
changeScene
(
MainScene_2
.
OpenAni
);
return
[
2
];
return
[
2
];
}
}
});
});
...
@@ -2548,6 +2548,7 @@ var Root = (function (_super) {
...
@@ -2548,6 +2548,7 @@ var Root = (function (_super) {
this
.
goodsContainer
.
startGoods
();
this
.
goodsContainer
.
startGoods
();
Main_1
.
GDispatcher
.
removeEventListener
(
'MatchCompelete'
,
this
.
gameStart
,
this
);
Main_1
.
GDispatcher
.
removeEventListener
(
'MatchCompelete'
,
this
.
gameStart
,
this
);
this
.
gameStartFlag
=
true
;
this
.
gameStartFlag
=
true
;
this
.
touchArea
.
mouseEnable
=
true
;
};
};
Root
.
prototype
.
gameOver
=
function
()
{
Root
.
prototype
.
gameOver
=
function
()
{
return
__awaiter
(
this
,
void
0
,
void
0
,
function
()
{
return
__awaiter
(
this
,
void
0
,
void
0
,
function
()
{
...
@@ -2557,6 +2558,7 @@ var Root = (function (_super) {
...
@@ -2557,6 +2558,7 @@ var Root = (function (_super) {
case
0
:
case
0
:
this
.
time
=
60
;
this
.
time
=
60
;
this
.
gameStartFlag
=
false
;
this
.
gameStartFlag
=
false
;
this
.
touchArea
.
mouseEnable
=
false
;
if
(
!
this
.
userInfo
.
win
)
if
(
!
this
.
userInfo
.
win
)
this
.
scoreBoard
.
scoreRight
+=
3
;
this
.
scoreBoard
.
scoreRight
+=
3
;
this
.
goodsContainer
.
removeAllGoods
();
this
.
goodsContainer
.
removeAllGoods
();
...
@@ -2591,10 +2593,10 @@ var Root = (function (_super) {
...
@@ -2591,10 +2593,10 @@ var Root = (function (_super) {
this
.
scoreBoard
.
updateScore
(
score
);
this
.
scoreBoard
.
updateScore
(
score
);
};
};
Root
.
prototype
.
createTouchRect
=
function
()
{
Root
.
prototype
.
createTouchRect
=
function
()
{
this
.
touchArea
=
Tools_1
.
Tools
.
getRect
(
750
,
5
74
,
0xff22ff
,
0
);
this
.
touchArea
=
Tools_1
.
Tools
.
getRect
(
750
,
8
74
,
0xff22ff
,
0
);
this
.
touchArea
.
x
=
0
;
this
.
touchArea
.
x
=
0
;
this
.
touchArea
.
y
=
10
50
;
this
.
touchArea
.
y
=
7
50
;
this
.
touchArea
.
mouseEnable
=
tru
e
;
this
.
touchArea
.
mouseEnable
=
fals
e
;
this
.
addChild
(
this
.
touchArea
);
this
.
addChild
(
this
.
touchArea
);
this
.
touchArea
.
addEventListener
(
FYGE
.
MouseEvent
.
MOUSE_DOWN
,
this
.
onMouseDownArea
,
this
);
this
.
touchArea
.
addEventListener
(
FYGE
.
MouseEvent
.
MOUSE_DOWN
,
this
.
onMouseDownArea
,
this
);
this
.
touchArea
.
addEventListener
(
FYGE
.
MouseEvent
.
MOUSE_UP
,
this
.
onMouseUpArea
,
this
);
this
.
touchArea
.
addEventListener
(
FYGE
.
MouseEvent
.
MOUSE_UP
,
this
.
onMouseUpArea
,
this
);
...
@@ -2628,6 +2630,7 @@ var Root = (function (_super) {
...
@@ -2628,6 +2630,7 @@ var Root = (function (_super) {
this
.
guide
.
visible
=
false
;
this
.
guide
.
visible
=
false
;
setTimeout
(
function
()
{
setTimeout
(
function
()
{
ctrls_1
.
showPanel
(
MatchingPanel_1
.
MatchingPanel
,
_this
.
userInfo
);
ctrls_1
.
showPanel
(
MatchingPanel_1
.
MatchingPanel
,
_this
.
userInfo
);
_this
.
guide
.
removeEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
_this
.
guideFunc
,
_this
);
},
200
);
},
200
);
}
}
else
{
else
{
...
@@ -2683,6 +2686,9 @@ var Catecher = (function (_super) {
...
@@ -2683,6 +2686,9 @@ var Catecher = (function (_super) {
__extends
(
Catecher
,
_super
);
__extends
(
Catecher
,
_super
);
function
Catecher
(
root
,
dataInfo
)
{
function
Catecher
(
root
,
dataInfo
)
{
var
_this
=
_super
.
call
(
this
)
||
this
;
var
_this
=
_super
.
call
(
this
)
||
this
;
_this
.
timerNumer
=
60
;
_this
.
lt
=
0
;
_this
.
tt
=
0
;
_this
.
sum
=
function
(
m
,
n
)
{
_this
.
sum
=
function
(
m
,
n
)
{
var
num
=
Math
.
floor
(
Math
.
random
()
*
(
m
-
n
)
+
n
);
var
num
=
Math
.
floor
(
Math
.
random
()
*
(
m
-
n
)
+
n
);
return
num
;
return
num
;
...
@@ -2734,8 +2740,7 @@ var Catecher = (function (_super) {
...
@@ -2734,8 +2740,7 @@ var Catecher = (function (_super) {
.
to
({
x
:
424
,
alpha
:
1
},
100
);
.
to
({
x
:
424
,
alpha
:
1
},
100
);
};
};
Catecher
.
prototype
.
destroy
=
function
()
{
Catecher
.
prototype
.
destroy
=
function
()
{
clearInterval
(
this
.
timerFunc
);
this
.
removeEventListener
(
FYGE
.
Event
.
ENTER_FRAME
,
this
.
timerFunc
,
this
);
this
.
timerFunc
=
null
;
};
};
Catecher
.
prototype
.
updateScore
=
function
(
score
)
{
Catecher
.
prototype
.
updateScore
=
function
(
score
)
{
var
scoreNow
=
score
+
this
.
scoreLeft
;
var
scoreNow
=
score
+
this
.
scoreLeft
;
...
@@ -2786,26 +2791,39 @@ var Catecher = (function (_super) {
...
@@ -2786,26 +2791,39 @@ var Catecher = (function (_super) {
this
.
userScore_right
.
updateScore
(
this
.
scoreRight
);
this
.
userScore_right
.
updateScore
(
this
.
scoreRight
);
};
};
Catecher
.
prototype
.
stopTime
=
function
()
{
Catecher
.
prototype
.
stopTime
=
function
()
{
clearInterval
(
this
.
timerFunc
);
this
.
removeEventListener
(
FYGE
.
Event
.
ENTER_FRAME
,
this
.
timerFunc
,
this
);
this
.
timerFunc
=
null
;
};
};
Catecher
.
prototype
.
start
=
function
(
time
)
{
Catecher
.
prototype
.
start
=
function
(
time
)
{
var
_this
=
this
;
this
.
scoreLeft
=
0
;
this
.
scoreLeft
=
0
;
this
.
scoreRight
=
0
;
this
.
scoreRight
=
0
;
this
.
timerNumer
=
time
;
this
.
timerNumer
=
time
;
this
.
updateTime
(
this
.
timerNumer
);
this
.
updateTime
(
this
.
timerNumer
);
this
.
timerFunc
=
setInterval
(
function
()
{
this
.
addEventListener
(
FYGE
.
Event
.
ENTER_FRAME
,
this
.
timerFunc
,
this
);
if
(
_this
.
timerNumer
<=
0
)
{
};
_this
.
_root
.
gameOver
();
Catecher
.
prototype
.
timerFunc
=
function
()
{
clearInterval
(
_this
.
timerFunc
);
if
(
!
this
.
_root
.
gameStartFlag
)
_this
.
timerFunc
=
null
;
return
;
_this
.
updateTime
(
0
);
if
(
this
.
timerNumer
<=
0
)
{
this
.
_root
.
gameOver
();
this
.
updateTime
(
0
);
this
.
lt
=
this
.
tt
=
0
;
this
.
removeEventListener
(
FYGE
.
Event
.
ENTER_FRAME
,
this
.
timerFunc
,
this
);
return
;
}
if
(
this
.
lt
)
{
var
nt
=
new
Date
().
getTime
();
var
dt
=
nt
-
this
.
lt
;
this
.
tt
+=
dt
/
1000
>>
0
;
var
ntt
=
60
-
this
.
tt
;
if
(
ntt
!=
this
.
timerNumer
)
{
this
.
timerNumer
=
ntt
;
this
.
updateTime
(
this
.
timerNumer
);
this
.
lt
=
nt
;
}
}
}
else
{
else
{
_this
.
updateTime
(
--
_this
.
timerNumer
);
this
.
lt
=
new
Date
().
getTime
(
);
}
}
},
1000
);
};
};
Catecher
.
prototype
.
updateTime
=
function
(
time
)
{
Catecher
.
prototype
.
updateTime
=
function
(
time
)
{
this
.
timeText
.
text
=
time
.
toString
()
+
'S'
;
this
.
timeText
.
text
=
time
.
toString
()
+
'S'
;
...
@@ -2839,7 +2857,8 @@ var Catecher = (function (_super) {
...
@@ -2839,7 +2857,8 @@ var Catecher = (function (_super) {
c
.
width
=
120
;
c
.
width
=
120
;
c
.
height
=
120
;
c
.
height
=
120
;
var
a
=
Tools_1
.
Tools
.
getCircle
(
60
,
0x000000
,
1
,
60
,
60
);
var
a
=
Tools_1
.
Tools
.
getCircle
(
60
,
0x000000
,
1
,
60
,
60
);
var
p
=
Tools_1
.
Tools
.
getSprite
(
avatar
,
0
,
0
);
var
p
=
FYGE
.
Sprite
.
fromUrl
(
avatar
);
p
.
x
=
p
.
y
=
0
;
p
.
width
=
120
;
p
.
width
=
120
;
p
.
height
=
120
;
p
.
height
=
120
;
c
[
'updateAvatar'
]
=
function
(
avatar
)
{
p
.
texture
=
RES_1
.
RES
.
getRes
(
avatar
);
};
c
[
'updateAvatar'
]
=
function
(
avatar
)
{
p
.
texture
=
RES_1
.
RES
.
getRes
(
avatar
);
};
...
...
project/src/canvas/game/scripts/copyJs.js
View file @
6bac692e
...
@@ -6,8 +6,8 @@ var fs = require("fs");
...
@@ -6,8 +6,8 @@ var fs = require("fs");
// fs.readFileSync("./output.js")
// fs.readFileSync("./output.js")
// )
// )
// var endPath = 'D:/duibaGame/测试项目0527/taobaominiTest/client/pages/index1/';
// var endPath = 'D:/duibaGame/测试项目0527/taobaominiTest/client/pages/index1/';
var
endPath
=
"C:/Users/Duiba/Desktop/work/雅顿/new_taobao/taobao_mini/client/pages/pagecanvas/
"
// var endPath = "C:/Users/Duiba/Desktop/work/雅顿/new_taobao/taobao_mini/client/pages/pagecanvas
"
//
var endPath = '/Applications/DUIBA-TAOBAO/YD/new_taobao/taobao_mini/client/pages/pagecanvas/';
var
endPath
=
'/Applications/DUIBA-TAOBAO/YD/new_taobao/taobao_mini/client/pages/pagecanvas/'
;
var
version
=
Math
.
round
(
new
Date
().
getTime
()
/
1000
);
var
version
=
Math
.
round
(
new
Date
().
getTime
()
/
1000
);
...
...
taobao_mini/client/components/comMissionModal/comMissionModal.js
View file @
6bac692e
...
@@ -61,6 +61,7 @@ Component({
...
@@ -61,6 +61,7 @@ Component({
// if (this.data.missionsList.length !== prevData.missionsList.length) {
// if (this.data.missionsList.length !== prevData.missionsList.length) {
// this.setData({ missionsList: this.props.missionsList })
// this.setData({ missionsList: this.props.missionsList })
// }
// }
if
(
this
.
props
.
refresh
)
this
.
getMissionList
()
},
},
methods
:
{
methods
:
{
...
...
taobao_mini/client/components/goodsModal/goodsModal.axml
View file @
6bac692e
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
</scroll-view>
</scroll-view>
</view>
</view>
<!-- 倒计时
-->
<!-- 倒计时
<count-down-modal a:if="{{isShowCountdown && task.taskType == 'browseGoods'}}" percent="{{percent}}" usePercent="{{usePercent}}" styleType="{{'01'}}" />
<count-down-modal a:if="{{isShowCountdown && task.taskType == 'browseGoods'}}" percent="{{percent}}" usePercent="{{usePercent}}" styleType="{{'01'}}" />
-->
</view>
</view>
\ No newline at end of file
taobao_mini/client/md.js
View file @
6bac692e
...
@@ -5,8 +5,8 @@ export function clickStat (activityId, type) {
...
@@ -5,8 +5,8 @@ export function clickStat (activityId, type) {
API
.
clickStat
({
activityId
:
activityId
,
type
:
type
})
API
.
clickStat
({
activityId
:
activityId
,
type
:
type
})
.
then
(
res
=>
{
.
then
(
res
=>
{
const
{
success
,
message
,
data
}
=
res
const
{
success
,
message
,
data
}
=
res
if
(
!
success
)
{
console
.
warn
(
res
)
;
commonToast
(
res
&&
res
.
message
)
}
if
(
!
success
)
{
console
.
warn
(
res
)
}
else
console
.
log
(
`%c打点成功--
${
type
}
`
,
'color:#e06a82;font-size:12px;font-weight:bold;text-shadow:1px 1px rgba(0,0,0,0.2)'
)
else
console
.
log
(
`%c打点成功--
${
type
}
`
,
'color:#e06a82;font-size:12px;font-weight:bold;text-shadow:1px 1px rgba(0,0,0,0.2)'
)
})
})
.
catch
(
res
=>
{
console
.
warn
(
res
)
;
commonToast
(
res
&&
res
.
message
);
})
||
{};
.
catch
(
res
=>
{
console
.
warn
(
res
)
})
||
{}
}
}
\ No newline at end of file
taobao_mini/client/pages/goodsPage/goodsPage.js
View file @
6bac692e
...
@@ -93,8 +93,8 @@ Page({
...
@@ -93,8 +93,8 @@ Page({
},
},
//任务完成
//任务完成
async
onCompleteTask
(
taskType
,
itemId
)
{
async
onCompleteTask
(
taskType
,
itemId
)
{
console
.
log
(
taskType
,
itemId
)
console
.
log
(
taskType
,
itemId
)
const
{
activityId
}
=
app
const
{
activityId
}
=
app
switch
(
taskType
)
{
switch
(
taskType
)
{
case
'collectGoods'
:
case
'collectGoods'
:
...
@@ -111,7 +111,7 @@ Page({
...
@@ -111,7 +111,7 @@ Page({
let
browsResult
=
await
API
.
doBrowseGoodsTask
({
activityId
,
itemId
}).
catch
(
res
=>
{
let
browsResult
=
await
API
.
doBrowseGoodsTask
({
activityId
,
itemId
}).
catch
(
res
=>
{
res
&&
commonToast
(
res
)
res
&&
commonToast
(
res
)
})
||
{}
})
||
{}
console
.
log
(
browsResult
)
console
.
log
(
'%c--------完成浏览任务
\
n'
+
'-----yd.doBrowseGoodsTask
\
n'
,
ConsoleStyle
,
browsResult
.
data
)
if
(
browsResult
.
success
)
{
if
(
browsResult
.
success
)
{
commonToast
(
'任务完成'
)
commonToast
(
'任务完成'
)
}
}
...
...
taobao_mini/client/pages/homePage/homePage.axml
View file @
6bac692e
...
@@ -128,4 +128,4 @@
...
@@ -128,4 +128,4 @@
<newuser-modal a:if="{{newUserModalVisible}}" onModalClose="closeNewUserModal"></newuser-modal>
<newuser-modal a:if="{{newUserModalVisible}}" onModalClose="closeNewUserModal"></newuser-modal>
<rewards-modal a:if="{{rewardsModalVisible}}" onModalClose="closeRewardsModal"></rewards-modal>
<rewards-modal a:if="{{rewardsModalVisible}}" onModalClose="closeRewardsModal"></rewards-modal>
<prizes-modal a:if="{{prizesModalVisible}}" onModalClose="closePrizesModal"></prizes-modal>
<prizes-modal a:if="{{prizesModalVisible}}" onModalClose="closePrizesModal"></prizes-modal>
<mission-modal a:if="{{missionModalVisible}}" onModalClose="closeMissionModal" onRefreshGameInfo="getGameInfo"></mission-modal>
<mission-modal a:if="{{missionModalVisible}}"
refresh="{{missionRefresh}}"
onModalClose="closeMissionModal" onRefreshGameInfo="getGameInfo"></mission-modal>
taobao_mini/client/pages/homePage/homePage.js
View file @
6bac692e
...
@@ -14,11 +14,8 @@ Page({
...
@@ -14,11 +14,8 @@ Page({
},
},
// 视频地址列表 - 存储播放时常
// 视频地址列表 - 存储播放时常
videoSrcArr
:
[
// 'https://cloud.video.taobao.com/play/u/20446068/p/1/e/6/t/1/239271757987.mp4'
{
url
:
'https://cloud.video.taobao.com/play/u/20446068/p/1/e/6/t/1/239271757987.mp4'
,
timeStamp
:
0
,
totalTime
:
0
,
completed
:
false
},
videoSrcArr
:
[],
{
url
:
'https://cloud.video.taobao.com/play/u/20446068/p/1/e/6/t/1/239271757987.mp4'
,
timeStamp
:
0
,
totalTime
:
0
,
completed
:
false
},
{
url
:
'https://cloud.video.taobao.com/play/u/20446068/p/1/e/6/t/1/239271757987.mp4'
,
timeStamp
:
0
,
totalTime
:
0
,
completed
:
false
}
],
// 视频记录 flag
// 视频记录 flag
timeStampCountFlag
:
false
,
timeStampCountFlag
:
false
,
// 视频记录 ms - 增量
// 视频记录 ms - 增量
...
@@ -172,7 +169,12 @@ Page({
...
@@ -172,7 +169,12 @@ Page({
data
.
videoUrlArr
.
forEach
((
item
,
index
)
=>
{
data
.
videoUrlArr
.
forEach
((
item
,
index
)
=>
{
// 获取视频 视频封面 视频小封面
// 获取视频 视频封面 视频小封面
this
.
videoSrcArr
[
index
]
=
{
this
.
videoSrcArr
[
index
]
=
{
url
:
item
.
videoUrl
,
timeStamp
:
0
,
totalTime
:
0
,
completed
:
false
// url: item.videoUrl, timeStamp: 0, totalTime: 0, completed: false
// test - code
url
:
'https://cloud.video.taobao.com/play/u/20446068/p/1/e/6/t/1/239271757987.mp4'
,
timeStamp
:
0
,
totalTime
:
0
,
completed
:
false
// test - code
}
}
this
.
videoImgSrcSmallArr
[
index
]
=
item
.
mainImage
this
.
videoImgSrcSmallArr
[
index
]
=
item
.
mainImage
})
})
...
@@ -298,7 +300,10 @@ Page({
...
@@ -298,7 +300,10 @@ Page({
onReady
()
{
this
.
videoCtx
=
my
.
createVideoContext
(
'videoCtx'
)
},
onReady
()
{
this
.
videoCtx
=
my
.
createVideoContext
(
'videoCtx'
)
},
// 页面显示
// 页面显示
onShow
()
{
if
(
this
.
userLogin
)
this
.
getGameInfo
()
},
onShow
()
{
if
(
this
.
userLogin
)
this
.
getGameInfo
()
this
.
setData
({
missionRefresh
:
true
})
},
// 获取 游戏门票 抽奖次数 今日是否首次登陆
// 获取 游戏门票 抽奖次数 今日是否首次登陆
getGameInfo
()
{
getGameInfo
()
{
...
...
taobao_mini/client/pages/myprize/myprize.js
View file @
6bac692e
...
@@ -195,6 +195,9 @@ Page({
...
@@ -195,6 +195,9 @@ Page({
// }, 5000);
// }, 5000);
const
{
success
,
data
,
message
}
=
res
;
const
{
success
,
data
,
message
}
=
res
;
console
.
log
(
'%c--------领取实物奖品
\
n'
+
'-----yd.receiveObjectPrize
\
n'
,
ConsoleStyle
,
data
)
if
(
success
&&
data
)
{
if
(
success
&&
data
)
{
commonToast
(
'领取成功'
)
commonToast
(
'领取成功'
)
}
else
{
}
else
{
...
...
taobao_mini/client/pages/pagecanvas/output.js
View file @
6bac692e
...
@@ -2080,8 +2080,6 @@ function sendTbNet(netName, parameter, callback, hideMsg) {
...
@@ -2080,8 +2080,6 @@ function sendTbNet(netName, parameter, callback, hideMsg) {
Main_1
.
GDispatcher
.
removeEventListener
(
netName
,
fun
);
Main_1
.
GDispatcher
.
removeEventListener
(
netName
,
fun
);
var
d
=
e
.
data
;
var
d
=
e
.
data
;
dataRecord
[
netName
]
=
d
;
dataRecord
[
netName
]
=
d
;
if
(
!
hideMsg
&&
!
d
.
success
&&
netName
!=
"mine.getPrizeInfo"
&&
netName
!=
"mine.getUserInfo"
)
ctrls_1
.
showToast
(
d
.
message
||
"网络超时"
);
callback
&&
callback
(
d
.
success
,
d
);
callback
&&
callback
(
d
.
success
,
d
);
resolve
(
d
);
resolve
(
d
);
console
.
log
(
"
\n
%c[ request ]
\n
"
console
.
log
(
"
\n
%c[ request ]
\n
"
...
@@ -2550,6 +2548,7 @@ var Root = (function (_super) {
...
@@ -2550,6 +2548,7 @@ var Root = (function (_super) {
this
.
goodsContainer
.
startGoods
();
this
.
goodsContainer
.
startGoods
();
Main_1
.
GDispatcher
.
removeEventListener
(
'MatchCompelete'
,
this
.
gameStart
,
this
);
Main_1
.
GDispatcher
.
removeEventListener
(
'MatchCompelete'
,
this
.
gameStart
,
this
);
this
.
gameStartFlag
=
true
;
this
.
gameStartFlag
=
true
;
this
.
touchArea
.
mouseEnable
=
true
;
};
};
Root
.
prototype
.
gameOver
=
function
()
{
Root
.
prototype
.
gameOver
=
function
()
{
return
__awaiter
(
this
,
void
0
,
void
0
,
function
()
{
return
__awaiter
(
this
,
void
0
,
void
0
,
function
()
{
...
@@ -2559,6 +2558,7 @@ var Root = (function (_super) {
...
@@ -2559,6 +2558,7 @@ var Root = (function (_super) {
case
0
:
case
0
:
this
.
time
=
60
;
this
.
time
=
60
;
this
.
gameStartFlag
=
false
;
this
.
gameStartFlag
=
false
;
this
.
touchArea
.
mouseEnable
=
false
;
if
(
!
this
.
userInfo
.
win
)
if
(
!
this
.
userInfo
.
win
)
this
.
scoreBoard
.
scoreRight
+=
3
;
this
.
scoreBoard
.
scoreRight
+=
3
;
this
.
goodsContainer
.
removeAllGoods
();
this
.
goodsContainer
.
removeAllGoods
();
...
@@ -2593,10 +2593,10 @@ var Root = (function (_super) {
...
@@ -2593,10 +2593,10 @@ var Root = (function (_super) {
this
.
scoreBoard
.
updateScore
(
score
);
this
.
scoreBoard
.
updateScore
(
score
);
};
};
Root
.
prototype
.
createTouchRect
=
function
()
{
Root
.
prototype
.
createTouchRect
=
function
()
{
this
.
touchArea
=
Tools_1
.
Tools
.
getRect
(
750
,
5
74
,
0xff22ff
,
0
);
this
.
touchArea
=
Tools_1
.
Tools
.
getRect
(
750
,
8
74
,
0xff22ff
,
0
);
this
.
touchArea
.
x
=
0
;
this
.
touchArea
.
x
=
0
;
this
.
touchArea
.
y
=
10
50
;
this
.
touchArea
.
y
=
7
50
;
this
.
touchArea
.
mouseEnable
=
tru
e
;
this
.
touchArea
.
mouseEnable
=
fals
e
;
this
.
addChild
(
this
.
touchArea
);
this
.
addChild
(
this
.
touchArea
);
this
.
touchArea
.
addEventListener
(
FYGE
.
MouseEvent
.
MOUSE_DOWN
,
this
.
onMouseDownArea
,
this
);
this
.
touchArea
.
addEventListener
(
FYGE
.
MouseEvent
.
MOUSE_DOWN
,
this
.
onMouseDownArea
,
this
);
this
.
touchArea
.
addEventListener
(
FYGE
.
MouseEvent
.
MOUSE_UP
,
this
.
onMouseUpArea
,
this
);
this
.
touchArea
.
addEventListener
(
FYGE
.
MouseEvent
.
MOUSE_UP
,
this
.
onMouseUpArea
,
this
);
...
@@ -2630,6 +2630,7 @@ var Root = (function (_super) {
...
@@ -2630,6 +2630,7 @@ var Root = (function (_super) {
this
.
guide
.
visible
=
false
;
this
.
guide
.
visible
=
false
;
setTimeout
(
function
()
{
setTimeout
(
function
()
{
ctrls_1
.
showPanel
(
MatchingPanel_1
.
MatchingPanel
,
_this
.
userInfo
);
ctrls_1
.
showPanel
(
MatchingPanel_1
.
MatchingPanel
,
_this
.
userInfo
);
_this
.
guide
.
removeEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
_this
.
guideFunc
,
_this
);
},
200
);
},
200
);
}
}
else
{
else
{
...
@@ -2685,6 +2686,9 @@ var Catecher = (function (_super) {
...
@@ -2685,6 +2686,9 @@ var Catecher = (function (_super) {
__extends
(
Catecher
,
_super
);
__extends
(
Catecher
,
_super
);
function
Catecher
(
root
,
dataInfo
)
{
function
Catecher
(
root
,
dataInfo
)
{
var
_this
=
_super
.
call
(
this
)
||
this
;
var
_this
=
_super
.
call
(
this
)
||
this
;
_this
.
timerNumer
=
60
;
_this
.
lt
=
0
;
_this
.
tt
=
0
;
_this
.
sum
=
function
(
m
,
n
)
{
_this
.
sum
=
function
(
m
,
n
)
{
var
num
=
Math
.
floor
(
Math
.
random
()
*
(
m
-
n
)
+
n
);
var
num
=
Math
.
floor
(
Math
.
random
()
*
(
m
-
n
)
+
n
);
return
num
;
return
num
;
...
@@ -2736,8 +2740,7 @@ var Catecher = (function (_super) {
...
@@ -2736,8 +2740,7 @@ var Catecher = (function (_super) {
.
to
({
x
:
424
,
alpha
:
1
},
100
);
.
to
({
x
:
424
,
alpha
:
1
},
100
);
};
};
Catecher
.
prototype
.
destroy
=
function
()
{
Catecher
.
prototype
.
destroy
=
function
()
{
clearInterval
(
this
.
timerFunc
);
this
.
removeEventListener
(
FYGE
.
Event
.
ENTER_FRAME
,
this
.
timerFunc
,
this
);
this
.
timerFunc
=
null
;
};
};
Catecher
.
prototype
.
updateScore
=
function
(
score
)
{
Catecher
.
prototype
.
updateScore
=
function
(
score
)
{
var
scoreNow
=
score
+
this
.
scoreLeft
;
var
scoreNow
=
score
+
this
.
scoreLeft
;
...
@@ -2788,26 +2791,39 @@ var Catecher = (function (_super) {
...
@@ -2788,26 +2791,39 @@ var Catecher = (function (_super) {
this
.
userScore_right
.
updateScore
(
this
.
scoreRight
);
this
.
userScore_right
.
updateScore
(
this
.
scoreRight
);
};
};
Catecher
.
prototype
.
stopTime
=
function
()
{
Catecher
.
prototype
.
stopTime
=
function
()
{
clearInterval
(
this
.
timerFunc
);
this
.
removeEventListener
(
FYGE
.
Event
.
ENTER_FRAME
,
this
.
timerFunc
,
this
);
this
.
timerFunc
=
null
;
};
};
Catecher
.
prototype
.
start
=
function
(
time
)
{
Catecher
.
prototype
.
start
=
function
(
time
)
{
var
_this
=
this
;
this
.
scoreLeft
=
0
;
this
.
scoreLeft
=
0
;
this
.
scoreRight
=
0
;
this
.
scoreRight
=
0
;
this
.
timerNumer
=
time
;
this
.
timerNumer
=
time
;
this
.
updateTime
(
this
.
timerNumer
);
this
.
updateTime
(
this
.
timerNumer
);
this
.
timerFunc
=
setInterval
(
function
()
{
this
.
addEventListener
(
FYGE
.
Event
.
ENTER_FRAME
,
this
.
timerFunc
,
this
);
if
(
_this
.
timerNumer
<=
0
)
{
};
_this
.
_root
.
gameOver
();
Catecher
.
prototype
.
timerFunc
=
function
()
{
clearInterval
(
_this
.
timerFunc
);
if
(
!
this
.
_root
.
gameStartFlag
)
_this
.
timerFunc
=
null
;
return
;
_this
.
updateTime
(
0
);
if
(
this
.
timerNumer
<=
0
)
{
this
.
_root
.
gameOver
();
this
.
updateTime
(
0
);
this
.
lt
=
this
.
tt
=
0
;
this
.
removeEventListener
(
FYGE
.
Event
.
ENTER_FRAME
,
this
.
timerFunc
,
this
);
return
;
}
if
(
this
.
lt
)
{
var
nt
=
new
Date
().
getTime
();
var
dt
=
nt
-
this
.
lt
;
this
.
tt
+=
dt
/
1000
>>
0
;
var
ntt
=
60
-
this
.
tt
;
if
(
ntt
!=
this
.
timerNumer
)
{
this
.
timerNumer
=
ntt
;
this
.
updateTime
(
this
.
timerNumer
);
this
.
lt
=
nt
;
}
}
}
else
{
else
{
_this
.
updateTime
(
--
_this
.
timerNumer
);
this
.
lt
=
new
Date
().
getTime
(
);
}
}
},
1000
);
};
};
Catecher
.
prototype
.
updateTime
=
function
(
time
)
{
Catecher
.
prototype
.
updateTime
=
function
(
time
)
{
this
.
timeText
.
text
=
time
.
toString
()
+
'S'
;
this
.
timeText
.
text
=
time
.
toString
()
+
'S'
;
...
@@ -2841,7 +2857,8 @@ var Catecher = (function (_super) {
...
@@ -2841,7 +2857,8 @@ var Catecher = (function (_super) {
c
.
width
=
120
;
c
.
width
=
120
;
c
.
height
=
120
;
c
.
height
=
120
;
var
a
=
Tools_1
.
Tools
.
getCircle
(
60
,
0x000000
,
1
,
60
,
60
);
var
a
=
Tools_1
.
Tools
.
getCircle
(
60
,
0x000000
,
1
,
60
,
60
);
var
p
=
Tools_1
.
Tools
.
getSprite
(
avatar
,
0
,
0
);
var
p
=
FYGE
.
Sprite
.
fromUrl
(
avatar
);
p
.
x
=
p
.
y
=
0
;
p
.
width
=
120
;
p
.
width
=
120
;
p
.
height
=
120
;
p
.
height
=
120
;
c
[
'updateAvatar'
]
=
function
(
avatar
)
{
p
.
texture
=
RES_1
.
RES
.
getRes
(
avatar
);
};
c
[
'updateAvatar'
]
=
function
(
avatar
)
{
p
.
texture
=
RES_1
.
RES
.
getRes
(
avatar
);
};
...
@@ -4999,6 +5016,7 @@ var FailedPanel = (function (_super) {
...
@@ -4999,6 +5016,7 @@ var FailedPanel = (function (_super) {
playAgainBtn
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
back
,
this
);
playAgainBtn
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
back
,
this
);
};
};
FailedPanel
.
prototype
.
back
=
function
()
{
FailedPanel
.
prototype
.
back
=
function
()
{
this
.
hidePanel
();
TaoBaoNet_1
.
sendTbNet
(
TaoBaoNet_1
.
TbNetName
.
backToPage
,
{},
function
(
s
,
res
)
{
console
.
log
(
'backToPage'
);
});
TaoBaoNet_1
.
sendTbNet
(
TaoBaoNet_1
.
TbNetName
.
backToPage
,
{},
function
(
s
,
res
)
{
console
.
log
(
'backToPage'
);
});
};
};
return
FailedPanel
;
return
FailedPanel
;
...
@@ -5091,12 +5109,13 @@ var MatchingPanel = (function (_super) {
...
@@ -5091,12 +5109,13 @@ var MatchingPanel = (function (_super) {
leftAvatarBg
.
y
=
-
25
;
leftAvatarBg
.
y
=
-
25
;
lContainer
.
addChild
(
leftAvatarBg
);
lContainer
.
addChild
(
leftAvatarBg
);
var
leftAvatar
=
FYGE
.
Sprite
.
fromUrl
(
this
.
data
.
userImgUrl
);
var
leftAvatar
=
FYGE
.
Sprite
.
fromUrl
(
this
.
data
.
userImgUrl
);
leftAvatar
.
x
=
leftAvatarBg
.
x
;
leftAvatar
.
width
=
leftAvatar
.
height
=
120
;
leftAvatar
.
x
=
leftAvatarBg
.
x
+
(
leftAvatarBg
.
width
-
leftAvatar
.
width
>>
1
);
leftAvatar
.
y
=
-
25
;
leftAvatar
.
y
=
-
25
;
lContainer
.
addChild
(
leftAvatar
);
lContainer
.
addChild
(
leftAvatar
);
var
lcircle
=
Tools_1
.
Tools
.
getCircle
(
50
,
0xffff00
);
var
lcircle
=
Tools_1
.
Tools
.
getCircle
(
50
,
0xffff00
);
lcircle
.
x
=
23
2
;
lcircle
.
x
=
leftAvatarBg
.
x
+
5
2
;
lcircle
.
y
=
2
6
;
lcircle
.
y
=
2
8
;
lContainer
.
addChild
(
lcircle
);
lContainer
.
addChild
(
lcircle
);
leftAvatar
.
mask
=
lcircle
;
leftAvatar
.
mask
=
lcircle
;
var
lnickName
=
Tools_1
.
Tools
.
getText
(
this
.
data
.
userName
,
30
,
"#fff"
,
FYGE
.
TEXT_ALIGN
.
RIGHT
,
180
);
var
lnickName
=
Tools_1
.
Tools
.
getText
(
this
.
data
.
userName
,
30
,
"#fff"
,
FYGE
.
TEXT_ALIGN
.
RIGHT
,
180
);
...
@@ -5114,12 +5133,13 @@ var MatchingPanel = (function (_super) {
...
@@ -5114,12 +5133,13 @@ var MatchingPanel = (function (_super) {
rightAvatarBg
.
y
=
-
25
;
rightAvatarBg
.
y
=
-
25
;
rContainer
.
addChild
(
rightAvatarBg
);
rContainer
.
addChild
(
rightAvatarBg
);
var
rightAvatar
=
FYGE
.
Sprite
.
fromUrl
(
this
.
data
.
fakeUserImgUrl
);
var
rightAvatar
=
FYGE
.
Sprite
.
fromUrl
(
this
.
data
.
fakeUserImgUrl
);
rightAvatar
.
x
=
rightAvatarBg
.
x
;
rightAvatar
.
width
=
rightAvatar
.
height
=
120
;
rightAvatar
.
x
=
rightAvatarBg
.
x
+
(
rightAvatarBg
.
width
-
rightAvatar
.
width
>>
1
);
rightAvatar
.
y
=
-
25
;
rightAvatar
.
y
=
-
25
;
rContainer
.
addChild
(
rightAvatar
);
rContainer
.
addChild
(
rightAvatar
);
var
rcircle
=
Tools_1
.
Tools
.
getCircle
(
50
,
0xffff00
);
var
rcircle
=
Tools_1
.
Tools
.
getCircle
(
50
,
0xffff00
);
rcircle
.
x
=
right
.
width
-
23
2
;
rcircle
.
x
=
right
.
width
-
23
4
;
rcircle
.
y
=
2
6
;
rcircle
.
y
=
2
8
;
rContainer
.
addChild
(
rcircle
);
rContainer
.
addChild
(
rcircle
);
rightAvatar
.
mask
=
rcircle
;
rightAvatar
.
mask
=
rcircle
;
var
rnickName
=
Tools_1
.
Tools
.
getText
(
this
.
data
.
fakeUserName
,
30
,
"#fff"
,
FYGE
.
TEXT_ALIGN
.
LEFT
,
180
);
var
rnickName
=
Tools_1
.
Tools
.
getText
(
this
.
data
.
fakeUserName
,
30
,
"#fff"
,
FYGE
.
TEXT_ALIGN
.
LEFT
,
180
);
...
@@ -5208,6 +5228,7 @@ var SuccessNoAwardPanel = (function (_super) {
...
@@ -5208,6 +5228,7 @@ var SuccessNoAwardPanel = (function (_super) {
playAgainBtn
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
back
,
this
);
playAgainBtn
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
back
,
this
);
};
};
SuccessNoAwardPanel
.
prototype
.
back
=
function
()
{
SuccessNoAwardPanel
.
prototype
.
back
=
function
()
{
this
.
hidePanel
();
TaoBaoNet_1
.
sendTbNet
(
TaoBaoNet_1
.
TbNetName
.
backToPage
,
{},
function
(
s
,
res
)
{
console
.
log
(
'backToPage'
);
});
TaoBaoNet_1
.
sendTbNet
(
TaoBaoNet_1
.
TbNetName
.
backToPage
,
{},
function
(
s
,
res
)
{
console
.
log
(
'backToPage'
);
});
};
};
return
SuccessNoAwardPanel
;
return
SuccessNoAwardPanel
;
...
@@ -5283,9 +5304,11 @@ var SuccessPanel = (function (_super) {
...
@@ -5283,9 +5304,11 @@ var SuccessPanel = (function (_super) {
seePrizeBtn
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
seePrize
,
this
);
seePrizeBtn
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
seePrize
,
this
);
};
};
SuccessPanel
.
prototype
.
back
=
function
()
{
SuccessPanel
.
prototype
.
back
=
function
()
{
this
.
hidePanel
();
TaoBaoNet_1
.
sendTbNet
(
TaoBaoNet_1
.
TbNetName
.
backToPage
,
{},
function
(
s
,
res
)
{
console
.
log
(
'backToPage'
);
});
TaoBaoNet_1
.
sendTbNet
(
TaoBaoNet_1
.
TbNetName
.
backToPage
,
{},
function
(
s
,
res
)
{
console
.
log
(
'backToPage'
);
});
};
};
SuccessPanel
.
prototype
.
seePrize
=
function
()
{
SuccessPanel
.
prototype
.
seePrize
=
function
()
{
this
.
hidePanel
();
TaoBaoNet_1
.
sendTbNet
(
TaoBaoNet_1
.
TbNetName
.
seePrize
,
{},
function
(
s
,
res
)
{
console
.
log
(
'backToPage'
);
});
TaoBaoNet_1
.
sendTbNet
(
TaoBaoNet_1
.
TbNetName
.
seePrize
,
{},
function
(
s
,
res
)
{
console
.
log
(
'backToPage'
);
});
};
};
return
SuccessPanel
;
return
SuccessPanel
;
...
@@ -15224,7 +15247,7 @@ exports.Star = Star;
...
@@ -15224,7 +15247,7 @@ exports.Star = Star;
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
exports
.
config
=
void
0
;
exports
.
config
=
void
0
;
exports
.
config
=
{
exports
.
config
=
{
time
:
12
0
,
time
:
12
,
first
:
1000
,
first
:
1000
,
second
:
2000
,
second
:
2000
,
third
:
3000
,
third
:
3000
,
...
@@ -15423,7 +15446,7 @@ var XxlScene = (function (_super) {
...
@@ -15423,7 +15446,7 @@ var XxlScene = (function (_super) {
this
.
time
.
textWidth
=
50
;
this
.
time
.
textWidth
=
50
;
}
}
this
.
time
.
x
=
Ins_1
.
Ins
.
stageW
/
2
-
this
.
time
.
textWidth
/
2
-
15
;
this
.
time
.
x
=
Ins_1
.
Ins
.
stageW
/
2
-
this
.
time
.
textWidth
/
2
-
15
;
this
.
time
.
y
=
(
timerBg
.
height
>>
1
)
-
(
this
.
time
.
textHeight
>>
1
)
-
4
;
this
.
time
.
y
=
(
timerBg
.
height
>>
1
)
-
(
this
.
time
.
textHeight
>>
1
)
-
8
;
this
.
time
.
bold
=
true
;
this
.
time
.
bold
=
true
;
this
.
time
.
stroke
=
1
;
this
.
time
.
stroke
=
1
;
this
.
time
.
strokeColor
=
"#f6787c"
;
this
.
time
.
strokeColor
=
"#f6787c"
;
...
@@ -15433,14 +15456,15 @@ var XxlScene = (function (_super) {
...
@@ -15433,14 +15456,15 @@ var XxlScene = (function (_super) {
avatarBg
.
x
=
55
;
avatarBg
.
x
=
55
;
avatarBg
.
y
=
78
-
(
avatarBg
.
height
>>
1
);
avatarBg
.
y
=
78
-
(
avatarBg
.
height
>>
1
);
leftUserContainer
.
addChild
(
avatarBg
);
leftUserContainer
.
addChild
(
avatarBg
);
circle
=
Tools_1
.
Tools
.
getCircle
(
4
8
,
0xffff00
);
circle
=
Tools_1
.
Tools
.
getCircle
(
4
9
,
0xffff00
);
console
.
log
(
avatarBg
.
x
,
avatarBg
.
y
);
console
.
log
(
avatarBg
.
x
,
avatarBg
.
y
);
circle
.
x
=
10
6
;
circle
.
x
=
10
8
;
circle
.
y
=
7
7
;
circle
.
y
=
7
8
;
leftUserContainer
.
addChild
(
circle
);
leftUserContainer
.
addChild
(
circle
);
this
.
lavatar
=
FYGE
.
Sprite
.
fromUrl
(
this
.
userInfo
.
userImgUrl
);
this
.
lavatar
=
FYGE
.
Sprite
.
fromUrl
(
this
.
userInfo
.
userImgUrl
);
this
.
lavatar
.
width
=
this
.
lavatar
.
height
=
120
;
this
.
lavatar
.
mask
=
circle
;
this
.
lavatar
.
mask
=
circle
;
this
.
lavatar
.
x
=
6
0
;
this
.
lavatar
.
x
=
5
0
;
this
.
lavatar
.
y
=
78
-
(
avatarBg
.
height
>>
1
);
this
.
lavatar
.
y
=
78
-
(
avatarBg
.
height
>>
1
);
leftUserContainer
.
addChild
(
this
.
lavatar
);
leftUserContainer
.
addChild
(
this
.
lavatar
);
this
.
lscore
=
Tools_1
.
Tools
.
getText
(
"0"
,
30
,
"#ffffff"
,
FYGE
.
TEXT_ALIGN
.
LEFT
);
this
.
lscore
=
Tools_1
.
Tools
.
getText
(
"0"
,
30
,
"#ffffff"
,
FYGE
.
TEXT_ALIGN
.
LEFT
);
...
@@ -15473,11 +15497,12 @@ var XxlScene = (function (_super) {
...
@@ -15473,11 +15497,12 @@ var XxlScene = (function (_super) {
ravatarBg
.
x
=
Ins_1
.
Ins
.
stageW
-
55
-
ravatarBg
.
width
;
ravatarBg
.
x
=
Ins_1
.
Ins
.
stageW
-
55
-
ravatarBg
.
width
;
ravatarBg
.
y
=
78
-
(
ravatarBg
.
width
>>
1
);
ravatarBg
.
y
=
78
-
(
ravatarBg
.
width
>>
1
);
this
.
rightUserContainer
.
addChild
(
ravatarBg
);
this
.
rightUserContainer
.
addChild
(
ravatarBg
);
circle2
=
Tools_1
.
Tools
.
getCircle
(
4
8
,
0xffff00
);
circle2
=
Tools_1
.
Tools
.
getCircle
(
4
9
,
0xffff00
);
circle2
.
x
=
Ins_1
.
Ins
.
stageW
-
ravatarBg
.
width
-
3
;
circle2
.
x
=
Ins_1
.
Ins
.
stageW
-
ravatarBg
.
width
-
2
;
circle2
.
y
=
7
7
;
circle2
.
y
=
7
8
;
this
.
rightUserContainer
.
addChild
(
circle2
);
this
.
rightUserContainer
.
addChild
(
circle2
);
this
.
ravatar
=
FYGE
.
Sprite
.
fromUrl
(
this
.
userInfo
.
fakeUserImgUrl
);
this
.
ravatar
=
FYGE
.
Sprite
.
fromUrl
(
this
.
userInfo
.
fakeUserImgUrl
);
this
.
ravatar
.
width
=
this
.
ravatar
.
height
=
120
;
this
.
ravatar
.
mask
=
circle2
;
this
.
ravatar
.
mask
=
circle2
;
this
.
ravatar
.
x
=
Ins_1
.
Ins
.
stageW
-
50
-
ravatarBg
.
width
;
this
.
ravatar
.
x
=
Ins_1
.
Ins
.
stageW
-
50
-
ravatarBg
.
width
;
this
.
ravatar
.
y
=
78
-
(
ravatarBg
.
height
>>
1
);
this
.
ravatar
.
y
=
78
-
(
ravatarBg
.
height
>>
1
);
...
@@ -15745,13 +15770,14 @@ var XxlScene = (function (_super) {
...
@@ -15745,13 +15770,14 @@ var XxlScene = (function (_super) {
return
__generator
(
this
,
function
(
_a
)
{
return
__generator
(
this
,
function
(
_a
)
{
switch
(
_a
.
label
)
{
switch
(
_a
.
label
)
{
case
0
:
case
0
:
if
(
!!
this
.
isGameEnd
)
return
[
3
,
2
];
this
.
isGameEnd
=
true
;
this
.
isGameEnd
=
true
;
return
[
4
,
TaoBaoNet_1
.
sendTbNet
(
TaoBaoNet_1
.
TbNetName
.
getPrizeInfo
)];
return
[
4
,
TaoBaoNet_1
.
sendTbNet
(
TaoBaoNet_1
.
TbNetName
.
getPrizeInfo
)];
case
1
:
case
1
:
prizeInfo
=
_a
.
sent
();
prizeInfo
=
_a
.
sent
();
if
(
this
.
userInfo
.
win
)
{
if
(
this
.
userInfo
.
win
)
{
prize
=
prizeInfo
.
data
;
prize
=
prizeInfo
.
data
;
if
(
prize
.
type
>
3
)
{
if
(
prize
.
type
<=
3
)
{
ctrls_1
.
showPanel
(
SuccessPanel_1
.
SuccessPanel
,
prize
);
ctrls_1
.
showPanel
(
SuccessPanel_1
.
SuccessPanel
,
prize
);
}
}
else
{
else
{
...
@@ -15761,7 +15787,8 @@ var XxlScene = (function (_super) {
...
@@ -15761,7 +15787,8 @@ var XxlScene = (function (_super) {
else
{
else
{
ctrls_1
.
showPanel
(
FailedPanel_1
.
FailedPanel
);
ctrls_1
.
showPanel
(
FailedPanel_1
.
FailedPanel
);
}
}
return
[
2
];
_a
.
label
=
2
;
case
2
:
return
[
2
];
}
}
});
});
});
});
...
...
taobao_mini/client/pages/turnTablePage/turnTablePage.js
View file @
6bac692e
...
@@ -101,10 +101,12 @@ Page({
...
@@ -101,10 +101,12 @@ Page({
return
return
}
}
// const { success, data } = await API.lottery({ activityId: this.activityId }).catch(res => {
const
{
success
,
data
}
=
await
API
.
drawLotteryPrize
({
activityId
:
this
.
activityId
,
prizeDataType
:
3
}).
catch
(
res
=>
{
const
{
success
,
data
}
=
await
API
.
drawLotteryPrize
({
activityId
:
this
.
activityId
,
prizeDataType
:
3
}).
catch
(
res
=>
{
commonToast
(
res
&&
res
.
message
)
commonToast
(
res
&&
res
.
message
)
return
return
})
||
{}
})
||
{}
console
.
log
(
'%c--------领取实物奖品
\
n'
+
'-----yd.receiveObjectPrize
\
n'
,
ConsoleStyle
,
data
)
// test code -
// test code -
// let success = true
// let success = 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