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
e4be7ecf
Commit
e4be7ecf
authored
Apr 13, 2020
by
lvtz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
fd961bb6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
7 deletions
+34
-7
api.js
constants/api.js
+1
-1
index.js
src/pages/websiteindex/index.js
+10
-3
index.wxml
src/pages/websiteindex/index.wxml
+7
-3
index.wxss
src/pages/websiteindex/index.wxss
+16
-0
No files found.
constants/api.js
View file @
e4be7ecf
...
...
@@ -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端-线上课堂验证密码接口
...
...
src/pages/websiteindex/index.js
View file @
e4be7ecf
...
...
@@ -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
})
},
// 体验课
...
...
src/pages/websiteindex/index.wxml
View file @
e4be7ecf
...
...
@@ -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>
...
...
src/pages/websiteindex/index.wxss
View file @
e4be7ecf
...
...
@@ -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;
...
...
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