mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-23 21:36:38 +08:00
优化代码
This commit is contained in:
parent
d781736ac2
commit
bf02f5affa
@ -112,6 +112,27 @@
|
||||
|
||||
},
|
||||
onPayFee: function() {
|
||||
if(!this.feeIds || this.feeIds.length < 1){
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title:'未选择费用'
|
||||
})
|
||||
return;
|
||||
}
|
||||
let _objData = {
|
||||
business: "oweFee",
|
||||
communityId: this.communityId,
|
||||
ownerId: this.ownerId,
|
||||
feeName: '物业费',
|
||||
receivedAmount: this.receivableAmount,
|
||||
storeId: this.storeId,
|
||||
feeIds:this.feeIds
|
||||
};
|
||||
|
||||
uni.setStorageSync('doing_cashier',_objData);
|
||||
uni.navigateTo({
|
||||
url:'/pages/fee/cashier?money='+this.receivableAmount+"&business=oweFee"
|
||||
})
|
||||
|
||||
},
|
||||
computeAmount:function(){
|
||||
|
||||
@ -925,6 +925,15 @@
|
||||
}
|
||||
|
||||
}
|
||||
,{
|
||||
"path" : "pages/fee/cashier",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "收款",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
|
||||
}
|
||||
],
|
||||
"tabBar": {
|
||||
"color": "#272636",
|
||||
|
||||
45
pages/fee/cashier.vue
Normal file
45
pages/fee/cashier.vue
Normal file
@ -0,0 +1,45 @@
|
||||
<template>
|
||||
<view>
|
||||
|
||||
<view class="bg-white money-info">
|
||||
<view class="money-title">订单金额</view>
|
||||
<view class="money-title">{{money}}</view>
|
||||
</view>
|
||||
|
||||
<view class="cu-bar btn-group" style="margin-top: 30px;">
|
||||
<button @click="_submit" class="cu-btn bg-blue shadow-blur round lg">确认支付</button>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
money:0.0,
|
||||
business:'',
|
||||
data:{}
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
this.money = options.money;
|
||||
this.business = options.business;
|
||||
this.data = uni.getStorageSync('doing_cashier');
|
||||
},
|
||||
methods: {
|
||||
|
||||
_submit:function(){
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.money-info{
|
||||
height: 200upx;
|
||||
margin:20upx
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in New Issue
Block a user