Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
icbcRPG
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
icbcRPG
Commits
2241c1a1
Commit
2241c1a1
authored
Dec 24, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
72f96a98
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
index.js
project/mock/e-family/index.js
+3
-3
userinfo.jsx
project/src/components/userinfo/userinfo.jsx
+10
-5
No files found.
project/mock/e-family/index.js
View file @
2241c1a1
...
...
@@ -13,9 +13,9 @@ export const homeInfo = {
export
const
updateUinfo
=
{
"code"
:
null
,
"data"
:
true
,
"message"
:
null
,
"success"
:
tru
e
"data"
:
1
,
"message"
:
'dfs'
,
"success"
:
fals
e
}
export
const
doshare
=
{
"code"
:
null
,
...
...
project/src/components/userinfo/userinfo.jsx
View file @
2241c1a1
...
...
@@ -23,11 +23,16 @@ class Userinfo extends Component {
return
Toast
(
"名字不能为空"
);
}
API
.
updateUinfo
({
type
:
2
,
nickName
:
planame
}).
then
(
res
=>
{
this
.
props
.
ctx
.
freshHomeInfo
();
// console.log('res',res);
}).
catch
(
e
=>
{
console
.
log
(
'err'
,
e
);
API
.
updateUinfo
({
type
:
2
,
nickName
:
planame
}).
then
(
res
=>
{
console
.
log
(
'res'
,
res
);
if
(
res
&&
res
.
success
)
{
this
.
props
.
ctx
.
freshHomeInfo
();
this
.
props
.
onClose
();
}
else
{
Toast
(
res
.
message
||
'网络异常,请稍后重试~'
)
}
}).
catch
(
e
=>
{
console
.
log
(
'err'
,
e
);
});
// let updateuinfo = await getAPIdata(Store.updateUinfo, {
...
...
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