Commit cb7a88028feea421fe6b88aae2faa5814dc84296

Authored by vking
1 parent 3454ba2f

taocan-share

... ... @@ -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(){
... ...
... ... @@ -67,12 +67,12 @@ Page({
this.qrcode=await util.http_build_query({
page:'pages/taocan/index',
path:'pages/taocan/index',
param:JSON.stringify({
scene:JSON.stringify({
sid:options.sid,
pid:options.pid,
fromid:openid,
})
},util.cgi('App.System.GetWxLiteCode'))
},util.cgi('App.Customer.GetWxLiteCodeByShare'))
this.initImage()
},
initImage(){
... ...
... ... @@ -515,6 +515,12 @@ export default {
//根据账单ID获取账单详情
'App.Foodset.GetFoodOrdersDetail':null,
//根据唯一code获取相关参数
'App.Customer.GetWxLiteCodeInfo':null,
//分享关系记录
'App.Customer.SetShareRel':null,
//获取商家优惠对接人信息
'App.Customer.GetSellerPreferentialDocking':null,
//接单人,获得商家设置的接单人列表
... ...