Commit 7446f0861b4c15b73e1257b28aa9f19d90db0728

Authored by vking
1 parent 2a36c2be

painter

... ... @@ -6,6 +6,10 @@ Component({
*/
properties: {
seller_id:String,
hasSellerShare:{
type:Boolean,
value:false,
}
},
/**
... ... @@ -38,6 +42,7 @@ Component({
url:util.http_build_query({
id:this.data.seller_id,
act:act,
hasSellerShare:this.data.hasSellerShare
},'/pages/reserve/share')
})
},
... ...
... ... @@ -68,7 +68,12 @@ Page({
},
onShareAppMessage: function () {
let path=util.http_build_query({id:this.data.seller.id,fromid:getApp().openid},'/pages/reserve/detail')
let path=util.http_build_query(
{
id:this.data.seller.id,
fromid:getApp().openid,
hasSellerShare:true,
},'/pages/reserve/detail')
return {
title:'请客订包间,就上一键订',
imageUrl:'https://xt04.colorcun.com/sellerShare/Share_'+this.data.seller.id+'.png?'+Math.random(),
... ...
... ... @@ -62,4 +62,4 @@
</formids>
</view>
<tabBar bindNewCustomer="NewCustomer" id="tabBar"></tabBar>
<share id="share" seller_id="{{seller.id}}"></share>
<share id="share" seller_id="{{seller.id}}" hasSellerShare="{{true}}"></share>
... ...
... ... @@ -230,7 +230,7 @@ Page({
openid:openid,
fromid:this.options.fromid,
sid:this.options.id,
sub:this.options.sub||3,//关系类型:1/2/3 邀请关系/商户端分享关系/C端分享关系
sub:this.options.hasSellerShare?2:3,//关系类型:1/2/3 邀请关系/商户端分享关系/C端分享关系
})
},
})
\ No newline at end of file
... ...
... ... @@ -83,6 +83,7 @@ Page({
code_type: 'wxcode',
'param_value[0]':options.id,
'param_value[1]':openid,
'param_value[2]':this.options.hasSellerShare
});
this.setData({
seller:seller,
... ...
... ... @@ -768,7 +768,7 @@ module.exports = {
http_build_query(obj,url=''){
let ps=[]
for(let i in obj){
if(typeof obj[i]=='undefined' || obj[i]==null) continue;
if(typeof obj[i]=='undefined' || obj[i]==null || obj[i]===false) continue;
ps.push(i+'='+obj[i].toString())
}
ps=ps.join('&');
... ...