|
...
|
...
|
@@ -93,10 +93,19 @@ Page({ |
|
|
|
async taocanInitScene(){
|
|
|
|
if(this.options.scene){
|
|
|
|
//解析scene追加到options
|
|
|
|
let res=await App.Customer.GetWxLiteCodeInfo({str_code:this.options.scene})
|
|
|
|
let scene=JSON.parse(res.data.scene)
|
|
|
|
this.options={...this.options,...scene}
|
|
|
|
console.log('this.options',this.options)
|
|
|
|
}
|
|
|
|
//fromid存在则设置推荐关系
|
|
|
|
if(this.options.fromid){
|
|
|
|
|
|
|
|
if(this.options.fromid) {
|
|
|
|
App.Customer.SetShareRel({
|
|
|
|
sid:this.options.sid,
|
|
|
|
fid:this.options.pid,
|
|
|
|
openid_main:this.options.fromid,
|
|
|
|
openid_cover:await getApp().getOpenid(),
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
async taocanInit(){
|
...
|
...
|
|