Commit ed83cd7d authored by lvtz's avatar lvtz

fix

parent ce5a107a
...@@ -136,7 +136,6 @@ Page({ ...@@ -136,7 +136,6 @@ Page({
likesObj: {}, likesObj: {},
commentsObj: {}, commentsObj: {},
schoolInfo: '', schoolInfo: '',
auditStatus: 3, // 1未申请2审核中3已通过
studentStatus: 1, studentStatus: 1,
noUser: false, noUser: false,
commenteditor: false, // 评论input框 commenteditor: false, // 评论input框
...@@ -222,7 +221,6 @@ Page({ ...@@ -222,7 +221,6 @@ Page({
if (options.scene) { if (options.scene) {
let sceneQuery = scenQueryGet(options.scene); let sceneQuery = scenQueryGet(options.scene);
const { const {
i,
t, t,
c c
} = sceneQuery; } = sceneQuery;
...@@ -236,7 +234,6 @@ Page({ ...@@ -236,7 +234,6 @@ Page({
}) })
} }
this.setData({ this.setData({
id: i,
tid: t, tid: t,
pagefrom: '', pagefrom: '',
advertisementshow: true, advertisementshow: true,
...@@ -244,7 +241,6 @@ Page({ ...@@ -244,7 +241,6 @@ Page({
}) })
} else { } else {
const { const {
id,
tid, tid,
sid, sid,
pagefrom, pagefrom,
...@@ -272,7 +268,6 @@ Page({ ...@@ -272,7 +268,6 @@ Page({
}) })
} }
this.setData({ this.setData({
id,
tid, tid,
sid: sid || 0, sid: sid || 0,
pagefrom: pagefrom ? pagefrom : '', pagefrom: pagefrom ? pagefrom : '',
...@@ -283,7 +278,7 @@ Page({ ...@@ -283,7 +278,7 @@ Page({
}) })
} }
app.getCurrentSchoolStudentId({ app.getCurrentSchoolStudentId({
source_id: this.data.id, source_id: this.data.sid,
source_type: 7, source_type: 7,
}).then(() => { }).then(() => {
this.userShow(); this.userShow();
...@@ -519,7 +514,7 @@ Page({ ...@@ -519,7 +514,7 @@ Page({
// 跟打卡之后积分获取弹窗有关的操作 // 跟打卡之后积分获取弹窗有关的操作
userShow() { userShow() {
studentidentity({ studentidentity({
class_id: this.data.id, school_id: this.data.sid,
}).then((res) => { }).then((res) => {
wx.hideLoading(); wx.hideLoading();
const { const {
...@@ -528,7 +523,6 @@ Page({ ...@@ -528,7 +523,6 @@ Page({
} = res; } = res;
if (code == 200 && data) { if (code == 200 && data) {
this.setData({ this.setData({
auditStatus: data.audit_status,
noUser: data.is_visitor, noUser: data.is_visitor,
studentId: data.student_id, studentId: data.student_id,
}) })
...@@ -537,14 +531,11 @@ Page({ ...@@ -537,14 +531,11 @@ Page({
this.getModesDetail(); this.getModesDetail();
} else { } else {
this.setData({ this.setData({
auditStatus: 1,
noUser: true noUser: true
}) })
} }
}).catch(() => { }).catch(() => {
this.setData({
auditStatus: 1,
})
}) })
}, },
judgeIsSchoolStudent (sid) { judgeIsSchoolStudent (sid) {
...@@ -2390,7 +2381,7 @@ Page({ ...@@ -2390,7 +2381,7 @@ Page({
this.websitehomeGet(data.school_id); this.websitehomeGet(data.school_id);
this.getSubjects(refresh); this.getSubjects(refresh);
this.schoolInfoGet(data.school_id) this.schoolInfoGet(data.school_id)
this.getCircleDetail(data.class_id); // this.getCircleDetail(data.class_id);
const visitor = LocalStorage.getItem('visitor'); const visitor = LocalStorage.getItem('visitor');
activityLog({ activityLog({
type: 22, type: 22,
......
...@@ -52,8 +52,7 @@ ...@@ -52,8 +52,7 @@
<view class="time">{{themeSelect.created_at}}</view> <view class="time">{{themeSelect.created_at}}</view>
</view> </view>
<view class="" <view wx:if="{{noUser || themeSelect.is_encrypt == 0}}">
wx:if="{{(!noUser && auditStatus == 3) || themeSelect.is_encrypt == 0}}">
<view class="{{detailExpand ? 'sjd-media-show-box noheight' : 'sjd-media-show-box'}}" <view class="{{detailExpand ? 'sjd-media-show-box noheight' : 'sjd-media-show-box'}}"
wx:if="{{themeSelect.content.length > 0}}"> wx:if="{{themeSelect.content.length > 0}}">
<sjd-media-show content="{{themeSelect.content}}" bind:playvoice="playvoice" <sjd-media-show content="{{themeSelect.content}}" bind:playvoice="playvoice"
......
This diff is collapsed.
...@@ -7,9 +7,5 @@ ...@@ -7,9 +7,5 @@
}, },
"navigationBarTitleText": "我的作业", "navigationBarTitleText": "我的作业",
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"onReachBottomDistance": 100, "onReachBottomDistance": 100
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black",
"backgroundColor": "#fff",
"backgroundTextStyle": "dark"
} }
\ No newline at end of file
<!--business/pages/mytask/index.wxml-->
<wxs src="../../../filter/index.wxs" module="filter" /> <wxs src="../../../filter/index.wxs" module="filter" />
<view class="nav-custombox"> <view class="nav-custombox">
<view class="nav-title-box"> <view class="nav-title-box">
...@@ -23,18 +21,11 @@ ...@@ -23,18 +21,11 @@
<view class="title">{{item.title}}</view> <view class="title">{{item.title}}</view>
</view> </view>
<view class="static-box"> <view class="static-box">
<text class="" >共{{item.class_students_count}}学员</text> <text>共{{item.class_students_count}}学员</text>
<text class="divideline" >|</text> <text class="divideline" >|</text>
<text class="" >已提交{{item.clock_record_count}}人</text> <text>已提交{{item.clock_record_count}}人</text>
</view>
<!-- <view class="clockstatus wait" wx:if="{{!item.is_clock}}">
<image class="dianpinicon" src="{{imageRoot}}2c/circleindex/notclock.png?{{imageVersion}}"></image>
<text class="clockstatic" >未提交</text>
</view> </view>
<view class="clockstatus success" wx:if="{{item.is_clock}}">
<image class="dianpinicon" src="{{imageRoot}}2c/circleindex/isclock.png?{{imageVersion}}"></image>
<text class="clockstatic" >已提交</text>
</view> -->
<view class="clockstatus" wx:if="{{statusType==1}}">去提交</view> <view class="clockstatus" wx:if="{{statusType==1}}">去提交</view>
<view class="clockstatus disabled" wx:if="{{statusType==2 && !item.is_clock}}">已结束</view> <view class="clockstatus disabled" wx:if="{{statusType==2 && !item.is_clock}}">已结束</view>
<view class="clockstatus disabled" wx:if="{{statusType==2 && item.is_clock}}">已打卡</view> <view class="clockstatus disabled" wx:if="{{statusType==2 && item.is_clock}}">已打卡</view>
...@@ -47,27 +38,18 @@ ...@@ -47,27 +38,18 @@
<view class="title">{{item.title}}</view> <view class="title">{{item.title}}</view>
</view> </view>
<view class="static-box"> <view class="static-box">
<text class="">共{{item.days}}天</text> <text>共{{item.days}}天</text>
<text class="divideline" >|</text> <text class="divideline" >|</text>
<text class="" >{{item.all_record_count}}人参与</text> <text>{{item.all_record_count}}人参与</text>
<text class="divideline" >•</text> <text class="divideline" >•</text>
<text class="" >已打卡{{item.today_record_count}}次</text> <text>已打卡{{item.today_record_count}}次</text>
</view>
<!-- <view class="clockstatus wait" wx:if="{{!item.is_clock}}">
<image class="dianpinicon" src="{{imageRoot}}2c/circleindex/notclock.png?{{imageVersion}}"></image>
<text class="clockstatic" >未打卡</text>
</view> </view>
<view class="clockstatus success" wx:if="{{item.is_clock}}">
<image class="dianpinicon" src="{{imageRoot}}2c/circleindex/isclock.png?{{imageVersion}}"></image>
<text class="clockstatic" >已打卡</text>
</view> -->
<view class="clockstatus" wx:if="{{statusType==1}}">去提交</view> <view class="clockstatus" wx:if="{{statusType==1}}">去提交</view>
<view class="clockstatus disabled" wx:if="{{statusType==2 && !item.is_clock}}">已结束</view> <view class="clockstatus disabled" wx:if="{{statusType==2 && !item.is_clock}}">已结束</view>
<view class="clockstatus disabled" wx:if="{{statusType==2 && item.is_clock}}">已打卡</view> <view class="clockstatus disabled" wx:if="{{statusType==2 && item.is_clock}}">已打卡</view>
<view class="themestatus" wx:if="{{item.days <= item.today_days}}">已完成</view> <view class="themestatus" wx:if="{{item.days <= item.today_days}}">已完成</view>
<view class="progress-box"> <view class="progress-box">
<view class="progress" style="width: {{filter.calculateRate(item.today_days, item.days)}}%"></view> <view class="progress" style="width: {{filter.calculateRate(item.today_days, item.days)}}%"></view>
<view class="progressdesc" wx:if="{{item.days > item.today_days}}" style="left: {{filter.calculateRate(item.today_days, item.days)}}%"> <view class="progressdesc" wx:if="{{item.days > item.today_days}}" style="left: {{filter.calculateRate(item.today_days, item.days)}}%">
...@@ -84,14 +66,11 @@ ...@@ -84,14 +66,11 @@
<view class="title">{{item.title}}</view> <view class="title">{{item.title}}</view>
</view> </view>
<view class="static-box"> <view class="static-box">
<text class="" >共{{item.class_student_count}}名学员</text> <text>共{{item.class_student_count}}名学员</text>
<text class="divideline" >|</text> <text class="divideline" >|</text>
<text class="">已闯{{item.my_clock_count}}个关卡</text> <text>已闯{{item.my_clock_count}}个关卡</text>
</view> </view>
<view class="clockstatus" wx:if="{{statusType==1}}">去提交</view> <view class="clockstatus" wx:if="{{statusType==1}}">去提交</view>
<!-- <view class="clockstatus" wx:if="{{statusType==2 && item.unlock_limit - item.my_today_unlock_count>0}}">
剩余闯关次数:{{item.unlock_limit - item.my_today_unlock_count}}
</view> -->
<view class="clockstatus disabled" wx:if="{{statusType==2}}">已结束</view> <view class="clockstatus disabled" wx:if="{{statusType==2}}">已结束</view>
</block> </block>
</view> </view>
...@@ -100,12 +79,10 @@ ...@@ -100,12 +79,10 @@
<list-loading loading="{{listLoading}}"></list-loading> <list-loading loading="{{listLoading}}"></list-loading>
</view> </view>
<view class="empty-content-box" wx:else> <view class="empty-content-box" wx:else>
<empty-content text="还没有更多哦" emptyimg="common/empty/empty_no.png" width="263" height="219"></empty-content> <empty-content text="暂无作业~" emptyimg="common/empty/empty_no.png" width="263" height="219"></empty-content>
</view> </view>
<!-- <view class="tasklistbtn" bindtap="goTaskList">任务列表</view> --> <view wx:if="{{sid == activtySchoolInfo.sid}}">
<view class="" wx:if="{{sid == activtySchoolInfo.sid}}">
<activity-bar <activity-bar
classid="{{activtySchoolInfo.id}}" classid="{{activtySchoolInfo.id}}"
sid="{{activtySchoolInfo.sid}}" sid="{{activtySchoolInfo.sid}}"
......
page{ page{
height: 100%; min-height: 10vh;
} }
.container{ .container{
padding: 110rpx 0 70rpx; padding: 110rpx 0 70rpx;
...@@ -196,26 +196,6 @@ page{ ...@@ -196,26 +196,6 @@ page{
box-shadow: 0 6rpx 0 0 rgba(224,224,224,1); box-shadow: 0 6rpx 0 0 rgba(224,224,224,1);
color: #AAAAAA; color: #AAAAAA;
} }
/* .clockstatus image{
width: 23rpx;
height: 23rpx;
margin-right: 10rpx;
}
.clockstatus.wait text {
font-size: 24rpx;
color: #FF9797;
letter-spacing: 2rpx;
}
.clockstatus.success text {
font-size: 24rpx;
color: #898A88;
letter-spacing: 2rpx;
}
.clockstatus.warn text {
font-size: 24rpx;
color: #FFC02A;
letter-spacing: 2rpx;
} */
.static-box text.divideline { .static-box text.divideline {
margin: 0 20rpx; margin: 0 20rpx;
background-color: #fff; background-color: #fff;
......
This diff is collapsed.
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