Commit e4be7ecf authored by lvtz's avatar lvtz

fix

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