Commit de3f3f70 authored by wangxuelai's avatar wangxuelai

'最新代码上传'

parent 47367233
......@@ -36,12 +36,13 @@
<view class="title">作业打卡</view>
</view>
</permission-box>
<permission-box>
<!-- <permission-box>
<view class="opt-btnitem" bindtap="bindRankingList" slot="menubtn">
<view class="opt-btnitem" bindtap="bindRankingList" slot="menubtn">
<image class="icon" src="{{imageRoot}}2b/circleindex/icon_rank.png?{{imageVersion}}"></image>
<view class="title">排行榜</view>
</view>
</permission-box>
</permission-box> -->
</view>
<view class="devided-line"></view>
......
......@@ -71,7 +71,7 @@ page{
.opt-btngroup{
display: flex;
align-items: center;
justify-content: center;
justify-content: space-around;
}
.opt-btngroup .opt-btnitem{
/* flex: 1; */
......
......@@ -1591,44 +1591,45 @@ Page({
source_type: 10,
}).then(() => {
that.judgeIsSchoolStudent(this.data.sid, () => {
that.judgeWhichBigTab().then((res) => {
const { clockTotal, galleryTotal } = res;
if (clockTotal > 0) {
this.setData({
bigtab: 1
})
} else if (galleryTotal > 0) {
this.setData({
bigtab: 3
})
} else {
this.setData({
bigtab: 1
})
}
this.lastWallGet();//最新一次精选
if(that.data.bigtab==1){
wx.setNavigationBarColor({
frontColor: '#000000',
backgroundColor:'#fff',
})
if(this.data.userInfo){
this.clockListGet('init');
}
}else if(that.data.bigtab==2){
that.wallRankingGet();//上月精选列表
that.clockRankingGet();//坚持之星
that.hotRankingGet();//人气之星
} else if (that.data.bigtab == 3){
this.setData({
galleryList: [],
galleryLoading: false,
})
this.data.galleryPage = 1;
this.data.galleryHasMore = true;
this.getGalleryList('init');
// that.judgeWhichBigTab().then((res) => {
// console.log(res, '222');
// const { clockTotal, galleryTotal } = res;
// if (clockTotal > 0) {
// this.setData({
// bigtab: 1
// })
// } else if (galleryTotal > 0) {
// this.setData({
// bigtab: 3
// })
// } else {
// this.setData({
// bigtab: 1
// })
// }
// this.lastWallGet();//最新一次精选
// });
if(that.data.bigtab==1){
wx.setNavigationBarColor({
frontColor: '#000000',
backgroundColor:'#fff',
})
if(this.data.userInfo){
this.clockListGet('init');
}
});
}else if(that.data.bigtab==2){
that.wallRankingGet();//上月精选列表
that.clockRankingGet();//坚持之星
that.hotRankingGet();//人气之星
} else if (that.data.bigtab == 3){
this.setData({
galleryList: [],
galleryLoading: false,
})
this.data.galleryPage = 1;
this.data.galleryHasMore = true;
// this.getGalleryList('init');
}
});
})
},
......@@ -1898,7 +1899,7 @@ Page({
})
this.data.galleryPage = 1;
this.data.galleryHasMore = true;
this.getGalleryList('down');
// this.getGalleryList('down');
}
},
......@@ -1909,7 +1910,7 @@ Page({
if (this.data.bigtab == 1) {
this.clockListGet('up');
} else if (this.data.bigtab == 3) {
this.getGalleryList('up');
// this.getGalleryList('up');
}
},
......@@ -2630,7 +2631,7 @@ audioStorage[value].isWaiting = true;
frontColor: '#000000',
backgroundColor:'#fff',
})
this.getGalleryList('init');
// this.getGalleryList('init');
}
},
clockTapEvent(e) {
......
......@@ -8,7 +8,7 @@
<view class="title">习作广场</view>
<view class="sub-title">学生学习动态都在这里显示</view>
</view>
<view class="little-star-box">
<!-- <view class="little-star-box">
<view class="star-title">
<image class="" src="{{imageRoot}}2c/papersquare/king.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" /> 人气小明星
</view>
......@@ -30,9 +30,7 @@
<view class="btn-box" data-item='{{lastWallData}}' bindtap="goGrowthRecord">成长记录</view>
</view>
<view class="empty-little-star" wx:else>暂无数据</view>
</view>
</view> -->
</view>
<view class="top-fix-wrapper" style="{{fixHonorTab ? 'padding-top:'+statusBarHeight+'px; margin-top:-'+statusBarHeight+'px' : ''}}">
<view class="top-fix">
......@@ -43,9 +41,9 @@
<view class="tab-item {{bigtab == 3? 'active': ''}}" data-type="3" bindtap="bigTapEvent">
课堂
</view>
<view class="tab-item {{bigtab == 2? 'active': ''}}" data-type="2" bindtap="bigTapEvent">
<!-- <view class="tab-item {{bigtab == 2? 'active': ''}}" data-type="2" bindtap="bigTapEvent">
榜单
</view>
</view> -->
</view>
<!-- <view class="tab-box" wx:if="{{bigtab==1}}">
<view class="tab-item {{clocktype == 1? 'active': ''}}" data-type="1" bindtap="clockTapEvent">最新点评</view>
......@@ -358,7 +356,7 @@
</view>
<view class="more-honor-btn" bindtap="goMoreHonor" wx:if="{{(activeHonorTab == 3 && wallList && wallList.length>10) || (activeHonorTab == 1 && daysTop && daysTop.length>10) || (activeHonorTab == 2 && hotRankingList && hotRankingList.length>10)}}">查看更多排名 <image class="" src="{{imageRoot}}2b/organizationalmgt/right.png" mode="aspectFit|aspectFill|widthFix" /></view>
</view>
<view wx:if="{{bigtab == 3}}">
<!-- <view wx:if="{{bigtab == 3}}">
<view>
<block wx:if="{{!galleryEmptyPage}}">
<block wx:for="{{galleryList}}" wx:for-item="bigitem" wx:key="bigindex" wx:for-index="bigindex">
......@@ -405,7 +403,7 @@
</view>
<list-loading loading="{{galleryLoading}}"></list-loading>
</view>
</view>
</view> -->
<view class="modal modal-getprice" wx:if="{{getPriceModalShow}}">
<view class="mask"></view>
<view class="modal-box">
......
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