Commit 9c084f9a221d2787591374a2c78a399a8aa0f5fa

Authored by vking
1 parent e275aac0

pay

... ... @@ -37,6 +37,7 @@ Component({
},
fail:(efail)=>{
console.log('wx.chooseInvoiceTitle',efail)
if(efail.errMsg== "chooseInvoiceTitle:fail cancel") return;
wx.showModal({
title: '授权提示',
content: '您拒绝了获取发票抬头,请点击确定打开授权',
... ...
... ... @@ -114,7 +114,6 @@ Page({
Object.keys(e.detail).forEach(key=>{
invoice[key.toLowerCase()]=e.detail[key]
})
console.log('setInvoice',invoice)
App.Customer.SetInvoice(invoice).then(res=>{
util.toast('发票已提交','none')
})
... ...
... ... @@ -16,7 +16,7 @@
</view>
</view>
<view class="content invoice">
<view class="item flex-lr" bindtap="setInvoice">
<view class="item flex-lr">
<view>发票</view>
<invoice bindevent="setInvoice">
<view class="flex-rr invoice-right">
... ... @@ -47,7 +47,7 @@
</view>
<view class="list flex-lr">
<view class="list-name">应付金额</view>
<view class="list-val should_price">¥{{checkout.price-user.price>0?checkout.price-user.price:0}}</view>
<view class="list-val should_price">¥{{checkout.should_price}}</view>
</view>
<view class="list flex-lr" wx:if="{{checkout.bill_list}}">
<view class="list-name">消费清单</view>
... ... @@ -61,7 +61,7 @@
<view class="list-name">备注信息</view>
<view class="list-val">{{checkout.remark}}</view>
</view>
<view class="checkout-get" bindtap="pay">立即支付{{checkout.price-user.price>0?checkout.price-user.price:0.01}}元</view>
<view class="checkout-get" bindtap="pay">立即支付{{checkout.should_price}}元</view>
</view>
<view class="money-tips">注:消费清单,离店时请到前台索要;</view>
</block>
... ...