Commit 641f09e7 authored by leiqingsong's avatar leiqingsong

Merge branch 'dev_lqs' into 'master'

Dev lqs

See merge request !101
parents 632138ce 88adb1a8
<template>
<div class="all-income">
<div v-for="item in incomeList" :key="item.id" class="list-item">
<span style="color:#333333">{{ item.yearMonth }}</span>
<span>{{ item.income }}</span>
</div>
<template v-if="incomeList.length > 0">
<div v-for="item in incomeList" :key="item.id" class="list-item">
<span style="color:#333333">{{ item.yearMonth }}</span>
<span>{{ item.income }}</span>
</div>
</template>
<p v-else class="no-data">
暂无数据~
</p>
</div>
</template>
......@@ -17,7 +22,7 @@ export default {
incomeList: []
};
},
monted() {
mounted() {
this.getAllRecord();
},
methods: {
......@@ -51,4 +56,8 @@ export default {
font-size: 16px;
background-color: #ffffff;
}
.no-data {
text-align: center;
font-size: 12px;
}
</style>
......@@ -60,11 +60,11 @@ export default {
});
},
onRead(file) {
if (!JSON.parse(localStorage.getItem("user")).inviteCode) {
const inviteCode = JSON.parse(localStorage.getItem("user")).inviteCode;
if (!inviteCode) {
this.$toast.fail("当前用户没有邀请码");
return;
}
const inviteCode = JSON.parse(localStorage.getItem("user").inviteCode);
const params = {
inviteCode: inviteCode
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment