作者 吴旭

2022.11.16

... ... @@ -72,10 +72,19 @@ Page({
let token = wx.getStorageSync('token')
console.log(options,wx.getStorageSync('user_id'))
if (options.scene) {
let str = decodeURIComponent(options.scene)
console.log(str)
let sss = str.indexOf (':')
let sssh = str.indexOf (',')
let codeid = str.substring(sss + 1, sssh)
let index = str.lastIndexOf(':');
let code = str.substring(index + 1, str.length)
console.log(codeid,code)
that.setData({
id: options.scene,
id: code,
type: 2,
inviter_id: options.inviter_id
inviter_id: codeid
})
// wx.setStorageSync('s4_id', options.s4_id)
// wx.setStorageSync('s4_name', options.s4_name)
... ...