Commit 08b00115 authored by lvtz's avatar lvtz

fix

parent bfae5901
......@@ -107,6 +107,9 @@
}
.boxwrap .leftbox .schoolname.short{
width: 350rpx;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.boxwrap .currenttag {
background-color: #35BAFD;
......
......@@ -18,8 +18,8 @@ page{
width:702rpx;
background:#fff;
border-radius: 20rpx;
padding: 32rpx 32rpx 25rpx 32rpx;
padding-top: 56rpx;
padding: 32rpx 32rpx 28rpx 32rpx;
padding-top: 40rpx;
margin: 27rpx auto 26rpx;
position: relative;
z-index: 20;
......@@ -28,8 +28,8 @@ page{
.header-box .top-box {
display: flex;
align-items: center;
padding-bottom: 22rpx;
border-bottom: 1px solid rgba(0,0,0,.05);
padding-bottom: 30rpx;
border-bottom: 1px solid #eee;
}
.header-box .top-box .logo-box{
width:120rpx;
......@@ -53,7 +53,7 @@ page{
font-size: 22rpx;
text-align: center;
display: inline-block;
padding: 0 7rpx;
padding: 0 14rpx;
}
.header-box .top-box .info-box .roletag.teacher {
color: #FF9F49;
......@@ -67,7 +67,11 @@ page{
color:rgba(0,0,0,1);
line-height:1;
padding-bottom: 26rpx;
word-break: break-all;
max-width: 450rpx;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.header-box .top-box .info-box .list-box {
display: flex;
......@@ -96,7 +100,7 @@ page{
font-weight:400;
color:rgba(130,130,130,1);
line-height:1;
padding-top: 25rpx;
padding-top: 28rpx;
display: flex;
align-items: center;
justify-content: space-between;
......@@ -105,7 +109,7 @@ page{
color: #666666;
font-size: 22rpx;
max-width: 450rpx;
line-height: 1.5;
line-height: 1;
word-break: break-all;
}
.header-box .nick-name .rolechangebox {
......@@ -121,7 +125,6 @@ page{
.header-box .nick-name .icon{
width: 24rpx;
height: 24rpx;
margin-right: 14rpx;
border-radius: 50%;
}
.line-box{
......@@ -134,8 +137,20 @@ page{
display: flex;
align-items: center;
justify-content: space-between;
padding: 36rpx 30rpx 34rpx 30rpx;
padding: 30rpx 24rpx;
border-bottom: 1px solid rgba(0,0,0,.05);
position: relative;
}
.line-box .line::after{
content: '';
width: calc(100% - 24rpx);
background: #eee;
position: absolute;
bottom: 0;
right: 0;
}
.line-box .line:last-of-type::after{
display: none;
}
.line-box .line .left{
font-size:26rpx;
......@@ -149,7 +164,7 @@ page{
.line-box .line .left .icon{
width: 40rpx;
height: 40rpx;
margin-right: 22rpx;
margin-right: 16rpx;
}
.line-box .line .left .message-icon{
width: 31rpx;
......
......@@ -43,7 +43,8 @@
</view>
<view class="container-wrap" bindtouchmove="touchStart" bindtouchend="touchEnd" style="{{(websiteCourses.switch == 1 && fixBtnShow && noUserinfo) ? 'padding-bottom:105rpx': 'padding-bottom: 0'}};">
<view class="schoolinfo-box">
<!-- 学校信息 -->
<view class="schoolinfo-box" wx:if="{{!websitehomeEmpty}}">
<view class="info-box">
<image class="info-logo" src="{{filter.imagify(schoolInfo.school.logo, 'image/resize,w_160/format,jpg')}}" wx:if="{{schoolInfo.school.logo}}"></image>
<image class="info-logo" src="{{filter.imagify(schoolDetail.logo, 'image/resize,w_160/format,jpg')}}" wx:elif="{{schoolDetail.logo}}"></image>
......@@ -59,28 +60,36 @@
<view class="text">分享</view>
</button>
</view>
<!-- <view class="get-student" wx:if="{{websiteCourses && websiteCourses.switch==1}}">
<view class="booking-box">
<image class="icon-clock" src="{{imageRoot}}2c/websiteindex/icon_clock.png?{{imageVersion}}"></image>
<view class="text">立即预约<text class="num">({{schoolInfo.join_count || 0}}人已预约)</text></view>
<image class="icon-arr" src="{{imageRoot}}2c/websiteindex/arrright_w.png?{{imageVersion}}"></image>
<image class="icon-clock2" src="{{imageRoot}}2c/websiteindex/icon_clock2.png?{{imageVersion}}"></image>
<image class="icon-animate" src="{{imageRoot}}2c/clockitem/light.png?{{imageVersion}}" ></image>
<button class="btn-get" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber"></button>
</view>
</view> -->
<!-- <view class="part-box bullet-box">
<view class="address-box">
<view class="icon-box">
<image class="icon" src="{{imageRoot}}2c/websiteindex/voice-icon.png?{{imageVersion}}"></image>
<image class="icon" src="{{imageRoot}}2c/websiteindex/website_address.png?{{imageVersion}}"></image>
</view>
<swiper class="content" interval="2000" circular="{{true}}" duration="2000" autoplay="{{true}}" display-multiple-items="3" easing-function="linear">
<swiper-item wx:for="{{barrageList}}" wx:key="index">
{{item.nickname}} {{filter.formatWebsiteBarrage(item.event_type)}}
</swiper-item>
</swiper>
<view class="swiper-mask"></view>
</view> -->
<view class="address" wx:if="{{schoolInfo.longitude}}">
<view class="main">{{schoolInfo.location_address}}</view>
<view class="other" wx:if="{{schoolInfo.address}}">{{schoolInfo.address}}</view>
</view>
<view class="address" wx:else>
<view class="other" style="padding-top: 0;">暂未设置位置信息</view>
</view>
<image class="icon-mobile" src="{{imageRoot}}2c/websiteindex/website_phone.png?{{imageVersion}}" bindtap="makecall" data-mobile="{{schoolInfo.tel_phone}}"></image>
</view>
</view>
<view class="schoolinfo-box" wx:else>
<view class="info-box">
<image class="info-logo" src="{{filter.imagify(schoolDetail.logo, 'image/resize,w_160/format,jpg')}}" wx:if="{{schoolDetail.logo}}"></image>
<image class="info-logo" src="{{imageRoot}}2c/common/logologo.png?{{imageVersion}}" wx:else></image>
<view class="info-r">
<view class="info-title">{{schoolDetail.title? schoolDetail.title: '此处显示学校名称'}}</view>
<view class="info-num-box">
<view class="num-item" wx:for="{{egTag}}" wx:key="index">{{item}}</view>
</view>
</view>
<button class="page-share-btn">
<image class="icon" src="{{imageRoot}}2c/common/icon_share.png?{{imageVersion}}"></image>
<view class="text">分享</view>
</button>
</view>
<view class="address-box">
<view class="icon-box">
<image class="icon" src="{{imageRoot}}2c/websiteindex/website_address.png?{{imageVersion}}"></image>
......@@ -92,10 +101,9 @@
<view class="address" wx:else>
<view class="other" style="padding-top: 0;">暂未设置位置信息</view>
</view>
<image class="icon-mobile" src="{{imageRoot}}2c/websiteindex/website_phone.png?{{imageVersion}}" bindtap="makecall" data-mobile="{{schoolInfo.tel_phone}}"></image>
<image class="icon-mobile" src="{{imageRoot}}2c/websiteindex/website_phone.png?{{imageVersion}}"></image>
</view>
</view>
<block wx:for="{{schoolInfo.sort?schoolInfo.sort:sort}}" wx:key="idx" wx:for-index="idx" wx:for-item="sortItem" >
<!-- 广告banner -->
......@@ -107,10 +115,17 @@
</swiper-item>
</swiper>
</view>
<view class="section-wrap section-ad" wx:else>
<swiper indicator-dots="{{false}}" autoplay="{{true}}" circular="{{true}}" style="height:180rpx;">
<swiper-item wx:for="{{egAds}}" wx:key="index">
<image class="cover" src="{{item}}" mode="aspectFill"/>
</swiper-item>
</swiper>
</view>
</block>
<!-- 名师风采 -->
<block wx:if="{{sortItem.name=='teacher'}}">
<view class="section-wrap section-teacher" wx:if="{{teacherTotal>0 && schoolInfo.module_switch.teacher}}">
<block wx:if="{{sortItem.name=='teacher' && schoolInfo.module_switch.teacher}}">
<view class="section-wrap section-teacher" wx:if="{{teacherTotal>0}}">
<view class="box-title">
<view class="title">名师风采<view class="text">({{teacherTotal}})</view></view>
<view class="right" bindtap="toMoreList" data-type="schoolteacher">
......@@ -126,43 +141,59 @@
</view>
</view>
</view>
<view class="section-wrap section-teacher" wx:else>
<view class="box-title">
<view class="title">名师风采<view class="text">(12)</view></view>
</view>
<view class="teacher-list">
<view class="item" wx:for="{{12}}" wx:key="index">
<image class="avatar" src="{{egTeacherUrl}}"></image>
<view class="line nickname">导师名字</view>
<view class="line">主授课程</view>
<view class="line">教龄</view>
</view>
</view>
</view>
</block>
<!-- 学校介绍 -->
<view class="section-wrap business-instro" id="business-info" wx:if="{{sortItem.name=='orgdesc' && schoolInfo.module_switch.orgdesc && (schoolInfo.intro || schoolInfoList.length>0)}}">
<view class="box-title">
<view class="title">学校介绍</view>
<view class="right" bindtap="toMoreList" data-type="schoolinfo1" wx:if="{{schoolInfoList.length>0}}">
更多<image class="icon-arr" src="{{imageRoot}}2b/organizationalmgt/right.png?{{imageVersion}}"></image>
</view>
</view>
<view class="desc-box" wx:if="{{schoolInfo.intro}}">
<view class="content {{infoexpanded?'extended':''}}">{{schoolInfo.intro}}</view>
<view class="expend-box" bindtap="expandSchoolInfo" wx:if="{{btnmore_isVisible}}">{{infoexpanded?'向下展开':'向上收起'}}
<image class="icon-arr {{infoexpanded?'':'icon-arr-trans'}}" src="{{imageRoot}}2c/websiteindex/icon_arrdown_yellow.png?{{imageVersion}}"></image>
</view>
</view>
<view class="pdb-14" wx:if="{{schoolInfo.intro && schoolInfoList.length>0 && !btnmore_isVisible}}"></view>
<view class="instro-swiper" wx:if="{{schoolInfoList.length>0}}">
<swiper indicator-dots="{{false}}" autoplay="{{true}}" circular="{{true}}" style="height:368rpx;">
<swiper-item wx:for="{{schoolInfoList}}" wx:key="index" bindtap="tapInstroCard" data-id="{{item.id}}">
<image class="cover" src="{{filter.imagify(item.content)}}" wx:if="{{item.type==1}}" mode="aspectFill"></image>
<image class="cover" src="{{filter.gifvideoPoster(item.content)}}" wx:else mode="aspectFill"></image>
</swiper-item>
</swiper>
<view class="label-box">
<view class="icon-item" bindtap="toMoreList" data-type="schoolinfo1">
<image class="icon" src="{{imageRoot}}2c/websiteindex/label_pic.png?{{imageVersion}}"></image>{{schoolInfoPicTotal}}
<block wx:if="{{sortItem.name=='orgdesc' && schoolInfo.module_switch.orgdesc}}">
<view class="section-wrap business-instro" wx:if="{{schoolInfo.intro || schoolInfoList.length>0}}">
<view class="box-title">
<view class="title">学校介绍</view>
<view class="right" bindtap="toMoreList" data-type="schoolinfo1" wx:if="{{schoolInfoList.length>0}}">
更多<image class="icon-arr" src="{{imageRoot}}2b/organizationalmgt/right.png?{{imageVersion}}"></image>
</view>
<view class="icon-item" bindtap="toMoreList" data-type="schoolinfo2">
<image class="icon" src="{{imageRoot}}2c/websiteindex/label_video.png?{{imageVersion}}"></image>{{schoolInfoVideoTotal}}
</view>
<view class="desc-box" wx:if="{{schoolInfo.intro}}">
<view class="content {{infoexpanded?'extended':''}}">{{schoolInfo.intro}}</view>
<view class="expend-box" bindtap="expandSchoolInfo" wx:if="{{btnmore_isVisible}}">{{infoexpanded?'向下展开':'向上收起'}}
<image class="icon-arr {{infoexpanded?'':'icon-arr-trans'}}" src="{{imageRoot}}2c/websiteindex/icon_arrdown_yellow.png?{{imageVersion}}"></image>
</view>
</view>
<view class="pdb-14" wx:if="{{schoolInfo.intro && schoolInfoList.length>0 && !btnmore_isVisible}}"></view>
<view class="instro-swiper" wx:if="{{schoolInfoList.length>0}}">
<swiper indicator-dots="{{false}}" autoplay="{{true}}" circular="{{true}}" style="height:368rpx;">
<swiper-item wx:for="{{schoolInfoList}}" wx:key="index" bindtap="tapInstroCard" data-id="{{item.id}}">
<image class="cover" src="{{filter.imagify(item.content)}}" wx:if="{{item.type==1}}" mode="aspectFill"></image>
<image class="cover" src="{{filter.gifvideoPoster(item.content)}}" wx:else mode="aspectFill"></image>
<image class="icon-pause" src="{{imageRoot}}2c/websiteindex/play-video.png?{{imageVersion}}" wx:if="{{item.type==2}}" mode="aspectFill"></image>
</swiper-item>
</swiper>
<view class="label-box">
<view class="icon-item" bindtap="toMoreList" data-type="schoolinfo1">
<image class="icon" src="{{imageRoot}}2c/websiteindex/label_pic.png?{{imageVersion}}"></image>{{schoolInfoPicTotal}}
</view>
<view class="icon-item" bindtap="toMoreList" data-type="schoolinfo2">
<image class="icon" src="{{imageRoot}}2c/websiteindex/label_video.png?{{imageVersion}}"></image>{{schoolInfoVideoTotal}}
</view>
</view>
</view>
</view>
</view>
</block>
<!-- 学生动态 -->
<view class="section-wrap student-clock-box" id="student-clock" wx:if="{{sortItem.name=='clocklist' && schoolInfo.module_switch.clocklist}}">
<block wx:if="{{clockList.length > 0}}">
<block wx:if="{{sortItem.name=='clocklist' && schoolInfo.module_switch.clocklist}}">
<view class="section-wrap student-clock-box" wx:if="{{clockList.length > 0}}">
<view class="box-title">
<view class="title">学生动态<view class="text"></view></view>
<view class="right" bindtap="goclocklist">
......@@ -182,11 +213,29 @@
>
</clock-item>
</view>
</view>
</block>
<list-loading loading="{{listLoading}}"></list-loading>
<view class="btn-more" bindtap="goclocklist" wx:if="{{clockList.length > 0}}">查看更多学员作品</view>
</view>
</view>
<list-loading loading="{{listLoading}}"></list-loading>
</view>
<view class="section-wrap student-clock-box" wx:else>
<view class="box-title">
<view class="title">学生动态</view>
</view>
<view class="clock-list clock-list-disabled" style="padding-bottom: 0;">
<view class="clock-item" wx:for="{{egClockList}}" wx:key="index" >
<clock-item
clock="{{item}}"
cindex="{{index}}"
tid="{{tid}}"
cid="{{item.class_id}}"
type="0"
othertype="{{1}}"
withthemetitle="{{true}}"
>
</clock-item>
</view>
</view>
</view>
</block>
<!-- 课堂瞬间 -->
<block wx:if="{{sortItem.name == 'classmoments' && schoolInfo.module_switch.classmoments}}">
<view class="section-wrap section-brick" wx:if="{{momentTotal>0}}">
......@@ -204,6 +253,17 @@
/>
</view>
</view>
<view class="section-wrap section-brick" wx:else>
<view class="box-title">
<view class="title">课堂瞬间</view>
</view>
<view class="brick-list">
<brick-layout
card="{{egMomentList}}"
type="{{2}}"
/>
</view>
</view>
</block>
<!-- 在线课堂 -->
<block wx:if="{{sortItem.name == 'onlineclass' && schoolInfo.module_switch.onlineclass}}">
......@@ -229,6 +289,24 @@
</view>
</view>
</view>
<view class="section-wrap online-classroom" wx:else>
<view class="box-title">
<view class="title">在线课堂</view>
</view>
<view class="content-box">
<view class="online-item" wx:for="{{4}}" wx:key="index">
<view class="cover-box">
<image class="cover" src="{{egOnlineCourseUrl}}" mode="aspectFill"/>
<view class="count-box">
<image class="icon" src="{{imageRoot}}2c/websiteindex/icon_eye.png?{{imageVersion}}"/>0人已学习
</view>
</view>
<view class="title-box">
<view class="title">此处显示课程名称,最多显示两行</view>
</view>
</view>
</view>
</view>
</block>
<!-- 一起打卡 -->
<block wx:if="{{sortItem.name == 'togetherclock' && schoolInfo.module_switch.togetherclock}}">
......@@ -255,6 +333,24 @@
<list-loading loading="{{subjectListLoading}}"></list-loading>
</view>
</view>
<view class="section-wrap section-subject" wx:else>
<view class="box-title">
<view class="title">一起打卡</view>
</view>
<view class="subject-list">
<view class="list-item" wx:for="{{3}}" wx:key="index">
<view class="cover-box">
<image class="cover" src="{{egSubjectUrl}}" mode="aspectFill"/>
</view>
<view class="main">
<view class="title">此处显示打卡名称</view>
<view class="count-box">
<image class="icon" src="{{imageRoot}}2c/websiteindex/icon_user.png?{{imageVersion}}"/>0人参与
</view>
</view>
</view>
</view>
</view>
</block>
</block>
......@@ -392,7 +488,7 @@
<swiper indicator-dots="{{false}}" autoplay="{{true}}" circular="{{true}}" style="height:368rpx;">
<swiper-item wx:for="{{egSchoolInfoList}}" wx:key="index">
<image class="cover" src="{{item.content}}" mode="widthFix"></image>
<image class="icon-pause" src="{{imageRoot}}2c/websiteindex/play-video.png?{{imageVersion}}" wx:if="{{item.type==1}}" mode="aspectFill"></image>
<image class="icon-pause" src="{{imageRoot}}2c/websiteindex/play-video.png?{{imageVersion}}" wx:if="{{item.type==2}}" mode="aspectFill"></image>
</swiper-item>
</swiper>
<view class="label-box">
......
......@@ -202,6 +202,7 @@ page{
position: relative;
padding: 0 10rpx;
margin: 5rpx;
border-radius: 6rpx;
}
.schoolinfo-box .address-box{
padding: 25rpx 0;
......@@ -859,6 +860,7 @@ page{
.business-instro .desc-box{
padding: 0 24rpx;
position: relative;
margin-top: -10rpx;
}
.business-instro .desc-box .content{
font-size: 26rpx;
......@@ -1037,7 +1039,7 @@ page{
min-width: 130rpx;
height: 130rpx;
margin-right: 20rpx;
border-radius: 20rpx;
border-radius: 10rpx;
overflow: hidden;
}
.subject-list .list-item .cover-box .cover{
......@@ -1100,6 +1102,7 @@ page{
color: #222;
line-height: 37rpx;
padding: 12rpx 0 3rpx;
font-weight: bold;
}
.section-ad{
width: 100%;
......
export default {
imageRoot: 'https://cdn.img.shangjiadao.cn/qingxiao/dakav2/images/',
// host: 'https://qxapi.qingxiao.online/daka',
// host2: 'https://wx.m.shangjiadao.cn',
host: 'https://qxapi.qingxiao.online/daka',
host2: 'https://wx.m.shangjiadao.cn',
storageVersion: '5.0',
imageVersion: '20200409',
host: 'https://clock.wp53.cn',
host2: 'https://test.wp53.cn',
// host: 'https://clock.wp53.cn',
// host2: 'https://test.wp53.cn',
appId: 'wxc1246ea029394785',
miniProgram: {
clock: 'wxdeee20e52a1fd7ee'
......
......@@ -22,7 +22,7 @@
}
.list-item .video-image{
width: 100%;
border-radius: 20rpx;
border-radius: 10rpx;
display: block;
}
.list-item .top-fix{
......
......@@ -1501,7 +1501,7 @@ Page({
})
websitesubjectGet({
page: 1,
perPage: 3,
perPage: 4,
school_id: this.data.sid,
}).then((res) => {
const { code, data } = res;
......@@ -1554,5 +1554,14 @@ Page({
address: addressInfo.location_address,
name: addressInfo.address
})
},
jumpAdUrl (e){
const { url } = e.currentTarget.dataset;
if( !url ) {
return
}
wx.navigateTo({
url: '/'+url
})
}
})
\ No newline at end of file
......@@ -41,12 +41,14 @@
<view class="notice-box" wx:if="{{schoolInfo.notice}}">
<image class="icon-label" src="{{imageRoot}}2c/websiteindex/icon_notice.png?{{imageVersion}}"></image>
<view class="text">{{schoolInfo.notice}}</view>
<!-- <image class="icon-arr" src="{{imageRoot}}2b/organizationalmgt/right.png?{{imageVersion}}"></image> -->
</view>
</view>
<view class="container-wrap" bindtouchmove="touchStart" bindtouchend="touchEnd" style="{{(websiteCourses.switch == 1 && fixBtnShow && noUserinfo) ? 'padding-bottom:105rpx': 'padding-bottom: 0'}};">
<view class="schoolinfo-box">
<!-- 学校信息 -->
<view class="schoolinfo-box" wx:if="{{!websitehomeEmpty}}">
<view class="info-box">
<image class="info-logo" src="{{filter.imagify(schoolInfo.school.logo, 'image/resize,w_160/format,jpg')}}" wx:if="{{schoolInfo.school.logo}}"></image>
<image class="info-logo" src="{{filter.imagify(schoolDetail.logo, 'image/resize,w_160/format,jpg')}}" wx:elif="{{schoolDetail.logo}}"></image>
......@@ -62,28 +64,7 @@
<view class="text">分享</view>
</button>
</view>
<!-- <view class="get-student" wx:if="{{websiteCourses && websiteCourses.switch==1}}">
<view class="booking-box">
<image class="icon-clock" src="{{imageRoot}}2c/websiteindex/icon_clock.png?{{imageVersion}}"></image>
<view class="text">立即预约<text class="num">({{schoolInfo.join_count || 0}}人已预约)</text></view>
<image class="icon-arr" src="{{imageRoot}}2c/websiteindex/arrright_w.png?{{imageVersion}}"></image>
<image class="icon-clock2" src="{{imageRoot}}2c/websiteindex/icon_clock2.png?{{imageVersion}}"></image>
<image class="icon-animate" src="{{imageRoot}}2c/clockitem/light.png?{{imageVersion}}" ></image>
<button class="btn-get" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber"></button>
</view>
</view> -->
<!-- <view class="part-box bullet-box">
<view class="icon-box">
<image class="icon" src="{{imageRoot}}2c/websiteindex/voice-icon.png?{{imageVersion}}"></image>
</view>
<swiper class="content" interval="2000" circular="{{true}}" duration="2000" autoplay="{{true}}" display-multiple-items="3" easing-function="linear">
<swiper-item wx:for="{{barrageList}}" wx:key="index">
{{item.nickname}} {{filter.formatWebsiteBarrage(item.event_type)}}
</swiper-item>
</swiper>
<view class="swiper-mask"></view>
</view> -->
<view class="address-box">
<view class="icon-box">
<image class="icon" src="{{imageRoot}}2c/websiteindex/website_address.png?{{imageVersion}}"></image>
......@@ -98,6 +79,35 @@
<image class="icon-mobile" src="{{imageRoot}}2c/websiteindex/website_phone.png?{{imageVersion}}" bindtap="makecall" data-mobile="{{schoolInfo.tel_phone}}"></image>
</view>
</view>
<view class="schoolinfo-box" wx:else>
<view class="info-box">
<image class="info-logo" src="{{filter.imagify(schoolDetail.logo, 'image/resize,w_160/format,jpg')}}" wx:if="{{schoolDetail.logo}}"></image>
<image class="info-logo" src="{{imageRoot}}2c/common/logologo.png?{{imageVersion}}" wx:else></image>
<view class="info-r">
<view class="info-title">{{schoolDetail.title? schoolDetail.title: '此处显示学校名称'}}</view>
<view class="info-num-box">
<view class="num-item" wx:for="{{egTag}}" wx:key="index">{{item}}</view>
</view>
</view>
<button class="page-share-btn">
<image class="icon" src="{{imageRoot}}2c/common/icon_share.png?{{imageVersion}}"></image>
<view class="text">分享</view>
</button>
</view>
<view class="address-box">
<view class="icon-box">
<image class="icon" src="{{imageRoot}}2c/websiteindex/website_address.png?{{imageVersion}}"></image>
</view>
<view class="address" wx:if="{{schoolInfo.longitude}}">
<view class="main">{{schoolInfo.location_address}}</view>
<view class="other" wx:if="{{schoolInfo.address}}">{{schoolInfo.address}}</view>
</view>
<view class="address" wx:else>
<view class="other" style="padding-top: 0;">暂未设置位置信息</view>
</view>
<image class="icon-mobile" src="{{imageRoot}}2c/websiteindex/website_phone.png?{{imageVersion}}"></image>
</view>
</view>
<block wx:for="{{schoolInfo.sort?schoolInfo.sort:sort}}" wx:key="idx" wx:for-index="idx" wx:for-item="sortItem" >
......@@ -106,14 +116,21 @@
<view class="section-wrap section-ad" wx:if="{{adsTotal>0}}">
<swiper indicator-dots="{{false}}" autoplay="{{true}}" circular="{{true}}" style="height:180rpx;">
<swiper-item wx:for="{{adsList}}" wx:key="index">
<image class="cover" src="{{filter.imagify(item.cover)}}" mode="aspectFill"/>
<image class="cover" src="{{filter.imagify(item.cover)}}" mode="aspectFill" data-url="{{item.location}}" bindtap="jumpAdUrl"/>
</swiper-item>
</swiper>
</view>
<view class="section-wrap section-ad" wx:else>
<swiper indicator-dots="{{false}}" autoplay="{{true}}" circular="{{true}}" style="height:180rpx;">
<swiper-item wx:for="{{egAds}}" wx:key="index">
<image class="cover" src="{{item}}" mode="aspectFill"/>
</swiper-item>
</swiper>
</view>
</block>
<!-- 名师风采 -->
<block wx:if="{{sortItem.name=='teacher'}}">
<view class="section-wrap section-teacher" wx:if="{{teacherTotal>0 && schoolInfo.module_switch.teacher}}">
<block wx:if="{{sortItem.name=='teacher' && schoolInfo.module_switch.teacher}}">
<view class="section-wrap section-teacher" wx:if="{{teacherTotal>0}}">
<view class="box-title">
<view class="title">名师风采<view class="text">({{teacherTotal}})</view></view>
<view class="right" bindtap="toMoreList" data-type="schoolteacher">
......@@ -129,43 +146,85 @@
</view>
</view>
</view>
<view class="section-wrap section-teacher" wx:else>
<view class="box-title">
<view class="title">名师风采<view class="text">(12)</view></view>
</view>
<view class="teacher-list">
<view class="item" wx:for="{{12}}" wx:key="index">
<image class="avatar" src="{{egTeacherUrl}}"></image>
<view class="line nickname">导师名字</view>
<view class="line">主授课程</view>
<view class="line">教龄</view>
</view>
</view>
</view>
</block>
<!-- 学校介绍 -->
<view class="section-wrap business-instro" id="business-info" wx:if="{{sortItem.name=='orgdesc' && schoolInfo.module_switch.orgdesc && (schoolInfo.intro || schoolInfoList.length>0)}}">
<view class="box-title">
<view class="title">学校介绍</view>
<view class="right" bindtap="toMoreList" data-type="schoolinfo1" wx:if="{{schoolInfoList.length>0}}">
更多<image class="icon-arr" src="{{imageRoot}}2b/organizationalmgt/right.png?{{imageVersion}}"></image>
</view>
</view>
<view class="desc-box" wx:if="{{schoolInfo.intro}}">
<view class="content {{infoexpanded?'extended':''}}">{{schoolInfo.intro}}</view>
<view class="expend-box" bindtap="expandSchoolInfo" wx:if="{{btnmore_isVisible}}">{{infoexpanded?'向下展开':'向上收起'}}
<image class="icon-arr {{infoexpanded?'':'icon-arr-trans'}}" src="{{imageRoot}}2c/websiteindex/icon_arrdown_yellow.png?{{imageVersion}}"></image>
</view>
</view>
<view class="pdb-14" wx:if="{{schoolInfo.intro && schoolInfoList.length>0 && !btnmore_isVisible}}"></view>
<view class="instro-swiper" wx:if="{{schoolInfoList.length>0}}">
<swiper indicator-dots="{{false}}" autoplay="{{true}}" circular="{{true}}" style="height:368rpx;">
<swiper-item wx:for="{{schoolInfoList}}" wx:key="index" bindtap="tapInstroCard" data-id="{{item.id}}">
<image class="cover" src="{{filter.imagify(item.content)}}" wx:if="{{item.type==1}}" mode="aspectFill"></image>
<image class="cover" src="{{filter.gifvideoPoster(item.content)}}" wx:else mode="aspectFill"></image>
</swiper-item>
</swiper>
<view class="label-box">
<view class="icon-item" bindtap="toMoreList" data-type="schoolinfo1">
<image class="icon" src="{{imageRoot}}2c/websiteindex/label_pic.png?{{imageVersion}}"></image>{{schoolInfoPicTotal}}
<block wx:if="{{sortItem.name=='orgdesc' && schoolInfo.module_switch.orgdesc}}">
<view class="section-wrap business-instro" id="business-info" wx:if="{{schoolInfo.intro || schoolInfoList.length>0}}">
<view class="box-title">
<view class="title">学校介绍</view>
<view class="right" bindtap="toMoreList" data-type="schoolinfo1" wx:if="{{schoolInfoList.length>0}}">
更多<image class="icon-arr" src="{{imageRoot}}2b/organizationalmgt/right.png?{{imageVersion}}"></image>
</view>
</view>
<view class="desc-box" wx:if="{{schoolInfo.intro}}">
<view class="content {{infoexpanded?'extended':''}}">{{schoolInfo.intro}}</view>
<view class="expend-box" bindtap="expandSchoolInfo" wx:if="{{btnmore_isVisible}}">{{infoexpanded?'向下展开':'向上收起'}}
<image class="icon-arr {{infoexpanded?'':'icon-arr-trans'}}" src="{{imageRoot}}2c/websiteindex/icon_arrdown_yellow.png?{{imageVersion}}"></image>
</view>
<view class="icon-item" bindtap="toMoreList" data-type="schoolinfo2">
<image class="icon" src="{{imageRoot}}2c/websiteindex/label_video.png?{{imageVersion}}"></image>{{schoolInfoVideoTotal}}
</view>
<view class="pdb-14" wx:if="{{schoolInfo.intro && schoolInfoList.length>0 && !btnmore_isVisible}}"></view>
<view class="instro-swiper" wx:if="{{schoolInfoList.length>0}}">
<swiper indicator-dots="{{false}}" autoplay="{{true}}" circular="{{true}}" style="height:368rpx;">
<swiper-item wx:for="{{schoolInfoList}}" wx:key="index" bindtap="tapInstroCard" data-id="{{item.id}}">
<image class="cover" src="{{filter.imagify(item.content)}}" wx:if="{{item.type==1}}" mode="aspectFill"></image>
<image class="cover" src="{{filter.gifvideoPoster(item.content)}}" wx:else mode="aspectFill"></image>
<image class="icon-pause" src="{{imageRoot}}2c/websiteindex/play-video.png?{{imageVersion}}" wx:if="{{item.type==2}}" mode="aspectFill"></image>
</swiper-item>
</swiper>
<view class="label-box">
<view class="icon-item" bindtap="toMoreList" data-type="schoolinfo1">
<image class="icon" src="{{imageRoot}}2c/websiteindex/label_pic.png?{{imageVersion}}"></image>{{schoolInfoPicTotal}}
</view>
<view class="icon-item" bindtap="toMoreList" data-type="schoolinfo2">
<image class="icon" src="{{imageRoot}}2c/websiteindex/label_video.png?{{imageVersion}}"></image>{{schoolInfoVideoTotal}}
</view>
</view>
</view>
</view>
</view>
<view class="section-wrap business-instro" wx:else>
<view class="box-title">
<view class="title">学校介绍</view>
</view>
<view class="desc-box">
<view class="content">此处显示学校介绍</view>
</view>
<view class="pdb-14"></view>
<view class="instro-swiper">
<swiper indicator-dots="{{false}}" autoplay="{{true}}" circular="{{true}}" style="height:368rpx;">
<swiper-item wx:for="{{egSchoolInfoList}}" wx:key="index">
<image class="cover" src="{{item.content}}" mode="widthFix"></image>
<image class="icon-pause" src="{{imageRoot}}2c/websiteindex/play-video.png?{{imageVersion}}" wx:if="{{item.type==2}}" mode="aspectFill"></image>
</swiper-item>
</swiper>
<view class="label-box">
<view class="icon-item">
<image class="icon" src="{{imageRoot}}2c/websiteindex/label_pic.png?{{imageVersion}}"></image>1
</view>
<view class="icon-item">
<image class="icon" src="{{imageRoot}}2c/websiteindex/label_video.png?{{imageVersion}}"></image>1
</view>
</view>
</view>
</view>
</block>
<!-- 学生动态 -->
<view class="section-wrap student-clock-box" id="student-clock" wx:if="{{sortItem.name=='clocklist' && schoolInfo.module_switch.clocklist}}">
<block wx:if="{{clockList.length > 0}}">
<block wx:if="{{sortItem.name=='clocklist' && schoolInfo.module_switch.clocklist}}">
<view class="section-wrap student-clock-box" wx:if="{{clockList.length > 0}}">
<view class="box-title">
<view class="title">学生动态<view class="text"></view></view>
<view class="right" bindtap="goclocklist">
......@@ -205,11 +264,29 @@
>
</clock-item>
</view>
</view>
</block>
<list-loading loading="{{listLoading}}"></list-loading>
<view class="btn-more" bindtap="goclocklist" wx:if="{{clockList.length > 0}}">查看更多学员作品</view>
</view>
</view>
<list-loading loading="{{listLoading}}"></list-loading>
</view>
<view class="section-wrap student-clock-box" wx:else>
<view class="box-title">
<view class="title">学生动态</view>
</view>
<view class="clock-list clock-list-disabled" style="padding-bottom: 0;">
<view class="clock-item" wx:for="{{egClockList}}" wx:key="index" >
<clock-item
clock="{{item}}"
cindex="{{index}}"
tid="{{tid}}"
cid="{{item.class_id}}"
type="0"
othertype="{{1}}"
withthemetitle="{{true}}"
>
</clock-item>
</view>
</view>
</view>
</block>
<!-- 课堂瞬间 -->
<block wx:if="{{sortItem.name == 'classmoments' && schoolInfo.module_switch.classmoments}}">
<view class="section-wrap section-brick" wx:if="{{momentTotal>0}}">
......@@ -227,6 +304,17 @@
/>
</view>
</view>
<view class="section-wrap section-brick" wx:else>
<view class="box-title">
<view class="title">课堂瞬间</view>
</view>
<view class="brick-list">
<brick-layout
card="{{egMomentList}}"
type="{{2}}"
/>
</view>
</view>
</block>
<!-- 在线课堂 -->
<block wx:if="{{sortItem.name == 'onlineclass' && schoolInfo.module_switch.onlineclass}}">
......@@ -252,6 +340,24 @@
</view>
</view>
</view>
<view class="section-wrap online-classroom" wx:else>
<view class="box-title">
<view class="title">在线课堂</view>
</view>
<view class="content-box">
<view class="online-item" wx:for="{{4}}" wx:key="index">
<view class="cover-box">
<image class="cover" src="{{egOnlineCourseUrl}}" mode="aspectFill"/>
<view class="count-box">
<image class="icon" src="{{imageRoot}}2c/websiteindex/icon_eye.png?{{imageVersion}}"/>0人已学习
</view>
</view>
<view class="title-box">
<view class="title">此处显示课程名称,最多显示两行</view>
</view>
</view>
</view>
</view>
</block>
<!-- 一起打卡 -->
<block wx:if="{{sortItem.name == 'togetherclock' && schoolInfo.module_switch.togetherclock}}">
......@@ -278,6 +384,24 @@
<list-loading loading="{{subjectListLoading}}"></list-loading>
</view>
</view>
<view class="section-wrap section-subject" wx:else>
<view class="box-title">
<view class="title">一起打卡</view>
</view>
<view class="subject-list">
<view class="list-item" wx:for="{{3}}" wx:key="index">
<view class="cover-box">
<image class="cover" src="{{egSubjectUrl}}" mode="aspectFill"/>
</view>
<view class="main">
<view class="title">此处显示打卡名称</view>
<view class="count-box">
<image class="icon" src="{{imageRoot}}2c/websiteindex/icon_user.png?{{imageVersion}}"/>0人参与
</view>
</view>
</view>
</view>
</view>
</block>
</block>
......@@ -435,7 +559,7 @@
<swiper indicator-dots="{{false}}" autoplay="{{true}}" circular="{{true}}" style="height:368rpx;">
<swiper-item wx:for="{{egSchoolInfoList}}" wx:key="index">
<image class="cover" src="{{item.content}}" mode="widthFix"></image>
<image class="icon-pause" src="{{imageRoot}}2c/websiteindex/play-video.png?{{imageVersion}}" wx:if="{{item.type==1}}" mode="aspectFill"></image>
<image class="icon-pause" src="{{imageRoot}}2c/websiteindex/play-video.png?{{imageVersion}}" wx:if="{{item.type==2}}" mode="aspectFill"></image>
</swiper-item>
</swiper>
<view class="label-box">
......@@ -543,7 +667,6 @@
></sjdbottombar>
</view>
</view>
<btabbar
sid="{{sid}}"
current="home"
......
......@@ -202,6 +202,7 @@ page{
position: relative;
padding: 0 10rpx;
margin: 5rpx;
border-radius: 6rpx;
}
.schoolinfo-box .address-box{
padding: 25rpx 0;
......@@ -859,6 +860,7 @@ page{
.business-instro .desc-box{
padding: 0 24rpx;
position: relative;
margin-top: -10rpx;
}
.business-instro .desc-box .content{
font-size: 26rpx;
......@@ -1037,7 +1039,7 @@ page{
min-width: 130rpx;
height: 130rpx;
margin-right: 20rpx;
border-radius: 20rpx;
border-radius: 10rpx;
overflow: hidden;
}
.subject-list .list-item .cover-box .cover{
......@@ -1100,6 +1102,7 @@ page{
color: #222;
line-height: 37rpx;
padding: 12rpx 0 3rpx;
font-weight: bold;
}
.section-ad{
width: 100%;
......@@ -1109,4 +1112,5 @@ page{
.section-ad .cover{
width: 100%;
height: 100%;
}
\ No newline at end of file
border-radius: 20rpx;
}
......@@ -32,7 +32,7 @@
bindtransition="swipertransition"
bindanimationfinish="swiperanimationfinish"
>
<block wx:for="{{playList}}" wx:for-index="playindex" wx:for-item="playitem" wx:key="{{playindex}}" style="position: relative">
<block wx:for="{{playList}}" wx:for-index="playindex" wx:for-item="playitem" wx:key="playindex" style="position: relative">
<swiper-item>
<!-- <view class="video-box-wrapper" wx-if="{{playitem.type==2}}">
<view class="video-box-wrapper">
......
......@@ -491,22 +491,22 @@ Page({
showPassWordTip:true,
passWord: ''
})
wx.showToast({
title: '密码错误',
icon: 'none',
duration: 2000
})
// wx.showToast({
// title: '密码错误',
// icon: 'none',
// duration: 2000
// })
}
}).catch((res)=>{
this.setData({
showPassWordTip:true,
passWord: ''
})
wx.showToast({
title: '密码错误',
icon: 'none',
duration: 2000
})
// wx.showToast({
// title: '密码错误',
// icon: 'none',
// duration: 2000
// })
})
},
goWebsiteIndex(){
......
......@@ -119,11 +119,11 @@
</view>
<view class="info-box">
<view class="title">{{item.title}}</view>
<view class="count-box">
<view class="count-item" wx:if="{{item.content && item.content.properties.duration}}">
<view class="count-box" wx:if="{{item.content}}">
<view class="count-item" wx:if="{{item.content.properties.duration}}">
<image class="icon" src="{{imageRoot}}2c/websiteindex/onlinecourse/icon_time.png"/>{{filter.Mathceil(item.content.properties.duration/60)}}分钟
</view>
<view class="count-item" wx:if="{{item.content && item.content.type==2 || item.content.type==3}}">
<view class="count-item" wx:if="{{item.content.type==2 || item.content.type==3}}">
<block wx:if="{{item.visitor}}">
<block wx:if="{{filter.toFix(item.visitor.learned_time/item.content.properties.duration,2)>=1}}">已学完</block>
<block wx:else>已学{{filter.toFix(item.visitor.learned_time/item.content.properties.duration,2)*100}}%</block>
......
......@@ -452,7 +452,7 @@
font-weight: 600;
color:#222;
line-height: 1;
max-width: 450rpx;
max-width: 400rpx;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
......@@ -566,7 +566,7 @@
.content-box .search-box{
display: flex;
margin: 0 26rpx 0 24rpx;
margin: 0 26rpx 20rpx 24rpx;
align-items: center;
justify-content: space-between;
}
......
......@@ -445,7 +445,7 @@
font-weight: 600;
color:#222;
line-height: 1;
max-width: 450rpx;
max-width: 400rpx;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
......@@ -1002,11 +1002,11 @@
.catlog-dailog .content .title-box .title{
font-size: 32rpx;
font-family:PingFangSC-Regular,PingFang SC;
font-weight:400;
color:#222;
display: flex;
align-items: center;
line-height: 45rpx;
font-weight: bold;
}
.catlog-dailog .content .title-box .right{
display: flex;
......
......@@ -24,7 +24,7 @@ page {
min-width: 130rpx;
height: 130rpx;
margin-right: 20rpx;
border-radius: 20rpx;
border-radius: 10rpx;
overflow: hidden;
}
.subject-list .list-item .cover-box .cover{
......
......@@ -40,12 +40,13 @@
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-weight: bold;
}
.list-box .list-item .main .line .label {
height: 30rpx;
height: 36rpx;
font-size: 22rpx;
background: #f7f7f7;
line-height: 30rpx;
line-height: 36rpx;
padding: 0 10rpx;
margin-left: 14rpx;
border-radius: 6rpx;
......@@ -102,10 +103,11 @@
content: "";
width: 100%;
height: 1px;
background: #eeeeee;
background: #eee;
position: absolute;
left: 0;
top: 0;
transform: scaleY(.5);
}
video{
width: 100%;
......
......@@ -47,10 +47,10 @@ page {
text-overflow: ellipsis;
}
.list-box .list-item .main .line .label {
height: 30rpx;
height: 36rpx;
font-size: 22rpx;
background: #f7f7f7;
line-height: 30rpx;
line-height: 36rpx;
padding: 0 10rpx;
margin-left: 14rpx;
border-radius: 6rpx;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment