Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
dcd16369
Commit
dcd16369
authored
Mar 18, 2026
by
yuzhenWang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-20260203-解决外部跳转页面登录问题' into 'dev'
修改我的名片分享没有图标 See merge request
!95
parents
e3ffa648
3a798a5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
10 deletions
+27
-10
myPackageA/businessCard/businessCard.vue
+27
-10
No files found.
myPackageA/businessCard/businessCard.vue
View file @
dcd16369
...
...
@@ -36,11 +36,13 @@
</view>
<view
class=
"introductContent"
>
<view
v-for=
"item in infoList"
:key=
"item.id"
class=
"infoCon"
@
click=
"handleInfo(item)"
>
<view
class=
"iconfont infoIcon"
:class=
"`$
{item.icon}`">
</view>
<view
class=
"infoTxt"
>
{{
item
.
value
}}
</view>
<template
v-if=
"item.value"
>
<view
class=
"iconfont infoIcon"
:class=
"`$
{item.icon}`">
</view>
<view
class=
"infoTxt"
>
{{
item
.
value
}}
</view>
</
template
>
</view>
</view>
</view>
...
...
@@ -244,7 +246,7 @@
import
BootPage
from
"@/components/bootpage/bootpage.vue"
;
import
dataHandling
from
"@/util/dataHandling"
;
import
customSegmentedControl
from
'@/components/customSegmentedControl/customSegmentedControl.vue'
;
import
wx
from
'weixin-js-sdk'
export
default
{
name
:
'businessCard'
,
components
:
{
...
...
@@ -418,17 +420,19 @@
title
:
`
${
this
.
cardInfo
.
userName
}
|
${
this
.
cardInfo
.
companyInfoList
[
0
].
position
}
-
${
this
.
cardInfo
.
companyInfoList
[
0
].
companyName
}
`
,
desc
:
'AI普惠型新家办领创家庭财事治理蓝海生态'
,
link
:
`
${
shareURL
}
/myPackageA/businessCard/businessCard?userId=
${
this
.
userId
}
&cardId=
${
this
.
cardId
}
&isShareCard=1`
,
//分享链接
imgUrl
:
`
${
shareURL
}
/
myPackageA/static/images
/suplogo.png`
,
//图片
imgUrl
:
`
${
shareURL
}
/
static
/suplogo.png`
,
//图片
}
var
url
=
window
.
location
.
href
.
split
(
'#'
)[
0
]
hshare
(
data
,
url
)
},
// 分享状态下获取名片信息
getShareCard
()
{
console
.
log
(
'获取分享名片'
);
api
.
getShareBusinessCard
(
this
.
cardId
).
then
(
res
=>
{
if
(
res
[
'success'
])
{
this
.
cardInfo
=
res
.
data
.
data
this
.
cardId
=
res
.
data
.
data
.
id
// this.infoList[0].value = this.cardInfo.phone || '暂无'
...
...
@@ -438,11 +442,12 @@
this
.
infoList
[
0
].
value
=
'暂无'
}
this
.
btnList
[
1
].
phoneNumber
=
this
.
cardInfo
.
phone
||
null
this
.
infoList
[
1
].
value
=
this
.
cardInfo
.
email
||
'暂无'
this
.
infoList
[
1
].
value
=
this
.
cardInfo
.
email
||
null
this
.
infoList
[
2
].
value
=
this
.
cardInfo
.
address
||
'暂无'
if
(
dataHandling
.
h5RuntimeEnv
()
!==
'miniprogram'
)
{
this
.
getshareData
()
}
console
.
log
(
'cardInfo'
,
this
.
cardInfo
);
}
else
{
uni
.
showToast
({
title
:
res
[
'message'
],
...
...
@@ -469,7 +474,7 @@
this
.
infoList
[
0
].
value
=
'暂无'
}
this
.
btnList
[
1
].
phoneNumber
=
this
.
cardInfo
.
phone
||
null
this
.
infoList
[
1
].
value
=
this
.
cardInfo
.
email
||
'暂无'
this
.
infoList
[
1
].
value
=
this
.
cardInfo
.
email
||
null
this
.
infoList
[
2
].
value
=
this
.
cardInfo
.
address
||
'暂无'
// this.cardInfo.companyInfoList = [
// {companyName:'上海律宝科技有限公司',position:'副总经理'},
...
...
@@ -553,7 +558,19 @@
if
(
dataHandling
.
h5RuntimeEnv
()
!==
'miniprogram'
)
{
this
.
getshareData
()
}
// if(dataHandling.h5RuntimeEnv() == 'miniprogram'){
// let data = {
// title: ` ${this.cardInfo.userName}| ${this.cardInfo.companyInfoList[0].position} - ${this.cardInfo.companyInfoList[0].companyName}`,
// desc: 'AI普惠型新家办领创家庭财事治理蓝海生态',
// link: `${shareURL}/myPackageA/businessCard/businessCard?userId=${this.userId}&cardId=${this.cardId}&isShareCard=1`, //分享链接
// imgUrl: `${shareURL}/myPackageA/static/images/suplogo.png`, //图片
// }
// // 这里应该给小程序的webview发消息,不知道该怎样发送?此时
// wx.miniProgram.navigateTo({
// url: `/myPackageA/h5Pay/appYdhomeofficePay?param=${encodeURIComponent(JSON.stringify(param))}`
// })
// }
}
},
//关闭登录
...
...
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