Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
account-book
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘文虎
account-book
Commits
bb8d0410
Commit
bb8d0410
authored
Aug 16, 2022
by
刘文虎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.banshouhui.com/liuwenhu/account-book
parents
61011e77
fc5a2df7
Pipeline
#3250
canceled with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
22 deletions
+16
-22
index.vue
components/cell-card-back/index.vue
+7
-7
index.vue
components/cell-card-swiper/index.vue
+2
-2
chart-view.vue
pages/index/bill/components/chart-view.vue
+7
-13
No files found.
components/cell-card-back/index.vue
View file @
bb8d0410
...
@@ -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
...
...
components/cell-card-swiper/index.vue
View file @
bb8d0410
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
<swiper
<swiper
class=
"swiper"
class=
"swiper"
:indicator-dots=
"true"
:indicator-dots=
"true"
indicator-color=
"rgba(2
52, 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>
...
...
pages/index/bill/components/chart-view.vue
View file @
bb8d0410
...
@@ -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
),
})
})
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment