Commit 59a4699d authored by wangxuelai's avatar wangxuelai

'老师点评修改'

parent e66f7917
......@@ -119,8 +119,8 @@ Component({
},
openLocation(e) {
wxOpenLocation({
latitude: this.data.clock.latitude,
longitude: this.data.clock.longitude,
latitude: Number(this.data.clock.latitude),
longitude: Number(this.data.clock.longitude),
name: '',
address: this.data.clock.location_address
})
......
......@@ -53,7 +53,7 @@ Component({
goScoreMode () {
const that = this;
wx.navigateTo({
url: `/business/pages/commenteditor/index?id=${this.data.classid}&tid=${this.data.tid}&cid=${this.data.cid}&sid=${this.data.sid}`,
url: `/business/pages/commenteditor/index?tid=${this.data.tid}&cid=${this.data.cid}&sid=${this.data.sid}`,
success () {
that.triggerEvent('hideChooseTypeDia')
}
......@@ -62,7 +62,7 @@ Component({
interactionmode () {
const that = this;
wx.navigateTo({
url: `/business/pages/commenteditor/imagelistshow?id=${this.data.classid}&tid=${this.data.tid}&cid=${this.data.cid}&sid=${this.data.sid}`,
url: `/business/pages/commenteditor/imagelistshow?tid=${this.data.tid}&cid=${this.data.cid}&sid=${this.data.sid}`,
success () {
that.triggerEvent('hideChooseTypeDia')
}
......
......@@ -166,6 +166,16 @@ Page({
scoreObject: this.data.scoreObject,
})
},
shortWordsShow() {
shortWordsShow({
school_id: this.data.sid
}).then((res) => {
const { code, data } = res;
if (code == 200) {
console.log(data,'datadata')
}
})
},
calculatetotal () {
let totalScore = 0;
for (let i in this.data.scoreObject) {
......@@ -190,18 +200,16 @@ Page({
},
goModifyScoreTemp () {
wx.navigateTo({
url: `/business/pages/commenteditor/modifyscoretemp?id=${this.data.id}`,
url: `/business/pages/commenteditor/modifyscoretemp?tid=${this.data.tid}`,
})
},
onLoad: function (options) { // Do some initialize when page load.
const {
id,
tid,
cid,
sid
} = options;
this.setData({
id,
tid,
cid,
sid
......@@ -210,6 +218,7 @@ Page({
this.commentDetailGet();
this.memberComment();
this.privateMemberComment();
// this.shortWordsShow();
},
onReady: function () { // Do something when page ready.
wx.hideShareMenu()
......@@ -299,7 +308,7 @@ Page({
onTabItemTap(item) {},
subjectReviewTemplate () {
subjectReviewTemplate({
class_id: this.data.id
subject_id: this.data.tid
}).then((res) => {
const {code, data} = res;
if (code == 200) {
......@@ -332,7 +341,7 @@ Page({
},
shortWordsList() {
shortWordsList({
class_id: this.data.id,
// subject_id: this.data.tid,
school_id:this.data.sid
}).then((res) => {
if (res.data.list) {
......@@ -1270,7 +1279,6 @@ Page({
})
if (this.data.wordEditType == 1) { // 新建
shortWordsStore({
class_id: this.data.id,
word: words,
school_id:this.data.sid
}).then((res) => {
......
......@@ -41,10 +41,10 @@ Page({
},
onLoad: function (options) { // Do some initialize when page load.
const {
id,
tid,
} = options;
this.setData({
id,
tid,
})
wx.hideShareMenu()
this.subjectReviewTemplate();
......@@ -77,7 +77,7 @@ Page({
mask: true,
})
subjectReviewTemplate({
class_id: this.data.id,
subject_id: this.data.tid,
}).then((res) => {
const {code , data} = res;
wx.hideLoading()
......@@ -116,30 +116,30 @@ Page({
mask: true,
})
subjectReviewTemplateUpdate({
class_id: this.data.id,
subject_id: this.data.tid,
templates: JSON.stringify(tempArr),
}).then((res) => {
wx.hideLoading();
const { code, data } = res;
if (code == 200) {
if (useall == 0) {
wx.showToast({
title:' 保存成功',
})
this.goBack();
} else if (useall == 1) {
wx.showModal({
title: '提示',
content: '是否将该模板应用到该校区的所有班级',
success(res) {
if (res.confirm) {
that.tempApplyAllClass();
} else {
that.goBack();
}
}
})
}
wx.showToast({
title:' 保存成功',
})
this.goBack();
// if (useall == 0) {
// } else if (useall == 1) {
// wx.showModal({
// title: '提示',
// content: '是否将该模板应用到该校区的所有班级',
// success(res) {
// if (res.confirm) {
// that.tempApplyAllClass();
// } else {
// that.goBack();
// }
// }
// })
// }
}
}).catch(() => {
wx.hideLoading();
......@@ -160,19 +160,19 @@ Page({
delta: 1, // 回退前 delta(默认为1) 页面
})
},
tempApplyAllClass () {
tempApplyAllClass({
class_id: this.data.id
}).then((res) => {
const { code, data } = res;
if (code == 200) {
wx.showToast({
title:'应用成功',
})
this.goBack();
}
}).catch(() => {
// tempApplyAllClass () {
// tempApplyAllClass({
// class_id: this.data.id
// }).then((res) => {
// const { code, data } = res;
// if (code == 200) {
// wx.showToast({
// title:'应用成功',
// })
// this.goBack();
// }
// }).catch(() => {
})
}
// })
// }
})
\ No newline at end of file
......@@ -6,6 +6,6 @@
<!-- <input type="text" class="inputitem" data-index="2" bindinput="tempinput" value="{{templates.tmp_2}}" placeholder="请输入打分项名称" maxlength="4" />
<input type="text" class="inputitem" data-index="3" bindinput="tempinput" value="{{templates.tmp_3}}" placeholder="请输入打分项名称" maxlength="4" />
<input type="text" class="inputitem" data-index="4" bindinput="tempinput" value="{{templates.tmp_4}}" placeholder="请输入打分项名称" maxlength="4" /> -->
<view class="savebtn savebtnprimary" data-useall="0" bindtap="save">保存模板并应用到当前班级</view>
<view class="savebtn " data-useall="1" bindtap="save">将模板应用到校区所有班级</view>
<view class="savebtn savebtnprimary" data-useall="0" bindtap="save">保存模板并应用到当前主题</view>
<!-- <view class="savebtn " data-useall="1" bindtap="save">将模板应用到校区所有班级</view> -->
</view>
\ No newline at end of file
......@@ -225,6 +225,7 @@ Page({
}
}
}
console.log(shareObj.path, 'shareObj.path');
return {
title: shareObj.title,
path: shareObj.path,
......@@ -241,7 +242,7 @@ Page({
themeDetail({
id: this.data.tid,
school_id:this.data.sid,
extra: 'land_content'
extra: 'land_content,subject_creator'
}).then((res) => {
const {code, data} = res;
if (code == 200) {
......
......@@ -5,21 +5,15 @@
<view class="home-text">首页</view>
</view>
</btn-drag>
<view class="theme-index-container">
<view class="page-topbg">
<view class="top-title">{{params.title}}</view>
<view class="top-publish">{{params.created_at}}</view>
<view class="top-publish">{{params.subject_creator && params.subject_creator.nickname}} {{params.created_at}}发布</view>
<view class="top-content">
<view class="top-ask">
<text style="vertical-align: middle;">今日作业要求:</text>
<block wx:for='{{params.content}}' wx:key='content'>
<text class="text-block" wx:if='{{item.type=="text"}}'>{{item.value}}</text>
<text class="text-type" wx:if='{{item.type=="img"}}'>[图片]</text>
<text class="text-type" wx:if='{{item.type=="video"}}'>[视频]</text>
<text class="text-type" wx:if='{{item.type=="voice"}}'>[音频]</text>
<text class="text-block" wx:if='{{item.type=="text"}}'>{{item.value}}</text><text class="text-type" wx:if='{{item.type=="img"}}'>[图片]</text><text class="text-type" wx:if='{{item.type=="video"}}'>[视频]</text><text class="text-type" wx:if='{{item.type=="voice"}}'>[音频]</text>
</block>
</view>
<view class="top-detail" bindtap="goLoodDetail">查看详情</view>
......@@ -113,7 +107,7 @@
</view>
</view>
<expiredTip/>
<comment-editor-type-choose show="{{goCommentEditorInfo.show}}" classid="{{goCommentEditorInfo.info.id}}" tid="{{goCommentEditorInfo.info.tid}}" cid="{{goCommentEditorInfo.info.cid}}" sid="{{goCommentEditorInfo.info.sid}}" bind:hideChooseTypeDia="hideChooseTypeDia"
<comment-editor-type-choose show="{{goCommentEditorInfo.show}}" tid="{{goCommentEditorInfo.info.tid}}" cid="{{goCommentEditorInfo.info.cid}}" sid="{{goCommentEditorInfo.info.sid}}" bind:hideChooseTypeDia="hideChooseTypeDia"
/>
<view class="noticeDailog" wx:if="{{remindTips.show}}">
......
......@@ -36,7 +36,8 @@
border-radius: 16rpx;
padding: 15rpx 20rpx;
margin-top: 16rpx;
height: 140rpx;
min-height: 140rpx;
position: relative;
}
.page-topbg .top-content .top-detail {
font-size: 22rpx;
......@@ -45,6 +46,10 @@
color: rgba(22, 176, 253, 1);
line-height: 32rpx;
text-align: right;
position: absolute;
bottom: 16rpx;
right: 20rpx;
line-height: 1;
}
.page-topbg .top-content .top-ask {
overflow: hidden;
......@@ -53,13 +58,15 @@
-webkit-box-orient: vertical;
word-break: break-all;
text-overflow: ellipsis;
/* word-wrap:break-word; */
word-wrap: normal;
}
.page-topbg .top-content .text-block {
display: inline-block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
width: 70%;
max-width: 100%;
vertical-align: middle;
}
.page-topbg .top-content .text-type {
......
......@@ -28,6 +28,7 @@
width: 100%;
word-break: break-all;
display: block;
line-height: 1.4;
}
.sjd-media-show .media-content-box .media-box-item.media-img-item image {
width: 100%;
......
......@@ -58,7 +58,7 @@ Page({
source_id: this.data.clockId,
source_type: 1,
}).then(() => {
this.initPost(`${clockId}_${tid}_${app.globalData.currentSchoolStudentId}`, 'src/pages/clockdetail/newindex', clockId,tid);
this.initPost(`t=${tid}&c=${clockId}&w=${app.globalData.currentSchoolStudentId}`, 'src/pages/clockdetail/newindex', clockId,tid);
this.clockDetail()
})
// this.initPost(`t=${tid}&c=${clockId}`, page, clockId,tid);
......@@ -114,7 +114,7 @@ Page({
const visitor = LocalStorage.getItem('visitor');
let shareObj = {
title: `${this.data.clockDetail.school_student.nickname}的打卡详情`,
path: `/src/pages/clockdetail/newindex?id=${this.data.clockDetail.class_id}&tid=${this.data.tid}&cid=${this.data.clockId}&w=${app.globalData.currentSchoolStudentId}`
path: `/src/pages/clockdetail/newindex?tid=${this.data.tid}&cid=${this.data.clockId}&w=${app.globalData.currentSchoolStudentId}`
}
app.setSharerLog({
......@@ -122,7 +122,7 @@ Page({
source_type_model: 4,
source_id: this.data.clockId,
param: JSON.stringify({
query: `id=${this.data.clockDetail.class_id}&tid=${this.data.tid}&cid=${this.data.clockId}&w=${app.globalData.currentSchoolStudentId}`
query: `tid=${this.data.tid}&cid=${this.data.clockId}&w=${app.globalData.currentSchoolStudentId}`
})
});
return {
......@@ -181,7 +181,6 @@ Page({
if (data) {
this.setData({
clockDetail:data,
id:data.class_id
})
activityLog({
type: 38,
......@@ -207,7 +206,6 @@ Page({
open_id: visitor && visitor.openid,
school_id: this.data.clockDetail.school_id,
remark: '',
class_id: this.data.id
})
wxGetImageInfo({
src: imgSrc
......@@ -297,7 +295,6 @@ Page({
open_id: visitor && visitor.openid,
school_id: this.data.clockDetail.school_id,
remark: '',
class_id: this.data.id
})
wx.downloadFile({
url: imgSrc,
......
......@@ -58,7 +58,7 @@
<view class="title">他们也在({{signStudentsTotal}}人)</view>
<view class="sub-title">加入打卡跟他们一起养成好习惯</view>
<view class="list">
<view class="item" wx:for="{{signStudentsList}}" wx:key="item.id">
<view class="item" wx:for="{{signStudentsList}}" wx:key="id">
<image class="avatar" src="{{filter.imagify(item.school_student.avatar)}}" wx:if="{{item.school_student.avatar}}"></image>
<image class="avatar" src="{{imageRoot}}common/empty/avatar_user.png?{{imageVersion}}" wx:else></image>
<view class="nickname">{{item.school_student.nickname}}</view>
......
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