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
9dc2cc9f
Commit
9dc2cc9f
authored
Jul 27, 2022
by
Facius
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.banshouhui.com/liuwenhu/account-book
parents
f5974573
d15d4072
Pipeline
#2976
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
11 deletions
+62
-11
bill-detail.vue
pages/bill/bill-detail/bill-detail.vue
+62
-11
No files found.
pages/bill/bill-detail/bill-detail.vue
View file @
9dc2cc9f
...
...
@@ -11,7 +11,11 @@
<view
class=
"card-title"
>
{{
detail
.
classification
&&
detail
.
classification
.
name
}}
</view>
<view
class=
"card-subtitle"
>
{{
detail
.
amount
}}
</view>
</view>
<view
class=
"card-line"
></view>
<view
class=
"card-line"
>
<view
class=
"card-line-border"
></view>
<view
class=
"card-line-view card-line-up"
></view>
<view
class=
"card-line-view card-line-down"
></view>
</view>
<view
class=
"card-bdoy"
>
<view
class=
"item"
v-for=
"(item, index) in list"
:key=
"index"
>
<view
class=
"item-label"
>
{{
item
.
label
}}
</view>
...
...
@@ -40,9 +44,9 @@
import
AbButton
from
'@/components/common/ab-button.vue'
;
import
PopInput
from
'@/components/pop-input-view'
;
import
BillingDetails
from
'@/components/billing-daily/billing-daily.vue'
;
import
{
billStaticBaseUrl
}
from
'@/utils/config.js'
;
import
{
billStaticBaseUrl
,
billBaseUrl
}
from
'@/utils/config.js'
;
import
{
get
}
from
'@/api/bill/index.js'
;
import
{
deleteByIds
}
from
'@/api/bill/daily.js'
;
import
{
deleteByIds
}
from
'@/api/bill/daily.js'
;
export
default
{
components
:
{
AbButton
,
...
...
@@ -52,6 +56,7 @@ export default {
data
()
{
return
{
billStaticBaseUrl
,
lineImage
:
billBaseUrl
+
'fengexuxian@3x.png'
,
showConfirm
:
false
,
id
:
''
,
type
:
''
,
...
...
@@ -86,7 +91,7 @@ export default {
value
:
'remark'
}
],
firstEnter
:
true
firstEnter
:
true
};
},
onLoad
(
options
)
{
...
...
@@ -102,7 +107,7 @@ export default {
}
},
onShow
()
{
if
(
!
this
.
firstEnter
&&
this
.
id
)
{
if
(
!
this
.
firstEnter
&&
this
.
id
)
{
this
.
getDetail
();
}
},
...
...
@@ -118,7 +123,7 @@ export default {
}
catch
(
e
)
{
//TODO handle the exception
}
this
.
firstEnter
=
false
this
.
firstEnter
=
false
;
},
toDelete
()
{
this
.
showConfirm
=
true
;
...
...
@@ -134,15 +139,15 @@ export default {
let
params
=
{
id
:
this
.
detail
.
id
};
let
{
data
}
=
await
deleteByIds
(
params
);
if
(
data
)
{
let
{
data
}
=
await
deleteByIds
(
params
);
if
(
data
)
{
this
.
showToast
(
'删除成功'
,
true
);
setTimeout
(()
=>
{
uni
.
navigateBack
({
delta
:
1
});
},
1500
);
}
else
{
}
else
{
this
.
showToast
(
'删除失败'
);
}
}
catch
(
e
)
{
...
...
@@ -150,7 +155,7 @@ export default {
let
{
msg
}
=
e
;
if
(
msg
)
{
this
.
showToast
(
msg
);
}
else
{
}
else
{
this
.
showToast
(
'删除失败'
);
}
//TODO handle the exception
...
...
@@ -229,7 +234,53 @@ page {
}
&
-line
{
width
:
100%
;
height
:
24upx
;
height
:
24rpx
;
position
:
relative
;
overflow
:
hidden
;
background-color
:
#ffffff
;
margin-bottom
:
-1px
;
margin-top
:
-1px
;
&
-view
{
position
:
absolute
;
width
:
24rpx
;
height
:
24rpx
;
border-radius
:
50%
;
background-color
:
$default-color
;
top
:
0
;
z-index
:
2
;
}
&
-border
{
position
:
absolute
;
left
:
0
;
top
:
50%
;
transform
:
translateY
(
-50%
);
z-index
:
1
;
height
:
0px
;
width
:
100%
;
border-bottom
:
1px
dashed
#f6f7fa
;
// &:before {
// content: ' ';
// position: absolute;
// left: 0;
// top: 0;
// width: 100%;
// height: 1px;
// border-top: 1px dashed #f6f7fa;
// color: #f6f7fa;
// -webkit-transform-origin: 0 0;
// transform-origin: 0 0;
// -webkit-transform: scaleY(0.5);
// transform: scaleY(0.5);
// }
}
&
-up
{
left
:
0
;
transform
:
translateX
(
-50%
);
}
&
-down
{
right
:
0
;
transform
:
translateX
(
50%
);
}
}
&
-bdoy
{
background
:
#ffffff
;
...
...
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