Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
addInsured-AIA-POC
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
liujianghai
addInsured-AIA-POC
Commits
b86e8e2e
Commit
b86e8e2e
authored
Mar 05, 2020
by
marsandheart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整理无用的代码
parent
ca6f353d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
QuestionItem.jsx
src/pages/DoubleRecord.components/QuestionItem.jsx
+4
-7
No files found.
src/pages/DoubleRecord.components/QuestionItem.jsx
View file @
b86e8e2e
import
React
,
{
useState
}
from
'react'
;
import
React
from
'react'
;
import
styles
from
'./Question.module.scss'
;
import
TouchOpacity
from
'components/TouchOpacity'
;
...
...
@@ -13,12 +13,10 @@ import IconCheckDefaultRed from 'assets/img/check_default-square-red.png';
// question不一定都是问题,也可能是答案,其实分为需要读/不需要读 和 需要操作/不需要操作
export
default
function
(
props
)
{
const
{
question
,
setPlayStatus
,
setChecked
,
voice
Start
,
voice
Pause
,
voiceContinue
}
=
props
;
const
{
questionId
,
needPlay
,
needCheck
,
text
,
voice
,
playStatus
,
checked
}
=
question
;
const
{
question
,
setPlayStatus
,
setChecked
,
voicePause
,
voiceContinue
}
=
props
;
const
{
questionId
,
needPlay
,
needCheck
,
text
,
playStatus
,
checked
}
=
question
;
// 0 未开始-无图标;1 播放中-显示暂停图标;2 暂停中-显示播放图标; 3 已结束-显示灰色播放图标
// const [playStatus, setPlayStatus] = useState('0');
// const [checked, setChecked] = useState(false);
// playStatus: 0 未开始-无图标;1 播放中-显示暂停图标;2 暂停中-显示播放图标; 3 已结束-显示灰色播放图标
const
getPlayIcon
=
()
=>
{
if
(
playStatus
===
'3'
)
{
...
...
@@ -48,7 +46,6 @@ export default function(props) {
console
.
log
({
question
});
if
(
playStatus
===
'2'
)
{
setPlayStatus
(
questionId
,
'1'
);
// voiceStart(voice);
voiceContinue
();
}
else
if
(
playStatus
===
'1'
)
{
setPlayStatus
(
questionId
,
'2'
);
...
...
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