微信接口

This commit is contained in:
limqhz
2023-02-03 17:19:29 +08:00
parent c8a16e91b6
commit 23a10593c8
5 changed files with 63 additions and 13 deletions

View File

@@ -49,8 +49,9 @@ Page({
})
},
onConfirm (e) {
app.$api.deleteSetting();
wx.navigateBack();
this.closeDialog()
this.closeDialog();
},
closeDialog() {
this.setData({

View File

@@ -1,13 +1,12 @@
const app = getApp();
Page({
data: {
payList: [
{"name":"数码产品","money":"5000.00"},
{"name":"虚拟产品","money":"2000.00"},
{"name":"红包","money":"0.23"}
]
payList: null
},
onLoad: function (options) {
let payList = app.$api.getSettings('EXPEND_SETTING');
app.$api.
this.setData({payList})
},
handleClick() {
wx.navigateTo({

View File

@@ -8,6 +8,7 @@
</view>
</view>
</view>
<view wx:if="{{payList != null && payList.length > 0}}">
<t-cell-group theme="card">
<t-cell wx:for="{{payList}}" wx:key="index"
title="{{item.name}}"
@@ -17,4 +18,8 @@
url="../edit/index?isAccount=0&isIncome=0&isAdd=0"
/>
</t-cell-group>
</view>
<view wx:else class="empty-view" >
<t-empty icon="chart-bubble" description="暂无支出分类" />
</view>
<t-fab icon="add" bind:click="handleClick" aria-label="新增支出类型"/>