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
6182ffc6
Commit
6182ffc6
authored
Aug 16, 2022
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 名片滑动查看
parent
c2d8a26c
Pipeline
#3240
canceled with stages
Changes
5
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
97 additions
and
13 deletions
+97
-13
index.vue
components/cell-card-swiper/index.vue
+83
-0
index.vue
components/cell-card/index.vue
+1
-5
index.vue
pages/card/index.vue
+3
-3
chart-view.vue
pages/index/bill/components/chart-view.vue
+3
-2
create.vue
pages/maintain-bill/create.vue
+7
-3
No files found.
components/cell-card-swiper/index.vue
0 → 100644
View file @
6182ffc6
<
template
>
<view
class=
"cell-card"
hover-class=
"u-hover-class"
@
click
.
stop=
"$u.throttle(handleClickCard, 500)"
>
<swiper
class=
"swiper"
:indicator-dots=
"true"
indicator-color=
"rgba(252, 184, 42, 0.45)"
indicator-active-color=
"#FCB82A"
style=
"height: 420rpx"
>
<swiper-item>
<Card
ref=
"card"
:info=
"info"
@
save=
"handleCanvas"
@
update=
"handleUpdate"
/>
</swiper-item>
<swiper-item>
<CardBack
ref=
"cardBack"
:info=
"info"
@
save=
"handleCanvasBack"
/>
</swiper-item>
</swiper>
</view>
</
template
>
<
script
>
import
Card
from
'@/components/cell-card'
import
CardBack
from
'@/components/cell-card-back'
export
default
{
components
:
{
Card
,
CardBack
,
},
props
:
{
info
:
{
type
:
Object
,
default
()
{
return
{}
},
},
},
data
()
{
return
{}
},
computed
:
{},
methods
:
{
updateImage
()
{
this
.
$refs
.
card
.
updateImage
()
},
saveImage
()
{
this
.
$refs
.
card
.
saveImage
()
return
this
.
$refs
.
cardBack
.
saveImage
()
},
handleClickCard
()
{
this
.
$emit
(
'click'
)
},
handleCanvas
(
res
)
{
this
.
$emit
(
'save'
,
res
)
},
handleUpdate
(
url
)
{
this
.
$emit
(
'update'
,
url
)
},
handleCanvasBack
(
res
)
{
this
.
$refs
.
card
.
saveImage
()
},
},
}
</
script
>
<
style
scoped
lang=
"scss"
>
.cell-card
{
width
:
100%
;
height
:
420rpx
;
border-radius
:
16rpx
;
background-color
:
#ffffff
;
position
:
relative
;
overflow
:
hidden
;
}
</
style
>
components/cell-card/index.vue
View file @
6182ffc6
<
template
>
<
template
>
<view
<view
class=
"cell-card"
>
class=
"cell-card"
hover-class=
"u-hover-class"
@
click
.
stop=
"$u.throttle(handleClick, 500)"
>
<template
v-if=
"isGreen"
>
<template
v-if=
"isGreen"
>
<view
class=
"back-view"
>
<view
class=
"back-view"
>
<image
:src=
"settings.image"
></image>
<image
:src=
"settings.image"
></image>
...
...
pages/card/index.vue
View file @
6182ffc6
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
</view>
</view>
<template
v-else
>
<template
v-else
>
<view
class=
"card-content"
>
<view
class=
"card-content"
>
<Card
<Card
Swiper
ref=
"card"
ref=
"card"
:info=
"info"
:info=
"info"
@
click=
"handleClickCard"
@
click=
"handleClickCard"
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
<
script
>
<
script
>
import
NavbarRight
from
'@/components/navbar-right'
import
NavbarRight
from
'@/components/navbar-right'
import
NoData
from
'@/components/no-data'
import
NoData
from
'@/components/no-data'
import
Card
from
'@/components/cell-card
'
import
Card
Swiper
from
'@/components/cell-card-swiper
'
import
CellRelation
from
'@/components/cell-relation'
import
CellRelation
from
'@/components/cell-relation'
import
{
import
{
getBusinessCardSelf
,
getBusinessCardSelf
,
...
@@ -128,7 +128,7 @@ export default {
...
@@ -128,7 +128,7 @@ export default {
components
:
{
components
:
{
NavbarRight
,
NavbarRight
,
NoData
,
NoData
,
Card
,
Card
Swiper
,
CellRelation
,
CellRelation
,
},
},
data
()
{
data
()
{
...
...
pages/index/bill/components/chart-view.vue
View file @
6182ffc6
...
@@ -205,7 +205,7 @@ export default {
...
@@ -205,7 +205,7 @@ export default {
date
:
this
.
$u
.
timeFormat
(
new
Date
().
getTime
(),
'yyyy-mm'
)
+
'-01'
,
date
:
this
.
$u
.
timeFormat
(
new
Date
().
getTime
(),
'yyyy-mm'
)
+
'-01'
,
daterange
:
[],
daterange
:
[],
showDatePicker
:
false
,
showDatePicker
:
false
,
infoIndex
:
0
,
infoIndex
:
1
,
info
:
{},
info
:
{},
loading
:
false
,
loading
:
false
,
triggered
:
true
,
triggered
:
true
,
...
@@ -693,12 +693,13 @@ export default {
...
@@ -693,12 +693,13 @@ export default {
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
padding
:
0
24rpx
;
padding
:
0
24rpx
;
font-size
:
24rpx
;
.left-view
{
.left-view
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.item-view
{
.item-view
{
height
:
48rpx
;
height
:
48rpx
;
width
:
104
rpx
;
width
:
96
rpx
;
line-height
:
48rpx
;
line-height
:
48rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#8d8d8d
;
color
:
#8d8d8d
;
...
...
pages/maintain-bill/create.vue
View file @
6182ffc6
...
@@ -277,14 +277,18 @@ export default {
...
@@ -277,14 +277,18 @@ export default {
if
(
this
.
billId
)
{
if
(
this
.
billId
)
{
this
.
repairDetail
();
this
.
repairDetail
();
}
else
{
this
.
getLocation
();
}
}
uni
.
$on
(
'maintain-bill-detail'
,
(
res
)
=>
{
this
.
repairDetail
()
})
this
.
getLocation
();
},
},
onReady
()
{
onReady
()
{
this
.
$refs
.
uForm
.
setRules
(
this
.
rules
);
this
.
$refs
.
uForm
.
setRules
(
this
.
rules
);
},
},
onUnload
()
{},
onUnload
()
{
uni
.
$off
(
'maintain-bill-detail'
)
},
onShow
()
{},
onShow
()
{},
methods
:
{
methods
:
{
preview
()
{
preview
()
{
...
...
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