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
48d12a7f
Commit
48d12a7f
authored
Sep 25, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
e0110573
Changes
12
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
3218 additions
and
92 deletions
+3218
-92
output.js
project/src/canvas/game/output.js
+16
-22
output.js.map
project/src/canvas/game/output.js.map
+1
-1
output.js
project/src/canvas/game/released/output.js
+16
-22
resCanvasList.js
project/src/canvas/game/resCanvasList.js
+4
-4
ResJson.ts
project/src/canvas/game/src/ResJson.ts
+1
-1
MainScene.ts
project/src/canvas/game/src/scenes/MainScene.ts
+21
-16
MainSceneBtnUi.ts
project/src/canvas/game/src/ui/MainSceneBtnUi.ts
+6
-1
comcatbackbed.js
taobao_mini/client/components/comcatbackbed/comcatbackbed.js
+1
-1
comrecallcat.js
taobao_mini/client/components/comrecallcat/comrecallcat.js
+2
-1
output.js
taobao_mini/client/pages/pagecanvas/output.js
+16
-22
pagecanvas.js
taobao_mini/client/pages/pagecanvas/pagecanvas.js
+2
-1
debug.log
taobao_mini/debug.log
+3132
-0
No files found.
project/src/canvas/game/output.js
View file @
48d12a7f
...
@@ -1827,25 +1827,25 @@ const resCanvasList = {
...
@@ -1827,25 +1827,25 @@ const resCanvasList = {
'60d6bb5e-5af1-459d-8a0f-ac7a3edcb703': {
'60d6bb5e-5af1-459d-8a0f-ac7a3edcb703': {
name: 'exLoadingBg',
name: 'exLoadingBg',
ext: '.png',
ext: '.png',
url: '//yun.duiba.com.cn/spark/assets/exLoadingBg.a9104e208e4d425d0dc3fef446acae78d3e2753f.png',
url: '
https:
//yun.duiba.com.cn/spark/assets/exLoadingBg.a9104e208e4d425d0dc3fef446acae78d3e2753f.png',
uuid: '60d6bb5e-5af1-459d-8a0f-ac7a3edcb703'
uuid: '60d6bb5e-5af1-459d-8a0f-ac7a3edcb703'
},
},
'f2a39dcf-acc3-4cc8-9dd1-e82e915048db': {
'f2a39dcf-acc3-4cc8-9dd1-e82e915048db': {
name: 'exLoadingFront',
name: 'exLoadingFront',
ext: '.png',
ext: '.png',
url: '//yun.duiba.com.cn/spark/assets/exLoadingFront.a21f9697486f4433973e5f521ff9d6a978098503.png',
url: '
https:
//yun.duiba.com.cn/spark/assets/exLoadingFront.a21f9697486f4433973e5f521ff9d6a978098503.png',
uuid: 'f2a39dcf-acc3-4cc8-9dd1-e82e915048db'
uuid: 'f2a39dcf-acc3-4cc8-9dd1-e82e915048db'
},
},
'3e9351dd-787d-4dca-bbf3-793d129c6332': {
'3e9351dd-787d-4dca-bbf3-793d129c6332': {
name: 'shapGoBtn',
name: 'shapGoBtn',
ext: '.png',
ext: '.png',
url: '//yun.duiba.com.cn/spark/assets/shapGoBtn.78caf5d5af696b5510dd675e626089a320a5c3f1.png',
url: '
https:
//yun.duiba.com.cn/spark/assets/shapGoBtn.78caf5d5af696b5510dd675e626089a320a5c3f1.png',
uuid: '3e9351dd-787d-4dca-bbf3-793d129c6332'
uuid: '3e9351dd-787d-4dca-bbf3-793d129c6332'
},
},
'dba58651-57a3-4b75-9447-0e4d498dd8cd': {
'dba58651-57a3-4b75-9447-0e4d498dd8cd': {
name: 'shapGoBtn1',
name: 'shapGoBtn1',
ext: '.png',
ext: '.png',
url: '//yun.duiba.com.cn/spark/assets/shapGoBtn1.d4d2cbdd9ab87642e34600c20ca627c9a377ffb7.png',
url: '
https:
//yun.duiba.com.cn/spark/assets/shapGoBtn1.d4d2cbdd9ab87642e34600c20ca627c9a377ffb7.png',
uuid: 'dba58651-57a3-4b75-9447-0e4d498dd8cd'
uuid: 'dba58651-57a3-4b75-9447-0e4d498dd8cd'
}
}
};
};
...
@@ -46752,8 +46752,13 @@ var MainScene = (function (_super) {
...
@@ -46752,8 +46752,13 @@ var MainScene = (function (_super) {
return;
return;
}
}
else {
else {
if (Ins_1.Ins.userInfo.energy != r.data.energyMax) {
that.getUserEnergy();
that.getUserEnergy();
}
}
else {
return;
}
}
}
}
else {
else {
Ins_1.Ins.showToast(r.message);
Ins_1.Ins.showToast(r.message);
...
@@ -46808,22 +46813,6 @@ var MainScene = (function (_super) {
...
@@ -46808,22 +46813,6 @@ var MainScene = (function (_super) {
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.getUserInfo, {}, function (s, r) {
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.getUserInfo, {}, function (s, r) {
if (s) {
if (s) {
Ins_1.Ins.userInfo = r.data;
Ins_1.Ins.userInfo = r.data;
if (r.data.sence > 3) {
Ins_1.Ins.catIsOut = true;
that.cat.visible = false;
that.cat.stopCatAct();
that.mainUi.changeBtnByCatIsOuT(Ins_1.Ins.curScene);
if (Ins_1.Ins.curScene == 3) {
that.letter.visible = true;
}
}
else {
if (Ins_1.Ins.catIsOut) {
that.cat.visible = true;
that.letter.visible = false;
}
Ins_1.Ins.catIsOut = false;
}
that.setEnergy();
that.setEnergy();
that.mainUi.updateUserInfo();
that.mainUi.updateUserInfo();
}
}
...
@@ -47086,7 +47075,12 @@ var MainSceneBtnUi = (function (_super) {
...
@@ -47086,7 +47075,12 @@ var MainSceneBtnUi = (function (_super) {
MainSceneBtnUi.prototype.updateUserInfo = function () {
MainSceneBtnUi.prototype.updateUserInfo = function () {
var that = this;
var that = this;
var _a = Ins_1.Ins.userInfo, catName = _a.catName, happyCoin = _a.happyCoin, level = _a.level, avatar = _a.avatar, experience = _a.experience, experienceMax = _a.experienceMax;
var _a = Ins_1.Ins.userInfo, catName = _a.catName, happyCoin = _a.happyCoin, level = _a.level, avatar = _a.avatar, experience = _a.experience, experienceMax = _a.experienceMax;
that.catAvatar.texture = RES_1.RES.getRes(avatar);
var type = avatar.substring(avatar.lastIndexOf(".") + 1, avatar.length);
var avatar1 = avatar;
if (type != 'png' && type != 'jpg') {
avatar1 = avatar + '.jpg';
}
that.catAvatar.texture = RES_1.RES.getRes(avatar1);
that.catAvatar.width = 52;
that.catAvatar.width = 52;
that.catAvatar.height = 52;
that.catAvatar.height = 52;
that.catAvatar.x = that.catAvatar.y = 5;
that.catAvatar.x = that.catAvatar.y = 5;
project/src/canvas/game/output.js.map
View file @
48d12a7f
This diff is collapsed.
Click to expand it.
project/src/canvas/game/released/output.js
View file @
48d12a7f
...
@@ -1829,25 +1829,25 @@ const resCanvasList = {
...
@@ -1829,25 +1829,25 @@ const resCanvasList = {
'60d6bb5e-5af1-459d-8a0f-ac7a3edcb703': {
'60d6bb5e-5af1-459d-8a0f-ac7a3edcb703': {
name: 'exLoadingBg',
name: 'exLoadingBg',
ext: '.png',
ext: '.png',
url: '//yun.duiba.com.cn/spark/assets/exLoadingBg.a9104e208e4d425d0dc3fef446acae78d3e2753f.png',
url: '
https:
//yun.duiba.com.cn/spark/assets/exLoadingBg.a9104e208e4d425d0dc3fef446acae78d3e2753f.png',
uuid: '60d6bb5e-5af1-459d-8a0f-ac7a3edcb703'
uuid: '60d6bb5e-5af1-459d-8a0f-ac7a3edcb703'
},
},
'f2a39dcf-acc3-4cc8-9dd1-e82e915048db': {
'f2a39dcf-acc3-4cc8-9dd1-e82e915048db': {
name: 'exLoadingFront',
name: 'exLoadingFront',
ext: '.png',
ext: '.png',
url: '//yun.duiba.com.cn/spark/assets/exLoadingFront.a21f9697486f4433973e5f521ff9d6a978098503.png',
url: '
https:
//yun.duiba.com.cn/spark/assets/exLoadingFront.a21f9697486f4433973e5f521ff9d6a978098503.png',
uuid: 'f2a39dcf-acc3-4cc8-9dd1-e82e915048db'
uuid: 'f2a39dcf-acc3-4cc8-9dd1-e82e915048db'
},
},
'3e9351dd-787d-4dca-bbf3-793d129c6332': {
'3e9351dd-787d-4dca-bbf3-793d129c6332': {
name: 'shapGoBtn',
name: 'shapGoBtn',
ext: '.png',
ext: '.png',
url: '//yun.duiba.com.cn/spark/assets/shapGoBtn.78caf5d5af696b5510dd675e626089a320a5c3f1.png',
url: '
https:
//yun.duiba.com.cn/spark/assets/shapGoBtn.78caf5d5af696b5510dd675e626089a320a5c3f1.png',
uuid: '3e9351dd-787d-4dca-bbf3-793d129c6332'
uuid: '3e9351dd-787d-4dca-bbf3-793d129c6332'
},
},
'dba58651-57a3-4b75-9447-0e4d498dd8cd': {
'dba58651-57a3-4b75-9447-0e4d498dd8cd': {
name: 'shapGoBtn1',
name: 'shapGoBtn1',
ext: '.png',
ext: '.png',
url: '//yun.duiba.com.cn/spark/assets/shapGoBtn1.d4d2cbdd9ab87642e34600c20ca627c9a377ffb7.png',
url: '
https:
//yun.duiba.com.cn/spark/assets/shapGoBtn1.d4d2cbdd9ab87642e34600c20ca627c9a377ffb7.png',
uuid: 'dba58651-57a3-4b75-9447-0e4d498dd8cd'
uuid: 'dba58651-57a3-4b75-9447-0e4d498dd8cd'
}
}
};
};
...
@@ -46754,8 +46754,13 @@ var MainScene = (function (_super) {
...
@@ -46754,8 +46754,13 @@ var MainScene = (function (_super) {
return;
return;
}
}
else {
else {
if (Ins_1.Ins.userInfo.energy != r.data.energyMax) {
that.getUserEnergy();
that.getUserEnergy();
}
}
else {
return;
}
}
}
}
else {
else {
Ins_1.Ins.showToast(r.message);
Ins_1.Ins.showToast(r.message);
...
@@ -46810,22 +46815,6 @@ var MainScene = (function (_super) {
...
@@ -46810,22 +46815,6 @@ var MainScene = (function (_super) {
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.getUserInfo, {}, function (s, r) {
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.getUserInfo, {}, function (s, r) {
if (s) {
if (s) {
Ins_1.Ins.userInfo = r.data;
Ins_1.Ins.userInfo = r.data;
if (r.data.sence > 3) {
Ins_1.Ins.catIsOut = true;
that.cat.visible = false;
that.cat.stopCatAct();
that.mainUi.changeBtnByCatIsOuT(Ins_1.Ins.curScene);
if (Ins_1.Ins.curScene == 3) {
that.letter.visible = true;
}
}
else {
if (Ins_1.Ins.catIsOut) {
that.cat.visible = true;
that.letter.visible = false;
}
Ins_1.Ins.catIsOut = false;
}
that.setEnergy();
that.setEnergy();
that.mainUi.updateUserInfo();
that.mainUi.updateUserInfo();
}
}
...
@@ -47088,7 +47077,12 @@ var MainSceneBtnUi = (function (_super) {
...
@@ -47088,7 +47077,12 @@ var MainSceneBtnUi = (function (_super) {
MainSceneBtnUi.prototype.updateUserInfo = function () {
MainSceneBtnUi.prototype.updateUserInfo = function () {
var that = this;
var that = this;
var _a = Ins_1.Ins.userInfo, catName = _a.catName, happyCoin = _a.happyCoin, level = _a.level, avatar = _a.avatar, experience = _a.experience, experienceMax = _a.experienceMax;
var _a = Ins_1.Ins.userInfo, catName = _a.catName, happyCoin = _a.happyCoin, level = _a.level, avatar = _a.avatar, experience = _a.experience, experienceMax = _a.experienceMax;
that.catAvatar.texture = RES_1.RES.getRes(avatar);
var type = avatar.substring(avatar.lastIndexOf(".") + 1, avatar.length);
var avatar1 = avatar;
if (type != 'png' && type != 'jpg') {
avatar1 = avatar + '.jpg';
}
that.catAvatar.texture = RES_1.RES.getRes(avatar1);
that.catAvatar.width = 52;
that.catAvatar.width = 52;
that.catAvatar.height = 52;
that.catAvatar.height = 52;
that.catAvatar.x = that.catAvatar.y = 5;
that.catAvatar.x = that.catAvatar.y = 5;
project/src/canvas/game/resCanvasList.js
View file @
48d12a7f
...
@@ -668,25 +668,25 @@ const resCanvasList = {
...
@@ -668,25 +668,25 @@ const resCanvasList = {
'60d6bb5e-5af1-459d-8a0f-ac7a3edcb703'
:
{
'60d6bb5e-5af1-459d-8a0f-ac7a3edcb703'
:
{
name
:
'exLoadingBg'
,
name
:
'exLoadingBg'
,
ext
:
'.png'
,
ext
:
'.png'
,
url
:
'//yun.duiba.com.cn/spark/assets/exLoadingBg.a9104e208e4d425d0dc3fef446acae78d3e2753f.png'
,
url
:
'
https:
//yun.duiba.com.cn/spark/assets/exLoadingBg.a9104e208e4d425d0dc3fef446acae78d3e2753f.png'
,
uuid
:
'60d6bb5e-5af1-459d-8a0f-ac7a3edcb703'
uuid
:
'60d6bb5e-5af1-459d-8a0f-ac7a3edcb703'
},
},
'f2a39dcf-acc3-4cc8-9dd1-e82e915048db'
:
{
'f2a39dcf-acc3-4cc8-9dd1-e82e915048db'
:
{
name
:
'exLoadingFront'
,
name
:
'exLoadingFront'
,
ext
:
'.png'
,
ext
:
'.png'
,
url
:
'//yun.duiba.com.cn/spark/assets/exLoadingFront.a21f9697486f4433973e5f521ff9d6a978098503.png'
,
url
:
'
https:
//yun.duiba.com.cn/spark/assets/exLoadingFront.a21f9697486f4433973e5f521ff9d6a978098503.png'
,
uuid
:
'f2a39dcf-acc3-4cc8-9dd1-e82e915048db'
uuid
:
'f2a39dcf-acc3-4cc8-9dd1-e82e915048db'
},
},
'3e9351dd-787d-4dca-bbf3-793d129c6332'
:
{
'3e9351dd-787d-4dca-bbf3-793d129c6332'
:
{
name
:
'shapGoBtn'
,
name
:
'shapGoBtn'
,
ext
:
'.png'
,
ext
:
'.png'
,
url
:
'//yun.duiba.com.cn/spark/assets/shapGoBtn.78caf5d5af696b5510dd675e626089a320a5c3f1.png'
,
url
:
'
https:
//yun.duiba.com.cn/spark/assets/shapGoBtn.78caf5d5af696b5510dd675e626089a320a5c3f1.png'
,
uuid
:
'3e9351dd-787d-4dca-bbf3-793d129c6332'
uuid
:
'3e9351dd-787d-4dca-bbf3-793d129c6332'
},
},
'dba58651-57a3-4b75-9447-0e4d498dd8cd'
:
{
'dba58651-57a3-4b75-9447-0e4d498dd8cd'
:
{
name
:
'shapGoBtn1'
,
name
:
'shapGoBtn1'
,
ext
:
'.png'
,
ext
:
'.png'
,
url
:
'//yun.duiba.com.cn/spark/assets/shapGoBtn1.d4d2cbdd9ab87642e34600c20ca627c9a377ffb7.png'
,
url
:
'
https:
//yun.duiba.com.cn/spark/assets/shapGoBtn1.d4d2cbdd9ab87642e34600c20ca627c9a377ffb7.png'
,
uuid
:
'dba58651-57a3-4b75-9447-0e4d498dd8cd'
uuid
:
'dba58651-57a3-4b75-9447-0e4d498dd8cd'
}
}
};
};
...
...
project/src/canvas/game/src/ResJson.ts
View file @
48d12a7f
...
@@ -10,5 +10,5 @@ export const ResJson = {
...
@@ -10,5 +10,5 @@ export const ResJson = {
"name"
:
"startScene"
"name"
:
"startScene"
}
}
],
],
"path"
:
"https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/160100
3410
/resource/"
"path"
:
"https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/160100
5193
/resource/"
}
}
\ No newline at end of file
project/src/canvas/game/src/scenes/MainScene.ts
View file @
48d12a7f
...
@@ -185,8 +185,13 @@ export class MainScene extends Scene {
...
@@ -185,8 +185,13 @@ export class MainScene extends Scene {
that
.
setEnergy
();
that
.
setEnergy
();
return
;
return
;
}
else
{
}
else
{
if
(
Ins
.
userInfo
.
energy
!=
r
.
data
.
energyMax
){
that
.
getUserEnergy
();
that
.
getUserEnergy
();
}
}
else
{
return
;
}
}
}
else
{
}
else
{
Ins
.
showToast
(
r
.
message
);
Ins
.
showToast
(
r
.
message
);
}
}
...
@@ -246,22 +251,22 @@ export class MainScene extends Scene {
...
@@ -246,22 +251,22 @@ export class MainScene extends Scene {
sendTbNet
(
TbNetName
.
getUserInfo
,
{},
(
s
,
r
)
=>
{
sendTbNet
(
TbNetName
.
getUserInfo
,
{},
(
s
,
r
)
=>
{
if
(
s
)
{
if
(
s
)
{
Ins
.
userInfo
=
r
.
data
;
Ins
.
userInfo
=
r
.
data
;
if
(
r
.
data
.
sence
>
3
)
{
//
if (r.data.sence > 3) {
Ins
.
catIsOut
=
true
;
//
Ins.catIsOut = true;
that
.
cat
.
visible
=
false
;
//
that.cat.visible = false;
that
.
cat
.
stopCatAct
();
//
that.cat.stopCatAct();
that
.
mainUi
.
changeBtnByCatIsOuT
(
Ins
.
curScene
)
//
that.mainUi.changeBtnByCatIsOuT(Ins.curScene)
if
(
Ins
.
curScene
==
3
)
{
//
if (Ins.curScene == 3) {
that
.
letter
.
visible
=
true
;
//
that.letter.visible = true;
}
//
}
}
else
{
//
} else {
if
(
Ins
.
catIsOut
)
{
//
if (Ins.catIsOut) {
that
.
cat
.
visible
=
true
;
//
that.cat.visible = true;
that
.
letter
.
visible
=
false
;
//
that.letter.visible = false;
}
//
}
Ins
.
catIsOut
=
false
;
//
Ins.catIsOut = false;
}
//
}
that
.
setEnergy
();
that
.
setEnergy
();
that
.
mainUi
.
updateUserInfo
();
that
.
mainUi
.
updateUserInfo
();
...
...
project/src/canvas/game/src/ui/MainSceneBtnUi.ts
View file @
48d12a7f
...
@@ -171,7 +171,12 @@ export class MainSceneBtnUi extends Module {
...
@@ -171,7 +171,12 @@ export class MainSceneBtnUi extends Module {
updateUserInfo
()
{
updateUserInfo
()
{
var
that
=
this
;
var
that
=
this
;
const
{
catName
,
happyCoin
,
level
,
avatar
,
experience
,
experienceMax
}
=
Ins
.
userInfo
;
const
{
catName
,
happyCoin
,
level
,
avatar
,
experience
,
experienceMax
}
=
Ins
.
userInfo
;
that
.
catAvatar
.
texture
=
RES
.
getRes
(
avatar
);
var
type
=
avatar
.
substring
(
avatar
.
lastIndexOf
(
"."
)
+
1
,
avatar
.
length
);
let
avatar1
=
avatar
;
if
(
type
!=
'png'
&&
type
!=
'jpg'
){
avatar1
=
avatar
+
'.jpg'
}
that
.
catAvatar
.
texture
=
RES
.
getRes
(
avatar1
);
that
.
catAvatar
.
width
=
52
;
that
.
catAvatar
.
width
=
52
;
that
.
catAvatar
.
height
=
52
;
that
.
catAvatar
.
height
=
52
;
that
.
catAvatar
.
x
=
that
.
catAvatar
.
y
=
5
that
.
catAvatar
.
x
=
that
.
catAvatar
.
y
=
5
...
...
taobao_mini/client/components/comcatbackbed/comcatbackbed.js
View file @
48d12a7f
...
@@ -43,7 +43,7 @@ Component({
...
@@ -43,7 +43,7 @@ Component({
},
},
didMount
()
{
didMount
()
{
console
.
log
(
this
.
props
.
catImgArr
)
console
.
log
(
this
.
props
.
catImgArr
,
this
.
props
.
recallCatInfo
)
const
{
value
,
type
,
backType
,
desc
}
=
this
.
props
.
recallCatInfo
;
const
{
value
,
type
,
backType
,
desc
}
=
this
.
props
.
recallCatInfo
;
let
getText
=
''
;
let
getText
=
''
;
let
getTextColor
=
''
;
let
getTextColor
=
''
;
...
...
taobao_mini/client/components/comrecallcat/comrecallcat.js
View file @
48d12a7f
...
@@ -56,9 +56,10 @@ Component({
...
@@ -56,9 +56,10 @@ Component({
onRecallCat
onRecallCat
}
=
this
.
props
;
}
=
this
.
props
;
onRecallCat
&&
onRecallCat
(
recallCat
.
data
);
onRecallCat
&&
onRecallCat
(
recallCat
.
data
);
my
.
__updateUserInfo__
();
}
else
{
}
else
{
my
.
showToast
(
recallCat
?
recallCat
.
message
:
null
)
my
.
showToast
(
{
content
:
recallCat
?
recallCat
.
message
:
null
}
)
}
}
}
}
...
...
taobao_mini/client/pages/pagecanvas/output.js
View file @
48d12a7f
...
@@ -1828,25 +1828,25 @@ const resCanvasList = {
...
@@ -1828,25 +1828,25 @@ const resCanvasList = {
'60d6bb5e-5af1-459d-8a0f-ac7a3edcb703': {
'60d6bb5e-5af1-459d-8a0f-ac7a3edcb703': {
name: 'exLoadingBg',
name: 'exLoadingBg',
ext: '.png',
ext: '.png',
url: '//yun.duiba.com.cn/spark/assets/exLoadingBg.a9104e208e4d425d0dc3fef446acae78d3e2753f.png',
url: '
https:
//yun.duiba.com.cn/spark/assets/exLoadingBg.a9104e208e4d425d0dc3fef446acae78d3e2753f.png',
uuid: '60d6bb5e-5af1-459d-8a0f-ac7a3edcb703'
uuid: '60d6bb5e-5af1-459d-8a0f-ac7a3edcb703'
},
},
'f2a39dcf-acc3-4cc8-9dd1-e82e915048db': {
'f2a39dcf-acc3-4cc8-9dd1-e82e915048db': {
name: 'exLoadingFront',
name: 'exLoadingFront',
ext: '.png',
ext: '.png',
url: '//yun.duiba.com.cn/spark/assets/exLoadingFront.a21f9697486f4433973e5f521ff9d6a978098503.png',
url: '
https:
//yun.duiba.com.cn/spark/assets/exLoadingFront.a21f9697486f4433973e5f521ff9d6a978098503.png',
uuid: 'f2a39dcf-acc3-4cc8-9dd1-e82e915048db'
uuid: 'f2a39dcf-acc3-4cc8-9dd1-e82e915048db'
},
},
'3e9351dd-787d-4dca-bbf3-793d129c6332': {
'3e9351dd-787d-4dca-bbf3-793d129c6332': {
name: 'shapGoBtn',
name: 'shapGoBtn',
ext: '.png',
ext: '.png',
url: '//yun.duiba.com.cn/spark/assets/shapGoBtn.78caf5d5af696b5510dd675e626089a320a5c3f1.png',
url: '
https:
//yun.duiba.com.cn/spark/assets/shapGoBtn.78caf5d5af696b5510dd675e626089a320a5c3f1.png',
uuid: '3e9351dd-787d-4dca-bbf3-793d129c6332'
uuid: '3e9351dd-787d-4dca-bbf3-793d129c6332'
},
},
'dba58651-57a3-4b75-9447-0e4d498dd8cd': {
'dba58651-57a3-4b75-9447-0e4d498dd8cd': {
name: 'shapGoBtn1',
name: 'shapGoBtn1',
ext: '.png',
ext: '.png',
url: '//yun.duiba.com.cn/spark/assets/shapGoBtn1.d4d2cbdd9ab87642e34600c20ca627c9a377ffb7.png',
url: '
https:
//yun.duiba.com.cn/spark/assets/shapGoBtn1.d4d2cbdd9ab87642e34600c20ca627c9a377ffb7.png',
uuid: 'dba58651-57a3-4b75-9447-0e4d498dd8cd'
uuid: 'dba58651-57a3-4b75-9447-0e4d498dd8cd'
}
}
};
};
...
@@ -46753,8 +46753,13 @@ var MainScene = (function (_super) {
...
@@ -46753,8 +46753,13 @@ var MainScene = (function (_super) {
return;
return;
}
}
else {
else {
if (Ins_1.Ins.userInfo.energy != r.data.energyMax) {
that.getUserEnergy();
that.getUserEnergy();
}
}
else {
return;
}
}
}
}
else {
else {
Ins_1.Ins.showToast(r.message);
Ins_1.Ins.showToast(r.message);
...
@@ -46809,22 +46814,6 @@ var MainScene = (function (_super) {
...
@@ -46809,22 +46814,6 @@ var MainScene = (function (_super) {
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.getUserInfo, {}, function (s, r) {
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.getUserInfo, {}, function (s, r) {
if (s) {
if (s) {
Ins_1.Ins.userInfo = r.data;
Ins_1.Ins.userInfo = r.data;
if (r.data.sence > 3) {
Ins_1.Ins.catIsOut = true;
that.cat.visible = false;
that.cat.stopCatAct();
that.mainUi.changeBtnByCatIsOuT(Ins_1.Ins.curScene);
if (Ins_1.Ins.curScene == 3) {
that.letter.visible = true;
}
}
else {
if (Ins_1.Ins.catIsOut) {
that.cat.visible = true;
that.letter.visible = false;
}
Ins_1.Ins.catIsOut = false;
}
that.setEnergy();
that.setEnergy();
that.mainUi.updateUserInfo();
that.mainUi.updateUserInfo();
}
}
...
@@ -47087,7 +47076,12 @@ var MainSceneBtnUi = (function (_super) {
...
@@ -47087,7 +47076,12 @@ var MainSceneBtnUi = (function (_super) {
MainSceneBtnUi.prototype.updateUserInfo = function () {
MainSceneBtnUi.prototype.updateUserInfo = function () {
var that = this;
var that = this;
var _a = Ins_1.Ins.userInfo, catName = _a.catName, happyCoin = _a.happyCoin, level = _a.level, avatar = _a.avatar, experience = _a.experience, experienceMax = _a.experienceMax;
var _a = Ins_1.Ins.userInfo, catName = _a.catName, happyCoin = _a.happyCoin, level = _a.level, avatar = _a.avatar, experience = _a.experience, experienceMax = _a.experienceMax;
that.catAvatar.texture = RES_1.RES.getRes(avatar);
var type = avatar.substring(avatar.lastIndexOf(".") + 1, avatar.length);
var avatar1 = avatar;
if (type != 'png' && type != 'jpg') {
avatar1 = avatar + '.jpg';
}
that.catAvatar.texture = RES_1.RES.getRes(avatar1);
that.catAvatar.width = 52;
that.catAvatar.width = 52;
that.catAvatar.height = 52;
that.catAvatar.height = 52;
that.catAvatar.x = that.catAvatar.y = 5;
that.catAvatar.x = that.catAvatar.y = 5;
taobao_mini/client/pages/pagecanvas/pagecanvas.js
View file @
48d12a7f
...
@@ -39,7 +39,7 @@ Page({
...
@@ -39,7 +39,7 @@ Page({
catnameModalVisible
:
false
,
catnameModalVisible
:
false
,
recallcatModalVisible
:
false
,
recallcatModalVisible
:
false
,
recallcatModalData
:
{},
recallcatModalData
:
{},
getcatModalVisible
:
tru
e
,
getcatModalVisible
:
fals
e
,
getcatModalData
:
{},
getcatModalData
:
{},
catbackbedModalVisible
:
false
,
catbackbedModalVisible
:
false
,
catruleModalVisible
:
0
catruleModalVisible
:
0
...
@@ -252,6 +252,7 @@ Page({
...
@@ -252,6 +252,7 @@ Page({
if
(
this
.
main
)
{
if
(
this
.
main
)
{
this
.
main
.
run
();
this
.
main
.
run
();
this
.
main
.
dispatchGlobalEvent
(
"onShow"
);
this
.
main
.
dispatchGlobalEvent
(
"onShow"
);
my
.
__updateUserInfo__
();
}
}
},
},
...
...
taobao_mini/debug.log
View file @
48d12a7f
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