123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- import {
- post,
- } from '../../utils/http';
- import {
- trackUserEvent
- } from '../../utils/util'
- const XEnum_Invitee_Type = 8
- Page({
-
- data: {
- invite_id: 0,
- },
-
- onLoad: function (options) {
- console.log(options, 'optionsoptions', options.q);
- if (options.q) {
- const queryAll = decodeURIComponent(options.q);
- const array = queryAll.split("=")
-
-
-
- getApp().invite_id = array[1]
- console.log(getApp().invite_id, 'this.data.invite_id');
- return
- }
- if (options.invite_id) {
- console.log(options.invite_id,'options.invite_idoptions.invite_id');
- getApp().invite_id = options.invite_id
-
-
-
- }
- },
-
- onReady: function () {
- },
-
- onShow: function () {
- },
- getReceive() {
- console.log( getApp().invite_id, 'this.data.invite_id');
- post('api/invite/receive', {
- invite_id: getApp().invite_id
- }, (res) => {
- wx.navigateTo({
- url: '/pages/sucReception/sucReception',
- })
- })
-
- trackUserEvent(XEnum_Invitee_Type)
- },
-
- onHide: function () {
- },
-
- onUnload: function () {
- },
-
- onPullDownRefresh: function () {
- },
-
- onReachBottom: function () {
- },
-
- onShareAppMessage: function () {
- }
- })
|