Commit 922742ecb5147f3534af10e44c49b349ea38df96

Authored by vking
1 parent b2b94cc9

pay

... ... @@ -15,7 +15,7 @@ Page({
*/
onLoad: function (options) {
this.options=options
this.GetBalance()
},
/**
... ... @@ -95,4 +95,11 @@ Page({
util.toast('发票已提交','none')
})
},
GetBalance(){//获得余额
App.User.GetBalance().then(res=>{
this.setData({
user:res.data
})
})
},
})
\ No newline at end of file
... ...
... ... @@ -6,6 +6,7 @@
"nav":"/components/nav/nav",
"showModal":"/components/tips/showModal/showModal",
"invoice":"/components/userinfo/invoice",
"subscribe":"/components/userinfo/subscribe",
"jinduBar":"../components/jinduBar"
}
}
\ No newline at end of file
... ...
<!--pack-activity/pages/index.wxml-->
<nav hasHome>周到安排</nav>
<nav hasHome>{{checkout.sellername||'周到安排'}}</nav>
<view class="pages">
<view class="content">
<jinduBar checkout="{{checkout}}"></jinduBar>
... ... @@ -41,8 +41,36 @@
</invoice>
</view>
</view>
<view class="checkout-get subscribe" bindtap="checkoutInit">商家反馈金额后提醒我</view>
<view class="checkout-get tx-seller" bindtap="checkoutInit">催一下商家</view>
<subscribe ids="{{[0]}}">
<view class="checkout-get subscribe">商家反馈金额后提醒我</view>
</subscribe>
<view class="checkout-get tx-seller" bindtap="">催一下商家</view>
</block>
<block wx:elif="{{checkout.status==2}}">
<view class="content money">
<view class="list flex-lr">
<view class="list-name">消费总额</view>
<view class="list-val">¥ {{checkout.price}}</view>
</view>
<view class="list flex-lr">
<view class="list-name">账户余额</view>
<view class="list-val">-¥ {{user.price}}</view>
</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>
<view class="list flex-lr" wx:if="{{checkout.bill_list}}">
<view class="list-name">消费清单</view>
<view class="list-val">查看消费清单</view>
</view>
<view class="list flex-lr">
<view class="list-name">包间名称</view>
<view class="list-val">{{checkout.tablename}}</view>
</view>
</view>
<view class="money-tips">注:消费清单,离店时请到前台索要;</view>
<view class="checkout-get" bindtap="">立即支付{{checkout.price-user.price>0?checkout.price-user.price:0}}元</view>
</block>
</view>
<showModal id="showModal" confirmText="知道了" bindshowModal="showModal" cla="checkout"></showModal>
\ No newline at end of file
... ...
... ... @@ -18,7 +18,7 @@ page{
padding: 0 40rpx;
box-sizing: border-box;
}
.checkout,.invoice{
.checkout,.invoice,.money{
margin-top: 10rpx;
}
.title{
... ... @@ -73,4 +73,29 @@ page{
}
.invoice-right .title.active{
color:rgba(53,53,53,1);
}
.content.money{
padding-top: 27rpx;
padding-bottom: 27rpx;
}
.list{
height: 68rpx;
line-height: 68rpx;
font-size:30rpx;
font-weight:500;
color:rgba(53,53,53,1);
}
.money-tips{
height:40rpx;
font-size:28rpx;
font-family:PingFang-SC-Medium,PingFang-SC;
font-weight:500;
color:rgba(53,53,53,1);
line-height:40rpx;
margin-left: 40rpx;
margin-top: 20rpx;
}
.should_price{
color:rgba(224,32,32,1);
}
\ No newline at end of file
... ...