账单增删改调整

This commit is contained in:
2023-02-07 20:19:02 +08:00
parent 1fadf4c339
commit 1f5580c0f3
12 changed files with 109 additions and 83 deletions

View File

@@ -1,9 +1,11 @@
Page({
data: {
sid: null
sid: null,
billType: null
},
onLoad: function (options) {
let sid = options.id
this.setData({sid})
let billType = options.billType
this.setData({sid,billType})
}
});

View File

@@ -1,4 +1,4 @@
<view class="padding_box">
<expenses/>
<!-- <transfer/>-->
<expenses wx:if="{{billType == 'INCOME' || billType == 'EXPEND'}}" billId="{{sid}}" changeType="{{billType}}"/>
<transfer wx:if="{{billType == 'REPAYMENT' || billType == 'TRANSFER'}}" billId="{{sid}}" changeType="{{billType}}"/>
</view>