Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
max_android_panel
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zhang Xin
max_android_panel
Commits
f1338701
Commit
f1338701
authored
Jul 18, 2018
by
yaxiLiuu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed the other problem redecer â
parent
28aeea91
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
6 deletions
+51
-6
client/actions/otherQuestion.js
+38
-1
client/actiontype/otherQuestion.js
+13
-1
client/components/OtherQuestionComponent/EditProblemComponent.jsx
+0
-2
client/containers/OtherQuestionContainer/OtherQuestionContainer.jsx
+0
-2
No files found.
client/actions/otherQuestion.js
View file @
f1338701
...
...
@@ -144,7 +144,10 @@ export function initGetOtherProblem(postData) {
}
}
export
function
addNewProbem
(
postaData
)
{
dispatch
(
addNewProblemSuccess
(
fakseJsonData2
.
data
))
return
(
dispatch
)
=>
{
dispatch
(
addNewProblemSuccess
(
fakseJsonData2
.
data
))
}
}
function
initSuccess
(
data
)
{
...
...
@@ -158,4 +161,37 @@ function addNewProblemSuccess(data) {
type
:
actionTypes
.
ADD_NEWPROBLEM_SUCCESS
,
data
}
}
function
deleteProblemSuccess
(
data
)
{
return
{
type
:
actionTypes
.
DELETE_PROBLEM_SUCCESS
,
data
}
}
function
submitProblemList
(
data
)
{
return
{
type
:
actionTypes
.
SUBMIT_PROBLEM_SUCCESS
,
data
}
}
function
addImgSuccess
(
data
)
{
return
{
type
:
actionTypes
.
ADD_IMG_SUCCESS
,
data
}
}
function
deleteImgSuccess
(
data
)
{
return
{
type
:
actionTypes
.
DELETE_IMG_SUCCESS
,
data
}
}
function
overStepSuccess
(
data
)
{
return
{
type
:
actionTypes
.
OVER_STEP_SUCCESS
,
data
}
}
\ No newline at end of file
client/actiontype/otherQuestion.js
View file @
f1338701
/*const INIT_SCANBARCODEGETPRODUCTINFO_SUCCESS = 'INIT_SCANBARCODEGETPRODUCTINFO_SUCCESS'*/
// 初始化问题
const
INIT_GETNEWPROBLEM_SUCCESS
=
'INIT_GETNEWPROBLEM_SUCCESS'
;
// 添加新问题
const
ADD_NEWPROBLEM_SUCCESS
=
'ADD_NEWPROBLEM_SUCCESS'
;
// 删除当前问题
const
DELETE_PROBLEM_SUCCESS
=
'DELETE_PROBLEM_SUCCESS'
;
// 提交当前编辑的问题
const
SUBMIT_PROBLEM_SUCCESS
=
'SUBMIT_PROBLEM_SUCCESS'
;
// 添加图片
const
ADD_IMG_SUCCESS
=
"ADD_IMG_SUCCESS"
;
// 删除图片
const
DELETE_IMG_SUCCESS
=
"DELETE_IMG_SUCCESS"
;
// 跳过
const
OVER_STEP_SUCCESS
=
"OVER-STEP_SUCCESSS"
;
module
.
exports
=
{
INIT_GETNEWPROBLEM_SUCCESS
,
ADD_NEWPROBLEM_SUCCESS
}
module
.
exports
=
{
INIT_GETNEWPROBLEM_SUCCESS
,
ADD_NEWPROBLEM_SUCCESS
,
DELETE_PROBLEM_SUCCESS
,
SUBMIT_PROBLEM_SUCCESS
,
ADD_IMG_SUCCESS
,
OVER_STEP_SUCCESS
,
DELETE_IMG_SUCCESS
}
client/components/OtherQuestionComponent/EditProblemComponent.jsx
View file @
f1338701
...
...
@@ -30,8 +30,6 @@ export default class EditProblemItem extends React.Component{
})
}
handleShowElement
(
value
){
console
.
log
(
value
);
console
.
log
(
this
.
state
[
value
]);
if
(
value
==
"showDetailElement"
){
//点击了 小分类 检查如果大分类未选择则进行提示
if
(
!
this
.
state
.
currentBigId
){
...
...
client/containers/OtherQuestionContainer/OtherQuestionContainer.jsx
View file @
f1338701
...
...
@@ -136,14 +136,12 @@ export default class OtherQuestionContainer extends React.Component{
render
(){
//let 难道初始化的数据:
let
{
state
,
addNewProblem
}
=
this
.
props
;
console
.
log
(
state
)
let
{
otherQuestion
}
=
state
;
let
{
feeds
,
problems
}
=
otherQuestion
;
let
editProblemItemUI
=
''
;
let
swiperCount
=
0
;
feeds
&&
feeds
.
length
>
0
?(
editProblemItemUI
=
feeds
.
map
((
i
,
k
)
=>
{
console
.
log
(
this
.
state
);
let
troubleId
=
i
.
id
;
let
currentRemark
=
this
.
state
.
problemList
[
troubleId
].
remarkText
;
return
<
EditProblemItem
...
...
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