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
327b500d
Commit
327b500d
authored
Aug 22, 2019
by
FE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
未登陆时,课程详情页提示未登陆问题修改,改变判断方式
parent
410540a6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
src/components/detail/bargain/index.js
+1
-2
src/components/detail/btnstatus/index.js
+1
-3
No files found.
src/components/detail/bargain/index.js
View file @
327b500d
...
...
@@ -30,7 +30,7 @@ class Bargain extends Component {
componentDidMount
()
{
const
{
user
=
{}
}
=
this
.
props
;
if
(
user
.
code
===
200
)
{
if
(
user
.
data
&&
user
.
data
.
uid
)
{
this
.
getBargainInfo
();
}
}
...
...
@@ -183,7 +183,6 @@ class Bargain extends Component {
}
render
()
{
console
.
log
(
this
.
state
);
const
{
list
,
outList
,
barInfo
}
=
this
.
state
;
const
{
user
}
=
this
.
props
const
uid
=
user
&&
user
.
data
&&
user
.
data
.
uid
...
...
src/components/detail/btnstatus/index.js
View file @
327b500d
...
...
@@ -40,7 +40,7 @@ class BtnStatus extends Component {
componentWillReceiveProps
(
nextProps
)
{
const
{
data
=
{},
user
=
{}}
=
nextProps
;
if
(
data
.
is_bargain
&&
user
.
code
!==
4030
)
{
if
(
data
.
is_bargain
&&
user
.
data
&&
user
.
data
.
uid
)
{
this
.
getBargainInfo
();
}
// if(nextProps.data && nextProps.data.is_bargain) {
...
...
@@ -234,12 +234,10 @@ class BtnStatus extends Component {
}
render
()
{
console
.
log
(
this
.
state
);
// data 课程信息;barInfo 砍价信息
const
{
user
=
{},
toCart
}
=
this
.
props
;
const
{
countdown
,
barInfo
,
courseInfo
:
info
=
{}}
=
this
.
state
;
const
uid
=
user
.
data
&&
user
.
data
.
uid
;
console
.
log
(
info
.
in_cart
);
return
(
<
div
>
{
/*正常购买*/
}
...
...
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