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
75546213
Commit
75546213
authored
Sep 22, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
10126358
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
235 additions
and
237 deletions
+235
-237
pagecanvas.js
taobao_mini/client/pages/pagecanvas/pagecanvas.js
+235
-237
No files found.
taobao_mini/client/pages/pagecanvas/pagecanvas.js
View file @
75546213
...
...
@@ -4,6 +4,7 @@ import {
Main
}
from
'./output'
;
import
API
from
'../../api'
;
import
mock
from
'../../mock'
;
const
app
=
getApp
();
const
{
tbcc
...
...
@@ -28,7 +29,9 @@ Page({
messageModalVisible
:
false
,
messageModalData
:
{},
ruleModalVisible
:
false
,
levelupModalVisible
:
false
levelupModalVisible
:
false
,
selectcatModalVisible
:
false
,
catnameModalVisible
:
false
},
onLoad
(
props
)
{
...
...
@@ -47,44 +50,23 @@ Page({
onReady
()
{
console
.
log
(
'on ready'
)
var
that
=
this
;
setTimeout
(()
=>
{
var
parameter
=
{
name
:
"catnameModal"
}
var
data
=
{
netName
:
"mine.showModal"
,
parameter
}
that
.
onMessage
({
data
:
data
})
},
2000
)
//授权和登录先搞
// this.getAuth();
setTimeout
(()
=>
{
// this.onMessage({
// data: {
// netName: 'mine.showModal',
// parameter: {
// name: 'levelupModal'
// }
// }
// });
// this.onMessage({
// data: {
// netName: 'mine.showModal',
// parameter: {
// name: 'messageModal',
// data: { catName: '喵喵1122' }
// }
// }
// });
// this.onMessage({
// data: {
// netName: 'mine.navigateToPage',
// parameter: {
// name: 'pageshop'
// }
// }
// });
},
1000
);
my
.
__onMessage__
=
(
e
)
=>
{
this
.
onMessage
(
e
)
}
},
init
()
{
console
.
log
(
'do init'
);
this
.
spark_startEngine
();
},
spark_startEngine
()
{
...
...
@@ -193,6 +175,12 @@ Page({
}
=
app
.
cloud
;
const
[
myCloudName
,
handler
]
=
netName
.
split
(
"."
);
//待写,
if
(
app
.
requestType
==
'yapi'
)
{
console
.
log
(
'mock[handler]'
,
mock
[
handler
])
this
.
postMessage
(
netName
,
mock
[
handler
]);
return
;
}
parameter
.
activityId
=
app
.
activityId
;
fc
.
invoke
(
myCloudName
,
parameter
,
handler
).
then
(
res
=>
{
this
.
postMessage
(
netName
,
res
);
...
...
@@ -236,7 +224,8 @@ Page({
}
=
userInfo
;
app
.
nickName
=
nickName
;
app
.
avatar
=
avatar
;
this
.
login
();
this
.
init
();
// this.login();
}
},
/**
...
...
@@ -274,6 +263,15 @@ Page({
this
.
setData
({
messageModalVisible
:
false
});
}
},
closeCatnameModal
()
{
this
.
setData
({
catnameModalVisible
:
false
})
},
closeSelectcatModal
()
{
this
.
setData
({
selectcatModalVisible
:
false
})
},
});
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