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
4087db6a
Commit
4087db6a
authored
Sep 29, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
头像居中
parent
46214a0f
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
4953 additions
and
39 deletions
+4953
-39
tmallCat.getUserInfo.json
...ect/src/canvas/game/mock/miniTb/tmallCat.getUserInfo.json
+1
-1
output.js
project/src/canvas/game/output.js
+2
-2
output.js.map
project/src/canvas/game/output.js.map
+1
-1
output.js
project/src/canvas/game/released/output.js
+2
-2
MainSceneBtnUi.ts
project/src/canvas/game/src/ui/MainSceneBtnUi.ts
+2
-2
output.js
taobao_mini/client/pages/pagecanvas/output.js
+2
-2
pagecanvas.js
taobao_mini/client/pages/pagecanvas/pagecanvas.js
+3
-29
debug.log
taobao_mini/debug.log
+4940
-0
No files found.
project/src/canvas/game/mock/miniTb/tmallCat.getUserInfo.json
View file @
4087db6a
...
...
@@ -8,7 +8,7 @@
"happyCoin"
:
1000
,
"experience"
:
80
,
"level"
:
"1"
,
"avatar"
:
"http://wwc.alicdn.com/avatar/getAvatar.do?userIdStr=
vFHbMm8SPFPHPFRHPG7HPmPhvmgyPGPIP07-OF*eMm
QT&width=80&height=80&type=sns"
,
"avatar"
:
"http://wwc.alicdn.com/avatar/getAvatar.do?userIdStr=
Pk*HOFxSPCNGOHgyX8R-MGIyPCZzPk8uOmHuvkxYOH
QT&width=80&height=80&type=sns"
,
"sence"
:
1
,
"catName"
:
"哈哈哈"
,
"senceTips"
:[
"1说话说话说话说话说话说话说话说话说话说话说话"
,
"2说话说话说话说话说话说话说话说话说话说话说话说话"
,
"3说话说话说话说话说话说话说话说话说话说话说话说话"
],
...
...
project/src/canvas/game/output.js
View file @
4087db6a
...
...
@@ -47537,7 +47537,7 @@ var MainSceneBtnUi = (function (_super) {
that.catAvatar = new FYGE.Sprite();
that.catInfoGroup.addChild(that.catAvatar);
var mask = new FYGE.Shape();
mask.beginFill(6,
1
);
mask.beginFill(6,
0.2
);
mask.drawCircle(0, 0, 24);
mask.endFill();
mask.position.set(33, 33);
...
...
@@ -47596,7 +47596,7 @@ var MainSceneBtnUi = (function (_super) {
that.catAvatar.texture = FYGE.Texture.fromUrl(avatar);
that.catAvatar.width = 52;
that.catAvatar.height = 52;
that.catAvatar.x = that.catAvatar.y =
5
;
that.catAvatar.x = that.catAvatar.y =
6
;
that.catNameLabel.text = catName;
that.catLevelLabel.text = "Lv." + level;
that.fishPointLabel.text = "" + happyCoin;
project/src/canvas/game/output.js.map
View file @
4087db6a
This diff is collapsed.
Click to expand it.
project/src/canvas/game/released/output.js
View file @
4087db6a
...
...
@@ -47539,7 +47539,7 @@ var MainSceneBtnUi = (function (_super) {
that.catAvatar = new FYGE.Sprite();
that.catInfoGroup.addChild(that.catAvatar);
var mask = new FYGE.Shape();
mask.beginFill(6,
1
);
mask.beginFill(6,
0.2
);
mask.drawCircle(0, 0, 24);
mask.endFill();
mask.position.set(33, 33);
...
...
@@ -47598,7 +47598,7 @@ var MainSceneBtnUi = (function (_super) {
that.catAvatar.texture = FYGE.Texture.fromUrl(avatar);
that.catAvatar.width = 52;
that.catAvatar.height = 52;
that.catAvatar.x = that.catAvatar.y =
5
;
that.catAvatar.x = that.catAvatar.y =
6
;
that.catNameLabel.text = catName;
that.catLevelLabel.text = "Lv." + level;
that.fishPointLabel.text = "" + happyCoin;
project/src/canvas/game/src/ui/MainSceneBtnUi.ts
View file @
4087db6a
...
...
@@ -114,7 +114,7 @@ export class MainSceneBtnUi extends Module {
that
.
catAvatar
=
new
FYGE
.
Sprite
();
that
.
catInfoGroup
.
addChild
(
that
.
catAvatar
);
var
mask
=
new
FYGE
.
Shape
();
mask
.
beginFill
(
6
,
1
);
mask
.
beginFill
(
6
,
0.2
);
mask
.
drawCircle
(
0
,
0
,
24
)
mask
.
endFill
();
mask
.
position
.
set
(
33
,
33
)
...
...
@@ -186,7 +186,7 @@ export class MainSceneBtnUi extends Module {
that
.
catAvatar
.
texture
=
FYGE
.
Texture
.
fromUrl
(
avatar
);
that
.
catAvatar
.
width
=
52
;
that
.
catAvatar
.
height
=
52
;
that
.
catAvatar
.
x
=
that
.
catAvatar
.
y
=
5
that
.
catAvatar
.
x
=
that
.
catAvatar
.
y
=
6
;
that
.
catNameLabel
.
text
=
catName
;
that
.
catLevelLabel
.
text
=
"Lv."
+
level
;
that
.
fishPointLabel
.
text
=
""
+
happyCoin
;
...
...
taobao_mini/client/pages/pagecanvas/output.js
View file @
4087db6a
...
...
@@ -47539,7 +47539,7 @@ var MainSceneBtnUi = (function (_super) {
that.catAvatar = new FYGE.Sprite();
that.catInfoGroup.addChild(that.catAvatar);
var mask = new FYGE.Shape();
mask.beginFill(6,
1
);
mask.beginFill(6,
0.2
);
mask.drawCircle(0, 0, 24);
mask.endFill();
mask.position.set(33, 33);
...
...
@@ -47598,7 +47598,7 @@ var MainSceneBtnUi = (function (_super) {
that.catAvatar.texture = FYGE.Texture.fromUrl(avatar);
that.catAvatar.width = 52;
that.catAvatar.height = 52;
that.catAvatar.x = that.catAvatar.y =
5
;
that.catAvatar.x = that.catAvatar.y =
6
;
that.catNameLabel.text = catName;
that.catLevelLabel.text = "Lv." + level;
that.fishPointLabel.text = "" + happyCoin;
taobao_mini/client/pages/pagecanvas/pagecanvas.js
View file @
4087db6a
...
...
@@ -95,7 +95,7 @@ Page({
console
.
log
(
'on ready'
)
//授权和登录先搞
await
this
.
getAuth
();
//
await this.getAuth();
// this.initCanvas();
my
.
__onMessage__
=
(
e
)
=>
{
this
.
onMessage
(
e
)
...
...
@@ -188,9 +188,6 @@ Page({
onCanvasReady
(
query
)
{
console
.
log
(
'onCanvasReady'
,
query
)
setInterval
(()
=>
{
console
.
log
(
"测试测试测试"
)
},
2000
)
//授权和登录先搞
checkSystem
().
then
(
r
=>
{
if
(
r
)
{
...
...
@@ -301,10 +298,9 @@ Page({
onShow
()
{
// 页面显示
if
(
this
.
main
)
{
console
.
log
(
"界面显示"
)
this
.
main
.
run
();
this
.
main
.
dispatchGlobalEvent
(
"onShow"
);
this
.
showPageLogin
();
my
.
__updateUserInfo__
();
}
},
...
...
@@ -313,7 +309,6 @@ Page({
if
(
this
.
main
)
{
this
.
main
.
pause
();
this
.
main
.
dispatchGlobalEvent
(
"onHide"
);
console
.
log
(
"主页面隐藏"
)
}
},
...
...
@@ -381,27 +376,6 @@ Page({
this
.
initCanvas
();
}
},
/**页面显示登录 */
async
showPageLogin
()
{
const
{
nickName
,
avatar
}
=
app
;
const
{
success
,
data
,
}
=
await
API
.
login
({
userNick
:
nickName
,
avatar
}).
catch
(
res
=>
{
commonToast
(
res
&&
res
.
message
);
})
||
{};
if
(
success
)
{
app
.
openId
=
data
.
openId
;
my
.
__updateUserInfo__
();
}
},
/**刷新用户信息 */
updateUserInfo
()
{
console
.
log
(
"通知canvas刷新用户信息"
)
...
...
taobao_mini/debug.log
View file @
4087db6a
This diff is collapsed.
Click to expand it.
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