Commit 51f7f69c authored by sujie@126.com's avatar sujie@126.com

dd

parent 8d8c1e09
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<view class="img-status fail" wx:if="{{item.status == 'fail'}}">上传失败</view> <view class="img-status fail" wx:if="{{item.status == 'fail'}}">上传失败</view>
</view> </view>
<view class="link-student"> <view class="link-student">
<view class="student-list" bindtap="goSelectstudentlist" data-item="{{item}}" data-index="{{index}}">@{{item.students.length>0 ? (item.students.length>2 ? item.students[0].name+ '等' +item.students.length+'名学员': item.students[0].name+','+(item.students[1] ? item.students[1].name : '') ) : '关联学员'}} <image class="" src="{{imageRoot}}2b/common/close_icon.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" data-flag="{{1}}" data-item="{{item}}" data-index="{{index}}" bindtap="closeLinkStudent" /></view> <view class="student-list" bindtap="goSelectstudentlist" data-item="{{item}}" data-index="{{index}}">@{{item.students.length>0 ? (item.students.length>2 ? item.students[0].name+ '等' +item.students.length+'名学员': item.students[0].name+(item.students[1] ? ','+item.students[1].name : '') ) : '关联学员'}} <image class="" src="{{imageRoot}}2b/common/close_icon.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" data-flag="{{1}}" data-item="{{item}}" data-index="{{index}}" bindtap="closeLinkStudent" /></view>
<textarea wx:if="{{item.students.length>0}}" name="" id="" class="link-text" cols="30" rows="4" value="{{item.text}}" data-index="{{index}}" placeholder="说点什么吧..." bindinput="getLinkText"></textarea> <textarea wx:if="{{item.students.length>0}}" name="" id="" class="link-text" cols="30" rows="4" value="{{item.text}}" data-index="{{index}}" placeholder="说点什么吧..." bindinput="getLinkText"></textarea>
</view> </view>
......
...@@ -147,7 +147,10 @@ Page({ ...@@ -147,7 +147,10 @@ Page({
data.works = data.works ? JSON.parse(data.works) :''; data.works = data.works ? JSON.parse(data.works) :'';
} catch (error) { } catch (error) {
} }
console.log(data,'') data.read = Number(data.read);
data.unread = Number(data.unread);
data.read_remind = Number(data.read_remind);
data.unread_remind = Number(data.unread_remind);
this.setData({ this.setData({
reviewDetail: data reviewDetail: data
}) })
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
</view> </view>
</view> </view>
<view class="count-info"> <view class="count-info">
<view class="item"> <text class="" selectable="false" space="false" decode="false">全班</text>已读{{reviewDetail.read}}/{{reviewDetail.unread}}</view> <view class="item"> <text class="" selectable="false" space="false" decode="false">全班</text>已读{{reviewDetail.read}}/{{reviewDetail.unread+reviewDetail.read}}</view>
<view class="item"> <text class="" selectable="false" space="false" decode="false">关联人</text>已读{{reviewDetail.read_remind}}/{{reviewDetail.unread_remind}}</view> <view class="item"> <text class="" selectable="false" space="false" decode="false">关联人</text>已读{{reviewDetail.read_remind}}/{{reviewDetail.unread_remind+reviewDetail.read_remind}}</view>
</view> </view>
</view> </view>
<view class="line-20"></view> <view class="line-20"></view>
......
...@@ -27,8 +27,7 @@ ...@@ -27,8 +27,7 @@
<view wx:else class="dot-day-height b tb ac pc"> <view wx:else class="dot-day-height b tb ac pc">
<view class="day border-radius {{(item.week === 0 || item.week === 6) ? 'pink-color' : ''}} {{item.showTodoLabel ? 'day-circle' : '' }} {{item.choosed&&chooseColor ? 'day-choosed-color day-choosed-bg' : ''}} {{item.choosed&&!chooseColor ? 'day-choosed-color day-choosed-bg-c' : ''}} {{ item.disable ? 'disable-day-color disable-day-bg' : '' }} b ac pc">{{item.day}}</view> <view class="day border-radius {{(item.week === 0 || item.week === 6) ? 'pink-color' : ''}} {{item.showTodoLabel ? 'day-circle' : '' }} {{item.choosed&&chooseColor ? 'day-choosed-color day-choosed-bg' : ''}} {{item.choosed&&!chooseColor ? 'day-choosed-color day-choosed-bg-c' : ''}} {{ item.disable ? 'disable-day-color disable-day-bg' : '' }} b ac pc">{{item.day}}</view>
</view> --> </view> -->
<image class="done-icon" src="{{imageRoot}}2c/themeindex/yes-icon.png" <image class="done-icon" src="{{imageRoot}}2c/themeindex/yes-icon.png" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" wx:if="{{item.todoText.isdone}}"></image>
mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" wx:if="{{item.todoText.isdone}}"></image>
<view class="day border-radius {{item.choosed&&chooseColor ? 'day-choosed-color day-choosed-bg' : ''}} {{item.choosed&&!chooseColor ? 'day-choosed-color day-choosed-bg-c' : ''}} {{ item.disable ? 'disable-day-color disable-day-bg' : '' }} b ac pc" wx:if="{{item.day==today.d&&item.month==today.m&&item.year==today.y}}">今</view> <view class="day border-radius {{item.choosed&&chooseColor ? 'day-choosed-color day-choosed-bg' : ''}} {{item.choosed&&!chooseColor ? 'day-choosed-color day-choosed-bg-c' : ''}} {{ item.disable ? 'disable-day-color disable-day-bg' : '' }} b ac pc" wx:if="{{item.day==today.d&&item.month==today.m&&item.year==today.y}}">今</view>
<view class="day border-radius {{item.todoText.isrest?'rest-color':''}} {{item.choosed&&!chooseColor ? 'day-choosed-color day-choosed-bg-c' : ''}} {{ item.disable ? 'disable-day-color disable-day-bg' : '' }} b ac pc" wx:else>{{item.todoText.isrest?'休':item.day}}</view> <view class="day border-radius {{item.todoText.isrest?'rest-color':''}} {{item.choosed&&!chooseColor ? 'day-choosed-color day-choosed-bg-c' : ''}} {{ item.disable ? 'disable-day-color disable-day-bg' : '' }} b ac pc" wx:else>{{item.todoText.isrest?'休':item.day}}</view>
</view> </view>
......
...@@ -165,6 +165,7 @@ const conf = { ...@@ -165,6 +165,7 @@ const conf = {
conf.calculateDays(curYear, curMonth, curDate); conf.calculateDays(curYear, curMonth, curDate);
const { todoLabels } = getData('calendar') || {}; const { todoLabels } = getData('calendar') || {};
const { afterCalendarRender } = getCalendarConfig(); const { afterCalendarRender } = getCalendarConfig();
if (todoLabels && todoLabels instanceof Array) { if (todoLabels && todoLabels instanceof Array) {
conf.setTodoLabels({days:todoLabels}); conf.setTodoLabels({days:todoLabels});
} }
......
...@@ -240,6 +240,7 @@ Page({ ...@@ -240,6 +240,7 @@ Page({
onReady: function () { // Do something when page ready. onReady: function () { // Do something when page ready.
}, },
onShow: function (options) { // Do something when page show. onShow: function (options) { // Do something when page show.
const that = this;
initCalendar({ // initCalendar({ //
multi: false, multi: false,
noDefault: false, noDefault: false,
...@@ -247,20 +248,18 @@ Page({ ...@@ -247,20 +248,18 @@ Page({
afterCalendarRender(ctx) { afterCalendarRender(ctx) {
} }
}); });
if(that.data.fixdate) {
if(this.data.fixdate) { console.log(that.data.fixdate, 'that.data.fixdate')
const fixdate = this.data.fixdate; const fixdate = that.data.fixdate;
jump(fixdate.split('-')[0], Number(fixdate.split('-')[1]), Number(fixdate.split('-')[2])); jump(fixdate.split('-')[0], Number(fixdate.split('-')[1]), Number(fixdate.split('-')[2]));
} }
if(this.data.setTodoLabelsResult){ if(that.data.setTodoLabelsResult){
const result = this.data.setTodoLabelsResult; const result = that.data.setTodoLabelsResult;
setTimeout(()=>{ setTodoLabels({
setTodoLabels({ days: result
days: result })
})
}, 1000)
} }
this.userShow() this.userShow()
this.getClockRead(); // 这次注释 this.getClockRead(); // 这次注释
if (this.data.integral !== undefined && Number(this.data.integral) > 0) { if (this.data.integral !== undefined && Number(this.data.integral) > 0) {
...@@ -274,6 +273,7 @@ Page({ ...@@ -274,6 +273,7 @@ Page({
this.autoclosefeedback(); this.autoclosefeedback();
} }
if (this.data.needREfresh || this.data.needRefresh) { if (this.data.needREfresh || this.data.needRefresh) {
console.log(that.data.fixdate, 'that.data.fixdate2222222222')
this.getmycalendar(); // 这次注释 this.getmycalendar(); // 这次注释
this.themeDetail(); // 这次注释 this.themeDetail(); // 这次注释
this.data.clockPage = 1; this.data.clockPage = 1;
...@@ -1929,6 +1929,7 @@ Page({ ...@@ -1929,6 +1929,7 @@ Page({
const _weeksArr = this.data.weeksArr; const _weeksArr = this.data.weeksArr;
const today = new Date(new Date().getFullYear() + '/' + (new Date().getMonth() + 1) + '/' + new Date().getDate()); const today = new Date(new Date().getFullYear() + '/' + (new Date().getMonth() + 1) + '/' + new Date().getDate());
jump(item.year, item.month, item.day); jump(item.year, item.month, item.day);
this.fixdate = `${item.year}-${item.month}-${item.day}`;
for (let i = 0; i < _weeksArr.length; i++) { for (let i = 0; i < _weeksArr.length; i++) {
_weeksArr[i].isSelect = false; _weeksArr[i].isSelect = false;
} }
......
...@@ -137,7 +137,10 @@ Page({ ...@@ -137,7 +137,10 @@ Page({
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () { onShareAppMessage: function () {
return {
title: `课堂小评详情`,
path: `/src/pages/papersquare/reviewdetail?sid=${this.data.sid}&id=${this.data.id}&rid=${this.data.rid}&type=${this.data.type}`
}
}, },
judgeIsSchoolStudent () { judgeIsSchoolStudent () {
studentidentity({ studentidentity({
......
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