Commit d133623b by biao

1111

parent c8dbe0c0
...@@ -26,6 +26,8 @@ class CourseMediaDat extends CompassDynamicData ...@@ -26,6 +26,8 @@ class CourseMediaDat extends CompassDynamicData
//用户是否已经购买本视频 //用户是否已经购买本视频
var $haveBuy; var $haveBuy;
var $parent_category_title;
var $sub_category_title;
/** /**
* 构造实现。course_media_dat创建实例。 * 构造实现。course_media_dat创建实例。
......
...@@ -35,7 +35,10 @@ $userMst = $userList[0]; ...@@ -35,7 +35,10 @@ $userMst = $userList[0];
//判断用户身份分别获取数据 //判断用户身份分别获取数据
$volunteerEventList = array(); $volunteerEventList = array();
$tmpFamilyEventList = array();
$familyEventList = array(); $familyEventList = array();
$socialEventList = array(); $socialEventList = array();
$mediaList = array(); $mediaList = array();
...@@ -69,7 +72,7 @@ if($userMst->role == 1) { ...@@ -69,7 +72,7 @@ if($userMst->role == 1) {
$param['school_no'] = $userMst->school_no; $param['school_no'] = $userMst->school_no;
$param['original_source'] = $userMst->original_source; $param['original_source'] = $userMst->original_source;
$param['delete_flg'] = false; $param['delete_flg'] = false;
$familyEventList = FamilyEventDat::getList($param,'id','desc', 0, 1); $tmpFamilyEventList = FamilyEventDat::getList($param,'id','desc', 0, 1);
} }
//家校用户只显示本校社会实践 //家校用户只显示本校社会实践
...@@ -87,7 +90,7 @@ if($userMst->role == 4 || $userMst->role == 5 || $userMst->role == 6) { ...@@ -87,7 +90,7 @@ if($userMst->role == 4 || $userMst->role == 5 || $userMst->role == 6) {
if($userMst->child_age == 1) { if($userMst->child_age == 1) {
$param = array(); $param = array();
$param['delete_flg'] = false; $param['delete_flg'] = false;
$familyEventList = FamilyEventDat::getList($param,'id','desc', 0, 1); $tmpFamilyEventList = FamilyEventDat::getList($param,'id','desc', 0, 1);
} }
//7岁以上[社会实践] //7岁以上[社会实践]
if($userMst->child_age == 2) { if($userMst->child_age == 2) {
...@@ -97,6 +100,13 @@ if($userMst->role == 4 || $userMst->role == 5 || $userMst->role == 6) { ...@@ -97,6 +100,13 @@ if($userMst->role == 4 || $userMst->role == 5 || $userMst->role == 6) {
} }
} }
if(!empty($tmpFamilyEventList)) {
foreach($tmpFamilyEventList as $tmp) {
$tmp->publish_time = substr($tmp->publish_time,0,10);
$familyEventList[]= $tmp;
}
}
//公益课堂 //公益课堂
$param = array(); $param = array();
$param['delete_flg'] = false; $param['delete_flg'] = false;
......
...@@ -55,7 +55,7 @@ video, live-player, live-pusher, open-data, web-view { ...@@ -55,7 +55,7 @@ video, live-player, live-pusher, open-data, web-view {
} }
.activelist{ .activelist{
width: 95%; width: 95%;
height: 110px; height: 125px;
margin: 0 auto; margin: 0 auto;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
...@@ -280,12 +280,12 @@ video, live-player, live-pusher, open-data, web-view { ...@@ -280,12 +280,12 @@ video, live-player, live-pusher, open-data, web-view {
.right_listPublicWelfare>text{ .right_listPublicWelfare>text{
display: block; display: block;
height: 18px; height: 18px;
font-size: 12px; font-size: 14px;
overflow:hidden; overflow:hidden;
text-overflow:ellipsis; text-overflow:ellipsis;
} }
.right_listPublicWelfare .activeTitle{ .right_listPublicWelfare .activeTitle{
font-size: 13px; font-size: 15px;
font-weight: bold; font-weight: bold;
color: #000; color: #000;
} }
......
...@@ -11,7 +11,8 @@ ...@@ -11,7 +11,8 @@
</view> </view>
</view> </view>
<view class='kechengjianjie'> <view class='kechengjianjie'>
课程简介<view>{{courseComment}}</view> <view style="color:#4F4F4F">课程简介</view>
<view style="color:#969696">{{courseComment}}</view>
</view> </view>
<view class='classfenji'> <view class='classfenji'>
<view class='top_classfenji'> <view class='top_classfenji'>
......
...@@ -17,10 +17,10 @@ page{ ...@@ -17,10 +17,10 @@ page{
height: 50px; height: 50px;
line-height: 50px; line-height: 50px;
text-align: center; text-align: center;
font-size: 14px; font-size: 15px;
} }
.top_classDetails>view{ .top_classDetails>view{
width: 80%; width: 90%;
height: 170px; height: 170px;
margin: 0 auto; margin: 0 auto;
display: flex; display: flex;
...@@ -31,7 +31,7 @@ page{ ...@@ -31,7 +31,7 @@ page{
height: 150px; height: 150px;
} }
.top_classDetails>view>view{ .top_classDetails>view>view{
width: 50%; width: 55%;
height: 150px; height: 150px;
} }
.top_classDetails>view>view>text{ .top_classDetails>view>view>text{
...@@ -39,16 +39,17 @@ page{ ...@@ -39,16 +39,17 @@ page{
width: 100%; width: 100%;
height: 40px; height: 40px;
font-size: 14px; font-size: 14px;
color:#4F4F4F;
} }
.top_classDetails>view>view>view{ .top_classDetails>view>view>view{
width: 100%; width: 100%;
font-size: 12px; font-size: 14px;
color: #666; color:#969696;
} }
.kechengjianjie{ .kechengjianjie{
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
padding: 10px 10%; padding: 10px 5%;
font-size: 14px; font-size: 14px;
line-height: 25px; line-height: 25px;
border-bottom: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0;
...@@ -59,8 +60,9 @@ page{ ...@@ -59,8 +60,9 @@ page{
display: flex; display: flex;
align-items: center; align-items: center;
box-sizing: border-box; box-sizing: border-box;
padding: 0 10%; padding: 0 5%;
font-size: 14px; font-size: 14px;
color:#4F4F4F;
} }
.top_classfenji>image{ .top_classfenji>image{
width: 13px; width: 13px;
...@@ -69,25 +71,27 @@ page{ ...@@ -69,25 +71,27 @@ page{
} }
.bot_classfenji{ .bot_classfenji{
width: 100%; width: 100%;
font-size: 13px;
} }
.bot_classfenji>view{ .bot_classfenji>view{
width: 80%; width: 90%;
margin: 10px auto; margin: 10px auto;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
margin-bottom: 15px; margin-bottom: 15px;
} }
.bot_classfenji>view>view{ .bot_classfenji>view>view{
font-size: 14px;
padding: 4px 15px; padding: 4px 15px;
border-radius: 8px; border-radius: 8px;
position: relative; position: relative;
background: #0D76ED; background: #0D76ED;
font-size:14px;
color: #fff; color: #fff;
} }
.bot_classfenji>view>text{ .bot_classfenji>view>text{
flex: 1; flex: 1;
font-size: 14px; font-size: 14px;
color:#969696;
} }
.suo{ .suo{
position: absolute; position: absolute;
......
...@@ -34,7 +34,7 @@ Page({ ...@@ -34,7 +34,7 @@ Page({
}) })
} }
var that=this; var that=this;
wx:wx.request({ wx.request({
url: app.url+'ajax_get_course_category.php', url: app.url+'ajax_get_course_category.php',
header: { 'content-type': 'application/json'}, header: { 'content-type': 'application/json'},
success: function(res) { success: function(res) {
...@@ -70,26 +70,6 @@ Page({ ...@@ -70,26 +70,6 @@ Page({
}, },
/** /**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () { onReachBottom: function () {
......
...@@ -110,19 +110,19 @@ ...@@ -110,19 +110,19 @@
<image src='{{item.front_image}}'></image> <image src='{{item.front_image}}'></image>
</view> </view>
<view class='right_listPractice'> <view class='right_listPractice'>
<text>{{item.title}}\n</text>
<view> <view>
<text>{{item.title}}\n</text> <text>发布人:{{item.author}}\n</text>
<text>{{item.content}}</text> <text>发布时间:{{item.publish_time}}\n</text>
</view> </view>
<text>{{item.author}}</text>
</view> </view>
<text></text> <text></text>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<!-- 公益课堂 --> <!-- 公益课堂 wx:if="{{ismediaList}}" -->
<view class='publicWelfare' wx:if="{{ismediaList}}"> <view class='publicWelfare'>
<view class='topTitle'> <view class='topTitle'>
<view> <view>
<view class='leftLine'></view> <view class='leftLine'></view>
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
<view class='right_listPublicWelfare'> <view class='right_listPublicWelfare'>
<text class='activeTitle'>{{item.title}}</text> <text class='activeTitle'>{{item.title}}</text>
<view> <view>
<van-button type="default" size="mini">小学课堂</van-button> <view style='padding:0px 5px 0 0;color:#0D76ED;font-size:14px;margin-right:5px'>小学课堂</view>
<image src='../../img/kefu.png'></image> <image src='../../img/kefu.png'></image>
<text>{{item.view_count}}</text> <text>{{item.view_count}}</text>
</view> </view>
......
...@@ -2,12 +2,24 @@ ...@@ -2,12 +2,24 @@
<view class='activeDetails'> <view class='activeDetails'>
<image src='{{volunteerEventDat.front_image}}'></image> <image src='{{volunteerEventDat.front_image}}'></image>
<view class='con_activeDetails'> <view class='con_activeDetails'>
<text>活动名称:{{volunteerEventDat.title}}</text> <view class="row">
<text>活动地点:{{volunteerEventDat.position}}</text> <text class="titleText">活动名称:</text><text class="dataText">{{volunteerEventDat.title}}</text>
<text>征集范围:{{volunteerEventDat.scope}}\n</text> </view>
<text>活动人数:{{volunteerEventDat.max_member}}人</text> <view class="row">
<text>活动时长:{{volunteerEventDat.time_length}}</text> <text class="titleText">活动地点:</text><text class="dataText">{{volunteerEventDat.position}}</text>
<text>活动期限:{{volunteerEventDat.start_time}}-{{volunteerEventDat.finish_time}}</text> </view>
<view class="row">
<text class="titleText">征集范围:</text><text class="dataText">{{volunteerEventDat.scope}}\n</text>
</view>
<view class="row">
<text class="titleText">活动人数:</text><text class="dataText">{{volunteerEventDat.max_member}}人</text>
</view>
<view class="row">
<text class="titleText">活动时长:</text><text class="dataText">{{volunteerEventDat.time_length}}</text>
</view>
<view class="row">
<text class="titleText">活动期限:</text><text class="dataText">{{volunteerEventDat.start_time}}至\n{{volunteerEventDat.finish_time}}</text>
</view>
</view> </view>
<view class='botCon_activeDetails'> <view class='botCon_activeDetails'>
<view> <view>
......
...@@ -3,13 +3,26 @@ ...@@ -3,13 +3,26 @@
width: 100%; width: 100%;
} }
.con_activeDetails{ .con_activeDetails{
width: 90%; width: 92%;
margin: 30px auto; margin: 30px auto;
} }
.con_activeDetails>text{
display: block; .con_activeDetails .row{
width: 100%; width: 100%;
font-size: 13px; display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
text-align: left;
}
.con_activeDetails .row .titleText{
color:#4F4F4F;
wdith:100px;
margin-bottom: 15px;
}
.con_activeDetails .row .dataText{
color:#969696;
margin-bottom: 15px; margin-bottom: 15px;
} }
.botCon_activeDetails{ .botCon_activeDetails{
...@@ -18,7 +31,7 @@ ...@@ -18,7 +31,7 @@
border-bottom: 1px solid #ccc; border-bottom: 1px solid #ccc;
} }
.botCon_activeDetails>view{ .botCon_activeDetails>view{
width: 180px; width: 240px;
float: right; float: right;
color: #666; color: #666;
font-size: 12px; font-size: 12px;
...@@ -27,6 +40,7 @@ ...@@ -27,6 +40,7 @@
display: block; display: block;
margin-bottom: 5px; margin-bottom: 5px;
} }
.activejieshao{ .activejieshao{
width: 100%; width: 100%;
height: 80px; height: 80px;
......
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