Commit 38c0448f authored by lvtz's avatar lvtz

fix

parents 6215a794 93253d38
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
<image class="dianpinicon" src="{{imageRoot}}2b/circleindex/dianpin.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false"></image> <image class="dianpinicon" src="{{imageRoot}}2b/circleindex/dianpin.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false"></image>
<text class="clockstatic">待点评{{item.unreview_clock_record_count}}</text> <text class="clockstatic">待点评{{item.unreview_clock_record_count}}</text>
</view> </view>
<view class="clockstatus success" wx:else> <view class="clockstatus success" wx:if="{{item.clock_record_count >0 && item.unreview_clock_record_count == 0}}">
<image class="dianpinicon" src="{{imageRoot}}2b/circleindex/right.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false"></image> <image class="dianpinicon" src="{{imageRoot}}2b/circleindex/right.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false"></image>
<text class="clockstatic">已全部点评</text> <text class="clockstatic">已全部点评</text>
</view> </view>
......
...@@ -496,50 +496,6 @@ Page({ ...@@ -496,50 +496,6 @@ Page({
}) })
}, 2500) }, 2500)
}, },
// 跟打卡之后积分获取弹窗有关的操作
getCircleDetail(id) {
circleDetail({
class_id: id
}).then((res) => {
if (res.code == 200) {
let content = [];
try {
content = JSON.parse(res.data.content);
} catch (e) {
content = []
}
if (res.code == 40000) {
if (res.msg) {
wx.showModal({
title: '提示',
content: '班级已被删除,点击确定返回机构首页',
showCancel: false,
confirmText: "确定",
success(r) {
if (r.confirm) {
wx.reLaunch({
url: `/src/pages/shopindex/index?mid=${res.data.member_id}`
})
}
}
})
}
return;
}
res.data.content = content;
// this.queryActivtySchoolInfo(res.data.school_id);
// this.judgeIsSchoolStudent(res.data.school_id);
this.setData({
circleInfo: res.data,
// sid: res.data.school_id
})
}
// setTimeout(()=>{
// this.judgeIsClock(this.data.tid);
// },500)
})
},
themeDetail() { themeDetail() {
themeDetail({ themeDetail({
subject_id: this.data.tid, subject_id: this.data.tid,
...@@ -602,9 +558,9 @@ Page({ ...@@ -602,9 +558,9 @@ Page({
// isExpire:new Date(data.homework_set.end_time.replace(/-/g,'/')).getTime() - new Date().getTime()>0?false:true // isExpire:new Date(data.homework_set.end_time.replace(/-/g,'/')).getTime() - new Date().getTime()>0?false:true
}) })
// this.getWeeksDay(new Date(res.datetime),data.calendar_set.rest_dates.split(','),null); // this.getWeeksDay(new Date(res.datetime),data.calendar_set.rest_dates.split(','),null);
if(data.class_id) { // if(data.class_id) {
this.getCircleDetail(data.class_id); // this.getCircleDetail(data.class_id);
} // }
activityLog({ activityLog({
type:22, type:22,
open_id: visitor && visitor.openid, open_id: visitor && visitor.openid,
...@@ -887,56 +843,56 @@ Page({ ...@@ -887,56 +843,56 @@ Page({
}) })
}) })
}, },
joinClass() { // joinClass() {
const visitor = LocalStorage.getItem('visitor'); // const visitor = LocalStorage.getItem('visitor');
if (this.data.auditStatus == 1) { // 点击审核 // if (this.data.auditStatus == 1) { // 点击审核
joinCircle({ // joinCircle({
consumer_id: visitor && visitor.id, // consumer_id: visitor && visitor.id,
student_id: this.data.studentId, // student_id: this.data.studentId,
school_id: this.data.sid, // school_id: this.data.sid,
member_id: this.data.circleInfo.member_id, // member_id: this.data.circleInfo.member_id,
union_id: visitor && visitor.unionid, // union_id: visitor && visitor.unionid,
nickname: visitor && visitor.userInfo && visitor.userInfo.nickName, // nickname: visitor && visitor.userInfo && visitor.userInfo.nickName,
remark: '' // remark: ''
}).then((res) => { // }).then((res) => {
if (res.code == 200) { // if (res.code == 200) {
if (this.data.circleInfo.need_audit == 1) { // if (this.data.circleInfo.need_audit == 1) {
let studentCount = this.data.circleInfo.class_statistic && this.data.circleInfo.class_statistic.student_total || 0; // let studentCount = this.data.circleInfo.class_statistic && this.data.circleInfo.class_statistic.student_total || 0;
wx.showToast({ // wx.showToast({
title: '加入成功', // title: '加入成功',
icon: 'success', // icon: 'success',
duration: 2000 // duration: 2000
}) // })
this.setData({ // this.setData({
auditStatus: 3, // auditStatus: 3,
'circleInfo.class_statistic.student_total': studentCount + 1 // 'circleInfo.class_statistic.student_total': studentCount + 1
}) // })
} else if (this.data.circleInfo.need_audit == 2) { // } else if (this.data.circleInfo.need_audit == 2) {
this.setData({ // this.setData({
auditStatus: 2 // auditStatus: 2
}) // })
wx.showModal({ // wx.showModal({
title: '提示', // title: '提示',
content: '加入该班级需要审核,请等待老师审核', // content: '加入该班级需要审核,请等待老师审核',
showCancel: false // showCancel: false
}) // })
} // }
} else { // } else {
wx.showToast({ // wx.showToast({
title: res.msg, // title: res.msg,
icon: 'none', // icon: 'none',
duration: 2000 // duration: 2000
}) // })
} // }
}) // })
} else if (this.data.auditStatus == 2) { // 老师正在审核 // } else if (this.data.auditStatus == 2) { // 老师正在审核
wx.showModal({ // wx.showModal({
title: '提示', // title: '提示',
content: '老师正在审核,请稍后...', // content: '老师正在审核,请稍后...',
showCancel: false // showCancel: false
}) // })
} // }
}, // },
caculateArrLength(array) { caculateArrLength(array) {
let _length = 0; let _length = 0;
array.forEach(ele => { array.forEach(ele => {
...@@ -2017,7 +1973,7 @@ Page({ ...@@ -2017,7 +1973,7 @@ Page({
const schoolInfo = this.data.schoolInfo; const schoolInfo = this.data.schoolInfo;
const date = dateDetail(this.data.datetime); const date = dateDetail(this.data.datetime);
const clockDetail = this.data.selfClockDetail; const clockDetail = this.data.selfClockDetail;
const themeSelect = this.data.themeSelect;
let qrcode = ''; let qrcode = '';
wx.showLoading({ wx.showLoading({
title: '日签生成中...' title: '日签生成中...'
...@@ -2157,7 +2113,7 @@ Page({ ...@@ -2157,7 +2113,7 @@ Page({
}, },
{ // 打卡详情 { // 打卡详情
type: 'text', type: 'text',
content: `在〔${circleInfo.title && circleInfo.title.length > 15 ? circleInfo.title.substr(0,15) + '...' : circleInfo.title || ''}〕完成打卡`, content: `在〔${themeSelect.title}〕完成打卡`,
fontSize: 24, fontSize: 24,
color: '#4F4F4F', color: '#4F4F4F',
textAlign: 'left', textAlign: 'left',
...@@ -2324,7 +2280,7 @@ Page({ ...@@ -2324,7 +2280,7 @@ Page({
}, },
{ // 打卡详情 { // 打卡详情
type: 'text', type: 'text',
content: `在〔${circleInfo.title && circleInfo.title.length > 15 ? circleInfo.title.substr(0,15) + '...' : circleInfo.title || ''}〕完成打卡`, content: `在〔${themeSelect.title}〕完成打卡`,
fontSize: 24, fontSize: 24,
color: '#4F4F4F', color: '#4F4F4F',
textAlign: 'left', textAlign: 'left',
...@@ -2713,7 +2669,7 @@ Page({ ...@@ -2713,7 +2669,7 @@ Page({
activityLog({ activityLog({
type: 23, type: 23,
open_id: visitor && visitor.openid, open_id: visitor && visitor.openid,
school_id: this.data.circleInfo.school_id, school_id: this.data.sid,
remark: '' remark: ''
}) })
} }
......
...@@ -196,12 +196,12 @@ ...@@ -196,12 +196,12 @@
<view class="round-btn" bindtap="generateNewPoster" wx:if="{{!activeDay.isRise && activeDay.isClock}}">去分享</view> <view class="round-btn" bindtap="generateNewPoster" wx:if="{{!activeDay.isRise && activeDay.isClock}}">去分享</view>
<view class="round-btn round-btn-disabled" wx:if="{{activeDay.isRise}}">休息日</view> <view class="round-btn round-btn-disabled" wx:if="{{activeDay.isRise}}">休息日</view>
<block wx:if="{{auditStatus!==3 && themeSelect.is_encrypt == 0 && force_status == 1}}"> <!-- <block wx:if="{{auditStatus!==3 && themeSelect.is_encrypt == 0 && force_status == 1}}">
<view class="round-btn {{auditStatus==1? '': 'round-btn-disabled'}}" bindtap="joinClass"> <view class="round-btn {{auditStatus==1? '': 'round-btn-disabled'}}" bindtap="joinClass">
<view class="tip">加入班级后才可打卡</view> <view class="tip">加入班级后才可打卡</view>
{{auditStatus==1?'加入班级':'审核中'}} {{auditStatus==1?'加入班级':'审核中'}}
</view> </view>
</block> </block> -->
</view> </view>
<psd-editor bind:closepsddia="closepsddia" circleid="{{id}}" wx:if="{{showPsdDia}}" bind:checkPsd="checkPsd"> <psd-editor bind:closepsddia="closepsddia" circleid="{{id}}" wx:if="{{showPsdDia}}" bind:checkPsd="checkPsd">
...@@ -245,7 +245,7 @@ ...@@ -245,7 +245,7 @@
</video> </video>
</view> </view>
<canvasdrawer painting="{{painting}}" bind:getImage="eventGetImage"/> <canvasdrawer painting="{{painting}}" bind:getImage="eventGetImage"/>
<view wx:if="{{circleInfo.school_id == activtySchoolInfo.sid}}"> <view wx:if="{{sid == activtySchoolInfo.sid}}">
<activity-bar <activity-bar
classid="{{activtySchoolInfo.id}}" classid="{{activtySchoolInfo.id}}"
sid="{{activtySchoolInfo.sid}}" sid="{{activtySchoolInfo.sid}}"
...@@ -256,9 +256,9 @@ ...@@ -256,9 +256,9 @@
> >
</activity-bar> </activity-bar>
</view> </view>
<view wx:if="{{circleInfo.school_id != 0}}" > <!-- <view wx:if="{{sid != 0}}" >
<advertisement <advertisement
sid="{{circleInfo.school_id}}" sid="{{sid}}"
bind:resetretract="resetretract" bind:resetretract="resetretract"
retract="{{retract}}" retract="{{retract}}"
classId="{{id}}" classId="{{id}}"
...@@ -266,7 +266,7 @@ ...@@ -266,7 +266,7 @@
tType="{{2}}" tType="{{2}}"
> >
</advertisement> </advertisement>
</view> </view> -->
</view> </view>
<view class="calender-box" wx:if="{{calenderShow}}" bindtap="hiddeCalender" data-id="hidde"> <view class="calender-box" wx:if="{{calenderShow}}" bindtap="hiddeCalender" data-id="hidde">
<view class="content-box"> <view class="content-box">
...@@ -280,7 +280,7 @@ ...@@ -280,7 +280,7 @@
</view> </view>
</view> </view>
<scoregetfeedback <scoregetfeedback
sid="{{circleInfo.school_id}}" sid="{{sid}}"
scoretype="{{scoreFeedBackStatus.scoretype}}" scoretype="{{scoreFeedBackStatus.scoretype}}"
scorefeedbackshow="{{scoreFeedBackStatus.show}}" scorefeedbackshow="{{scoreFeedBackStatus.show}}"
integral="{{scoreFeedBackStatus.integral}}" integral="{{scoreFeedBackStatus.integral}}"
......
...@@ -626,7 +626,7 @@ Page({ ...@@ -626,7 +626,7 @@ Page({
// concatDiaShow: true // concatDiaShow: true
// }) // })
wx.navigateTo({ wx.navigateTo({
url: `/src/pages/contactindex/index?sid=${this.data.circleInfo.school_id}`, url: `/src/pages/contactindex/index?sid=${this.data.sid}`,
}) })
}, },
// 联系方式弹窗相关 // 联系方式弹窗相关
...@@ -1334,7 +1334,7 @@ Page({ ...@@ -1334,7 +1334,7 @@ Page({
const schoolInfo = this.data.schoolInfo; const schoolInfo = this.data.schoolInfo;
const date = dateDetail(this.data.datetime); const date = dateDetail(this.data.datetime);
const clockDetail = this.data.selfClockDetail; const clockDetail = this.data.selfClockDetail;
const themeSelect = this.data.themeSelect;
let qrcode = ''; let qrcode = '';
wx.showLoading({ wx.showLoading({
title: '日签生成中...' title: '日签生成中...'
...@@ -1471,7 +1471,7 @@ Page({ ...@@ -1471,7 +1471,7 @@ Page({
}, },
{ // 打卡详情 { // 打卡详情
type: 'text', type: 'text',
content: `在〔${circleInfo.title && circleInfo.title.length > 15 ? circleInfo.title.substr(0,15) + '...' : circleInfo.title || ''}〕完成打卡`, content: `在〔${themeSelect.title}〕完成打卡`,
fontSize: 24, fontSize: 24,
color: '#4F4F4F', color: '#4F4F4F',
textAlign: 'left', textAlign: 'left',
...@@ -1660,7 +1660,7 @@ Page({ ...@@ -1660,7 +1660,7 @@ Page({
}, },
{ // 打卡详情 { // 打卡详情
type: 'text', type: 'text',
content: `在〔${circleInfo.title && circleInfo.title.length > 15 ? circleInfo.title.substr(0,15) + '...' : circleInfo.title || ''}〕完成打卡`, content: `在〔${themeSelect.title}〕完成打卡`,
fontSize: 24, fontSize: 24,
color: '#4F4F4F', color: '#4F4F4F',
textAlign: 'left', textAlign: 'left',
...@@ -2340,7 +2340,7 @@ Page({ ...@@ -2340,7 +2340,7 @@ Page({
activityLog({ activityLog({
type: 23, type: 23,
open_id: visitor && visitor.openid, open_id: visitor && visitor.openid,
school_id: this.data.circleInfo.school_id, school_id: this.data.sid,
remark: '' remark: ''
}) })
} }
......
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