Commit 7f05dd1f authored by wangxuelai's avatar wangxuelai

''

parent 225131a9
......@@ -83,7 +83,7 @@ Page({
return {
title: `邀请您加入班级`,
path: `/src/pages/inviteindex/index?id=${this.data.id}`,
imageUrl:'https://cdn.img.shangjiadao.cn/source/images/dakav3/images/2c/common/invite.png'
imageUrl:'https://cdn.img.shangjiadao.cn/source/images/dakav3/2c/common/invite.png'
}
}
......
......@@ -121,9 +121,9 @@ const apis = {
customerStaticGet: `${api}student/info`
},
myAchievement: {
certificates: `${api}student/certificates`,
certificate: `${api}student/certificate`,
honors: `${api}student/honors`,
certificates: `${api}common/certificates`,
certificate: `${api}common/certificate`,
honors: `${api}common/honors`,
}
},
business: {
......
......@@ -2241,7 +2241,8 @@ Page({
return;
}
return certificate({
subject_id: this.data.tid
subject_id: this.data.tid,
consumer_id: visitor.id
})
}).then((res) => {
const {
......
......@@ -79,12 +79,14 @@ Page({
posterBox: {
},
currentSubjectId: 0
currentSubjectId: 0,
custormeId: 0
},
onLoad: function(options) { // Do some initialize when page load.
const {sid} = options;
const {sid, custormeId} = options;
this.setData({
sid
sid,
custormeId
});
if (sid == 0) {
return;
......@@ -110,6 +112,11 @@ Page({
onReachBottom: function() { // Do something when page reach bottom.
},
onShareAppMessage: function (option) { // return custom share data when user share.
return {
title: '排行榜',
path: `/src/pages/myachievement/index?sid=${this.data.sid}&custormeId=${this.data.custormeId}`,
// imageUrl: 'https://cdn.img.shangjiadao.cn/source/images/dakav3/2c/rankinglist/sharebg.png'
}
},
onPageScroll: function() { // Do something when page scroll
......@@ -118,7 +125,8 @@ Page({
},
getCertificates () {
certificates({
school_id: this.data.sid
school_id: this.data.sid,
consumer_id: this.data.custormeId
}).then((res) => {
const {code, data} = res;
if (code != 200) {
......@@ -135,7 +143,8 @@ Page({
},
getHonors () {
honors({
school_id: this.data.sid
school_id: this.data.sid,
consumer_id: this.data.custormeId
}).then((res) => {
const {code, data} = res;
if (code != 200) {
......
{
"navigationBarTitleText": "",
"navigationBarTitleText": "我的成就",
"navigationBarBackgroundColor": "#FFD85C",
"usingComponents": {
"poster-box": "../../../components/posterbox",
......
......@@ -271,8 +271,9 @@ Page({
})
},
goMyAchievement () {
const visitor = LocalStorage.getItem('visitor');
wx.navigateTo({
url: `/src/pages/myachievement/index?sid=${this.data.sid}`,
url: `/src/pages/myachievement/index?sid=${this.data.sid}&custormeId=${visitor && visitor.id || 0}`,
})
}
})
\ No newline at end of file
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