Commit 86af4763a70dc308fe836a87f1efc20487271d40

Authored by vking
1 parent 31039a9f

share

... ... @@ -197,7 +197,7 @@
<view class="text">分享</view>
</userinfo>
</view>
<view class="reserve">
<view class="reserve reserve-click flex-vc">
<formids class="flex-vc" bindclick="reserveEvent" id="reserve-button">
<view class="text">{{hasOnlineReserve?'包间预订':'联系餐厅'}}</view>
</formids>
... ...
... ... @@ -78,16 +78,19 @@ Page({
let seller=res.data
console.log('App',App)
let openid=await getApp().getOpenid()
let qrcode=await App.Other.generate_qrcode({
tpl_id: 25415,
code_type: 'wxcode',
'param_value[0]':options.id,
'param_value[1]':openid,
'param_value[2]':this.options.hasSellerShare||''
});
let qrcode=util.http_build_query({
path:'pages/reserve/detail',
param:JSON.stringify({
id:options.id,
fromid:openid,
hasSellerShare:this.options.hasSellerShare||''
})
},util.cgi('App.System.GetWxLiteCode'))
console.log('qrcode',qrcode);
this.setData({
seller:seller,
qrcode:qrcode.data.replace('http://','https://'),
qrcode:qrcode,
hasLoadData:true,
})
setTimeout(()=>{
... ...
... ... @@ -347,5 +347,7 @@ export default {
openid:'openid',
cachetime: -1,
},
//生成小程序码
'App.System.GetWxLiteCode':null,
}
\ No newline at end of file
... ...