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
1f72cc2e
Commit
1f72cc2e
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
afe71054
ed3d7e00
Pipeline
#3244
canceled with stages
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
132 additions
and
16 deletions
+132
-16
index.vue
components/cell-card-back/index.vue
+118
-2
index.vue
components/cell-card-swiper/index.vue
+0
-2
index.vue
components/cell-card/index.vue
+6
-6
bill.vue
pages/index/bill/bill.vue
+7
-5
scroll-box.vue
pages/index/bill/components/scroll-box.vue
+1
-1
No files found.
components/cell-card-back/index.vue
View file @
1f72cc2e
...
@@ -9,6 +9,12 @@
...
@@ -9,6 +9,12 @@
<text>
{{
info
.
backContext
}}
</text>
<text>
{{
info
.
backContext
}}
</text>
</view>
</view>
</view>
</view>
<l-painter
:board=
"posterSave"
isCanvasToTempFilePath
@
success=
"handleCanvasSuccessSave"
custom-style=
"position: fixed; left: 200%"
/>
</view>
</view>
</
template
>
</
template
>
...
@@ -24,7 +30,9 @@ export default {
...
@@ -24,7 +30,9 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
loading
:
true
,
saveUrl
:
''
,
posterSave
:
{},
currentBlock
:
()
=>
{},
}
}
},
},
computed
:
{
computed
:
{
...
@@ -42,9 +50,117 @@ export default {
...
@@ -42,9 +50,117 @@ export default {
return
this
.
baseUrl
+
'muban3fanmian@3x.png'
return
this
.
baseUrl
+
'muban3fanmian@3x.png'
}
}
},
},
currentPosterSave
()
{
return
{
css
:
{
width
:
'702rpx'
,
height
:
'420rpx'
,
'border-radius'
:
'16rpx'
,
'background-color'
:
'#ffffff'
,
border
:
'2rpx solie #f6f7fa'
,
},
views
:
[
{
src
:
this
.
image
,
type
:
'image'
,
css
:
{
position
:
'absolute'
,
top
:
'0'
,
right
:
'0'
,
width
:
'100%'
,
height
:
'100%'
,
'border-radius'
:
'16rpx'
,
},
},
{
type
:
'view'
,
css
:
{
position
:
'absolute'
,
top
:
'8rpx'
,
right
:
'0'
,
height
:
'0'
,
width
:
'100%'
,
height
:
'100%'
,
},
views
:
[
{
type
:
'text'
,
text
:
this
.
info
.
backTitle
,
css
:
{
position
:
'absolute'
,
height
:
'60rpx'
,
'line-height'
:
'60rpx'
,
fontSize
:
'40rpx'
,
'font-weight'
:
'bold'
,
left
:
'32rpx'
,
color
:
'#ffffff'
,
textAlign
:
'center'
,
top
:
'70rpx'
,
width
:
'638rpx'
,
},
},
{
type
:
'text'
,
text
:
this
.
info
.
backContext
,
css
:
{
position
:
'absolute'
,
top
:
'180rpx'
,
left
:
'32rpx'
,
fontSize
:
'28rpx'
,
color
:
'#ffffff'
,
fontWeight
:
'bold'
,
textAlign
:
'center'
,
width
:
'638rpx'
,
},
},
],
},
],
}
},
},
},
methods
:
{},
methods
:
{
handleCanvasSuccessSave
(
url
)
{
this
.
saveUrl
=
url
this
.
currentBlock
(
url
)
},
saveImage
(
type
=
'save'
)
{
this
.
currentBlock
=
(
url
)
=>
{
uni
.
saveImageToPhotosAlbum
({
filePath
:
url
,
success
:
()
=>
{
// this.$refs.uToast.show({
// title: '保存成功',
// type: 'success',
// duration: 1500,
// callback: () => {},
// })
},
fail
:
(
err
)
=>
{
var
str
=
err
&&
err
.
errMsg
if
(
str
&&
str
.
indexOf
(
'cancel'
)
!=
-
1
)
{
str
=
'取消保存'
}
this
.
$refs
.
uToast
.
show
({
title
:
str
,
type
:
'error'
,
duration
:
1500
,
callback
:
()
=>
{},
})
},
complete
:
(
res
)
=>
{
this
.
$emit
(
'save'
,
res
)
},
})
}
if
(
this
.
saveUrl
)
{
this
.
currentBlock
(
this
.
saveUrl
)
}
else
{
this
.
posterSave
=
this
.
currentPosterSave
}
},
},
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
...
...
components/cell-card-swiper/index.vue
View file @
1f72cc2e
...
@@ -52,8 +52,6 @@ export default {
...
@@ -52,8 +52,6 @@ export default {
this
.
$refs
.
card
.
updateImage
()
this
.
$refs
.
card
.
updateImage
()
},
},
saveImage
()
{
saveImage
()
{
this
.
$refs
.
card
.
saveImage
()
return
this
.
$refs
.
cardBack
.
saveImage
()
this
.
$refs
.
cardBack
.
saveImage
()
},
},
handleClickCard
()
{
handleClickCard
()
{
...
...
components/cell-card/index.vue
View file @
1f72cc2e
...
@@ -212,7 +212,7 @@ export default {
...
@@ -212,7 +212,7 @@ export default {
top
:
'180rpx'
,
top
:
'180rpx'
,
left
:
'32rpx'
,
left
:
'32rpx'
,
fontSize
:
'28rpx'
,
fontSize
:
'28rpx'
,
color
:
'
#333333'
,
color
:
'#333333'
,
fontWeight
:
'bold'
,
fontWeight
:
'bold'
,
textAlign
:
'left'
,
textAlign
:
'left'
,
},
},
...
@@ -346,7 +346,7 @@ export default {
...
@@ -346,7 +346,7 @@ export default {
top
:
'200rpx'
,
top
:
'200rpx'
,
left
:
'32rpx'
,
left
:
'32rpx'
,
fontSize
:
'28rpx'
,
fontSize
:
'28rpx'
,
color
:
'
#333333'
,
color
:
'#333333'
,
fontWeight
:
'bold'
,
fontWeight
:
'bold'
,
textAlign
:
'left'
,
textAlign
:
'left'
,
},
},
...
@@ -454,7 +454,7 @@ export default {
...
@@ -454,7 +454,7 @@ export default {
top
:
'40rpx'
,
top
:
'40rpx'
,
left
:
'32rpx'
,
left
:
'32rpx'
,
fontSize
:
'28rpx'
,
fontSize
:
'28rpx'
,
color
:
'
#333333'
,
color
:
'#333333'
,
fontWeight
:
'bold'
,
fontWeight
:
'bold'
,
textAlign
:
'left'
,
textAlign
:
'left'
,
},
},
...
@@ -633,7 +633,7 @@ export default {
...
@@ -633,7 +633,7 @@ export default {
top
:
'180rpx'
,
top
:
'180rpx'
,
left
:
'32rpx'
,
left
:
'32rpx'
,
fontSize
:
'28rpx'
,
fontSize
:
'28rpx'
,
color
:
'
#333333'
,
color
:
'#333333'
,
fontWeight
:
'bold'
,
fontWeight
:
'bold'
,
textAlign
:
'left'
,
textAlign
:
'left'
,
},
},
...
@@ -781,7 +781,7 @@ export default {
...
@@ -781,7 +781,7 @@ export default {
top
:
'200rpx'
,
top
:
'200rpx'
,
left
:
'32rpx'
,
left
:
'32rpx'
,
fontSize
:
'28rpx'
,
fontSize
:
'28rpx'
,
color
:
'
#333333'
,
color
:
'#333333'
,
fontWeight
:
'bold'
,
fontWeight
:
'bold'
,
textAlign
:
'left'
,
textAlign
:
'left'
,
},
},
...
@@ -904,7 +904,7 @@ export default {
...
@@ -904,7 +904,7 @@ export default {
top
:
'40rpx'
,
top
:
'40rpx'
,
left
:
'32rpx'
,
left
:
'32rpx'
,
fontSize
:
'28rpx'
,
fontSize
:
'28rpx'
,
color
:
'
#333333'
,
color
:
'#333333'
,
fontWeight
:
'bold'
,
fontWeight
:
'bold'
,
textAlign
:
'left'
,
textAlign
:
'left'
,
},
},
...
...
pages/index/bill/bill.vue
View file @
1f72cc2e
...
@@ -88,16 +88,18 @@ export default {
...
@@ -88,16 +88,18 @@ export default {
// this.initDate();
// this.initDate();
},
},
onReady
()
{
onReady
()
{
this
.
$refs
[
'scroll-box'
]?.
reloadList
();
this
.
firstEnter
=
false
this
.
firstEnter
=
false
;
},
},
onShow
()
{
onShow
()
{
console
.
log
(
'onShow'
);
if
(
!
this
.
firstEnter
)
{
if
(
!
this
.
firstEnter
)
{
if
(
this
.
current
==
0
)
{
if
(
this
.
current
==
0
)
{
this
.
$refs
[
'scroll-box'
]?.
reloadList
();
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'scroll-box'
].
reloadList
();
})
}
else
if
(
this
.
current
==
1
)
{
}
else
if
(
this
.
current
==
1
)
{
this
.
$refs
[
'chart-view'
]?.
reloadData
();
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'chart-view'
].
reloadData
();
})
}
}
// this.getMouthStatistics();
// this.getMouthStatistics();
}
}
...
...
pages/index/bill/components/scroll-box.vue
View file @
1f72cc2e
...
@@ -153,7 +153,7 @@ export default {
...
@@ -153,7 +153,7 @@ export default {
let
params
=
{
let
params
=
{
current
:
this
.
current
,
current
:
this
.
current
,
size
:
this
.
size
,
size
:
this
.
size
,
month
:
this
.
date
month
:
this
.
d
efaultD
ate
};
};
let
res
=
await
getList
(
params
);
let
res
=
await
getList
(
params
);
if
(
this
.
current
===
1
)
{
if
(
this
.
current
===
1
)
{
...
...
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