Commit bb8d0410 authored by 刘文虎's avatar 刘文虎
parents 61011e77 fc5a2df7
Pipeline #3250 canceled with stages
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
@success="handleCanvasSuccessSave" @success="handleCanvasSuccessSave"
custom-style="position: fixed; left: 200%" custom-style="position: fixed; left: 200%"
/> />
<u-toast ref="uToast" />
</view> </view>
</template> </template>
...@@ -56,7 +57,6 @@ export default { ...@@ -56,7 +57,6 @@ export default {
width: '702rpx', width: '702rpx',
height: '420rpx', height: '420rpx',
'border-radius': '16rpx', 'border-radius': '16rpx',
'background-color': '#ffffff',
border: '2rpx solie #f6f7fa', border: '2rpx solie #f6f7fa',
}, },
views: [ views: [
...@@ -130,12 +130,12 @@ export default { ...@@ -130,12 +130,12 @@ export default {
uni.saveImageToPhotosAlbum({ uni.saveImageToPhotosAlbum({
filePath: url, filePath: url,
success: () => { success: () => {
// this.$refs.uToast.show({ this.$refs.uToast.show({
// title: '保存成功', title: '保存成功',
// type: 'success', type: 'success',
// duration: 1500, duration: 1500,
// callback: () => {}, callback: () => {},
// }) })
}, },
fail: (err) => { fail: (err) => {
var str = err && err.errMsg var str = err && err.errMsg
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
<swiper <swiper
class="swiper" class="swiper"
:indicator-dots="true" :indicator-dots="true"
indicator-color="rgba(252, 184, 42, 0.45)" indicator-color="rgba(2, 160, 116, 0.45)"
indicator-active-color="#FCB82A" indicator-active-color="rgba(2, 160, 116, 1)"
style="height: 420rpx" style="height: 420rpx"
> >
<swiper-item> <swiper-item>
......
...@@ -439,22 +439,18 @@ export default { ...@@ -439,22 +439,18 @@ export default {
}, },
reloadData() { reloadData() {
this.getBookRecordPeriod() this.getBookRecordPeriod()
this.getBookRecordChart()
if (this.infoIndex != 2) {
this.getBookRecordClassification()
this.getBookRecordPage()
}
}, },
handleClickInfo(index) { handleClickInfo(index) {
this.infoIndex = index this.infoIndex = index
this.otherRequest()
},
otherRequest() {
this.getBookRecordChart() this.getBookRecordChart()
if (this.infoIndex != 2) {
if (index != 2) {
this.getBookRecordPage() this.getBookRecordPage()
this.getBookRecordClassification() this.getBookRecordClassification()
} }
}, },
// 收支 // 收支
getBookRecordPeriod() { getBookRecordPeriod() {
this.loading = true this.loading = true
...@@ -492,6 +488,7 @@ export default { ...@@ -492,6 +488,7 @@ export default {
} }
}) })
this.loading = false this.loading = false
this.otherRequest()
}) })
.catch((err) => { .catch((err) => {
this.loading = false this.loading = false
...@@ -549,17 +546,14 @@ export default { ...@@ -549,17 +546,14 @@ export default {
return Number(item2.amount) - Number(item1.amount) return Number(item2.amount) - Number(item1.amount)
}) })
var list = [] var list = []
var all = Number(this.info[this.currentSetting.key])
for (var item of sortData) { for (var item of sortData) {
list.push({ list.push({
name: item.name, name: item.name,
value: Number(item.amount || 0), value: Number(item.amount || 0),
id: item.id, id: item.id,
icon: item.icon, icon: item.icon,
percent: ( percent: all && item.amount ? (Number(item.amount || 0) / all * 100).toFixed(2) : 0,
(Number(item.amount || 0) /
Number(this.info[this.currentSetting.key])) *
100
).toFixed(2),
}) })
} }
} }
......
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