Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
Compass
Overview
Overview
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
zong
Compass
Commits
4a27f593
Commit
4a27f593
authored
Mar 15, 2020
by
shijiuyan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
27b622eb
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
82 additions
and
28 deletions
+82
-28
app.wxss
src/wx/app.wxss
+1
-1
classDetails.js
src/wx/pages/classDetails/classDetails.js
+4
-1
classDetails.wxml
src/wx/pages/classDetails/classDetails.wxml
+6
-2
classDetails.wxss
src/wx/pages/classDetails/classDetails.wxss
+17
-7
history.js
src/wx/pages/history/history.js
+26
-9
history.wxml
src/wx/pages/history/history.wxml
+13
-8
history.wxss
src/wx/pages/history/history.wxss
+15
-0
No files found.
src/wx/app.wxss
View file @
4a27f593
...
...
@@ -12,7 +12,7 @@ page, view, scroll-view, swiper, movable-area, cover-view, text, icon, rich-text
progress, button, checkbox-group, checkbox, form, input, label, picker,
picker-view, radio-group, slider, switch, textarea, navigator, audio, image,
video, live-player, live-pusher, open-data, web-view {
font-family: "
微软雅黑
"
font-family: "
仿宋
"
}
.van-tabbar-item{
position: relative;
...
...
src/wx/pages/classDetails/classDetails.js
View file @
4a27f593
// pages/classDetails/classDetails.js
import
Toast
from
'../../dist/toast/toast'
;
var
app
=
getApp
();
Page
({
...
...
@@ -221,7 +222,9 @@ Page({
play
:
1
})
},
fail
(
res
)
{
}
fail
(
res
)
{
Toast
.
fail
(
'支付失败'
);
}
})
}
}
...
...
src/wx/pages/classDetails/classDetails.wxml
View file @
4a27f593
...
...
@@ -34,10 +34,12 @@
</view>
<view class='fufeilook' wx:if="{{fufeiPage==1}}">
<view class='con_fufeilook'>
<image src="/img/money.png"></image>
<view class='top_con_fufeilook'>付费观看</view>
<view style="margin-top:50px;
margin-left:33%;
">
金额:<text>{{money}}</text>
<view style="margin-top:50px;">
付费金额
</view>
<view style="margin-top: 10px;font-size: 18px;">¥<text style="color:red;">{{money}}</text></view>
<view class='fufeiBtn'>
<view bindtap='backfufei'>取消</view>
<view style='background:rgb(91,155,213)' bindtap='surefufei'>确认</view>
...
...
@@ -45,3 +47,4 @@
</view>
</view>
</view>
<van-toast id="van-toast" />
\ No newline at end of file
src/wx/pages/classDetails/classDetails.wxss
View file @
4a27f593
...
...
@@ -132,30 +132,39 @@ page{
bottom: 0;
right: 0;
margin: auto;
width: 2
0
0px;
height:
2
00px;
width: 2
8
0px;
height:
3
00px;
background: #fff;
border-radius: 5px;
overflow: hidden;
text-align: center;
}
.con_fufeilook>image{
width:50px;
height: 50px;
position: absolute;
top:-19px;
left:-16px;
}
.top_con_fufeilook{
width: 100%;
text-align: center;
font-size: 16px;
font-size: 18px;
margin-top:25px;
font-weight: 600;
}
.fufeiBtn{
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height:
3
0px;
height:
5
0px;
display: flex;
justify-content: space-between;
border-top: 1px solid #ccc;
}
.fufeiBtn>view{
width: 50%;
height: 30px;
line-height: 30px;
line-height: 50px;
text-align: center;
font-size: 14px;
}
\ No newline at end of file
src/wx/pages/history/history.js
View file @
4a27f593
...
...
@@ -6,25 +6,36 @@ Page({
* 页面的初始数据
*/
data
:
{
page
:
0
,
pageCount
:
0
,
list
:[],
play
:
false
,
playUrl
:
''
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
var
that
=
this
;
var
config
=
wx
.
getStorageSync
(
'config'
);
wx
:
wx
.
request
({
wx
.
request
({
url
:
app
.
url
+
'ajax_get_user_media_history.php'
,
data
:
{
unionId
:
config
.
unionId
,
page
:
0
page
:
that
.
data
.
page
},
header
:
{
'content-type'
:
'application/json'
},
method
:
'GET'
,
dataType
:
'json'
,
success
:
function
(
res
)
{
console
.
log
(
res
)
if
(
res
.
data
.
status
==
'OK'
){
that
.
setData
({
list
:
that
.
data
.
list
.
concat
(
res
.
data
.
result
.
list
),
pageCount
:
res
.
data
.
result
.
pageCount
})
}
},
fail
:
function
(
res
)
{},
complete
:
function
(
res
)
{},
...
...
@@ -79,12 +90,17 @@ Page({
onShareAppMessage
:
function
()
{
},
classDetails
()
{
wx
.
navigateTo
({
url
:
'../classDetails/classDetails'
,
});
wx
.
setNavigationBarTitle
({
title
:
'课程详情'
classDetails
(
e
)
{
var
src
=
e
.
currentTarget
.
dataset
.
src
;
var
that
=
this
;
that
.
setData
({
play
:
true
,
playUrl
:
src
})
},
closeVideo
(){
this
.
setData
({
play
:
false
})
}
})
\ No newline at end of file
src/wx/pages/history/history.wxml
View file @
4a27f593
<!--pages/lishi/lishi.wxml-->
<view>
<view class='listPublicWelfare'>
<view bindtap='classDetails'>
<view bindtap='classDetails'
data-src='{{item.media}}' wx:for="{{list}}"
>
<view class='left_listPublicWelfare'>
<image src='
../../img/3.jpg
'></image>
<image src='
{{item.front_image}}
'></image>
</view>
<view class='right_listPublicWelfare'>
<text>
陈老师关于志愿者理论1
</text>
<text>
{{item.title}}
</text>
<view>
<van-button type="default" size="mini">小学课堂</van-button>
<image src='../../img/kefu.png'></image>
<text>
10000
</text>
<text>
{{item.view_count}}
</text>
</view>
<text>主讲教师:
陈老师
</text>
<text>主讲教师:
{{item.teacher}}
</text>
</view>
</view>
<view>
<
!-- <
view>
<view class='left_listPublicWelfare'>
<image src='../../img/3.jpg'></image>
</view>
...
...
@@ -38,10 +38,14 @@
<view>
<!-- <van-button type="default" size="mini">小学课堂</van-button>
<image src='../../img/kefu.png'></image>
<text>10000</text>
-->
<text>10000</text>
</view>
<text>主讲教师:陈老师</text>
</view>
</view> -->
</view>
</view>
</view>
<view wx:if="{{play}}" class="play-view">
<video src="{{playUrl}}"></video>
<van-button type="warning" bind:click="closeVideo">关闭</van-button>
</view>
\ No newline at end of file
src/wx/pages/history/history.wxss
View file @
4a27f593
/* pages/lishi/lishi.wxss */
.play-view{
position: fixed;
height: 100%;
width: 100%;
z-index: 5;
top: 0;
background: #fff;
text-align: center;
}
.play-view>video{
width:100%;
max-height: 500px;
}
\ No newline at end of file
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