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
7ee3ae78
Commit
7ee3ae78
authored
Sep 28, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1234
parent
46414ec2
Changes
11
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
2796 additions
and
28 deletions
+2796
-28
output.js
project/src/canvas/game/output.js
+3
-0
output.js.map
project/src/canvas/game/output.js.map
+1
-1
output.js
project/src/canvas/game/released/output.js
+3
-0
Ins.ts
project/src/canvas/game/src/Ins.ts
+2
-1
MainScene.ts
project/src/canvas/game/src/scenes/MainScene.ts
+5
-2
comrecallcat.axml
taobao_mini/client/components/comrecallcat/comrecallcat.axml
+1
-1
comrecallcat.js
taobao_mini/client/components/comrecallcat/comrecallcat.js
+26
-22
output.js
taobao_mini/client/pages/pagecanvas/output.js
+3
-0
pagecanvas.axml
taobao_mini/client/pages/pagecanvas/pagecanvas.axml
+1
-1
pagecanvasoutput.js
taobao_mini/client/pages/pagecanvasoutput.js
+3
-0
debug.log
taobao_mini/debug.log
+2748
-0
No files found.
project/src/canvas/game/output.js
View file @
7ee3ae78
...
...
@@ -46956,6 +46956,7 @@ var MainScene = (function (_super) {
if (Ins_1.Ins.catIsOut) {
that.cat.visible = false;
that.letter.visible = true;
that.initRecallCatTimer();
}
};
MainScene.prototype.initRecallCatTimer = function () {
...
...
@@ -47171,6 +47172,8 @@ var MainScene = (function (_super) {
Ins_1.Ins.senceInfo = r.data;
if (r.data.sence < 4) {
Ins_1.Ins.catIsOut = false;
clearTimeout(that.recallTimer);
console.log("删除召回倒计时", that.recallTimer);
that.letter.visible = false;
if (r.data.sence == 3) {
that.cat.visible = true;
project/src/canvas/game/output.js.map
View file @
7ee3ae78
This diff is collapsed.
Click to expand it.
project/src/canvas/game/released/output.js
View file @
7ee3ae78
...
...
@@ -46958,6 +46958,7 @@ var MainScene = (function (_super) {
if (Ins_1.Ins.catIsOut) {
that.cat.visible = false;
that.letter.visible = true;
that.initRecallCatTimer();
}
};
MainScene.prototype.initRecallCatTimer = function () {
...
...
@@ -47173,6 +47174,8 @@ var MainScene = (function (_super) {
Ins_1.Ins.senceInfo = r.data;
if (r.data.sence < 4) {
Ins_1.Ins.catIsOut = false;
clearTimeout(that.recallTimer);
console.log("删除召回倒计时", that.recallTimer);
that.letter.visible = false;
if (r.data.sence == 3) {
that.cat.visible = true;
project/src/canvas/game/src/Ins.ts
View file @
7ee3ae78
...
...
@@ -33,7 +33,8 @@ export class Ins {
"senceTips"
:
string
[],
//场景互动文案(猫咪说话)
"energyMax"
:
number
,
"experienceMax"
:
number
,
"senceGuide"
:
boolean
"senceGuide"
:
boolean
,
"lastEnergyTime"
:
number
}
...
...
project/src/canvas/game/src/scenes/MainScene.ts
View file @
7ee3ae78
...
...
@@ -49,6 +49,8 @@ export class MainScene extends Scene {
/**场景引导 */
private
Guide
:
Guide
;
/**是否是重新进入游戏场景 */
initUi
()
{
var
that
=
this
;
that
.
initSceneEle
();
...
...
@@ -112,7 +114,7 @@ export class MainScene extends Scene {
//当猫出走的时候,隐藏猫咪,创建信封
that
.
letter
.
visible
=
true
;
//
that.initRecallCatTimer()
that
.
initRecallCatTimer
()
}
}
...
...
@@ -354,7 +356,8 @@ export class MainScene extends Scene {
Ins
.
senceInfo
=
r
.
data
;
if
(
r
.
data
.
sence
<
4
)
{
Ins
.
catIsOut
=
false
;
// clearTimeout(that.recallTimer)
clearTimeout
(
that
.
recallTimer
)
console
.
log
(
"删除召回倒计时"
,
that
.
recallTimer
)
that
.
letter
.
visible
=
false
;
if
(
r
.
data
.
sence
==
3
)
{
that
.
cat
.
visible
=
true
;
...
...
taobao_mini/client/components/comrecallcat/comrecallcat.axml
View file @
7ee3ae78
...
...
@@ -4,7 +4,7 @@
<label class="recallcathappycoin">{{happyCoinCnt}}</label>
<view class="recallbtngroup">
<image class="recallbtncancel btn" onTap="onModalClose" src={{resList['6957d9f3-9aa4-4ed6-9b83-57cc68f16512'].url}} />
<image class="recallbtngo btn" disable="{{btnEnable}}" onTap="onRecallCat" src={{resList['6d8cdd11-fbc5-4e84-b5ef-1f74c9070738'].url}} />
<image class="recallbtngo btn" disable
d
="{{btnEnable}}" onTap="onRecallCat" src={{resList['6d8cdd11-fbc5-4e84-b5ef-1f74c9070738'].url}} />
</view>
<image class="recallbtnclose" onTap="onModalClose" src={{resList['29e80fbb-98ed-40fb-a11b-e14b45fee158'].url}} />
</view>
taobao_mini/client/components/comrecallcat/comrecallcat.js
View file @
7ee3ae78
...
...
@@ -3,17 +3,21 @@
import
API
from
'../../api'
;
import
resList
from
'../../resconfig/resList'
;
const
app
=
getApp
();
const
{
tbcc
}
=
app
;
const
{
commonToast
}
=
tbcc
.
tb
;
const
{
tbcc
}
=
app
;
const
{
commonToast
}
=
tbcc
.
tb
;
Component
({
props
:
{
mydata
:
null
mydata
:
null
},
data
:
{
resList
:
resList
,
timeText
:
''
,
happyCoinCnt
:
''
,
btnEnable
:
true
btnEnable
:
true
},
methods
:
{
onModalClose
()
{
...
...
@@ -55,11 +59,11 @@ Component({
},
/**计算两个时间戳相差的时间,小时,分,秒 */
compareTime
(
startTime
,
endTime
)
{
let
between
=
(
endTime
-
startTime
)
/
1000
;
let
hours
=
Math
.
floor
(
between
%
(
24
*
36000
)
/
3600
);
let
minutes
=
Math
.
floor
(
between
%
3600
/
60
);
let
seconds
=
Math
.
floor
(
between
%
60
/
60
);
compareTime
(
startTime
,
endTime
)
{
let
between
=
(
endTime
-
startTime
)
/
1000
;
let
hours
=
Math
.
floor
(
between
%
(
24
*
36000
)
/
3600
);
let
minutes
=
Math
.
floor
(
between
%
3600
/
60
);
let
seconds
=
Math
.
floor
(
between
%
60
/
60
);
let
date
;
if
(
hours
<=
0
)
{
if
(
minutes
<=
0
)
{
...
...
@@ -81,14 +85,14 @@ Component({
/**召回猫,打开召回猫的奖励弹窗 */
async
onRecallCat
()
{
if
(
!
this
.
data
.
btnEnable
)
return
;
// if
(!this.data.btnEnable) return;
console
.
log
(
"召回猫"
)
my
.
__clickDelay__
(
this
);
//
my.__clickDelay__(this);
my
.
showLoading
();
const
recallCat
=
await
API
.
recallCat
().
catch
(
r
=>
{
const
recallCat
=
await
API
.
recallCat
().
catch
(
r
=>
{
my
.
hideLoading
();
commonToast
(
r
&&
r
.
message
);
})
||
{};
commonToast
(
r
&&
r
.
message
);
})
||
{};
if
(
recallCat
&&
recallCat
.
success
)
{
my
.
hideLoading
();
this
.
onModalClose
();
...
...
@@ -108,7 +112,7 @@ Component({
// })||{};
// console.log(recall);
// if (recall && recall.success) {
var
text
=
"猫咪预计"
+
this
.
compareTime
(
this
.
props
.
mydata
.
recallInfo
.
serverTime
,
this
.
props
.
mydata
.
recallInfo
.
backTime
)
+
"后回寝"
;
var
text
=
"猫咪预计"
+
this
.
compareTime
(
this
.
props
.
mydata
.
recallInfo
.
serverTime
,
this
.
props
.
mydata
.
recallInfo
.
backTime
)
+
"后回寝"
;
this
.
setData
({
timeText
:
text
,
happyCoinCnt
:
this
.
props
.
mydata
.
recallInfo
.
value
+
''
...
...
taobao_mini/client/pages/pagecanvas/output.js
View file @
7ee3ae78
...
...
@@ -46958,6 +46958,7 @@ var MainScene = (function (_super) {
if (Ins_1.Ins.catIsOut) {
that.cat.visible = false;
that.letter.visible = true;
that.initRecallCatTimer();
}
};
MainScene.prototype.initRecallCatTimer = function () {
...
...
@@ -47173,6 +47174,8 @@ var MainScene = (function (_super) {
Ins_1.Ins.senceInfo = r.data;
if (r.data.sence < 4) {
Ins_1.Ins.catIsOut = false;
clearTimeout(that.recallTimer);
console.log("删除召回倒计时", that.recallTimer);
that.letter.visible = false;
if (r.data.sence == 3) {
that.cat.visible = true;
taobao_mini/client/pages/pagecanvas/pagecanvas.axml
View file @
7ee3ae78
<view disable-scroll="true" class="page-game">
<canvas disable-scroll="true" id="canvas"
type="webgl"
class="canvas" onTouchStart="onMouseEvent" onTouchMove="onMouseEvent" onTouchEnd="onMouseEvent" onReady="onCanvasReady">
<canvas disable-scroll="true" id="canvas" class="canvas" onTouchStart="onMouseEvent" onTouchMove="onMouseEvent" onTouchEnd="onMouseEvent" onReady="onCanvasReady">
</canvas>
</view>
...
...
taobao_mini/client/pages/pagecanvasoutput.js
View file @
7ee3ae78
...
...
@@ -46958,6 +46958,7 @@ var MainScene = (function (_super) {
if (Ins_1.Ins.catIsOut) {
that.cat.visible = false;
that.letter.visible = true;
that.initRecallCatTimer();
}
};
MainScene.prototype.initRecallCatTimer = function () {
...
...
@@ -47173,6 +47174,8 @@ var MainScene = (function (_super) {
Ins_1.Ins.senceInfo = r.data;
if (r.data.sence < 4) {
Ins_1.Ins.catIsOut = false;
clearTimeout(that.recallTimer);
console.log("删除召回倒计时", that.recallTimer);
that.letter.visible = false;
if (r.data.sence == 3) {
that.cat.visible = true;
taobao_mini/debug.log
View file @
7ee3ae78
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