活码邀请
parent
d8651a5f01
commit
45a75791e6
|
@ -188,15 +188,19 @@
|
||||||
if(options.source_code!='' && options.source_code!=undefined){
|
if(options.source_code!='' && options.source_code!=undefined){
|
||||||
this.loginEv(options);
|
this.loginEv(options);
|
||||||
} else if(options.q!=undefined){
|
} else if(options.q!=undefined){
|
||||||
|
// channel=&source_code=e0aac3a1f8dc81f14ce60b65db374a8c
|
||||||
let newInvite = options.q.slice(options.q.indexOf('invite_code%')+14);
|
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({
|
uni.login({
|
||||||
provider: 'weixin',
|
provider: 'weixin',
|
||||||
success: (res)=> {
|
success: (res)=> {
|
||||||
var params = {
|
var params = {
|
||||||
code:res.code,
|
code:res.code,
|
||||||
invite_code:newInvite,//用户邀请码
|
invite_code:newInvite,//用户邀请码
|
||||||
|
channel:newChanel,
|
||||||
|
source_code:newsource_code
|
||||||
}
|
}
|
||||||
console.log(newInvite,'邀请码');
|
|
||||||
this.$requst.post('user/login',params).then(res => {console.log('调用成功');},error => {})
|
this.$requst.post('user/login',params).then(res => {console.log('调用成功');},error => {})
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -235,7 +239,6 @@
|
||||||
source_code:option.source_code || '',
|
source_code:option.source_code || '',
|
||||||
channel:option.channel || ''
|
channel:option.channel || ''
|
||||||
}
|
}
|
||||||
console.log(option.invite_code);
|
|
||||||
this.$requst.post('user/login',params).then(res => {console.log('调用成功');},error => {})
|
this.$requst.post('user/login',params).then(res => {console.log('调用成功');},error => {})
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue