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
27fe421a
Commit
27fe421a
authored
Sep 18, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'refs/remotes/origin/master'
parents
44a290e9
f9542e93
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
20 additions
and
44 deletions
+20
-44
RES.ts
project/src/canvas/game/module/RES.ts
+1
-1
app.json
taobao_mini/client/app.json
+1
-1
output.js
taobao_mini/client/pages/pagecanvas/output.js
+18
-3
pagemycanvaspage.acss
..._mini/client/pages/pagemycanvaspage/pagemycanvaspage.acss
+0
-17
pagemycanvaspage.axml
..._mini/client/pages/pagemycanvaspage/pagemycanvaspage.axml
+0
-5
pagemycanvaspage.js
...ao_mini/client/pages/pagemycanvaspage/pagemycanvaspage.js
+0
-14
pagemycanvaspage.json
..._mini/client/pages/pagemycanvaspage/pagemycanvaspage.json
+0
-3
No files found.
project/src/canvas/game/module/RES.ts
View file @
27fe421a
...
@@ -311,7 +311,7 @@ export namespace RES {
...
@@ -311,7 +311,7 @@ export namespace RES {
let
mark
=
true
;
let
mark
=
true
;
for
(
var
i
=
0
;
i
<
countAll
;
i
++
)
{
for
(
var
i
=
0
;
i
<
countAll
;
i
++
)
{
let
resName
=
arr
[
i
][
'url'
];
let
resName
=
arr
[
i
][
'url'
];
getResAsync
(
resName
,
(
res
,
str
)
=>
{
getResAsync
(
"https:"
+
resName
,
(
res
,
str
)
=>
{
//标记失败,如果有一项资源加载失败,标记下
//标记失败,如果有一项资源加载失败,标记下
if
(
!
res
)
mark
=
false
if
(
!
res
)
mark
=
false
if
(
++
count
==
countAll
)
callback
(
mark
);
if
(
++
count
==
countAll
)
callback
(
mark
);
...
...
taobao_mini/client/app.json
View file @
27fe421a
{
{
"pages"
:
[
"pages/pagecanvas/pagecanvas"
,
"pages/pagemycanvaspage/pagemycanvaspage"
],
"pages"
:
[
"pages/pagecanvas/pagecanvas"
],
"window"
:
{
"window"
:
{
"enableSkia"
:
"true"
,
"enableSkia"
:
"true"
,
"allowsBounceVertical"
:
"NO"
"allowsBounceVertical"
:
"NO"
...
...
taobao_mini/client/pages/pagecanvas/output.js
View file @
27fe421a
...
@@ -129,10 +129,13 @@ var RES;
...
@@ -129,10 +129,13 @@ var RES;
}
}
var
p
=
new
Promise
(
function
(
resolve
,
reject
)
{
var
p
=
new
Promise
(
function
(
resolve
,
reject
)
{
loadResList
(
function
(
s
)
{
loadResList
(
function
(
s
)
{
console
.
log
(
"恶趣味群翁群"
)
if
(
s
)
{
if
(
s
)
{
console
.
lo
(
'res'
)
resolve
();
resolve
();
}
}
else
{
else
{
console
.
lo
(
'rej'
)
reject
();
reject
();
}
}
},
list
);
},
list
);
...
@@ -174,8 +177,10 @@ var RES;
...
@@ -174,8 +177,10 @@ var RES;
RES
.
loadGroup
=
loadGroup
;
RES
.
loadGroup
=
loadGroup
;
function
getResAsync
(
str
,
comFun
,
thisObj
)
{
function
getResAsync
(
str
,
comFun
,
thisObj
)
{
var
type
=
str
.
substring
(
str
.
lastIndexOf
(
"."
)
+
1
,
str
.
length
);
var
type
=
str
.
substring
(
str
.
lastIndexOf
(
"."
)
+
1
,
str
.
length
);
console
.
log
(
"奥术大师多"
+
str
)
if
(
type
==
"png"
||
type
==
"jpg"
)
{
if
(
type
==
"png"
||
type
==
"jpg"
)
{
if
(
FYGE
.
TextureCache
[
str
])
{
if
(
FYGE
.
TextureCache
[
str
])
{
console
.
log
(
"奥术大师多"
+
str
)
comFun
&&
comFun
.
call
(
thisObj
,
FYGE
.
TextureCache
[
str
],
str
);
comFun
&&
comFun
.
call
(
thisObj
,
FYGE
.
TextureCache
[
str
],
str
);
new
Promise
(
function
(
r
)
{
new
Promise
(
function
(
r
)
{
r
(
FYGE
.
TextureCache
[
str
]);
r
(
FYGE
.
TextureCache
[
str
]);
...
@@ -184,13 +189,16 @@ var RES;
...
@@ -184,13 +189,16 @@ var RES;
else
{
else
{
return
new
Promise
(
function
(
resolve
,
reject
)
{
return
new
Promise
(
function
(
resolve
,
reject
)
{
FYGE
.
GlobalLoader
.
loadImage
(
function
(
s
,
image
)
{
FYGE
.
GlobalLoader
.
loadImage
(
function
(
s
,
image
)
{
// console.log("asdasdasdqqqq"+str,s)
if
(
s
)
{
if
(
s
)
{
FYGE
.
Texture
.
addToCache
(
FYGE
.
Texture
.
from
(
image
),
str
);
FYGE
.
Texture
.
addToCache
(
FYGE
.
Texture
.
from
(
image
),
str
);
comFun
&&
comFun
.
call
(
thisObj
,
FYGE
.
TextureCache
[
str
],
str
);
comFun
&&
comFun
.
call
(
thisObj
,
FYGE
.
TextureCache
[
str
],
str
);
console
.
log
(
"asdasdasdqqqq"
+
str
,
s
)
resolve
(
FYGE
.
TextureCache
[
str
]);
resolve
(
FYGE
.
TextureCache
[
str
]);
}
}
else
{
else
{
comFun
&&
comFun
.
call
(
thisObj
,
null
,
str
);
comFun
&&
comFun
.
call
(
thisObj
,
null
,
str
);
console
.
log
(
"zxczxczxc"
+
str
,
s
)
reject
();
reject
();
}
}
},
str
);
},
str
);
...
@@ -261,11 +269,17 @@ var RES;
...
@@ -261,11 +269,17 @@ var RES;
var
mark
=
true
;
var
mark
=
true
;
for
(
var
i
=
0
;
i
<
countAll
;
i
++
)
{
for
(
var
i
=
0
;
i
<
countAll
;
i
++
)
{
var
resName
=
arr
[
i
][
'url'
];
var
resName
=
arr
[
i
][
'url'
];
getResAsync
(
resName
,
function
(
res
,
str
)
{
console
.
log
(
resName
)
getResAsync
(
"https:"
+
resName
,
function
(
res
,
str
)
{
console
.
log
(
"asdasdasdas"
,
res
)
if
(
!
res
)
if
(
!
res
)
mark
=
false
;
mark
=
false
;
if
(
++
count
==
countAll
)
if
(
++
count
==
countAll
){
callback
(
mark
);
console
.
log
(
"玩儿若:asasdd"
)
callback
(
mark
);
}
console
.
log
(
"玩儿若:"
+
count
,
countAll
)
},
this
);
},
this
);
}
}
}
}
...
@@ -1262,6 +1276,7 @@ var Main = (function () {
...
@@ -1262,6 +1276,7 @@ var Main = (function () {
case
0
:
case
0
:
layers_1
.
layers
.
init
(
this
.
stage
);
layers_1
.
layers
.
init
(
this
.
stage
);
console
.
log
(
"初始化层级完成"
);
console
.
log
(
"初始化层级完成"
);
console
.
log
(
"resCanvasList_1.default:"
,
resCanvasList_1
.
default
)
return
[
4
,
RES_1
.
RES
.
loadSparkAssets
(
resCanvasList_1
.
default
)];
return
[
4
,
RES_1
.
RES
.
loadSparkAssets
(
resCanvasList_1
.
default
)];
case
1
:
case
1
:
_a
.
sent
();
_a
.
sent
();
...
...
taobao_mini/client/pages/pagemycanvaspage/pagemycanvaspage.acss
deleted
100644 → 0
View file @
44a290e9
.mycanvaspage {
top: 0rpx;
left: 0rpx;
width: 750rpx;
height: 1624rpx;
display: block;
position: absolute;
}
.mycanvaspage .canvas {
width: 300rpx;
height: 300rpx;
opacity: 1;
display: block;
left: 0rpx;
top: 0rpx;
position: absolute;
}
taobao_mini/client/pages/pagemycanvaspage/pagemycanvaspage.axml
deleted
100644 → 0
View file @
44a290e9
<view class="mycanvaspage">
<view>
<canvas id="canvas" type="2d" class="canvas" disable-scroll="true" onTouchStart="onMouseEvent" onTouchMove="onMouseEvent" onTouchEnd="onMouseEvent" onReady="onCanvasReady"></canvas>
</view>
</view>
\ No newline at end of file
taobao_mini/client/pages/pagemycanvaspage/pagemycanvaspage.js
deleted
100644 → 0
View file @
44a290e9
'use strict'
;
import
resList
from
'../../resconfig/resList'
;
//import API from '../../api';
Page
({
data
:
{},
onLoad
(
props
)
{
this
.
setData
(
this
.
data
||
{
resList
:
resList
});
}
});
\ No newline at end of file
taobao_mini/client/pages/pagemycanvaspage/pagemycanvaspage.json
deleted
100644 → 0
View file @
44a290e9
{
"usingComponents"
:
{}
}
\ No newline at end of file
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