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
abf0a4e9
Commit
abf0a4e9
authored
Sep 25, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
4532d46b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
+12
-7
comcatname.js
taobao_mini/client/components/comcatname/comcatname.js
+1
-1
comgetcat.js
taobao_mini/client/components/comgetcat/comgetcat.js
+4
-3
pagecanvas.js
taobao_mini/client/pages/pagecanvas/pagecanvas.js
+7
-3
No files found.
taobao_mini/client/components/comcatname/comcatname.js
View file @
abf0a4e9
...
...
@@ -61,7 +61,7 @@ Component({
this
.
onSelectCatOk
();
}
else
{
console
.
log
(
"ergerg"
)
my
.
showToast
({
content
:
adoptCat
?
adoptCat
.
message
:
null
})
my
.
showToast
({
content
:
adoptCat
.
message
||
'网络异常,请稍后重试~'
})
}
}
console
.
log
(
this
.
props
.
catName
)
...
...
taobao_mini/client/components/comgetcat/comgetcat.js
View file @
abf0a4e9
...
...
@@ -20,15 +20,16 @@ Component({
console
.
log
(
'onModalClose'
)
},
onPostSelectCat
()
{
const
userInfo
=
API
.
getUserInfo
();
const
userInfo
=
API
.
getUserInfo
().
catch
(
res
=>
{
my
.
showToast
({
content
:
userInfo
?
userInfo
.
message
:
null
})
});
if
(
userInfo
&&
userInfo
.
success
){
const
{
onPostSelectCat
}
=
this
.
props
;
console
.
log
(
"领养完毕"
)
this
.
onModalClose
();
onPostSelectCat
&&
onPostSelectCat
(
userInfo
);
}
else
{
my
.
showToast
(
userInfo
?
userInfo
.
message
:
null
)
}
}
},
...
...
taobao_mini/client/pages/pagecanvas/pagecanvas.js
View file @
abf0a4e9
...
...
@@ -38,7 +38,7 @@ Page({
selectcatModalVisible
:
false
,
catnameModalVisible
:
false
,
recallcatModalVisible
:
false
,
recallcatModalData
:{},
recallcatModalData
:
{},
getcatModalVisible
:
false
,
getcatModalData
:
{},
catbackbedModalVisible
:
false
,
...
...
@@ -72,7 +72,7 @@ Page({
my
.
__getdata__
=
(
key
)
=>
{
my
.
__onMessage__
({
data
:
{
netName
:
'tmallCat.'
+
key
netName
:
'tmallCat.'
+
key
}
})
}
...
...
@@ -98,6 +98,10 @@ Page({
}
});
}
my
.
__updateUserInfo__
=
()
=>
{
console
.
log
(
"通知canvas刷新用户信息"
)
this
.
main
&&
this
.
main
.
dispatchGlobalEvent
(
"UPDATE_USERINFO"
)
}
},
init
()
{
...
...
@@ -169,7 +173,7 @@ Page({
//接口名字
let
netName
=
e
.
data
.
netName
;
//接口参数
let
parameter
=
e
.
data
.
parameter
||
{};
let
parameter
=
e
.
data
.
parameter
||
{};
//定制的授权
if
(
netName
.
indexOf
(
"mine"
)
==
0
)
{
...
...
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