作者 吴旭

2022.11.02

@@ -304,8 +304,9 @@ Page({ @@ -304,8 +304,9 @@ Page({
304 }, 304 },
305 toggleDialog(e) { 305 toggleDialog(e) {
306 let id = this.data.id 306 let id = this.data.id
  307 + let inviter_id = this.data.inviter_id
307 wx.navigateTo({ 308 wx.navigateTo({
308 - url: '/pages/distributionChanged/distributionChanged?id=' + id 309 + url: '/pages/distributionChanged/distributionChanged?id=' + id + '&inviter_id='+ inviter_id
309 }) 310 })
310 }, 311 },
311 GOcanvas() { 312 GOcanvas() {
@@ -6,6 +6,7 @@ const a = getApp() @@ -6,6 +6,7 @@ const a = getApp()
6 Page({ 6 Page({
7 data: { 7 data: {
8 imagesUrl: a.globalData.baseUrl, 8 imagesUrl: a.globalData.baseUrl,
  9 + inviter_id: '',
9 id: '', 10 id: '',
10 names: '', 11 names: '',
11 phone: '', 12 phone: '',
@@ -53,11 +54,12 @@ Page({ @@ -53,11 +54,12 @@ Page({
53 54
54 onLoad: function (options) { 55 onLoad: function (options) {
55 let that = this 56 let that = this
56 - // console.log(options); 57 + console.log(options);
57 that.setData({ 58 that.setData({
58 id: options.id, 59 id: options.id,
59 s4_id: wx.getStorageSync('s4_id'), 60 s4_id: wx.getStorageSync('s4_id'),
60 - s4_name: wx.getStorageSync('s4_name') 61 + s4_name: wx.getStorageSync('s4_name'),
  62 + inviter_id: options.inviter_id
61 }) 63 })
62 that.getdetails() 64 that.getdetails()
63 65
@@ -298,6 +300,7 @@ Page({ @@ -298,6 +300,7 @@ Page({
298 } = await request({ 300 } = await request({
299 url: 'api/active/pay', 301 url: 'api/active/pay',
300 data: { 302 data: {
  303 + inviter_id: that.data.inviter_id,
301 name: obj.names, 304 name: obj.names,
302 phone: obj.phone, 305 phone: obj.phone,
303 id: that.data.itemid, 306 id: that.data.itemid,