Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
zhangzhonghua
/
BoneHouse_APP
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f73732bb
authored
May 15, 2020
by
Denglingling
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改【store】命名变量【self】为【selfOrder】
parent
cdc8c3a8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
app/containers/common/ItemCellModel.js
app/containers/selfOrder/SelfOrderPage.js
app/reducers/index.js
app/reducers/module/quick.js
app/reducers/module/self.js → app/reducers/module/selfOrder.js
app/containers/common/ItemCellModel.js
View file @
f73732bb
...
...
@@ -332,8 +332,8 @@ const mapStateToProps = (state) => {
return
{
userInfo
:
state
.
login
.
userInfo
,
token
:
state
.
login
.
token
,
self_list_status
:
state
.
self
.
self_list_status
,
selfOrderOption
:
state
.
self
.
selfOrderOption
self_list_status
:
state
.
self
Order
.
self_list_status
,
selfOrderOption
:
state
.
self
Order
.
selfOrderOption
}
}
...
...
app/containers/selfOrder/SelfOrderPage.js
View file @
f73732bb
...
...
@@ -1411,8 +1411,8 @@ const mapStateToProps = (state) => {
return
{
userInfo
:
state
.
login
.
userInfo
,
token
:
state
.
login
.
token
,
self_list_status
:
state
.
self
.
self_list_status
,
selfOrderOption
:
state
.
self
.
selfOrderOption
self_list_status
:
state
.
self
Order
.
self_list_status
,
selfOrderOption
:
state
.
self
Order
.
selfOrderOption
}
}
...
...
app/reducers/index.js
View file @
f73732bb
...
...
@@ -2,7 +2,7 @@ import storage from 'redux-persist/es/storage';
import
{
persistReducer
}
from
'redux-persist'
;
import
login
from
'./module/login'
;
import
quick
from
'./module/quick'
;
import
self
from
'./module/self
'
;
import
self
Order
from
'./module/selfOrder
'
;
const
loginConfig
=
{
key
:
'login'
,
...
...
@@ -12,7 +12,7 @@ const loginConfig = {
}
const
selfConfig
=
{
key
:
'self'
,
key
:
'self
Order
'
,
storage
,
debug
:
false
,
blackList
:
[]
...
...
@@ -27,7 +27,7 @@ const quickConfig = {
const
rootReducer
=
{
login
:
persistReducer
(
loginConfig
,
login
),
self
:
persistReducer
(
selfConfig
,
self
),
self
Order
:
persistReducer
(
selfConfig
,
selfOrder
),
quick
:
persistReducer
(
quickConfig
,
quick
),
}
...
...
app/reducers/module/quick.js
View file @
f73732bb
...
...
@@ -17,7 +17,7 @@ const defaultState = {
quickOrderOption
:
{}
// 当前临时存储数据
}
export
default
self
=
(
state
=
defaultState
,
action
)
=>
{
export
default
quick
=
(
state
=
defaultState
,
action
)
=>
{
switch
(
action
.
type
)
{
case
QUICK_ORDER_LIST_DOING
:
return
Object
.
assign
({},
state
,
{
...
...
app/reducers/module/self.js
→
app/reducers/module/self
Order
.js
View file @
f73732bb
...
...
@@ -16,7 +16,7 @@ const defaultState = {
selfOrderOption
:
{}
// 当前临时存储数据
}
export
default
self
=
(
state
=
defaultState
,
action
)
=>
{
export
default
self
Order
=
(
state
=
defaultState
,
action
)
=>
{
switch
(
action
.
type
)
{
case
SELF_ORDER_LIST_DOING
:
return
Object
.
assign
({},
state
,
{
...
...
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