Commit d95f7571 by 梁建民

js

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