Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
wechatapp.shangjiadao.com
Project
Project
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
wangxuelai
wechatapp.shangjiadao.com
Commits
9840f650
Commit
9840f650
authored
Apr 13, 2020
by
lvtz
Browse files
Options
Browse Files
Download
Plain Diff
fix
parents
6a03d2ad
5baab9dc
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
697 additions
and
52 deletions
+697
-52
app.json
app.json
+7
-0
form.wxss
business/pages/bindmessagepush/form.wxss
+211
-0
index.js
business/pages/bindmessagepush/index.js
+102
-0
index.json
business/pages/bindmessagepush/index.json
+3
-0
index.wxml
business/pages/bindmessagepush/index.wxml
+19
-0
index.wxss
business/pages/bindmessagepush/index.wxss
+102
-0
clocklist.js
business/pages/deskcenter/clocklist.js
+18
-12
landpage.wxml
business/pages/themead/landpage.wxml
+1
-1
regexp.js
constants/regexp.js
+2
-1
landpage.wxml
src/pages/calendarthemeindex/landpage.wxml
+1
-1
index.wxml
src/pages/sharemoretheme/index.wxml
+1
-1
landpage.wxml
src/pages/themeindex/landpage.wxml
+1
-1
index.js
src/pages/websiteindex/index.js
+1
-0
onlineclassroomlist.js
src/pages/websiteindex/onlineclassroomlist.js
+17
-2
onlineclassroomlist.json
src/pages/websiteindex/onlineclassroomlist.json
+1
-0
onlineclassroomlist.wxml
src/pages/websiteindex/onlineclassroomlist.wxml
+34
-9
onlineclassroomlist.wxss
src/pages/websiteindex/onlineclassroomlist.wxss
+103
-11
onlineclassroomplay.js
src/pages/websiteindex/onlineclassroomplay.js
+1
-0
onlineclassroomplay.wxml
src/pages/websiteindex/onlineclassroomplay.wxml
+19
-12
onlineclassroomplay.wxss
src/pages/websiteindex/onlineclassroomplay.wxss
+53
-1
No files found.
app.json
View file @
9840f650
...
...
@@ -735,6 +735,13 @@
"index"
]
},
{
"root"
:
"business/pages/bindmessagepush"
,
"name"
:
"bindmesagepush"
,
"pages"
:
[
"index"
]
},
{
"root"
:
"business/pages/coursemgt"
,
"name"
:
"coursemgt"
,
...
...
business/pages/bindmessagepush/form.wxss
0 → 100644
View file @
9840f650
.container{
width: 100%;
padding: 0 60rpx;
box-sizing: border-box;
min-height: 100vh;
}
.logo-box{
padding: 38rpx 0 90rpx;
}
.logo-box .logo{
width: 103rpx;
height: 103rpx;
border-radius: 50%;
}
.logo-box .slogon{
font-size: 22rpx;
color: rgba(0,0,0,.4);
padding-top: 38rpx;
}
.form-box{
position: relative;
margin-top: 75rpx;
}
.form-box .form-item{
display: flex;
align-items: center;
position: relative;
height: 100rpx;
}
.form-box .form-item::after{
content:'';
width: 100%;
height: 1px;
background: rgba(0,0,0,.05);
position: absolute;
left: 0;
bottom: 0;
}
.form-box .form-item .left-iconbox{
min-width: 50rpx;
display: flex;
align-items: center;
justify-content: center;
margin-right: 26rpx;
}
.form-box .form-item .left-iconbox .left-icon{
}
.form-box .form-item .left-iconbox .icon-phone{
width: 41rpx;
height: 50rpx;
}
.form-box .form-item .left-iconbox .icon-code{
width: 27rpx;
height: 20rpx;
}
.form-box .form-item .left-iconbox .icon-psd{
width: 42rpx;
height: 46rpx;
}
.form-box .form-item .left-iconbox .icon-orgname,
.form-box .form-item .left-iconbox .icon-address{
width: 46rpx;
height: 46rpx;
}
.form-box .form-item .btn-getcode,
.form-box .form-item .icon-psdstatus{
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
}
.form-box .form-item .btn-getcode{
font-size: 24rpx;
border-radius: 25rpx;
height: 50rpx;
line-height: 50rpx;
padding: 0 20rpx;
color: #fff;
background: #2DBCFF;
}
/* .form-box .form-item .btn-getcode-default{
color: #fff;
background: #2DBCFF;
}
.form-box .form-item .btn-getcode-disabled{
color: rgba(0,163,255,.6);
background: rgba(45,188,255,.1);
} */
.form-box .form-item .btn-getcode[disabled]{
color: rgba(0, 0, 0, 0.3);
background: #F7F7F7;
}
.form-box .form-item .icon-psdhide{
width: 38rpx;
height: 18rpx;
}
.form-box .form-item .icon-psdshow{
width: 38rpx;
height: 26rpx;
}
.form-box .error-tip{
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: -78rpx;
font-weight: 500;
color: #F76260;
padding-left: 25rpx;
display: flex;
align-items: center;
height: 52rpx;
line-height: 52rpx;
background :rgba(255,255,255,1);
box-shadow: 0 1rpx 10rpx 0 rgba(220,220,220,0.3);
border-radius: 26rpx;
padding: 0 13rpx;
}
.form-box .error-tip .icon-warn{
width: 22rpx;
height: 22rpx;
margin-right: 14rpx;
}
.form-box .error-tip .warn-text{
font-size: 24rpx;
white-space: nowrap;
}
.form-box .btn-forgetpsd{
position: absolute;
right: 0;
bottom: -50rpx;
font-size: 24rpx;
color: #A3A3A3;
padding-left: 25rpx;
}
.form-box .btn-forgetpsd::before{
content: '';
width: 14rpx;
height: 14rpx;
background: rgba(101,184,244,1);
box-shadow: 0 2rpx 10rpx 0 rgba(0, 248, 144, 0.35);
border-radius: 50%;
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 0;
}
.formBtn{
font-size: 26rpx;
font-weight: bold;
color: #FDFDFD;
width: 100%;
height: 90rpx;
line-height: 90rpx;
text-align: center;
background: linear-gradient(-90deg,rgba(51,168,255,1),rgba(4,222,254,1));
box-shadow: 0px 8rpx 16rpx 0px rgba(51, 209, 255, .35);
border-radius:45rpx;
margin-top: 104rpx;
}
.formBtn-dark{
background: linear-gradient(-90deg,rgba(51,168,255,1),rgba(4,222,254,1));
box-shadow: 0px 8rpx 16rpx 0px rgba(51, 209, 255, .35);
opacity: 0.5;
}
button.formBtn[disabled]{
background: linear-gradient(-90deg,rgba(51,168,255,1),rgba(4,222,254,1));
box-shadow: 0px 8rpx 16rpx 0px rgba(51, 209, 255, .35);
opacity: 0.5;
color: #fff;
}
.bottom-box{
width: 100%;
position: absolute;
bottom: 0;
left: 0;
display: flex;
flex-direction: column;
align-items: center;
}
.bottom-box .tabchange{
display: flex;
align-items: center;
justify-content: center;
}
.bottom-box .tabchange .tab-item{
padding: 0 56rpx;
font-size: 26rpx;
color: #16B0FD;
position: relative;
}
.bottom-box .tabchange .tab-item::after{
content: '';
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%) scaleX(.5);
width: 1px;
height: 29rpx;
background: rgba(0,0,0,.2);
}
.bottom-box .tabchange .tab-item:last-of-type::after{
display: none;
}
.bottom-box .tip{
font-size: 24rpx;
color: #A3A3A3;
padding: 50rpx 0 70rpx;
}
\ No newline at end of file
business/pages/bindmessagepush/index.js
0 → 100644
View file @
9840f650
import
regexp
from
'../../../constants/regexp.js'
;
const
app
=
getApp
();
Page
({
data
:
{
imageRoot
:
app
.
globalData
.
imageRoot
,
imageVersion
:
app
.
globalData
.
imageVersion
,
params
:{
mobile
:
''
,
code
:
''
,
},
sending
:
false
,
hasSend
:
false
,
countdownTime
:
60
,
countdownIntervalId
:
''
,
isactive
:
false
,
},
onLoad
:
function
(
options
)
{
},
mobileInput
(
e
){
this
.
setData
({
"params.mobile"
:
e
.
detail
.
value
})
if
(
regexp
.
mobile
.
test
(
this
.
data
.
params
.
mobile
)
&&
regexp
.
verifyCode
.
test
(
this
.
data
.
params
.
code
))
{
this
.
setData
({
isactive
:
true
})
}
},
codeInput
(
e
){
this
.
setData
({
"params.code"
:
e
.
detail
.
value
})
if
(
regexp
.
mobile
.
test
(
this
.
data
.
params
.
mobile
)
&&
regexp
.
verifyCode
.
test
(
this
.
data
.
params
.
code
))
{
this
.
setData
({
isactive
:
true
})
}
},
login
(
e
)
{
console
.
log
(
this
.
data
.
params
,
'data.params'
);
},
sendVerify
()
{
// 发送验证码
const
that
=
this
;
if
(
!
regexp
.
mobile
.
test
(
that
.
data
.
params
.
mobile
))
{
that
.
setData
({
warnTip
:
'请输入正确格式的手机号,并获取验证码'
},()
=>
{
})
return
;
}
if
(
that
.
data
.
sending
)
{
return
}
that
.
setData
({
sending
:
true
})
getVerifyCode
({
mobile
:
that
.
data
.
params
.
mobile
,
sms_type
:
11
,
}).
then
((
res
)
=>
{
const
{
code
}
=
res
;
that
.
setData
({
sending
:
false
})
if
(
code
!=
200
)
{
wx
.
showModal
({
title
:
'提示'
,
content
:
res
.
msg
,
showCancel
:
false
,
confirm
:
true
})
return
;
}
that
.
setData
({
hasSend
:
true
})
let
countdownInterval
=
setInterval
(()
=>
{
let
countdownTime
=
that
.
data
.
countdownTime
-
1
;
that
.
setData
({
countdownTime
})
that
.
setData
({
countdownIntervalId
:
countdownInterval
,
})
if
(
that
.
data
.
countdownTime
<=
0
)
{
that
.
setData
({
hasSend
:
false
})
that
.
setData
({
countdownTime
:
60
})
clearInterval
(
that
.
data
.
countdownIntervalId
);
}
},
1000
);
}).
catch
((
err
)
=>
{
that
.
setData
({
sending
:
false
})
})
},
})
\ No newline at end of file
business/pages/bindmessagepush/index.json
0 → 100644
View file @
9840f650
{
"usingComponents"
:
{}
}
\ No newline at end of file
business/pages/bindmessagepush/index.wxml
0 → 100644
View file @
9840f650
<!--business/pages/loginregistermgt/login.wxml-->
<view class="container">
<view class="top-box">
<image class="logo" src="{{imageRoot}}common/circlelogo.png"/>
</view>
<view class="form-box">
<view class="login-type1">
<view class="form-item">
<input type="number" placeholder-class="placeholderclass" value="{{params.mobile}}" bindinput="mobileInput" maxlength="11" placeholder="请输入您的手机号码" />
</view>
<view class="form-item">
<input type="number" class="verifycodebtn" maxlength="4" bindinput="codeInput" placeholder-class="placeholderclass" value="{{params.code}}" placeholder="请输入验证码" />
<view class="btn-getcode {{hasSend || params.mobile.length<11 ? 'codesended': ''}}" bindtap="sendVerify"
disabled="{{hasSend || params.mobile.length<11}}">{{hasSend ? countdownTime + '秒后重新获取': '获取验证码'}}</view>
</view>
</view>
</view>
<button class="formBtn {{isactive ? 'isactive' : ''}}" bindtap="login">激活消息推送</button>
</view>
\ No newline at end of file
business/pages/bindmessagepush/index.wxss
0 → 100644
View file @
9840f650
@import "./form.wxss";
.top-box{
padding-top: 50rpx;
text-align: center;
}
.top-box .logo{
width: 142rpx;
height: 142rpx;
}
.top-box .text{
font-size:24rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(163,163,163,1);
text-align: center;
line-height: 1;
padding: 30rpx 0 30rpx 0;
}
.form-box-bottom{
display: flex;
justify-content: space-between;
padding-top: 48rpx;
}
.form-box-bottom .tab-btn{
font-size:26rpx;
font-family:PingFang-SC-Regular;
font-weight:400;
color:rgba(101,184,244,1);
}
.form-box-bottom .btn{
font-size:26rpx;
font-family:PingFang-SC-Regular;
font-weight:400;
color:rgba(163,163,163,1);
position: relative;
}
.form-box-bottom .btn::before{
content: '';
width:14rpx;
height:14rpx;
background:rgba(101,184,244,1);
box-shadow:0px 2rpx 10rpx 0px rgba(0, 248, 144, 0.35);
border-radius:50%;
display: block;
position: absolute;
left: -26rpx;
bottom: 10rpx;
}
.form-box .login-type1 .btn-getcode{
display: flex;
align-items: center;
justify-content: center;
background:#fff;
color:#0091FF;
border: 1px solid #0091FF;
}
.warnbox {
position: absolute;
top: 50%;
right: 0;
padding: 13rpx;
box-shadow:0px 1rpx 32rpx 0rpx rgba(220,220,220,0.49);
border-radius:0px 26rpx 26rpx 26rpx;
}
.warnbox .warnicon {
width: 22rpx;
height: 22rpx;
float: left;
margin-right: 14rpx;
}
.warnbox .warntext {
font-size: 24rpx;
color: #F76260;
float: left;
line-height: 1;
}
.form-box .login-type1 .btn-getcode.codesended {
background-color: #fff;
border: 1px solid #CCCCCC;
color: #CCCCCC;
display: flex;
align-items: center;
justify-content: center;
outline: none;
}
.form-item input {
width: 100%;
/* background-color: red; */
}
.form-item input.verifycodebtn {
width: 360rpx;
}
.container .formBtn {
background: initial;
background-color: #CCCCCC;
color: #FFFFFF;
box-shadow: initial;
}
.container .formBtn.isactive {
background-color: #0091FF;
}
\ No newline at end of file
business/pages/deskcenter/clocklist.js
View file @
9840f650
...
...
@@ -487,23 +487,29 @@ Page({
//解锁打卡 复制 发布
const
mockId
=
e
.
currentTarget
.
dataset
.
id
;
const
mockStatus
=
e
.
currentTarget
.
dataset
.
status
;
if
(
mySystem
.
system
&&
mySystem
.
system
.
toLowerCase
().
indexOf
(
"ios"
)
!=
-
1
&&
!
needIosWarn
)
{
// if (
// mySystem.system &&
// mySystem.system.toLowerCase().indexOf("ios") != -1 &&
// !needIosWarn
// ) {
// if (mockStatus == 2) {
// itemList = ['复制', text, "删除"];
// } else {
// itemList = ["发布", text, "删除"];
// }
// } else {
// if (mockStatus == 2) {
// itemList = ['复制', text, "删除", "取消"];
// } else {
// itemList = ["发布", text, "删除", "取消"];
// }
// }
if
(
mockStatus
==
2
)
{
itemList
=
[
'复制'
,
text
,
"删除"
];
}
else
{
itemList
=
[
"发布"
,
text
,
"删除"
];
}
}
else
{
if
(
mockStatus
==
2
)
{
itemList
=
[
'复制'
,
text
,
"删除"
,
"取消"
];
}
else
{
itemList
=
[
"发布"
,
text
,
"删除"
,
"取消"
];
}
}
that
.
getUnlockSubjectList
(
mockId
);
wx
.
showActionSheet
({
...
...
business/pages/themead/landpage.wxml
View file @
9840f650
...
...
@@ -50,7 +50,7 @@
<view class="mask" bindtap="bindModalContact"></view>
<view class="modal-content">
<view class="opt-box">
<button class="opt-item" open-type="contact" show-message-card="true" send-message-title="请求添加微信" send-message-path="/src/pages/theme
index/landpage?id=1" send-message-img="{{imageRoot}}service/works
.png?{{imageVersion}}">
<button class="opt-item" open-type="contact" show-message-card="true" send-message-title="请求添加微信" send-message-path="/src/pages/theme
ad/index" send-message-img="{{imageRoot}}service/clock
.png?{{imageVersion}}">
<image class="icon-opt" src="{{imageRoot}}2c/themeindex/icon_wx.png?{{imageVersion}}"></image>
<view class="item-title">添加微信</view>
</button>
...
...
constants/regexp.js
View file @
9840f650
export
default
{
mobile
:
/^1
[
3456789
]{1}[
0-9
]{9}
$/
,
passWord
:
/^
[
a-zA-Z0-9
]{6,20}
$/
,
storeMobile
:
/^
([
0-9
]
|
[
-
])
+$/g
storeMobile
:
/^
([
0-9
]
|
[
-
])
+$/g
,
verifyCode
:
/^
\d{4}
/g
,
}
\ No newline at end of file
src/pages/calendarthemeindex/landpage.wxml
View file @
9840f650
...
...
@@ -153,7 +153,7 @@
<view class="mask" bindtap="bindModalContact"></view>
<view class="modal-content">
<view class="opt-box">
<button class="opt-item" open-type="contact" show-message-card="true" send-message-title="请求添加微信" send-message-path="/src/pages/themeindex/landpage?
id=1" send-message-img="{{imageRoot}}service/clock
?{{imageVersion}}" wx:if="{{themeSelect.land_content.img}}">
<button class="opt-item" open-type="contact" show-message-card="true" send-message-title="请求添加微信" send-message-path="/src/pages/themeindex/landpage?
t={{tid}}&type=2" send-message-img="{{imageRoot}}service/clock.png
?{{imageVersion}}" wx:if="{{themeSelect.land_content.img}}">
<image class="icon-opt" src="{{imageRoot}}2c/themeindex/icon_wx.png?{{imageVersion}}"></image>
<view class="item-title">添加微信</view>
</button>
...
...
src/pages/sharemoretheme/index.wxml
View file @
9840f650
...
...
@@ -173,7 +173,7 @@
<view class="mask" bindtap="bindModalContact"></view>
<view class="modal-content">
<view class="opt-box">
<button class="opt-item" open-type="contact" show-message-card="true" send-message-title="请求添加微信" send-message-path="/src/pages/sharemoretheme/index
" send-message-img="{{imageRoot}}service/clock
?{{imageVersion}}" wx:if="{{moreTheme.land_content.img}}">
<button class="opt-item" open-type="contact" show-message-card="true" send-message-title="请求添加微信" send-message-path="/src/pages/sharemoretheme/index
?t={{tid}}&type=3" send-message-img="{{imageRoot}}service/clock.png
?{{imageVersion}}" wx:if="{{moreTheme.land_content.img}}">
<image class="icon-opt" src="{{imageRoot}}2c/themeindex/icon_wx.png?{{imageVersion}}"></image>
<view class="item-title">添加微信</view>
</button>
...
...
src/pages/themeindex/landpage.wxml
View file @
9840f650
...
...
@@ -142,7 +142,7 @@
<view class="mask" bindtap="bindModalContact"></view>
<view class="modal-content">
<view class="opt-box">
<button class="opt-item" open-type="contact" show-message-card="true" send-message-title="请求添加微信" send-message-path="/src/pages/themeindex/landpage?
id=1" send-message-img="{{imageRoot}}service/clock
?{{imageVersion}}" wx:if="{{themeSelect.land_content.img}}">
<button class="opt-item" open-type="contact" show-message-card="true" send-message-title="请求添加微信" send-message-path="/src/pages/themeindex/landpage?
t={{tid}}&type=1" send-message-img="{{imageRoot}}service/clock.png
?{{imageVersion}}" wx:if="{{themeSelect.land_content.img}}">
<image class="icon-opt" src="{{imageRoot}}2c/themeindex/icon_wx.png?{{imageVersion}}"></image>
<view class="item-title">添加微信</view>
</button>
...
...
src/pages/websiteindex/index.js
View file @
9840f650
...
...
@@ -202,6 +202,7 @@ Page({
this
.
websitecourseshowGet
()
this
.
websiteintrosGet
();
this
.
clockListGet
();
// this.newslistGet();
this
.
teacherListGet
();
this
.
adsListGet
();
this
.
momentlistGet
();
...
...
src/pages/websiteindex/onlineclassroomlist.js
View file @
9840f650
...
...
@@ -9,13 +9,14 @@ Page({
* 页面的初始数据
*/
data
:
{
type
:
1
,
infoList
:[],
perPage
:
10
,
page
:
1
,
hasmore
:
true
,
emptyPage
:
false
,
listLoading
:
false
,
infoTatol
:
''
,
infoTatol
:
0
,
localImageRoot
:
'../../../images/'
,
imageRoot
:
app
.
globalData
.
imageRoot
,
imageVersion
:
app
.
globalData
.
imageVersion
,
...
...
@@ -89,7 +90,21 @@ Page({
onShareAppMessage
:
function
()
{
},
// 线上课
// 线上课
selectType
(
e
)
{
const
{
type
}
=
e
.
currentTarget
.
dataset
;
if
(
this
.
data
.
type
==
type
)
{
return
}
this
.
setData
({
type
,
page
:
1
,
hasmore
:
true
,
emptyPage
:
false
,
},
()
=>
{
this
.
getOnlineCoursesList
(
'down'
)
})
},
onlineCoursesListGet
(){
onlinecourseslistGet
({
school_id
:
this
.
data
.
sid
...
...
src/pages/websiteindex/onlineclassroomlist.json
View file @
9840f650
{
"navigationBarTitleText"
:
"课堂列表"
,
"enablePullDownRefresh"
:
true
,
"usingComponents"
:
{
"list-loading"
:
"../../../components/listloading"
,
"empty-content"
:
"../../../components/emptycontent"
...
...
src/pages/websiteindex/onlineclassroomlist.wxml
View file @
9840f650
<!--src/pages/websiteindex/onlineclassroomlist.wxml-->
<wxs src="../../../filter/index.wxs" module="filter" />
<view class="container online-classroom">
<!-- <view class="tabspanle">
<view class="tabsitem {{type == 1 ? 'active' : ''}}" data-type="1" bindtap="selectType">
<view class="tabname">全部</view>
<view class="tabline"></view>
</view>
<view class="tabsitem {{type == 2 ? 'active' : ''}}" data-type="2" bindtap="selectType">
<view class="tabname">视频</view>
<view class="tabline"></view>
</view>
<view class="tabsitem {{type == 3 ? 'active' : ''}}" data-type="3" bindtap="selectType">
<view class="tabname">音频</view>
<view class="tabline"></view>
</view>
<view class="tabsitem {{type == 4 ? 'active' : ''}}" data-type="4" bindtap="selectType">
<view class="tabname">图文</view>
<view class="tabline"></view>
</view>
</view> -->
<view class="content-box" wx:if="{{!emptyPage}}">
<block wx:for="{{infoList}}" wx:key="index">
<view class="content-item" bindtap="goOnlineClass" data-item="{{item}}">
<view class="cover-box">
<image class="cover-img" src="{{filter.imagify(item.cover, 'image/resize,w_400/format,jpg')}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" wx:if="{{item.cover}}" />
<image class="cover-img" src="{{filter.imagify('qingxiao/biz/image/course/courseDefaultImg.png')}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" wx:else/>
<view class="man-count">
<image class="" src="{{imageRoot}}2c/websiteindex/hot-icon.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />{{item.visit_pv_count+item.study_count}}人学习
</view>
<image class="cover-img" src="{{filter.imagify(item.cover, 'image/resize,w_400/format,jpg')}}" mode="aspectFill" lazy-load="false" binderror="" bindload="" wx:if="{{item.cover}}" />
<image class="cover-img" src="{{filter.imagify('qingxiao/biz/image/course/courseDefaultImg.png')}}" mode="aspectFill" lazy-load="false" binderror="" bindload="" wx:else/>
<image class="classtypeicon" src="{{imageRoot}}2c/onlineclass/textimgicon.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
</view>
<view class="info-box">
<view class="title">{{item.title}}</view>
<view class="subtitle">{{item.remark}}</view>
<view class="class-count" wx:if="{{item.type==2}}">
<view class="title clearfix">
<image class="classtypetag" src="{{imageRoot}}2c/onlineclass/text.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
<text class="titletext">{{item.title}}</text>
</view>
<view class="learnbox">
<image class="eyeicon" src="{{imageRoot}}2c/onlineclass/eyeicon.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
<view class="learncount" hover-class="none" hover-stop-propagation="false">
223人已学习
</view>
</view>
<!-- <view class="subtitle">{{item.remark}}</view> -->
<!-- <view class="class-count" wx:if="{{item.type==2}}">
<view class="left"><view class="hot-dot"></view>{{item.sub_courses_count}}节课</view>
<view class="free">免费</view>
</view>
</view>
-->
</view>
</view>
</block>
...
...
src/pages/websiteindex/onlineclassroomlist.wxss
View file @
9840f650
/* src/pages/websiteindex/onlineclassroomlist.wxss */
.online-classroom .content-box{
.online-classroom {
background-color: #F9F9F9;
min-height: 100vh;
}
.tabspanle {
display: flex;
align-items: center;
justify-content: space-around;
background-color: #fff;
padding: 21rpx 0 9rpx;
position: fixed;
top: 0;
width: 100%;
left: 0;
z-index: 5;
}
.tabsitem {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
.tabname {
font-size: 32rpx;
color: #666;
line-height: 1;
padding-bottom: 10rpx;
}
.tabline {
width:30px;
height:6px;
background:transparent;
border-radius:3px;
}
.content-box {
padding: 20rpx 24rpx 60rpx;
}
.tabsitem.active .tabname {
color: #FEA917;
font-size: 32rpx;
}
.tabsitem.active .tabline {
background:rgba(254,169,23,1);
}
.online-classroom .content-box .detail-box{
padding: 0 24rpx 20rpx 24rpx;
...
...
@@ -77,18 +119,29 @@
display: flex;
justify-content: space-between;
margin-bottom: 30rpx;
padding: 0 24rpx;
padding: 15rpx;
background-color: #fff;
border-radius:20rpx;
}
.online-classroom .content-box .content-item .cover-box{
width:
26
0rpx;
height:1
8
0rpx;
width:
15
0rpx;
height:1
5
0rpx;
border-radius:10rpx;
position: relative;
margin-right: 32rpx;
position: relative;
}
.online-classroom .content-box .content-item .cover-box .classtypeicon {
position: absolute;
width: 40rpx;
height: 40rpx;
right: 12rpx;
bottom: 12rpx;
z-index: 10;
}
.online-classroom .content-box .content-item .cover-box .cover-img{
width:
26
0rpx;
height:1
8
0rpx;
width:
15
0rpx;
height:1
5
0rpx;
border-radius:10rpx;
}
.online-classroom .content-box .content-item .cover-box .man-count{
...
...
@@ -111,20 +164,59 @@
width: 24rpx;
height: 30rpx;
margin-right: 12rpx;
}
.online-classroom .content-box .content-item {
}
.online-classroom .content-box .content-item .info-box{
flex: 1;
overflow: hidden;
position: relative;
display: flex;
justify-content: space-between;
flex-direction: column;
}
.online-classroom .content-box .content-item .info-box .title{
font-size:28rpx;
/* display: flex; */
/* align-items: center; */
/* white-space: nowrap; */
/* flex-wrap: nowrap; */
word-break: break-all;
text-overflow: ellipsis;
word-wrap: normal;
}
.online-classroom .content-box .content-item .info-box .title .classtypetag{
width: 58rpx;
height: 30rpx;
display: inline-block;
/* float: left; */
margin-right: 10rpx;
}
.online-classroom .content-box .content-item .info-box .title .titletext{
font-size:26rpx;
font-family:PingFang SC;
font-weight:bold;
color:
rgba(70,70,70,1)
;
/* font-weight:bold; */
color:
#666666
;
line-height:32rpx;
padding: 6rpx 0 18rpx 0;
word-break: break-all;
display: inline;
line-height: 30rpx;
/* float: left; */
}
.online-classroom .content-box .content-item .learnbox {
display: flex;
align-items: center;
padding-bottom: 10rpx;
}
.online-classroom .content-box .content-item .learnbox .eyeicon {
width: 24rpx;
height: 14rpx;
margin-right: 10rpx;
}
.online-classroom .content-box .content-item .learnbox .learncount {
color: #999999;
font-size: 22rpx;
}
.online-classroom .content-box .content-item .info-box .subtitle{
font-size:22rpx;
...
...
src/pages/websiteindex/onlineclassroomplay.js
View file @
9840f650
...
...
@@ -304,6 +304,7 @@ Page({
break
;
}
})
console
.
log
(
content
,
'content'
);
this
.
setData
({
coursesDetail
:
data
})
...
...
src/pages/websiteindex/onlineclassroomplay.wxml
View file @
9840f650
...
...
@@ -72,25 +72,32 @@
</view>
</block>
</view>
<!-- <view class="cover-info">
<view class="img-box">
<image class="cover" src="{{filter.imagify(coursesDetail.cover, 'image/resize,w_160/format,jpg/quality,q_60')}}" />
</view>
<view class="title-cover">
<view class="title">{{coursesDetail.title}}</view>
<view class="count" wx:if="{{pid}}">已更新{{coursesDetail.sub_courses_count}}期</view>
</view>
</view> -->
<view class="line-16"></view>
<view class="title-box">
<view class="title">{{coursesDetail.title}}</view>
<view class="subtitle">{{coursesDetail.remark}}</view>
</view>
<view class="learncountbox">
<view class="left">
<view class="studentboxavatarbox">
<image class="studentboxavatar" src="{{filter.imagify('qingxiao/biz/image/course/courseDefaultImg.png')}}"></image>
<image class="studentboxavatar" src="{{filter.imagify('qingxiao/biz/image/course/courseDefaultImg.png')}}"></image>
<image class="studentboxavatar" src="{{filter.imagify('qingxiao/biz/image/course/courseDefaultImg.png')}}"></image>
<image class="studentboxavatar" src="{{imageRoot}}2c/onlineclass/moreicon.png?{{imageVersion}}"></image>
<text class="learncount">232564人已学习</text>
</view>
<view class="coursecount">
<image class="newicon" src="{{imageRoot}}2c/onlineclass/newicon.png?{{imageVersion}}"></image>
<view class="coursecounttext">已更新65期</view>
</view>
</view>
<image class="shareicon" src="{{imageRoot}}2c/onlineclass/shareicon.png?{{imageVersion}}"></image>
</view>
</view>
<view class="
line-16
"></view>
<view class="
divideline
"></view>
<view class="content-box">
<view class="tab-box">
<view class="tab-item" data-index="{{1}}">课程介绍</view>
<view class="tab-item" data-index="{{1}}">详情</view>
<view class="tab-item" data-index="{{2}}">课程介绍</view>
</view>
<view class="introduction" wx:if="{{curTabIndex==1}}">
<block wx:for="{{coursesDetail.intro}}" wx:key="index">
...
...
src/pages/websiteindex/onlineclassroomplay.wxss
View file @
9840f650
...
...
@@ -145,7 +145,59 @@
font-size: 24rpx;
}
.top-box .title-box{
padding: 24rpx 24rpx 34rpx 24rpx;
padding: 28rpx 24rpx 20rpx 24rpx;
}
.learncountbox {
padding: 0 24rpx 0 24rpx;
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 18rpx;
}
.learncountbox .shareicon {
width: 114rpx;
height: 114rpx;
display: block;
margin-top: -10rpx;
}
.divideline {
width: 702rpx;
margin: 0 auto;
border-bottom: 1px solid #EEEEEE;
}
.coursecount {
display: flex;
align-items: center;
}
.coursecount .newicon {
width: 24rpx;
height: 24rpx;
margin-right: 4rpx;
}
.coursecount .coursecounttext {
color: #666666;
font-size: 22rpx;
}
.studentboxavatarbox {
display: flex;
align-items: center;
margin-bottom: 20rpx;
}
.studentboxavatarbox .studentboxavatar {
display: block;
width: 48rpx;
height: 48rpx;
border-radius: 50%;
position: relative;
margin-left: -8rpx;
}
.studentboxavatarbox .studentboxavatar:first-child {
margin-left: 0;
}
.studentboxavatarbox .learncount {
padding-left: 13rpx;
color: #999999;
font-size: 22rpx;
}
.top-box .title-box .title{
font-size:26rpx;
...
...
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