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
38160f5e
Commit
38160f5e
authored
Aug 22, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
14d0c52f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
17 deletions
+25
-17
src/components/detail/bargain/index.js
+6
-5
src/components/detail/group/togroup.js
+11
-11
src/components/myOrders/index.js
+1
-1
src/components/study/freeCourses/free-courses.scss
+7
-0
No files found.
src/components/detail/bargain/index.js
View file @
38160f5e
...
@@ -184,6 +184,7 @@ class Bargain extends Component {
...
@@ -184,6 +184,7 @@ class Bargain extends Component {
render
()
{
render
()
{
const
{
list
,
outList
,
barInfo
}
=
this
.
state
;
const
{
list
,
outList
,
barInfo
}
=
this
.
state
;
console
.
log
(
barInfo
)
const
{
user
}
=
this
.
props
const
{
user
}
=
this
.
props
const
uid
=
user
&&
user
.
data
&&
user
.
data
.
uid
const
uid
=
user
&&
user
.
data
&&
user
.
data
.
uid
return
(
return
(
...
@@ -192,7 +193,7 @@ class Bargain extends Component {
...
@@ -192,7 +193,7 @@ class Bargain extends Component {
{
/*bargain_status 砍价状态 0-砍价中,1砍价结束,待支付,2砍价过期(没有砍价记录没有砍价信息),3已购买*/
}
{
/*bargain_status 砍价状态 0-砍价中,1砍价结束,待支付,2砍价过期(没有砍价记录没有砍价信息),3已购买*/
}
{
{
(
barInfo
.
bargain_status
===
2
||
!
uid
)
&&
(
barInfo
.
bargain_status
===
2
||
!
uid
)
&&
<
BargainIntro
limitPeople
=
{
barInfo
.
limit
P
eople
}
iWantBargain
=
{
this
.
iWantBargain
}
/
>
<
BargainIntro
limitPeople
=
{
barInfo
.
limit
_p
eople
}
iWantBargain
=
{
this
.
iWantBargain
}
/
>
}
}
{
{
(
barInfo
.
bargain_status
===
0
||
barInfo
.
bargain_status
===
1
)
&&
(
barInfo
.
bargain_status
===
0
||
barInfo
.
bargain_status
===
1
)
&&
...
@@ -239,11 +240,11 @@ class Bargain extends Component {
...
@@ -239,11 +240,11 @@ class Bargain extends Component {
{
/*更多好友砍价*/
}
{
/*更多好友砍价*/
}
<
Ranking
<
Ranking
list
=
{
list
}
list
=
{
list
}
icon
=
{
this
.
state
.
kanjiaIcon
}
icon
=
{
this
.
state
.
kanjiaIcon
}
limitPeople
=
{
barInfo
.
limitPeople
}
limitPeople
=
{
barInfo
.
limitPeople
}
isShowMore
=
{
this
.
state
.
isShowMore
}
isShowMore
=
{
this
.
state
.
isShowMore
}
boxHide
=
{
this
.
boxHide
}
boxHide
=
{
this
.
boxHide
}
/
>
/
>
...
...
src/components/detail/group/togroup.js
View file @
38160f5e
...
@@ -61,7 +61,7 @@ class ToGroup extends Component {
...
@@ -61,7 +61,7 @@ class ToGroup extends Component {
wx
.
showMenuItems
({
wx
.
showMenuItems
({
menuList
:
[
'menuItem:share:appMessage'
,
'menuItem:share:timeline'
]
// 要显示的菜单项,所有menu项见附录3
menuList
:
[
'menuItem:share:appMessage'
,
'menuItem:share:timeline'
]
// 要显示的菜单项,所有menu项见附录3
});
});
wx
.
updateAppMessageShareData
({
wx
.
updateAppMessageShareData
({
...
shareData
,
...
shareData
,
success
:
function
()
{
success
:
function
()
{
// 设置成功
// 设置成功
...
@@ -152,10 +152,10 @@ class ToGroup extends Component {
...
@@ -152,10 +152,10 @@ class ToGroup extends Component {
<
div
className
=
'to-group-box'
>
<
div
className
=
'to-group-box'
>
<
HeaderBar
title
=
'拼团'
cart
=
{
false
}
toHref
=
{()
=>
this
.
toCourseDetail
(
course_id
)}
><
/HeaderBar
>
<
HeaderBar
title
=
'拼团'
cart
=
{
false
}
toHref
=
{()
=>
this
.
toCourseDetail
(
course_id
)}
><
/HeaderBar
>
{
{
!
is_success
&&
!
is_success
&&
<
VList
<
VList
img
=
{
this
.
state
.
data
.
image_name
}
img
=
{
this
.
state
.
data
.
image_name
}
id
=
{
this
.
state
.
data
.
course_id
}
id
=
{
this
.
state
.
data
.
course_id
}
info
=
{
Info
}
info
=
{
Info
}
toDetail
=
{
this
.
toCourseDetail
}
toDetail
=
{
this
.
toCourseDetail
}
/
>
/
>
...
@@ -187,10 +187,10 @@ class ToGroup extends Component {
...
@@ -187,10 +187,10 @@ class ToGroup extends Component {
<
/div
>
<
/div
>
<
/div
>
<
/div
>
return
(
return
(
<
VList
<
VList
img
=
{
item
.
image_name
}
img
=
{
item
.
image_name
}
key
=
{
item
.
uid
}
key
=
{
item
.
uid
}
id
=
{
item
.
course_id
}
id
=
{
item
.
course_id
}
info
=
{
weekInfo
}
info
=
{
weekInfo
}
toDetail
=
{
this
.
toCourseDetail
}
toDetail
=
{
this
.
toCourseDetail
}
/
>
/
>
...
@@ -261,7 +261,7 @@ function GorupContent(props) {
...
@@ -261,7 +261,7 @@ function GorupContent(props) {
if
(
is_success
===
1
)
{
if
(
is_success
===
1
)
{
tip
=
<
p
className
=
'success'
>
拼团成功
<
/p
>
tip
=
<
p
className
=
'success'
>
拼团成功
<
/p
>
btn
=
<
Link
to
=
{
`/
play
`
}
className
=
'tostudy'
>
去学习
<
/Link
>
btn
=
<
Link
to
=
{
`/
detail?id=
${
data
.
course_id
}
`
}
className
=
'tostudy'
>
去学习
<
/Link
>
}
}
return
(
return
(
<
div
className
=
'gorup-content'
>
<
div
className
=
'gorup-content'
>
...
@@ -269,7 +269,7 @@ function GorupContent(props) {
...
@@ -269,7 +269,7 @@ function GorupContent(props) {
share
?
(
share
?
(
<
div
className
=
'groupSuccessMbc'
onClick
=
{
props
.
invitedFriends
}
>
<
div
className
=
'groupSuccessMbc'
onClick
=
{
props
.
invitedFriends
}
>
<
div
className
=
'tipContent'
>
<
div
className
=
'tipContent'
>
{
`还差
${
number
}
人,分享到3个群,成团率高达98%`
}
{
`还差
${
number
}
人,分享到3个群,成团率高达98%`
}
<
/div
>
<
/div
>
<
div
className
=
'tipArrow'
>
<
div
className
=
'tipArrow'
>
...
...
src/components/myOrders/index.js
View file @
38160f5e
...
@@ -112,7 +112,7 @@ class MyOrders extends Component {
...
@@ -112,7 +112,7 @@ class MyOrders extends Component {
<
p
className
=
'order-content text-overflow-2'
>
{
item
.
description
}
<
/p
>
<
p
className
=
'order-content text-overflow-2'
>
{
item
.
description
}
<
/p
>
<
p
className
=
'order-des'
>
<
p
className
=
'order-des'
>
<
span
<
span
className
=
'order-newprice'
>
¥
{
item
.
pay_
amount
}
<
/span
>
className
=
'order-newprice'
>
¥
{
item
.
amount
}
<
/span
>
<
span
<
span
className
=
'order-price'
>
¥
{
item
.
price0
}
<
/span
>
className
=
'order-price'
>
¥
{
item
.
price0
}
<
/span
>
<
/p
>
<
/p
>
...
...
src/components/study/freeCourses/free-courses.scss
View file @
38160f5e
...
@@ -3,6 +3,13 @@
...
@@ -3,6 +3,13 @@
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
justify-content
:
space-between
;
justify-content
:
space-between
;
.course-base-item
{
margin-top
:
0
;
margin-bottom
:
15px
;
img
{
border-radius
:
3px
;
}
}
.top
{
.top
{
position
:
absolute
;
position
:
absolute
;
...
...
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