配置
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
const app = getApp();
|
||||
Page({
|
||||
data: {
|
||||
payList: null
|
||||
payList: [
|
||||
{"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 payList = setting.data.EXPEND_SETTING;
|
||||
app.$api.getSettingsExpend().then(res => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<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">{{ 7000.23 }}</text>
|
||||
@@ -13,9 +13,9 @@
|
||||
<t-cell wx:for="{{payList}}" wx:key="index"
|
||||
title="{{item.name}}"
|
||||
align="top"
|
||||
image="/image/bill/7.png"
|
||||
image="{{item.icon}}"
|
||||
note="{{item.money}}"
|
||||
url="../edit/index?isAccount=0&isIncome=0&isAdd=0"
|
||||
url="../edit/index?isAccount=0&isIncome=0&isAdd=0&id={{item.id}}"
|
||||
/>
|
||||
</t-cell-group>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user