微信接口
This commit is contained in:
@@ -49,8 +49,9 @@ Page({
|
||||
})
|
||||
},
|
||||
onConfirm (e) {
|
||||
app.$api.deleteSetting();
|
||||
wx.navigateBack();
|
||||
this.closeDialog()
|
||||
this.closeDialog();
|
||||
},
|
||||
closeDialog() {
|
||||
this.setData({
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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="新增支出类型"/>
|
||||
|
||||
Reference in New Issue
Block a user