commission--yt-commit
This commit is contained in:
72
pages/course/homepage/homepage.js
Normal file
72
pages/course/homepage/homepage.js
Normal file
@ -0,0 +1,72 @@
|
||||
// pages/course/homepage/homepage.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
items: [null,null,null,null,null,null,null]
|
||||
},
|
||||
|
||||
gotoSearch() {
|
||||
wx.navigateTo({
|
||||
url: '/pages/course/searchCourses/searchCourses',
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
3
pages/course/homepage/homepage.json
Normal file
3
pages/course/homepage/homepage.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
52
pages/course/homepage/homepage.wxml
Normal file
52
pages/course/homepage/homepage.wxml
Normal file
@ -0,0 +1,52 @@
|
||||
<view class="flex-col page">
|
||||
<view class="flex-col self-stretch group">
|
||||
<view class="flex-row justify-center items-center section" bind:tap="gotoSearch">
|
||||
<image
|
||||
class="image"
|
||||
src="./image/sousuo.png"
|
||||
/>
|
||||
<text class="text ml-3">搜索更多好课</text>
|
||||
</view>
|
||||
<swiper class="swiper" autoplay="true" circular="true"></swiper>
|
||||
</view>
|
||||
<view class="flex-row equal-division">
|
||||
<view class="flex-col items-center group_2 group_1">
|
||||
<image
|
||||
class="image_3"
|
||||
src="./image/kgky.png"
|
||||
/>
|
||||
<text class="font text_1 mt-12">考公考研</text>
|
||||
</view>
|
||||
<view class="flex-col items-center group_2 group_3">
|
||||
<image
|
||||
class="image_3"
|
||||
src="./image/zmt.png"
|
||||
/>
|
||||
<text class="font text_3 mt-12">自媒体</text>
|
||||
</view>
|
||||
<view class="flex-col items-center group_2 group_4">
|
||||
<image
|
||||
class="image_3"
|
||||
src="./image/cj.png"
|
||||
/>
|
||||
<text class="font text_4 mt-12">财经</text>
|
||||
</view>
|
||||
</view>
|
||||
<text class="self-start text_2">热门课程</text>
|
||||
<view class="flex-col self-stretch list">
|
||||
<view class="flex-row relative group_5" wx:for="{{items}}" wx:for-item="item" wx:for-index="index" wx:key="index">
|
||||
<view class="list-divider pos_3"></view>
|
||||
<image
|
||||
class="image_4 pos"
|
||||
src="https://ide.code.fun/api/image?token=6854f3c94ae84d0012332367&name=9c2a22f14e2bd768cbd40d939693e4a8.png"
|
||||
/>
|
||||
<view class="flex-col group_6 pos_2">
|
||||
<text class="font_2">区块链和加密数字货币(随报随学认证班)</text>
|
||||
<view class="flex-row justify-between items-baseline mt-17">
|
||||
<text class="font_3">券后99元起</text>
|
||||
<text class="font_4">18523人学习</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
137
pages/course/homepage/homepage.wxss
Normal file
137
pages/course/homepage/homepage.wxss
Normal file
@ -0,0 +1,137 @@
|
||||
.ml-3 {
|
||||
margin-left: 5.63rpx;
|
||||
}
|
||||
.mt-17 {
|
||||
margin-top: 31.88rpx;
|
||||
}
|
||||
.page {
|
||||
padding: 0rpx 0 10.88rpx;
|
||||
background-color: #ffffff;
|
||||
width: 100%;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
height: 100%;
|
||||
}
|
||||
.group {
|
||||
padding-left: 30rpx;
|
||||
padding-right: 28.13rpx;
|
||||
}
|
||||
.section {
|
||||
padding: 11.25rpx 0;
|
||||
background-color: #f2f2f2;
|
||||
border-radius: 93.75rpx;
|
||||
}
|
||||
.image {
|
||||
width: 35.63rpx;
|
||||
height: 35.63rpx;
|
||||
}
|
||||
.text {
|
||||
color: #a8a8a8;
|
||||
font-size: 22.5rpx;
|
||||
font-family: SourceHanSerifCN;
|
||||
line-height: 20.83rpx;
|
||||
}
|
||||
.equal-division {
|
||||
align-self: stretch;
|
||||
margin: 21.88rpx 31.46rpx 0 29.48rpx;
|
||||
}
|
||||
.group_2 {
|
||||
flex: 1 1 229.69rpx;
|
||||
}
|
||||
.group_1 {
|
||||
padding: 13.56rpx 0 9.99rpx;
|
||||
}
|
||||
.image_3 {
|
||||
width: 96rpx;
|
||||
height: 96rpx;
|
||||
}
|
||||
.font {
|
||||
font-size: 26.25rpx;
|
||||
font-family: SourceHanSansCN;
|
||||
line-height: 24.15rpx;
|
||||
color: #000000;
|
||||
}
|
||||
.text_1 {
|
||||
line-height: 24.26rpx;
|
||||
}
|
||||
.group_3 {
|
||||
padding: 13.56rpx 0 10.09rpx;
|
||||
}
|
||||
.text_3 {
|
||||
line-height: 24.23rpx;
|
||||
}
|
||||
.group_4 {
|
||||
padding: 13.56rpx 0 10.13rpx;
|
||||
}
|
||||
.text_4 {
|
||||
line-height: 24.13rpx;
|
||||
}
|
||||
.text_2 {
|
||||
margin-left: 35.04rpx;
|
||||
margin-top: 38.16rpx;
|
||||
color: #000000;
|
||||
font-size: 30rpx;
|
||||
font-family: SourceHanSansCN;
|
||||
line-height: 27.75rpx;
|
||||
}
|
||||
.list {
|
||||
margin-top: 9.56rpx;
|
||||
}
|
||||
.group_5 {
|
||||
padding: 18.75rpx 29.46rpx 0 35.63rpx;
|
||||
height: 180rpx;
|
||||
}
|
||||
.list-divider {
|
||||
background-color: #d6d6d6;
|
||||
height: 1.88rpx;
|
||||
}
|
||||
.pos_3 {
|
||||
position: absolute;
|
||||
left: 35.63rpx;
|
||||
right: 33.81rpx;
|
||||
top: 178.13rpx;
|
||||
}
|
||||
.image_4 {
|
||||
border-radius: 9.38rpx;
|
||||
width: 208.13rpx;
|
||||
height: 133.13rpx;
|
||||
}
|
||||
.pos {
|
||||
position: absolute;
|
||||
left: 35.63rpx;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.group_6 {
|
||||
width: 453.49rpx;
|
||||
}
|
||||
.pos_2 {
|
||||
position: absolute;
|
||||
right: 29.46rpx;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.font_2 {
|
||||
font-size: 26.25rpx;
|
||||
font-family: SourceHanSansCN;
|
||||
line-height: 31.88rpx;
|
||||
color: #000000;
|
||||
}
|
||||
.font_3 {
|
||||
font-size: 26.25rpx;
|
||||
font-family: AlibabaPuHuiTi;
|
||||
line-height: 24.15rpx;
|
||||
color: #ff5733;
|
||||
}
|
||||
.font_4 {
|
||||
font-size: 22.5rpx;
|
||||
font-family: AlibabaPuHuiTi;
|
||||
line-height: 20.34rpx;
|
||||
color: #a6a6a6;
|
||||
}
|
||||
.swiper {
|
||||
border-radius: 9.38rpx;
|
||||
width: 691.88rpx;
|
||||
height: 324.38rpx;
|
||||
margin-top: 22.5rpx;
|
||||
}
|
BIN
pages/course/homepage/image/cj.png
Normal file
BIN
pages/course/homepage/image/cj.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.4 KiB |
BIN
pages/course/homepage/image/kgky.png
Normal file
BIN
pages/course/homepage/image/kgky.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.3 KiB |
BIN
pages/course/homepage/image/sousuo.png
Normal file
BIN
pages/course/homepage/image/sousuo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 812 B |
BIN
pages/course/homepage/image/zmt.png
Normal file
BIN
pages/course/homepage/image/zmt.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
BIN
pages/course/searchCourses/images/sousuo.png
Normal file
BIN
pages/course/searchCourses/images/sousuo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 812 B |
66
pages/course/searchCourses/searchCourses.js
Normal file
66
pages/course/searchCourses/searchCourses.js
Normal file
@ -0,0 +1,66 @@
|
||||
// pages/course/searchCourses/searchCourses.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
3
pages/course/searchCourses/searchCourses.json
Normal file
3
pages/course/searchCourses/searchCourses.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
26
pages/course/searchCourses/searchCourses.wxml
Normal file
26
pages/course/searchCourses/searchCourses.wxml
Normal file
@ -0,0 +1,26 @@
|
||||
<!--pages/course/searchCourses/searchCourses.wxml-->
|
||||
<view class="flex-col page">
|
||||
<view class="flex-row items-center section">
|
||||
<image
|
||||
class="image"
|
||||
src="https://ide.code.fun/api/image?token=6854f3c94ae84d0012332367&name=f2d91149603a9b9bbd30ffd5a77c2043.png"
|
||||
/>
|
||||
<input class="text ml-3" placeholder="搜索更多好课" />
|
||||
</view>
|
||||
<view class="flex-col list mt-17">
|
||||
<view class="flex-row relative list-item" wx:for="{{items}}" wx:for-item="item" wx:for-index="index" wx:key="index">
|
||||
<view class="list-divider pos_3"></view>
|
||||
<image
|
||||
class="image_2 pos"
|
||||
src="https://ide.code.fun/api/image?token=6854f3c94ae84d0012332367&name=9c2a22f14e2bd768cbd40d939693e4a8.png"
|
||||
/>
|
||||
<view class="flex-col group_2 pos_2">
|
||||
<text class="font">区块链和加密数字货币(随报随学认证班)</text>
|
||||
<view class="flex-row justify-between items-baseline mt-17">
|
||||
<text class="font_2">券后99元起</text>
|
||||
<text class="font_3">18523人学习</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
89
pages/course/searchCourses/searchCourses.wxss
Normal file
89
pages/course/searchCourses/searchCourses.wxss
Normal file
@ -0,0 +1,89 @@
|
||||
/* pages/course/searchCourses/searchCourses.wxss */
|
||||
|
||||
.ml-3 {
|
||||
margin-left: 5.63rpx;
|
||||
}
|
||||
.mt-17 {
|
||||
margin-top: 31.88rpx;
|
||||
}
|
||||
.page {
|
||||
padding: 26.25rpx 0 918.73rpx;
|
||||
background-color: #ffffff;
|
||||
width: 100%;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
height: 100%;
|
||||
}
|
||||
.section {
|
||||
margin-left: 28.13rpx;
|
||||
margin-right: 26.27rpx;
|
||||
padding: 11.25rpx 24.38rpx;
|
||||
background-color: #f2f2f2;
|
||||
border-radius: 93.75rpx;
|
||||
}
|
||||
.image {
|
||||
width: 35.63rpx;
|
||||
height: 35.63rpx;
|
||||
}
|
||||
.text {
|
||||
color: #a8a8a8;
|
||||
font-size: 22.5rpx;
|
||||
font-family: SourceHanSerifCN;
|
||||
line-height: 20.83rpx;
|
||||
}
|
||||
.list {
|
||||
padding-top: 11.25rpx;
|
||||
border-top: solid 1.88rpx #d1d1d1;
|
||||
}
|
||||
.list-item {
|
||||
padding: 28.13rpx 29.46rpx 0 35.63rpx;
|
||||
height: 189.39rpx;
|
||||
}
|
||||
.list-divider {
|
||||
background-color: #d6d6d6;
|
||||
height: 1.88rpx;
|
||||
}
|
||||
.pos_3 {
|
||||
position: absolute;
|
||||
left: 35.63rpx;
|
||||
right: 33.81rpx;
|
||||
top: 187.52rpx;
|
||||
}
|
||||
.image_2 {
|
||||
border-radius: 9.38rpx;
|
||||
width: 208.13rpx;
|
||||
height: 133.13rpx;
|
||||
}
|
||||
.pos {
|
||||
position: absolute;
|
||||
left: 35.63rpx;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.group_2 {
|
||||
width: 453.49rpx;
|
||||
}
|
||||
.pos_2 {
|
||||
position: absolute;
|
||||
right: 29.46rpx;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.font {
|
||||
font-size: 26.25rpx;
|
||||
font-family: SourceHanSansCN;
|
||||
line-height: 31.88rpx;
|
||||
color: #000000;
|
||||
}
|
||||
.font_2 {
|
||||
font-size: 26.25rpx;
|
||||
font-family: AlibabaPuHuiTi;
|
||||
line-height: 24.15rpx;
|
||||
color: #ff5733;
|
||||
}
|
||||
.font_3 {
|
||||
font-size: 22.5rpx;
|
||||
font-family: AlibabaPuHuiTi;
|
||||
line-height: 20.34rpx;
|
||||
color: #a6a6a6;
|
||||
}
|
Reference in New Issue
Block a user