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
32302e4d
Commit
32302e4d
authored
Aug 26, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
5c92edf3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
6 deletions
+20
-6
src/components/Index/index.js
+4
-2
src/components/Index/index.scss
+6
-1
src/components/Index/liveRoom.js
+7
-1
src/components/detail/group/togroup.js
+3
-2
No files found.
src/components/Index/index.js
View file @
32302e4d
...
...
@@ -330,12 +330,14 @@ function ScrollBox(props) {
<
div
className
=
"item-content"
>
<
h2
className
=
"item-title"
>
{
item
.
live_title
}
<
/h2
>
<
p
className
=
"item-teacher"
>
讲师:
{
item
.
live_teacher_name
}
<
/p
>
{
/*公开课需预约、付费课不需要预约*/
}
{
item
.
is_prepare
&&
item
.
live_status
===
0
&&
(
item
.
is_prepare
||
item
.
is_free
===
0
)
&&
item
.
live_status
===
0
&&
<
p
className
=
"item-time"
>
时间:
{
item
.
live_start_time
}
<
/p
>
}
{
!
item
.
is_prepare
&&
item
.
live_status
===
0
&&
!
item
.
is_prepare
&&
item
.
live_status
===
0
&&
item
.
is_free
===
1
&&
<
button
className
=
'item-btn'
>
预约
<
/button
>
}
{
...
...
src/components/Index/index.scss
View file @
32302e4d
...
...
@@ -504,7 +504,7 @@
text-align
:
center
;
height
:
47px
;
button
{
button
,
a
{
width
:
60px
;
height
:
27px
;
background-color
:
$bg_active
;
...
...
@@ -517,6 +517,11 @@
margin-left
:
-30px
;
bottom
:
10px
;
}
a
{
width
:
90px
;
line-height
:
27px
;
margin-left
:
-45px
;
}
span
{
width
:
220px
;
...
...
src/components/Index/liveRoom.js
View file @
32302e4d
...
...
@@ -2,6 +2,8 @@ import React, {Component} from 'react'
import
'./index.scss'
import
{
http
,
browser
,
validateTel
}
from
'@/utils'
import
{
Toast
}
from
'antd-mobile'
import
{
Link
}
from
"react-router-dom"
class
LiveRoom
extends
Component
{
constructor
(
props
)
{
...
...
@@ -214,10 +216,14 @@ class LiveRoom extends Component {
<
/div
>
<
div
className
=
'course-subscribe'
>
{
!
roomMess
.
is_prepare
&&
roomMess
.
course_id
!==
0
&&
!
roomMess
.
is_prepare
&&
roomMess
.
is_free
===
1
&&
<
button
onClick
=
{
this
.
toSubscribeFun
}
>
预约
<
/button
>
}
{
roomMess
.
is_free
===
0
&&
<
Link
to
=
{
`/detail?id=
${
roomMess
.
course_id
}
`
}
>
查看课程
<
/Link
>
}
{
roomMess
.
is_prepare
&&
<
span
>
直播尚未开始,敬请期待
...
<
/span
>
}
...
...
src/components/detail/group/togroup.js
View file @
32302e4d
...
...
@@ -207,6 +207,7 @@ class ToGroup extends Component {
function
GorupContent
(
props
)
{
let
tip
,
btn
,
dec
,
groupTip
,
shareTip
,
groupSuccessMbc
;
const
{
pdd_price
,
data
,
groupon_member
,
is_success
,
person_num
,
userInfo
,
share
,
number
,
countdown
}
=
props
.
data
;
let
ary
=
[],
num
=
number
;
while
(
num
!=
0
)
{
ary
.
push
(
num
);
...
...
@@ -252,11 +253,11 @@ function GorupContent(props) {
})
if
(
flag
)
{
tip
=
<
p
className
=
'tip'
>
{
`拼团省¥
${
pdd_price
}
元`
}
<
/p
>
tip
=
<
p
className
=
'tip'
>
{
`拼团省¥
${
data
.
price1
-
pdd_price
}
元`
}
<
/p
>
btn
=
<
span
className
=
'group-btn'
onClick
=
{
props
.
invitedFriends
}
>
邀请好友参团
{
countdown
}
后结束
<
/span
>
dec
=
<
p
className
=
'dec'
>
分享到
3
个群后,成团率高达
98
%<
/p
>
}
else
{
tip
=
<
p
className
=
'tip'
>
{
`拼团省¥
${
pdd_price
}
元`
}
<
/p
>
tip
=
<
p
className
=
'tip'
>
{
`拼团省¥
${
data
.
price1
-
pdd_price
}
元`
}
<
/p
>
btn
=
<
Link
to
=
{
`/order?id=
${
data
.
course_id
}
`
}
className
=
'group-btn'
>
一键参团
<
/Link
>
}
}
...
...
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