活码邀请

master
chen 2022-01-01 19:50:28 +08:00
parent d8651a5f01
commit 45a75791e6
2 changed files with 6 additions and 3 deletions

View File

@ -188,15 +188,19 @@
if(options.source_code!='' && options.source_code!=undefined){
this.loginEv(options);
} else if(options.q!=undefined){
// channel=&source_code=e0aac3a1f8dc81f14ce60b65db374a8c
let newInvite = options.q.slice(options.q.indexOf('invite_code%')+14);
let newChanel = options.q.slice(options.q.indexOf('activity%')+7);
let newsource_code = options.q.slice(options.q.indexOf('source_code%')+32);
uni.login({
provider: 'weixin',
success: (res)=> {
var params = {
code:res.code,
invite_code:newInvite,//
channel:newChanel,
source_code:newsource_code
}
console.log(newInvite,'邀请码');
this.$requst.post('user/login',params).then(res => {console.log('调用成功');},error => {})
},
});
@ -235,7 +239,6 @@
source_code:option.source_code || '',
channel:option.channel || ''
}
console.log(option.invite_code);
this.$requst.post('user/login',params).then(res => {console.log('调用成功');},error => {})
},
});

File diff suppressed because one or more lines are too long