优化代码

This commit is contained in:
Your Name 2023-09-06 09:59:46 +08:00
parent d781736ac2
commit bf02f5affa
3 changed files with 75 additions and 0 deletions

View File

@ -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(){

View File

@ -925,6 +925,15 @@
}
}
,{
"path" : "pages/fee/cashier",
"style" :
{
"navigationBarTitleText": "收款",
"enablePullDownRefresh": false
}
}
],
"tabBar": {
"color": "#272636",

45
pages/fee/cashier.vue Normal file
View 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>