Commit d95f7571 by 梁建民

js

parent ecc7aa04
Showing with 13 additions and 9 deletions
......@@ -67,18 +67,22 @@ Page({
*/
onShareAppMessage: function (res) {
http.getData(apis.invitesAdd, 'GET', {
user_id: this.data.invitesInfo.user_id
}, (res) => {
if (res.errcode === 0) {
}
}, false, false, true);
return {
title: '邀请好友',
path: "/pages/person/invitation/index"
success: function (res) {
if (res.errMsg == 'shareAppMessage:ok') {
http.getData(apis.invitesAdd, 'GET', {
user_id: this.data.invitesInfo.user_id
}, (res) => {
if (res.errcode === 0) {
}
}, false, false, true);
}
},
path: "/pages/person/invitation/index",
}
},
toUrl: function (e) {
if (this.data.invitesInfo.amount <= 0) {
......
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 sign in to comment