Commit 940f1c50 authored by wangxuelai's avatar wangxuelai

'打卡创建之后的分享功能'

parent 2a293961
......@@ -376,17 +376,31 @@ Page({
},
onShareAppMessage(option){
if (option.from == "menu"){
if (this.data.confirmId == 0){
return {
title: '轻校通',
path: 'ucenter/index'
}
}else{
return {
title: `邀请您提交「${this.data.params.title}」作业`,
path: `/src/pages/themeindex/index?tid=${this.data.newCreateId}&id=${this.data.id}&sid=${this.data.sid}`,
imageUrl: `${this.data.imageRoot}pageshare_cover/theme_share.png?${this.data.imageRoot}`,
}
if (this.data.editType == 1) {
return {
title: `邀请您提交「${this.data.params.title}」作业`,
path: `/src/pages/themeindex/index?tid=${this.data.confirmId}&sid=${this.data.sid}`,
imageUrl: `${this.data.imageRoot}pageshare_cover/theme_share.png?${this.data.imageRoot}`,
}
} else if (this.data.editType == 2) {
return {
title: `邀请您提交「${this.data.params.title}」作业`,
path: `/src/pages/calendarthemeindex/index?tid=${this.data.confirmId}&sid=${this.data.sid}`,
imageUrl: `${this.data.imageRoot}pageshare_cover/theme_share.png?${this.data.imageRoot}`,
}
} else if (this.data.editType == 3) {
return {
title: `邀请您提交「${this.data.params.title}」作业`,
path: `/src/pages/morethemeindex/index?tid=${this.data.confirmId}&sid=${this.data.sid}`,
imageUrl: `${this.data.imageRoot}pageshare_cover/theme_share.png?${this.data.imageRoot}`,
}
}
}
},
getStartDatePickerArr (date, time) {
......
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