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
8e825082
Commit
8e825082
authored
Dec 23, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
ca6e03c5
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
799 additions
and
5 deletions
+799
-5
.DS_Store
.DS_Store
+0
-0
.DS_Store
project/.DS_Store
+0
-0
index.js
project/mock/e-family/index.js
+2
-2
userinfo.jsx
project/src/components/userinfo/userinfo.jsx
+38
-0
main3.jsx
project/src/pages/main3/main3.jsx
+3
-3
yarn.lock
project/yarn.lock
+756
-0
No files found.
.DS_Store
View file @
8e825082
No preview for this file type
project/.DS_Store
View file @
8e825082
No preview for this file type
project/mock/e-family/index.js
View file @
8e825082
...
...
@@ -5,7 +5,7 @@ export const homeInfo = {
"canUpdateNickName"
:
false
,
"figures"
:
[{
"figureId"
:
"1"
},
{
"figureId"
:
"2"
},
{
"figureId"
:
"3"
}],
"newUser"
:
0
,
"userInfo"
:
{
"figureId"
:
"
1
"
,
"joyBeans"
:
10100
,
"nickName"
:
"13"
}
"userInfo"
:
{
"figureId"
:
"
3
"
,
"joyBeans"
:
10100
,
"nickName"
:
"13"
}
},
"message"
:
null
,
"success"
:
true
...
...
@@ -28,7 +28,7 @@ export const signInfo = {
"data"
:
{
"todaySigned"
:
1
,
"continuousDays"
:
7
,
"needPopup"
:
1
,
"needPopup"
:
0
,
"signLists"
:
[
{
"awardName"
:
"欢趣豆"
,
...
...
project/src/components/userinfo/userinfo.jsx
View file @
8e825082
...
...
@@ -4,16 +4,49 @@ import React, { Component } from 'react';
import
{
Aup
}
from
'../../pop'
;
import
resList
from
'../../resconfig/resList'
;
import
'./userinfo.less'
;
import
{
Toast
,
Loading
,
Badge
,
CountDownButton
,
InputNumber
}
from
'@spark/ui'
;
class
Userinfo
extends
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
resList
:
resList
,
figureId
:
props
.
data
.
figureId
};
}
onclick
=
()
=>
{
let
planame
=
this
.
refs
.
planame
.
value
;
if
(
planame
.
length
<
1
){
return
Toast
(
"名字不能为空"
);
}
let
updateuinfo
=
await
getAPIdata
(
Store
.
updateUinfo
,{
type
:
2
,
nickName
:
planame
});
if
(
updateuinfo
&&
updateuinfo
.
success
){
// if(updateuinfo.data){
// const {result,joyBeans} = updateuinfo.data;
// if(result){
// dataCenter.setData(Store.newgoldnum,joyBeans);
// }
// }
// getHomeInfo();
// this.props.onClose();
// dataCenter.setData(Store.needguide,true);
}
else
{
// if(updateuinfo){
// let msg = updateuinfo.message;
// Toast(msg);
// }else{
// Toast(netErrMsg)
// }
}
}
render
()
{
const
{
figureId
}
=
this
.
state
;
return
(
<
div
className=
"userinfo "
uuid=
"a9143822-c421-48d3-92c3-de9eafe5c234"
>
<
input
className=
"planame"
type=
"text"
placeholder=
"请输入昵称(不超过六字)"
ref=
"planame"
/>
...
...
@@ -27,6 +60,10 @@ class Userinfo extends Component {
uuid=
"1addc1b2-f339-4f8b-81c8-21153b03653a"
src=
{
this
.
state
.
resList
[
'5406c697-b889-4062-8910-343038c4dc93'
].
url
}
/>
{
figureId
==
1
&&
<
img
className=
"userinfo_avatar "
src=
"//yun.duiba.com.cn/spark/assets/393b5936219fa987a141cfcce17d2ffe13cc924e.png"
/>
}
{
figureId
==
2
&&
<
img
className=
"userinfo_avatar "
src=
"//yun.duiba.com.cn/spark/assets/042c2b238932872aa066fd989f2169715789a3c3.png"
/>
}
{
figureId
==
3
&&
<
img
className=
"userinfo_avatar "
src=
"//yun.duiba.com.cn/spark/assets/5a672d98433d289091b879a2d546970c281cb9d2.png"
/>
}
<
img
onClick=
{
this
.
props
.
onClose
}
className=
"userinfo_close "
...
...
@@ -34,6 +71,7 @@ class Userinfo extends Component {
src=
{
this
.
state
.
resList
[
'c7826e1a-8b74-44da-922f-0fe078587999'
].
url
}
/>
<
img
onClick=
{
this
.
onclick
}
className=
"userinfo_btn "
uuid=
"dbbad0c1-ead1-4515-ae55-144e26640415"
src=
{
this
.
state
.
resList
[
'2208dc94-a012-4a45-8f4e-64468993e652'
].
url
}
...
...
project/src/pages/main3/main3.jsx
View file @
8e825082
...
...
@@ -29,7 +29,7 @@ class Main3 extends Component {
}
onClick_userinfo
=
()
=>
{
Aup
.
show
(
'Userinfo'
,
{},
this
);
Aup
.
show
(
'Userinfo'
,
{
figureId
:
this
.
state
.
figureId
},
this
);
}
onClick_signBtn
=
()
=>
{
...
...
@@ -161,7 +161,7 @@ class Main3 extends Component {
uuid=
"5316b02a-5b8e-4355-b556-cd801852df7e"
src=
{
this
.
state
.
resList
[
'31522099-3ea6-4d2b-ae84-99e2877bd2d0'
].
url
}
/>
{
figureId
==
3
&&
(
{
figureId
==
1
&&
(
<
img
className=
"main3_avatar1 "
uuid=
"f2277018-36fd-4f47-9124-d73324505dff"
...
...
@@ -175,7 +175,7 @@ class Main3 extends Component {
src=
{
this
.
state
.
resList
[
'6ff31046-e036-4218-8cc9-5d715dfa64a1'
].
url
}
/>
)
}
{
figureId
==
1
&&
(
{
figureId
==
3
&&
(
<
img
className=
"main3_avatar3 "
uuid=
"dc2306b9-90e0-4e98-a967-e0f263a3217a"
...
...
project/yarn.lock
0 → 100644
View file @
8e825082
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