微信API 需要查看图片缺失问题

This commit is contained in:
limqhz
2023-02-06 18:51:37 +08:00
parent 23a10593c8
commit 40ca4223dd
8 changed files with 98 additions and 93 deletions

View File

@@ -7,7 +7,8 @@ Page({
isIncome: 0,
isAdd: 0,
showDeleteConfirm: false,
icon : null
icon : null,
accType: null
},
onLoad: function (options) {
this.setData({

View File

@@ -6,7 +6,7 @@
value="{{ '假的名称' }}"
/>
<t-input wx:if="{{ isAccount == 1 }}" label="分类" disabled>
<t-radio-group slot="suffix" default-value="0" borderless t-class="box">
<t-radio-group slot="suffix" default-value="{{accType}}" borderless t-class="box">
<t-radio block="{{ false }}" label="资产账户" value="0" />
<t-radio block="{{ false }}" label="负债账户" value="1" />
</t-radio-group>

View File

@@ -4,9 +4,24 @@ Page({
payList: null
},
onLoad: function (options) {
let payList = app.$api.getSettings('EXPEND_SETTING');
app.$api.
this.setData({payList})
app.$api.getSettings().then(setting => {
let payList = setting.data.EXPEND_SETTING;
app.$api.getSettingsExpend().then(res => {
let result = res.data;
payList.forEach(item => {
let money = 0
if (result[item.id]){
money = result[item.id];
}
if (!money){
money = 0
}
item.money = money;
})
console.log(payList);
this.setData({payList})
});
});
},
handleClick() {
wx.navigateTo({

View File

@@ -1,3 +1,4 @@
const app = getApp();
Page({
data: {
incomeList: [
@@ -6,7 +7,24 @@ Page({
]
},
onLoad: function (options) {
app.$api.getSettings().then(setting => {
let incomeList = setting.data.INCOME_SETTING;
app.$api.getSettingsIncome().then(res => {
let result = res.data;
incomeList.forEach(item => {
let money = 0
if (result[item.id]){
money = result[item.id];
}
if (!money){
money = 0
}
item.money = money;
})
console.log(incomeList);
this.setData({incomeList})
});
});
},
handleClick() {
wx.navigateTo({