配置
This commit is contained in:
@@ -2,11 +2,11 @@ const app = getApp();
|
||||
Page({
|
||||
data: {
|
||||
incomeList: [
|
||||
{"name":"薪资","money":"89310.00"},
|
||||
{"name":"红包","money":"0.23"}
|
||||
{"name":"薪资","money":"89310.00","icon":"/image/bill/0.png"},
|
||||
{"name":"红包","money":"0.23","icon":"/image/bill/2.png"}
|
||||
]
|
||||
},
|
||||
onLoad: function (options) {
|
||||
onShow() {
|
||||
app.$api.getSettings().then(setting => {
|
||||
let incomeList = setting.data.INCOME_SETTING;
|
||||
app.$api.getSettingsIncome().then(res => {
|
||||
|
||||
@@ -1,20 +1,25 @@
|
||||
<view class="main_look">
|
||||
<view class="look_content">
|
||||
<view class="pay_look">
|
||||
<view bind:tap="changeBudget" data-type="count" class="inline_box font_big">年度总收入</view>
|
||||
<view data-type="count" class="inline_box font_big">年度总收入</view>
|
||||
</view>
|
||||
<view class="pay_look">
|
||||
<text class="center_look font_big">{{ 89310.23 }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<t-cell-group theme="card">
|
||||
<t-cell wx:for="{{incomeList}}" wx:key="index"
|
||||
title="{{item.name}}"
|
||||
align="top"
|
||||
image="/image/bill/11.png"
|
||||
note="{{item.money}}"
|
||||
url="../edit/index?isAccount=0&isIncome=1&isAdd=0"
|
||||
/>
|
||||
</t-cell-group>
|
||||
<view wx:if="{{incomeList != null && incomeList.length > 0}}">
|
||||
<t-cell-group theme="card">
|
||||
<t-cell wx:for="{{incomeList}}" wx:key="index"
|
||||
title="{{item.name}}"
|
||||
align="top"
|
||||
image="/image/bill/11.png"
|
||||
note="{{item.money}}"
|
||||
url="../edit/index?isAccount=0&isIncome=1&isAdd=0&id={{item.id}}"
|
||||
/>
|
||||
</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