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
cc3fd630
Commit
cc3fd630
authored
Aug 26, 2019
by
FE
Browse files
Options
Browse Files
Download
Plain Diff
build conflict
parents
4e879b33
ef91ba3d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
6 deletions
+27
-6
src/App.js
+6
-2
src/components/detail/index.js
+5
-4
src/components/video/camp/campResolve.js
+4
-0
src/components/video/camp/campTest.js
+4
-0
src/components/video/video-catalog/index.js
+8
-0
No files found.
src/App.js
View file @
cc3fd630
...
...
@@ -5,7 +5,7 @@ import { connect } from "react-redux";
import
{
setCurrentUser
,
startFetchUser
}
from
"@/store/userAction"
;
import
{
withRouter
}
from
'react-router-dom'
import
{
compose
}
from
'redux'
import
{
getParam
,
http
}
from
"@/utils"
;
import
{
getParam
,
http
,
browser
}
from
"@/utils"
;
import
{
Toast
}
from
"antd-mobile"
;
import
{
addDays
}
from
'date-fns'
...
...
@@ -41,6 +41,10 @@ class App extends Component {
//平台信息
cookie
.
set
(
'plat'
,
'5'
,
{
domain
:
'.julyedu.com'
})
if
(
browser
.
isWeixin
&&
browser
.
isIOS
)
{
sessionStorage
.
setItem
(
'enter_url'
,
window
.
location
.
href
)
}
this
.
props
.
startFetchUser
()
http
.
get
(
`
${
API
.
home
}
/m/user_info`
).
then
(
res
=>
{
this
.
props
.
setCurrentUser
(
this
.
transformUser
(
res
))
...
...
@@ -51,7 +55,7 @@ class App extends Component {
history
.
listen
(
location
=>
{
const
{
pathname
}
=
location
if
(
pathname
.
startsWith
(
'/passport'
))
{
if
(
routeMatchRule
.
test
(
pathname
))
{
if
(
routeMatchRule
.
test
(
pathname
))
{
return
}
location
.
state
=
{
from
:
this
.
previousLocation
};
...
...
src/components/detail/index.js
View file @
cc3fd630
...
...
@@ -46,12 +46,14 @@ class Detail extends Component {
}
componentDidMount
()
{
if
(
browser
.
isWeixin
){
wxShare
({
title
:
`课程详情页`
,
desc
:
`课程详情页`
,
link
:
encodeURI
(
location
.
origin
+
'/detail?id='
+
getParam
(
'id'
)),
imgUrl
:
''
});
link
:
location
.
href
,
imgUrl
:
`
${
location
.
origin
}
/favicon.ico`
})
}
this
.
fetchCourseInfo
();
const
{
location
:
{
state
=
{}
}
}
=
this
.
props
;
...
...
@@ -472,7 +474,6 @@ class Detail extends Component {
title
=
'课程详情'
arrow
=
{
true
}
cart
=
{
true
}
toHref
=
{
href
}
/
>
<
CallApp
className
=
'toapp'
/>
...
...
src/components/video/camp/campResolve.js
View file @
cc3fd630
...
...
@@ -35,6 +35,7 @@ class CampResolve extends Component {
this
.
body
=
document
.
getElementsByTagName
(
'body'
)[
0
];
this
.
body
.
style
.
position
=
'static'
;
}
else
{
<<<<<<<
HEAD
const
{
history
,
location
:
{
state
=
{}
}
}
=
this
.
props
;
let
to
=
''
;
if
(
state
.
from
&&
state
.
from
.
indexOf
(
'video'
)
!==
-
1
)
{
...
...
@@ -50,6 +51,9 @@ class CampResolve extends Component {
to
}
);
=======
this
.
props
.
history
.
push
(
`
${
this
.
props
.
location
.
state
.
from
}
`
,{
href
:
'/purchased'
})
>>>>>>>
ef91ba3d8a0a94933546e5e626e4683a35469b0d
}
};
componentDidMount
()
{
...
...
src/components/video/camp/campTest.js
View file @
cc3fd630
...
...
@@ -71,6 +71,7 @@ class CampTest extends Component {
this
.
body
=
document
.
getElementsByTagName
(
'body'
)[
0
];
this
.
body
.
style
.
position
=
'static'
;
}
else
{
<<<<<<<
HEAD
const
{
history
,
location
:
{
state
=
{}
}
}
=
this
.
props
;
let
to
=
''
;
if
(
state
.
from
&&
state
.
from
.
indexOf
(
'video'
)
!==
-
1
)
{
...
...
@@ -86,6 +87,9 @@ class CampTest extends Component {
to
}
);
=======
this
.
props
.
history
.
push
(
`
${
this
.
props
.
location
.
state
.
from
}
`
,{
href
:
'/classify'
})
>>>>>>>
ef91ba3d8a0a94933546e5e626e4683a35469b0d
}
};
// 选择答案
...
...
src/components/video/video-catalog/index.js
View file @
cc3fd630
...
...
@@ -35,6 +35,7 @@ class VideoCatalog extends Component {
<
/div
>
{
(
item
.
practice
&&
item
.
practice
.
qid
)
<<<<<<<
HEAD
?
<
Link
to
=
{{
pathname
:
item
.
practice
.
is_tested
?
'/campResolve'
:
'/campTest'
,
...
...
@@ -44,6 +45,13 @@ class VideoCatalog extends Component {
}
}}
>
=======
?
<
Link
to
=
{{
pathname
:
item
.
practice
.
is_tested
?
'/campResolve'
:
'/campTest'
,
search
:
`?keshi_id=
${
item
.
id
}
&qid=
${
item
.
practice
.
qid
}
`
,
state
:
{
from
:
`/play/video
${
window
.
location
.
search
}
`
}
}}
>
>>>>>>>
ef91ba3d8a0a94933546e5e626e4683a35469b0d
<
div
className
=
"exercise"
>
课后练习:
{
item
.
practice
.
title
}
<
i
className
=
{
classnames
(
'iconfont'
,
!
item
.
video_auth
?
'iconiconfront-74'
:
item
.
practice
.
is_tested
?
'iconiconfront-3'
:
''
)}
/
>
...
...
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