Commit e4be7ecf authored by lvtz's avatar lvtz

fix

parent fd961bb6
......@@ -219,7 +219,7 @@ const apis = {
newslist: `${api}common/news`, //C端-机构新鲜事列表创 待删
newsdetail: `${api}student/news/detail`, //C端-机构新鲜详情
teacherlist: `${api}common/website/teachers`,//名师列表
onlinecourseslist: `${api}common/online_courses`, //C端-在线课列表
onlinecourseslist: `${api}common/website/online_courses`, //C端-在线课列表
onlinecoursesdetail: `${api}student/online_courses/detail`, //C端-在线课列表详情
onlinesubcourses: `${api}student/online_courses/sub_courses`, //C端-线上课专栏对应的单课列表
onlinecoursesverifypwd: `${api}student/online_courses/verify_pwd`, //C端-线上课堂验证密码接口
......
......@@ -91,6 +91,7 @@ Page({
schoolInfoTotal: 0,
schoolInfoPicTotal: 0,
schoolInfoVideoTotal: 0,
infoexpanded: true,
mockSchoolInfoList: [1, 1, 1, 1], //直接循环四次空
clockPage: 1,
clockTotal: '',
......@@ -205,7 +206,7 @@ Page({
this.teacherListGet();
this.adsListGet();
this.momentlistGet();
// this.onlineCoursesListGet();
this.onlineCoursesListGet();
this.userShow();
// this.websiteBarrage();//弹幕
this.subjectListGet();
......@@ -461,6 +462,11 @@ Page({
}
})
},
expandSchoolInfo (e){
this.setData({
infoexpanded: !this.data.infoexpanded
})
},
// 查看更多
toMoreList(e) {
const {
......@@ -999,9 +1005,10 @@ Page({
})
})
},
makecall () {
makecall (e) {
const { mobile } = e.currentTarget.dataset
wx.makePhoneCall({
phoneNumber: JSON.parse(this.data.schoolInfo.school.tel_phone)[0]
phoneNumber: mobile
})
},
// 体验课
......
......@@ -95,7 +95,7 @@
<view class="address" wx:else>
<view class="other">暂未设置位置信息</view>
</view>
<image class="icon-mobile" src="{{localImageRoot}}2c/websiteindex/website_phone.png?{{imageVersion}}" bindtap='makecall'></image>
<image class="icon-mobile" src="{{localImageRoot}}2c/websiteindex/website_phone.png?{{imageVersion}}" bindtap="makecall" data-mobile="{{schoolInfo.tel_phone}}"></image>
</view>
</view>
<view class="section-wrap section-ad" wx:if="{{adsTotal>0}}">
......@@ -178,6 +178,10 @@
</view>
<view class="desc-box" wx:if="{{schoolInfo.intro}}">
<view class="content">{{schoolInfo.intro}}</view>
<view class="expend-box" bindtap="expandSchoolInfo">{{infoexpanded?'向下展开':'向上收起'}}
<image wx:if="{{infoexpanded}}" class="icon-arr" src="{{localImageRoot}}2c/websiteindex/icon_arrdown_yellow.png?{{imageVersion}}"></image>
<image wx:if="{{!infoexpanded}}" class="icon-arr icon-arr-trans" src="{{localImageRoot}}2c/websiteindex/icon_arrdown_yellow.png?{{imageVersion}}"></image>
</view>
</view>
<view class="instro-swiper" wx:if="{{schoolInfoTotal>0}}">
<swiper indicator-dots="{{false}}" autoplay="{{false}}" circular="{{true}}" style="height:368rpx;" bindtap="toMoreList" data-type="schoolinfo">
......@@ -230,11 +234,11 @@
<image class="cover" src="{{filter.imagify(item.cover, 'image/resize,w_600/format,jpg')}}" mode="aspectFill" wx:if="{{item.cover}}" />
<image class="cover" src="{{filter.imagify('qingxiao/biz/image/course/courseDefaultImg.png')}}" mode="aspectFill" wx:else/>
<view class="count-box">
<image class="icon" src="{{localImageRoot}}2c/websiteindex/icon_eye.png?{{imageVersion}}"/>{{item.visit_pv_count+item.study_count}}人已学习
<image class="icon" src="{{localImageRoot}}2c/websiteindex/icon_eye.png?{{imageVersion}}"/>{{item.online_course.study_count}}人已学习
</view>
</view>
<view class="title-box">
<view class="title">{{item.title}}</view>
<view class="title">{{item.online_course.title}}</view>
</view>
</view>
</view>
......
......@@ -846,6 +846,22 @@ page{
color: #666;
line-height: 40rpx;
}
.business-instro .desc-box .expend-box{
display: flex;
align-items: center;
justify-content: center;
font-size: 22rpx;
color: #FB7A28;
height: 50rpx;
}
.business-instro .desc-box .expend-box .icon-arr{
width: 20rpx;
height: 12rpx;
margin-left: 12rpx;
}
.business-instro .desc-box .expend-box .icon-arr-trans{
transform: rotate(-180deg);
}
.business-instro .instro-swiper{
padding: 0 24rpx;
border-radius: 10rpx;
......
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