Commit 90e3d9e5 authored by lvtz's avatar lvtz

fix

parents 9aa46683 c7e0ae5f
...@@ -119,8 +119,8 @@ Component({ ...@@ -119,8 +119,8 @@ Component({
}, },
openLocation(e) { openLocation(e) {
wxOpenLocation({ wxOpenLocation({
latitude: this.data.clock.latitude, latitude: Number(this.data.clock.latitude),
longitude: this.data.clock.longitude, longitude: Number(this.data.clock.longitude),
name: '', name: '',
address: this.data.clock.location_address address: this.data.clock.location_address
}) })
......
...@@ -53,7 +53,7 @@ Component({ ...@@ -53,7 +53,7 @@ Component({
goScoreMode () { goScoreMode () {
const that = this; const that = this;
wx.navigateTo({ 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 () { success () {
that.triggerEvent('hideChooseTypeDia') that.triggerEvent('hideChooseTypeDia')
} }
...@@ -62,7 +62,7 @@ Component({ ...@@ -62,7 +62,7 @@ Component({
interactionmode () { interactionmode () {
const that = this; const that = this;
wx.navigateTo({ 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 () { success () {
that.triggerEvent('hideChooseTypeDia') that.triggerEvent('hideChooseTypeDia')
} }
......
...@@ -166,6 +166,16 @@ Page({ ...@@ -166,6 +166,16 @@ Page({
scoreObject: this.data.scoreObject, 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 () { calculatetotal () {
let totalScore = 0; let totalScore = 0;
for (let i in this.data.scoreObject) { for (let i in this.data.scoreObject) {
...@@ -190,18 +200,16 @@ Page({ ...@@ -190,18 +200,16 @@ Page({
}, },
goModifyScoreTemp () { goModifyScoreTemp () {
wx.navigateTo({ 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. onLoad: function (options) { // Do some initialize when page load.
const { const {
id,
tid, tid,
cid, cid,
sid sid
} = options; } = options;
this.setData({ this.setData({
id,
tid, tid,
cid, cid,
sid sid
...@@ -210,6 +218,7 @@ Page({ ...@@ -210,6 +218,7 @@ Page({
this.commentDetailGet(); this.commentDetailGet();
this.memberComment(); this.memberComment();
this.privateMemberComment(); this.privateMemberComment();
// this.shortWordsShow();
}, },
onReady: function () { // Do something when page ready. onReady: function () { // Do something when page ready.
wx.hideShareMenu() wx.hideShareMenu()
...@@ -299,7 +308,7 @@ Page({ ...@@ -299,7 +308,7 @@ Page({
onTabItemTap(item) {}, onTabItemTap(item) {},
subjectReviewTemplate () { subjectReviewTemplate () {
subjectReviewTemplate({ subjectReviewTemplate({
class_id: this.data.id subject_id: this.data.tid
}).then((res) => { }).then((res) => {
const {code, data} = res; const {code, data} = res;
if (code == 200) { if (code == 200) {
...@@ -1269,7 +1278,6 @@ Page({ ...@@ -1269,7 +1278,6 @@ Page({
}) })
if (this.data.wordEditType == 1) { // 新建 if (this.data.wordEditType == 1) { // 新建
shortWordsStore({ shortWordsStore({
class_id: this.data.id,
word: words, word: words,
school_id:this.data.sid school_id:this.data.sid
}).then((res) => { }).then((res) => {
......
...@@ -41,10 +41,10 @@ Page({ ...@@ -41,10 +41,10 @@ Page({
}, },
onLoad: function (options) { // Do some initialize when page load. onLoad: function (options) { // Do some initialize when page load.
const { const {
id, tid,
} = options; } = options;
this.setData({ this.setData({
id, tid,
}) })
wx.hideShareMenu() wx.hideShareMenu()
this.subjectReviewTemplate(); this.subjectReviewTemplate();
...@@ -77,7 +77,7 @@ Page({ ...@@ -77,7 +77,7 @@ Page({
mask: true, mask: true,
}) })
subjectReviewTemplate({ subjectReviewTemplate({
class_id: this.data.id, subject_id: this.data.tid,
}).then((res) => { }).then((res) => {
const {code , data} = res; const {code , data} = res;
wx.hideLoading() wx.hideLoading()
...@@ -116,30 +116,30 @@ Page({ ...@@ -116,30 +116,30 @@ Page({
mask: true, mask: true,
}) })
subjectReviewTemplateUpdate({ subjectReviewTemplateUpdate({
class_id: this.data.id, subject_id: this.data.tid,
templates: JSON.stringify(tempArr), templates: JSON.stringify(tempArr),
}).then((res) => { }).then((res) => {
wx.hideLoading(); wx.hideLoading();
const { code, data } = res; const { code, data } = res;
if (code == 200) { if (code == 200) {
if (useall == 0) { wx.showToast({
wx.showToast({ title:' 保存成功',
title:' 保存成功', })
}) this.goBack();
this.goBack(); // if (useall == 0) {
} else if (useall == 1) { // } else if (useall == 1) {
wx.showModal({ // wx.showModal({
title: '提示', // title: '提示',
content: '是否将该模板应用到该校区的所有班级', // content: '是否将该模板应用到该校区的所有班级',
success(res) { // success(res) {
if (res.confirm) { // if (res.confirm) {
that.tempApplyAllClass(); // that.tempApplyAllClass();
} else { // } else {
that.goBack(); // that.goBack();
} // }
} // }
}) // })
} // }
} }
}).catch(() => { }).catch(() => {
wx.hideLoading(); wx.hideLoading();
...@@ -160,19 +160,19 @@ Page({ ...@@ -160,19 +160,19 @@ Page({
delta: 1, // 回退前 delta(默认为1) 页面 delta: 1, // 回退前 delta(默认为1) 页面
}) })
}, },
tempApplyAllClass () { // tempApplyAllClass () {
tempApplyAllClass({ // tempApplyAllClass({
class_id: this.data.id // class_id: this.data.id
}).then((res) => { // }).then((res) => {
const { code, data } = res; // const { code, data } = res;
if (code == 200) { // if (code == 200) {
wx.showToast({ // wx.showToast({
title:'应用成功', // title:'应用成功',
}) // })
this.goBack(); // this.goBack();
} // }
}).catch(() => { // }).catch(() => {
}) // })
} // }
}) })
\ No newline at end of file
...@@ -6,6 +6,6 @@ ...@@ -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="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="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" /> --> <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 savebtnprimary" data-useall="0" bindtap="save">保存模板并应用到当前主题</view>
<view class="savebtn " data-useall="1" bindtap="save">将模板应用到校区所有班级</view> <!-- <view class="savebtn " data-useall="1" bindtap="save">将模板应用到校区所有班级</view> -->
</view> </view>
\ No newline at end of file
...@@ -196,25 +196,23 @@ Page({ ...@@ -196,25 +196,23 @@ Page({
this.clockListGet(this.data.oneSmallSort, 'up') this.clockListGet(this.data.oneSmallSort, 'up')
}, },
onShareAppMessage: function (option) { // return custom share data when user share. onShareAppMessage: function (option) { // return custom share data when user share.
// console.log(option)
const { const {
from, from,
target target
} = option; } = option;
let shareObj = { let shareObj = {
}
if (target.dataset.type == 'share_clock') {
this.newShare.onShareAppMessage()
return
} }
if (from == 'menu') { if (from == 'menu') {
shareObj = this.data.shareObj; shareObj = {
title: this.data.params.title,
path: `/src/pages/sharemoretheme/index?tid=${this.data.mid}&sid=${this.data.sid}`
}
} else if (from == 'button') { } else if (from == 'button') {
if (!target.dataset.info) { if (!target.dataset.info) {
shareObj = { shareObj = {
title: `邀请您提交「${this.data.params.title}」作业`, title: this.data.params.title,
path: `/src/pages/themeindex/index?tid=${this.data.tid}&id=${this.data.id}&sid=${this.data.sid}` path: `/src/pages/sharemoretheme/index?tid=${this.data.mid}&sid=${this.data.sid}`
} }
} else { } else {
const { const {
...@@ -224,20 +222,35 @@ Page({ ...@@ -224,20 +222,35 @@ Page({
} }
} }
} = option; } = option;
shareObj = { shareObj = {
title: `${info.school_student.nickname}的打卡详情`, title: `${info.school_student.nickname}的打卡详情`,
path: `/src/pages/clockdetail/newindex?tid=${info.subject_id}&cid=${info.id}` path: `/src/pages/clockdetail/newindex?tid=${info.subject_id}&cid=${info.id}`
} }
return {
title: shareObj.title,
path: shareObj.path,
imageUrl:'https://cdn.img.shangjiadao.cn/source/images/dakav4/morethemeindex/unlockindex1.png',
success: (res) => {
if (res.errMsg == 'shareAppMessage:ok') {
this.setData({
shareObj: this.data.initShareObj
})
}
},
}
} }
} }
return { return {
title: shareObj.title, title: shareObj.title,
path: shareObj.path, path: shareObj.path,
imageUrl: `${this.data.imageRoot}pageshare_cover/theme_share.png?${this.data.imageRoot}`, imageUrl:'https://cdn.img.shangjiadao.cn/source/images/dakav4/morethemeindex/unlockindex.png',
success: (res) => { success: (res) => {
// 转发成功之后的回调 // 转发成功之后的回调
if (res.errMsg == 'shareAppMessage:ok') { if (res.errMsg == 'shareAppMessage:ok') {
this.data.shareObj = this.data.initShareObj this.setData({
shareObj: this.data.initShareObj
})
} }
}, },
} }
...@@ -246,6 +259,7 @@ Page({ ...@@ -246,6 +259,7 @@ Page({
unlocksubjectdetail({ unlocksubjectdetail({
id: this.data.tid, id: this.data.tid,
school_id:this.data.sid, school_id:this.data.sid,
extra: 'subject_creator'
}).then((res) => { }).then((res) => {
const {code, data} = res; const {code, data} = res;
if (code == 200) { if (code == 200) {
......
...@@ -93,21 +93,15 @@ ...@@ -93,21 +93,15 @@
</view> </view>
</view> </view>
<!-- 底部按钮 --> <!-- 底部按钮 -->
<view class="fixed-tabbar" style="background-image: url('{{imageRoot}}2b/themeindex/bottomTabbar.png?{{imageVersion}}')"> <!-- <view class="fixed-tabbar" style="background-image: url('{{imageRoot}}2b/themeindex/bottomTabbar.png?{{imageVersion}}')">
<view class="tabbar-list"> <view class="tabbar-list">
<view class="tabbar-item" bindtap="settingSubject" style="margin-left: 0"> <view class="tabbar-item" bindtap="settingSubject" style="margin-left: 0">
<image class="tabbar-img" src="{{imageRoot}}2b/themeindex/tabbar_setting.png"></image> <image class="tabbar-img" src="{{imageRoot}}2b/themeindex/tabbar_setting.png"></image>
<text class="tabbar-text">编辑关卡</text> <text class="tabbar-text">编辑关卡</text>
</view> </view>
<!-- <view class="tabbar-item">
<button class="tabbar-share" open-type="share">分享</button>
</view>
<view class="tabbar-item" bindtap="goClock">
<image class="tabbar-img" src="{{imageRoot}}2b/themeindex/tabbar_data.png"></image>
<text class="tabbar-text">打卡数据</text>
</view> -->
</view> </view>
</view> </view> -->
<view class="form-fixbtn" bindtap="settingSubject">编辑关卡</view>
<!-- 详情弹框 --> <!-- 详情弹框 -->
<view class="modal modal-themedetail {{detailModalClass? 'hide': ''}}" hidden="{{!detailModalShow}}"> <view class="modal modal-themedetail {{detailModalClass? 'hide': ''}}" hidden="{{!detailModalShow}}">
<view class="mask" bindtap="closeDetailModal"></view> <view class="mask" bindtap="closeDetailModal"></view>
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
padding: 15rpx 20rpx; padding: 15rpx 20rpx;
margin-top: 16rpx; margin-top: 16rpx;
height: 140rpx; height: 140rpx;
position: relative;
} }
.page-topbg .top-content .top-detail { .page-topbg .top-content .top-detail {
font-size: 22rpx; font-size: 22rpx;
...@@ -45,6 +46,10 @@ ...@@ -45,6 +46,10 @@
color: rgba(22, 176, 253, 1); color: rgba(22, 176, 253, 1);
line-height: 32rpx; line-height: 32rpx;
text-align: right; text-align: right;
position: absolute;
bottom: 16rpx;
right: 20rpx;
line-height: 1;
} }
.page-topbg .top-content .top-ask { .page-topbg .top-content .top-ask {
overflow: hidden; overflow: hidden;
...@@ -188,4 +193,14 @@ ...@@ -188,4 +193,14 @@
height: 400rpx; height: 400rpx;
position: relative; position: relative;
} }
.form-fixbtn {
width: 630rpx;
height: 90rpx;
border-radius: 49rpx;
background: rgba(22,176,253,1);
font-size: 32rpx;
bottom: 36rpx;
z-index: 7;
}
@import "../../style/themeindex.wxss"; @import "../../style/themeindex.wxss";
...@@ -21,6 +21,7 @@ Page({ ...@@ -21,6 +21,7 @@ Page({
classList: [], classList: [],
page: 1, page: 1,
subjectCount: 1, subjectCount: 1,
initShareObj: {},
lockparams: { lockparams: {
title: '', title: '',
created_at: '', created_at: '',
...@@ -55,6 +56,28 @@ Page({ ...@@ -55,6 +56,28 @@ Page({
}, },
onUnload: function() { // Do something when page close. onUnload: function() { // Do something when page close.
},
onShareAppMessage: function (option) { // return custom share data when user share.
const {
from,
target
} = option;
let shareObj = {
}
return {
title: this.data.lockparams.title,
path: `/src/pages/sharemoretheme/index?tid=${this.data.tid}&sid=${this.data.sid}`,
imageUrl:'https://cdn.img.shangjiadao.cn/source/images/dakav4/morethemeindex/unlockindex.png',
success: (res) => {
// 转发成功之后的回调
if (res.errMsg == 'shareAppMessage:ok') {
this.setData({
shareObj: this.data.initShareObj
})
}
},
}
}, },
onPullDownRefresh() { onPullDownRefresh() {
this.getUnlockSubject(); this.getUnlockSubject();
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</view> </view>
<view class="btnbox"> <view class="btnbox">
<view class="btn" bindtap="setting">高级设置</view> <view class="btn" bindtap="setting">高级设置</view>
<view class="btn share">分享</view> <view class="btn share"><button class="sharebtn" open-type="share"></button>分享</view>
</view> </view>
<view class="modal modal-setup {{settingModalClass? 'hide': ''}}" hidden="{{!settingModalShow}}"> <view class="modal modal-setup {{settingModalClass? 'hide': ''}}" hidden="{{!settingModalShow}}">
<view class="mask" bindtap="closeSettingModal"></view> <view class="mask" bindtap="closeSettingModal"></view>
......
...@@ -74,6 +74,15 @@ ...@@ -74,6 +74,15 @@
font-size: 30rpx; font-size: 30rpx;
letter-spacing: 2rpx; letter-spacing: 2rpx;
color: #666666; color: #666666;
position: relative;
}
.sharebtn {
position: absolute;
opacity: 0;
width: 100%;
height: 100%;
left: 0;
top: 0;
} }
.btnbox .btn.share { .btnbox .btn.share {
background-color: #16B0FD; background-color: #16B0FD;
......
...@@ -96,7 +96,7 @@ Page({ ...@@ -96,7 +96,7 @@ Page({
index, index,
currentSortIndex, currentSortIndex,
from, from,
clone, clone: clone || 0,
// params: JSON.parse(decodeURIComponent(detail)), // params: JSON.parse(decodeURIComponent(detail)),
}) })
if (this.data.id > 0) { if (this.data.id > 0) {
......
...@@ -225,6 +225,7 @@ Page({ ...@@ -225,6 +225,7 @@ Page({
} }
} }
} }
console.log(shareObj.path, 'shareObj.path');
return { return {
title: shareObj.title, title: shareObj.title,
path: shareObj.path, path: shareObj.path,
...@@ -241,7 +242,7 @@ Page({ ...@@ -241,7 +242,7 @@ Page({
themeDetail({ themeDetail({
id: this.data.tid, id: this.data.tid,
school_id:this.data.sid, school_id:this.data.sid,
extra: 'land_content' extra: 'land_content,subject_creator'
}).then((res) => { }).then((res) => {
const {code, data} = res; const {code, data} = res;
if (code == 200) { if (code == 200) {
......
...@@ -5,21 +5,15 @@ ...@@ -5,21 +5,15 @@
<view class="home-text">首页</view> <view class="home-text">首页</view>
</view> </view>
</btn-drag> </btn-drag>
<view class="theme-index-container"> <view class="theme-index-container">
<view class="page-topbg"> <view class="page-topbg">
<view class="top-title">{{params.title}}</view> <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-content">
<view class="top-ask"> <view class="top-ask">
<text style="vertical-align: middle;">今日作业要求:</text> <text style="vertical-align: middle;">今日作业要求:</text>
<block wx:for='{{params.content}}' wx:key='content'> <block wx:for='{{params.content}}' wx:key='content'>
<text class="text-block" wx:if='{{item.type=="text"}}'>{{item.value}}</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>
<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> </block>
</view> </view>
<view class="top-detail" bindtap="goLoodDetail">查看详情</view> <view class="top-detail" bindtap="goLoodDetail">查看详情</view>
...@@ -113,7 +107,7 @@ ...@@ -113,7 +107,7 @@
</view> </view>
</view> </view>
<expiredTip/> <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}}"> <view class="noticeDailog" wx:if="{{remindTips.show}}">
......
...@@ -36,7 +36,8 @@ ...@@ -36,7 +36,8 @@
border-radius: 16rpx; border-radius: 16rpx;
padding: 15rpx 20rpx; padding: 15rpx 20rpx;
margin-top: 16rpx; margin-top: 16rpx;
height: 140rpx; min-height: 140rpx;
position: relative;
} }
.page-topbg .top-content .top-detail { .page-topbg .top-content .top-detail {
font-size: 22rpx; font-size: 22rpx;
...@@ -45,6 +46,10 @@ ...@@ -45,6 +46,10 @@
color: rgba(22, 176, 253, 1); color: rgba(22, 176, 253, 1);
line-height: 32rpx; line-height: 32rpx;
text-align: right; text-align: right;
position: absolute;
bottom: 16rpx;
right: 20rpx;
line-height: 1;
} }
.page-topbg .top-content .top-ask { .page-topbg .top-content .top-ask {
overflow: hidden; overflow: hidden;
...@@ -53,13 +58,15 @@ ...@@ -53,13 +58,15 @@
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
word-break: break-all; word-break: break-all;
text-overflow: ellipsis; text-overflow: ellipsis;
/* word-wrap:break-word; */
word-wrap: normal;
} }
.page-topbg .top-content .text-block { .page-topbg .top-content .text-block {
display: inline-block; display: inline-block;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
width: 70%; max-width: 100%;
vertical-align: middle; vertical-align: middle;
} }
.page-topbg .top-content .text-type { .page-topbg .top-content .text-type {
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
width: 100%; width: 100%;
word-break: break-all; word-break: break-all;
display: block; display: block;
line-height: 1.4;
} }
.sjd-media-show .media-content-box .media-box-item.media-img-item image { .sjd-media-show .media-content-box .media-box-item.media-img-item image {
width: 100%; width: 100%;
......
...@@ -58,7 +58,7 @@ Page({ ...@@ -58,7 +58,7 @@ Page({
source_id: this.data.clockId, source_id: this.data.clockId,
source_type: 1, source_type: 1,
}).then(() => { }).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.clockDetail()
}) })
// this.initPost(`t=${tid}&c=${clockId}`, page, clockId,tid); // this.initPost(`t=${tid}&c=${clockId}`, page, clockId,tid);
...@@ -114,7 +114,7 @@ Page({ ...@@ -114,7 +114,7 @@ Page({
const visitor = LocalStorage.getItem('visitor'); const visitor = LocalStorage.getItem('visitor');
let shareObj = { let shareObj = {
title: `${this.data.clockDetail.school_student.nickname}的打卡详情`, 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({ app.setSharerLog({
...@@ -122,7 +122,7 @@ Page({ ...@@ -122,7 +122,7 @@ Page({
source_type_model: 4, source_type_model: 4,
source_id: this.data.clockId, source_id: this.data.clockId,
param: JSON.stringify({ 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 { return {
...@@ -181,7 +181,6 @@ Page({ ...@@ -181,7 +181,6 @@ Page({
if (data) { if (data) {
this.setData({ this.setData({
clockDetail:data, clockDetail:data,
id:data.class_id
}) })
activityLog({ activityLog({
type: 38, type: 38,
...@@ -207,7 +206,6 @@ Page({ ...@@ -207,7 +206,6 @@ Page({
open_id: visitor && visitor.openid, open_id: visitor && visitor.openid,
school_id: this.data.clockDetail.school_id, school_id: this.data.clockDetail.school_id,
remark: '', remark: '',
class_id: this.data.id
}) })
wxGetImageInfo({ wxGetImageInfo({
src: imgSrc src: imgSrc
...@@ -297,7 +295,6 @@ Page({ ...@@ -297,7 +295,6 @@ Page({
open_id: visitor && visitor.openid, open_id: visitor && visitor.openid,
school_id: this.data.clockDetail.school_id, school_id: this.data.clockDetail.school_id,
remark: '', remark: '',
class_id: this.data.id
}) })
wx.downloadFile({ wx.downloadFile({
url: imgSrc, url: imgSrc,
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
<view class="title">他们也在({{signStudentsTotal}}人)</view> <view class="title">他们也在({{signStudentsTotal}}人)</view>
<view class="sub-title">加入打卡跟他们一起养成好习惯</view> <view class="sub-title">加入打卡跟他们一起养成好习惯</view>
<view class="list"> <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="{{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> <image class="avatar" src="{{imageRoot}}common/empty/avatar_user.png?{{imageVersion}}" wx:else></image>
<view class="nickname">{{item.school_student.nickname}}</view> <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