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
1e160f2a
Commit
1e160f2a
authored
Jul 25, 2022
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 名片分享页
parent
6eb7425d
Pipeline
#2917
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
14 deletions
+30
-14
index.vue
components/cell-card-back/index.vue
+2
-1
share.vue
pages/card/share.vue
+28
-13
No files found.
components/cell-card-back/index.vue
View file @
1e160f2a
...
...
@@ -33,7 +33,7 @@ export default {
},
// green 绿;blue 蓝;black 黑;
image
()
{
switch
(
this
.
info
.
type
)
{
switch
(
this
.
info
.
coverUrl
)
{
case
'green'
:
return
this
.
baseUrl
+
'muban1fanmian@3x.png'
case
'blue'
:
...
...
@@ -85,6 +85,7 @@ export default {
font-weight
:
bold
;
color
:
#ffffff
;
margin-bottom
:
24rpx
;
text-align
:
center
;
}
}
}
...
...
pages/card/share.vue
View file @
1e160f2a
...
...
@@ -22,7 +22,7 @@
<view
class=
"right-view"
>
<u-button
:custom-style=
"customConFirm"
@
click=
"handleClickCon
F
irm"
@
click=
"handleClickCon
f
irm"
class=
"confirm-button"
>
<view
class=
"image-view"
>
...
...
@@ -32,6 +32,7 @@
</u-button>
</view>
</view>
<u-toast
ref=
"uToast"
/>
</view>
</
template
>
...
...
@@ -97,6 +98,9 @@ export default {
},
},
onLoad
(
options
)
{
// 测试数据
// options.cardId = '1551401777033641984'
// if (options && options.shareUserId) {
// this.shareUserId = options.shareUserId
// }
...
...
@@ -141,13 +145,10 @@ export default {
},
operateCall
()
{
this
.
loading
=
true
getBusinessCard
({
operateCall
({
businessCardId
:
this
.
cardId
,
})
.
then
((
res
)
=>
{
if
(
res
.
data
)
{
this
.
info
=
res
.
data
}
this
.
loading
=
false
})
.
catch
((
res
)
=>
{
...
...
@@ -156,13 +157,10 @@ export default {
},
operateView
()
{
this
.
loading
=
true
getBusinessCard
({
operateView
({
businessCardId
:
this
.
cardId
,
})
.
then
((
res
)
=>
{
if
(
res
.
data
)
{
this
.
info
=
res
.
data
}
this
.
loading
=
false
})
.
catch
((
res
)
=>
{
...
...
@@ -171,13 +169,10 @@ export default {
},
operateJoinList
()
{
this
.
loading
=
true
getBusinessCard
({
operateJoinList
({
businessCardId
:
this
.
cardId
,
})
.
then
((
res
)
=>
{
if
(
res
.
data
)
{
this
.
info
=
res
.
data
}
this
.
loading
=
false
})
.
catch
((
res
)
=>
{
...
...
@@ -185,9 +180,29 @@ export default {
})
},
handleClickCall
()
{
if
(
this
.
info
.
phone
)
{
uni
.
makePhoneCall
({
phoneNumber
:
this
.
info
.
phone
,
})
}
this
.
operateCall
()
},
handleClickConfirm
()
{
uni
.
addPhoneContact
({
nickName
:
this
.
info
.
name
,
mobilePhoneNumber
:
this
.
info
.
phone
,
success
:
()
=>
{
this
.
$refs
.
uToast
.
show
({
title
:
'保存成功'
,
type
:
'success'
,
duration
:
1500
,
callback
:
()
=>
{},
})
},
fail
:
()
=>
{
console
.
log
(
'fail'
)
},
})
this
.
operateJoinList
()
},
// 朋友圈
...
...
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