Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiguangyao
mr-julyedu
Commits
65cfca61
Commit
65cfca61
authored
Aug 16, 2019
by
FE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify bug 08.16
parent
70151df2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
9 deletions
+15
-9
src/components/Index/index.js
+2
-2
src/components/coupons/index.js
+1
-1
src/components/detail/outline/index.js
+1
-1
src/components/examination/index.js
+10
-4
src/components/sharePoster/index.js
+1
-1
No files found.
src/components/Index/index.js
View file @
65cfca61
...
@@ -239,8 +239,8 @@ function CourseList({modules}) {
...
@@ -239,8 +239,8 @@ function CourseList({modules}) {
const
bottom
=
(
const
bottom
=
(
<
div
>
<
div
>
{
!
item
.
isbuy
&&
<
p
className
=
"course-price"
>
{
!
item
.
isbuy
&&
<
p
className
=
"course-price"
>
<
span
className
=
"new"
>
¥
{
item
.
price
}
<
/span
>
<
span
className
=
"new"
>
¥
{
item
.
discounts_
price
}
<
/span
>
<
span
className
=
"old"
>
¥
{
item
.
discounts_
price
}
<
/span
>
<
span
className
=
"old"
>
¥
{
item
.
price
}
<
/span
>
<
/p
>
<
/p
>
}
}
{
item
.
isbuy
&&
{
item
.
isbuy
&&
...
...
src/components/coupons/index.js
View file @
65cfca61
...
@@ -56,7 +56,7 @@ class UseCoupon extends PureComponent {
...
@@ -56,7 +56,7 @@ class UseCoupon extends PureComponent {
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
const
data
=
res
.
data
const
data
=
res
.
data
if
(
data
.
code
===
20
0
)
{
if
(
data
.
code
===
0
)
{
const
coupon
=
data
.
data
const
coupon
=
data
.
data
...
...
src/components/detail/outline/index.js
View file @
65cfca61
...
@@ -81,7 +81,7 @@ class OutLine extends Component {
...
@@ -81,7 +81,7 @@ class OutLine extends Component {
6-可试听但无试听权限
6-可试听但无试听权限
*/
}
*/
}
{
// 试听
{
// 试听
!
introduce
.
is_aist
&&
item
.
class_status
===
7
&&
!
introduce
.
is_aist
&&
item
.
class_status
===
6
&&
<
span
className
=
'btn-right-10 audition'
<
span
className
=
'btn-right-10 audition'
onClick
=
{
this
.
props
.
toAudition
}
>
试听
onClick
=
{
this
.
props
.
toAudition
}
>
试听
<
i
className
=
'iconfont iconcelluar'
><
/i
>
<
i
className
=
'iconfont iconcelluar'
><
/i
>
...
...
src/components/examination/index.js
View file @
65cfca61
...
@@ -5,6 +5,8 @@ import classnames from 'classnames'
...
@@ -5,6 +5,8 @@ import classnames from 'classnames'
import
{
Tag
}
from
'../../common'
import
{
Tag
}
from
'../../common'
import
OpenApp
from
'./OpenApp'
import
OpenApp
from
'./OpenApp'
import
{
http
,
html
,
htmlDecode
}
from
'@/utils'
import
{
http
,
html
,
htmlDecode
}
from
'@/utils'
import
{
config
}
from
'rxjs'
;
import
{
Object
}
from
'core-js'
;
export
default
class
Examination
extends
PureComponent
{
export
default
class
Examination
extends
PureComponent
{
...
@@ -20,9 +22,13 @@ export default class Examination extends PureComponent {
...
@@ -20,9 +22,13 @@ export default class Examination extends PureComponent {
componentDidMount
()
{
componentDidMount
()
{
http
.
get
(
`
${
API
.
home
}
/m/dailyQuestion`
)
http
.
get
(
`
${
API
.
home
}
/m/dailyQuestion`
)
.
then
(
res
=>
{
.
then
(
res
=>
{
this
.
setState
({
const
{
data
:
{
data
,
code
}
}
=
res
;
questionData
:
res
.
data
.
data
if
(
code
===
200
)
{
})
const
newData
=
Object
.
assign
(
data
,
{
analysis
:
data
.
analysis
.
length
>
0
?
data
.
analysis
.
split
(
'
\
n'
):
[]})
this
.
setState
({
questionData
:
newData
})
}
})
})
}
}
...
@@ -86,7 +92,7 @@ const Answer = React.memo(({content, isShowAnswer}) => {
...
@@ -86,7 +92,7 @@ const Answer = React.memo(({content, isShowAnswer}) => {
return
(
return
(
<
div
className
=
{
classnames
(
'answer'
,
{
scale
:
isShowAnswer
})}
>
<
div
className
=
{
classnames
(
'answer'
,
{
scale
:
isShowAnswer
})}
>
<
p
className
=
'legend'
>
解析
<
/p
>
<
p
className
=
'legend'
>
解析
<
/p
>
<
p
className
=
'content'
dangerouslySetInnerHTML
=
{{
__html
:
content
}}
/
>
{
content
.
length
>
0
&&
content
.
map
((
item
,
index
)
=>
<
p
key
=
{
index
}
className
=
'content'
dangerouslySetInnerHTML
=
{{
__html
:
item
}}
/>
)
}
<
/div
>
<
/div
>
)
)
})
})
src/components/sharePoster/index.js
View file @
65cfca61
...
@@ -156,7 +156,7 @@ class SharePoster extends Component {
...
@@ -156,7 +156,7 @@ class SharePoster extends Component {
// 获取二维码
// 获取二维码
getCodeWe
()
{
getCodeWe
()
{
let
_this
=
this
let
_this
=
this
let
qrCodeLink
=
`/detail/
${
getParam
(
'courseId'
)}
/
${
getParam
(
'dist_code'
)}
`
let
qrCodeLink
=
`
http://m.julyedu.com
/detail/
${
getParam
(
'courseId'
)}
/
${
getParam
(
'dist_code'
)}
`
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
QRCode
.
toDataURL
(
qrCodeLink
,
{},
function
(
err
,
url
)
{
QRCode
.
toDataURL
(
qrCodeLink
,
{},
function
(
err
,
url
)
{
_this
.
setState
({
_this
.
setState
({
...
...
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