Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
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
前端-黄佳鑫
jinfa-platform
Commits
50944c57
Commit
50944c57
authored
Aug 18, 2020
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂存,重写注册页
parent
e62623ae
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
16 deletions
+17
-16
base.config.json
config/base.config.json
+1
-1
app.tsx
src/app.tsx
+0
-1
global.d.ts
src/global/config/global.d.ts
+1
-12
reset.less
src/global/styles/reset.less
+5
-0
register.tsx
src/pages/user/register.tsx
+10
-2
index.ts
src/services/index.ts
+0
-0
No files found.
config/base.config.json
View file @
50944c57
{
"userRegister"
:{
"useType"
:{
"memberType"
:[{
"id"
:
1
,
"typeName"
:
"企业会员"
},{
"id"
:
3
,
"typeName"
:
"渠道企业会员"
},{
"id"
:
4
,
"typeName"
:
"渠道个人会员"
},{
"id"
:
2
,
"typeName"
:
"个人会员"
}],
"businessType"
:[{
"id"
:
1
,
"typeName"
:
"采购"
},{
"id"
:
39
,
"typeName"
:
"供货"
}
]}},
"web"
:{
"shopInfo"
:[{
"id"
:
302
,
"name"
:
"云鲜采企业商城"
,
"type"
:
1
,
"environment"
:
1
,
"logoUrl"
:
"https://shushangyun01.oss-cn-shenzhen.aliyuncs.com/5b19a059530a4060984fc045125da1f81597395561658.png"
,
"describe"
:
null
,
"state"
:
1
,
"url"
:
"/"
},{
"id"
:
303
,
"name"
:
"云鲜采渠道商城"
,
"type"
:
3
,
"environment"
:
1
,
"logoUrl"
:
"https://shushangyun01.oss-cn-shenzhen.aliyuncs.com/a63c8c81e74947f88c64d4c72bfb565c1597395598958.png"
,
"describe"
:
null
,
"state"
:
1
,
"url"
:
"/shop"
}
]},
"global"
:{
"siteId"
:
502
,
"siteUrl"
:
"http://localhost:4396"
,
"logo"
:
"https://shushangyun01.oss-cn-shenzhen.aliyuncs.com/4db4e7c5424c471c968ab540bce027f31597319423082.png"
,
"countryList"
:[{
"name"
:
"简体中文-ZH"
,
"key"
:
"zh-CN"
,
"icon"
:
"http://lingxi-frontend-test.oss-cn-hangzhou.aliyuncs.com/images/china.png"
},{
"name"
:
"English-EN"
,
"key"
:
"en-US"
,
"icon"
:
"http://lingxi-frontend-test.oss-cn-hangzhou.aliyuncs.com/images/us.png"
},{
"name"
:
"日本語-JP"
,
"key"
:
"jp"
,
"icon"
:
"http://lingxi-frontend-test.oss-cn-hangzhou.aliyuncs.com/images/japen.png"
},{
"name"
:
"한국어-KO"
,
"key"
:
"ko"
,
"icon"
:
"http://lingxi-frontend-test.oss-cn-hangzhou.aliyuncs.com/images/koren.png"
}]}}
{
"userRegister"
:{
"useType"
:{
"memberType"
:[{
"id"
:
1
,
"typeName"
:
"企业会员"
},{
"id"
:
3
,
"typeName"
:
"渠道企业会员"
},{
"id"
:
4
,
"typeName"
:
"渠道个人会员"
},{
"id"
:
2
,
"typeName"
:
"个人会员"
}],
"businessType"
:[{
"id"
:
1
,
"typeName"
:
"采购"
},{
"id"
:
39
,
"typeName"
:
"供货"
}
,{
"id"
:
40
,
"typeName"
:
"供货商消费者"
},{
"id"
:
41
,
"typeName"
:
"供货商消费者渠道会员"
}]}},
"web"
:{
"shopInfo"
:[
]},
"global"
:{
"siteId"
:
502
,
"siteUrl"
:
"http://localhost:4396"
,
"logo"
:
"https://shushangyun01.oss-cn-shenzhen.aliyuncs.com/4db4e7c5424c471c968ab540bce027f31597319423082.png"
,
"countryList"
:[{
"name"
:
"简体中文-ZH"
,
"key"
:
"zh-CN"
,
"icon"
:
"http://lingxi-frontend-test.oss-cn-hangzhou.aliyuncs.com/images/china.png"
},{
"name"
:
"English-EN"
,
"key"
:
"en-US"
,
"icon"
:
"http://lingxi-frontend-test.oss-cn-hangzhou.aliyuncs.com/images/us.png"
},{
"name"
:
"日本語-JP"
,
"key"
:
"jp"
,
"icon"
:
"http://lingxi-frontend-test.oss-cn-hangzhou.aliyuncs.com/images/japen.png"
},{
"name"
:
"한국어-KO"
,
"key"
:
"ko"
,
"icon"
:
"http://lingxi-frontend-test.oss-cn-hangzhou.aliyuncs.com/images/koren.png"
}]}}
src/app.tsx
View file @
50944c57
...
...
@@ -76,7 +76,6 @@ export function render(oldRender: Function) {
oldRender
()
})
}
else
{
history
.
push
(
'/user/login'
)
oldRender
()
}
}
...
...
src/global/config/global.d.ts
View file @
50944c57
...
...
@@ -17,19 +17,8 @@ export interface UserRegister {
useType
:
UseType
;
}
export
interface
ShopInfo
{
id
:
number
;
name
:
string
;
type
:
number
;
environment
:
number
;
logoUrl
:
string
;
describe
?:
any
;
state
:
number
;
url
:
string
;
}
export
interface
Web
{
shopInfo
:
ShopInfo
[];
shopInfo
:
any
[];
}
export
interface
CountryList
{
...
...
src/global/styles/reset.less
View file @
50944c57
...
...
@@ -95,6 +95,11 @@
height: 32px;
line-height: 32px;
margin: 8px 0;
border-top-width: 1px;
border-left-width: 1px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
& label:nth-child(odd) {
...
...
src/pages/user/register.tsx
View file @
50944c57
...
...
@@ -41,7 +41,7 @@ const CustomCheckbox = props => {
return
(
<
Radio
.
Group
value=
{
props
.
value
}
onChange=
{
props
.
onChange
}
className=
{
layout
===
'column'
?
'identityRadio'
:
'businessRadio'
}
name=
{
props
.
name
}
>
{
props
.
dataSource
&&
props
.
dataSource
.
map
((
v
,
i
)
=>
<
Radio
.
Button
value=
{
v
.
value
}
key=
{
v
.
value
+
i
}
>
{
v
.
label
}
</
Radio
.
Button
>)
props
.
dataSource
&&
props
.
dataSource
.
map
((
v
,
i
)
=>
<
Tooltip
title=
{
v
.
label
}
placement=
'leftTop'
key=
{
v
.
value
+
i
}
><
Radio
.
Button
value=
{
v
.
value
}
>
{
v
.
label
}
</
Radio
.
Button
></
Tooltip
>)
}
</
Radio
.
Group
>
)
...
...
@@ -280,7 +280,15 @@ const UserRegistry = () => {
name=
{
field
.
fieldName
}
key=
{
field
.
fieldName
}
title=
{
field
.
fieldCNName
}
x
-
component
-
props=
{
{
listType
:
'text'
}
}
x
-
component
-
props=
{
{
name
:
'file'
,
listType
:
'text'
,
actions
:
"/api/file/file/upload"
,
data
:
{
fileType
:
1
},
showUploadList
:
false
,
}
}
x
-
component=
'Upload'
>
</
Field
>
...
...
src/services/index.ts
View file @
50944c57
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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