Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
zhangzhonghua
/
BoneHouse_Business_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
8b1b87ba
authored
Dec 25, 2020
by
Denglingling
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整正在加载中的交互
parent
fbdeabf3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
app/containers/selfOrder/SelfOrderPage.js
app/containers/selfOrder/module/ChooseProductPage.js
app/containers/selfOrder/SelfOrderPage.js
View file @
8b1b87ba
This diff is collapsed.
Click to expand it.
app/containers/selfOrder/module/ChooseProductPage.js
View file @
8b1b87ba
...
...
@@ -111,6 +111,14 @@ class ChooseProductPage extends Component {
let
that
=
this
let
{
token
,
global_domain_config
}
=
that
.
props
let
{
topProcOptionList
,
defalutLeftItem
}
=
this
.
state
if
(
topItem
[
LocalVariable
.
SELECTED_QUQNTITY
]
!==
0
){
that
.
setState
({
topActiveIndex
:
topIndex
},
()
=>
{
that
.
handleLeftNav
(
topItem
[
'leftOptionList'
][
0
],
0
)
})
return
}
that
.
refs
.
LoadingModel
.
show
()
let
params
=
{
access_token
:
token
,
...
...
@@ -120,15 +128,13 @@ class ChooseProductPage extends Component {
let
pro_scate_search
=
await
reqProCategorySearch
(
global_domain_config
,
params
)
console
.
log
(
'res_2 : '
,
pro_scate_search
)
if
(
pro_scate_search
.
error_code
===
0
)
{
if
(
topItem
[
LocalVariable
.
SELECTED_QUQNTITY
]
===
0
)
{
let
{
data
}
=
pro_scate_search
topItem
.
leftOptionList
=
defalutLeftItem
.
concat
(
data
.
item
)
topItem
.
leftOptionList
.
forEach
(
function
(
leftObj
)
{
leftObj
[
LocalVariable
.
SELECTED_QUQNTITY
]
=
0
leftObj
[
LocalVariable
.
LOCAL_SECOND_DATA
]
=
[]
})
topProcOptionList
[
topIndex
]
=
topItem
}
let
{
data
}
=
pro_scate_search
topItem
.
leftOptionList
=
defalutLeftItem
.
concat
(
data
.
item
)
topItem
.
leftOptionList
.
forEach
(
function
(
leftObj
)
{
leftObj
[
LocalVariable
.
SELECTED_QUQNTITY
]
=
0
leftObj
[
LocalVariable
.
LOCAL_SECOND_DATA
]
=
[]
})
topProcOptionList
[
topIndex
]
=
topItem
that
.
setState
({
topActiveIndex
:
topIndex
,
topProcOptionList
:
topProcOptionList
...
...
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