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
54a4f691
Commit
54a4f691
authored
Jul 25, 2022
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 电子名片转发
parent
d72336ad
Pipeline
#2922
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
13 deletions
+42
-13
index.vue
pages/card/index.vue
+42
-13
No files found.
pages/card/index.vue
View file @
54a4f691
...
@@ -38,13 +38,19 @@
...
@@ -38,13 +38,19 @@
class=
"item-view"
class=
"item-view"
v-for=
"(item, index) in toolInfos"
v-for=
"(item, index) in toolInfos"
:key=
"index"
:key=
"index"
hover-class=
"u-hover-class"
@
click=
"handleClickTool(index)"
>
>
<view
class=
"image-view"
>
<u-button
<image
:src=
"item.image"
></image>
:open-type=
"item.openType"
</view>
:custom-style=
"customButtonStyle"
<view>
{{
item
.
text
}}
</view>
@
click=
"handleClickTool(index)"
>
<view
class=
"button-view"
>
<view
class=
"image-view"
>
<image
:src=
"item.image"
></image>
</view>
<view>
{{
item
.
text
}}
</view>
</view>
</u-button>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -61,7 +67,9 @@
...
@@ -61,7 +67,9 @@
hover-class=
"u-hover-class"
hover-class=
"u-hover-class"
@
click=
"handleChangeList(index)"
@
click=
"handleChangeList(index)"
>
>
<view
class=
"count-view"
>
{{
statistics
[
item
.
key
]
||
0
}}
</view>
<view
class=
"count-view"
>
{{
statistics
[
item
.
key
]
||
0
}}
</view>
<view>
{{
item
.
text
}}
</view>
<view>
{{
item
.
text
}}
</view>
</view>
</view>
<view
class=
"mark-view"
>
<view
class=
"mark-view"
>
...
@@ -133,7 +141,7 @@ export default {
...
@@ -133,7 +141,7 @@ export default {
}
}
},
},
computed
:
{
computed
:
{
...
mapGetters
([
'userInfo'
]),
...
mapGetters
([
'userInfo'
]),
baseUrl
()
{
baseUrl
()
{
return
process
.
uniEnv
.
qn_base_url
return
process
.
uniEnv
.
qn_base_url
},
},
...
@@ -178,12 +186,23 @@ export default {
...
@@ -178,12 +186,23 @@ export default {
return
[
return
[
{
text
:
'编辑'
,
image
:
this
.
baseUrl
+
'bianjimingpian@3x.png'
},
{
text
:
'编辑'
,
image
:
this
.
baseUrl
+
'bianjimingpian@3x.png'
},
{
text
:
'保存'
,
image
:
this
.
baseUrl
+
'baocunmingpian@3x.png'
},
{
text
:
'保存'
,
image
:
this
.
baseUrl
+
'baocunmingpian@3x.png'
},
{
text
:
'转发'
,
image
:
this
.
baseUrl
+
'zhuanfamingp@3x.png'
},
{
text
:
'转发'
,
image
:
this
.
baseUrl
+
'zhuanfamingp@3x.png'
,
openType
:
'share'
,
},
]
]
},
},
lastId
()
{
lastId
()
{
return
this
.
list
.
length
>
0
?
this
.
list
[
this
.
list
.
length
-
1
].
id
:
''
return
this
.
list
.
length
>
0
?
this
.
list
[
this
.
list
.
length
-
1
].
id
:
''
},
},
customButtonStyle
()
{
return
{
color
:
'transparent'
,
height
:
'80rpx'
,
width
:
'140rpx'
,
}
},
},
},
onLoad
()
{
onLoad
()
{
this
.
_freshing
=
false
this
.
_freshing
=
false
...
@@ -373,10 +392,20 @@ export default {
...
@@ -373,10 +392,20 @@ export default {
.item-view
{
.item-view
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.image-view
{
.button-view
{
width
:
32rpx
;
color
:
#333333
;
height
:
32rpx
;
font-weight
:
28rpx
;
margin-right
:
16rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
.image-view
{
width
:
32rpx
;
height
:
32rpx
;
margin-right
:
16rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
}
}
}
}
}
}
...
...
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