Commit b8fc45f4842fa983a511fb6de9eb6be780ad7e02

Authored by vking
1 parent cf41bb0f

pay

... ... @@ -115,7 +115,9 @@ Page({
invoice[key.toLowerCase()]=e.detail[key]
})
App.Customer.SetInvoice(invoice).then(res=>{
util.toast('发票已提交','none')
setTimeout(()=>{
util.toast('发票已提交','none')
},300)
})
},
GetBalance(){//获得余额
... ...
... ... @@ -17,6 +17,7 @@ Page({
firstShowMsg:'',
rsl:[],//推荐商家
hasCancel:false, //取消预定效果
hasLoadedCheckout:false,
},
id: null,
tpls: TP.tpls(),
... ... @@ -311,15 +312,16 @@ Page({
GetCheckout(){
App.Customer.GetOrderInfo({rid:this.options.id}).then(res=>{
this.setData({
checkout:res.data
checkout:res.data,
hasLoadedCheckout:true,
})
})
},
checkout(){
if(this.data.detail.status==0){
this.selectComponent('#showModal').options({
header: '未到就餐时间',
body: '到店就餐时,可提前买单'
header: '商家未确认',
body: '确认后,到店消费可提前买单'
}).show();
}else{
wx.navigateTo({
... ...
... ... @@ -88,8 +88,8 @@
<view class="share-but Regular">发邀请函</view>
</userinfo-share>
</view>
<block wx:if="{{detail.seller.is_open_order==1 || detail.seller.is_open_wine==1 || detail.seller.isopen_md==1}}">
<view class="flex-lr share-view-cookbook" wx:if="{{checkout.status!=3}}">
<block wx:if="{{(detail.seller.is_open_order==1 || detail.seller.is_open_wine==1 || detail.seller.isopen_md==1) && hasLoadedCheckout}}">
<view class="flex-lr share-view-cookbook">
<userinfo wx:if="{{detail.seller.is_open_wine==1}}"
binduserinfo="wineGo"
bindshare="share"
... ...