Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
mongo-ui
Commits
9df882de
Commit
9df882de
authored
Sep 01, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 分享
parent
24efd57b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
11 deletions
+23
-11
shareInfo.js
src/api/shareInfo.js
+20
-9
wxJsSdk.js
src/service/wxJsSdk.js
+3
-2
No files found.
src/api/shareInfo.js
View file @
9df882de
...
@@ -7,66 +7,76 @@ const shareList = {
...
@@ -7,66 +7,76 @@ const shareList = {
desc
:
desc
:
"
「芒果保险」是专注于健康保障的互联网保险严选平台,为用户挑选性价比高、更适合自己的保险产品,让每个家庭都有备无患。
"
,
"
「芒果保险」是专注于健康保障的互联网保险严选平台,为用户挑选性价比高、更适合自己的保险产品,让每个家庭都有备无患。
"
,
url
:
currentOrigin
+
"
/home
"
,
url
:
currentOrigin
+
"
/home
"
,
authUrl
:
currentOrigin
+
"
/home
"
,
imgUrl
:
logo
imgUrl
:
logo
},
},
smartmeasure
:
{
smartmeasure
:
{
title
:
"
【芒果保险】智能风险评测
"
,
title
:
"
【芒果保险】智能风险评测
"
,
desc
:
"
「芒果保险」不知道怎么买保险?AI小果为您提供30S快速评测,推荐最适合你的保险。
"
,
desc
:
"
「芒果保险」不知道怎么买保险?AI小果为您提供30S快速评测,推荐最适合你的保险。
"
,
url
:
currentOrigin
+
"
home/smart-measure
"
,
url
:
currentOrigin
+
"
/home?to=smart-measure
"
,
authUrl
:
currentOrigin
+
"
/home
"
,
imgUrl
:
currentOrigin
+
"
/shareImg/ai.png
"
imgUrl
:
currentOrigin
+
"
/shareImg/ai.png
"
},
},
activity
:
{
activity
:
{
title
:
"
最高18888元红包 抽!抽!抽!
"
,
title
:
"
最高18888元红包 抽!抽!抽!
"
,
desc
:
"
100%中奖!「芒果保险」老用户专享,参与投票即可抽取最高18888元红包
"
,
desc
:
"
100%中奖!「芒果保险」老用户专享,参与投票即可抽取最高18888元红包
"
,
url
:
currentOrigin
+
"
home/activity
"
,
authUrl
:
currentOrigin
+
"
/home
"
,
url
:
currentOrigin
+
"
/home?to=activity
"
,
imgUrl
:
currentOrigin
+
"
/shareImg/activity.jpg
"
imgUrl
:
currentOrigin
+
"
/shareImg/activity.jpg
"
},
},
goods
:
{
goods
:
{
title
:
"
【芒果保险】好保险,省钱买
"
,
title
:
"
【芒果保险】好保险,省钱买
"
,
desc
:
desc
:
"
「芒果保险」是专注于健康保障的互联网保险严选平台,为用户挑选性价比高、更适合自己的保险产品,让每个家庭都有备无患。
"
,
"
「芒果保险」是专注于健康保障的互联网保险严选平台,为用户挑选性价比高、更适合自己的保险产品,让每个家庭都有备无患。
"
,
url
:
currentOrigin
+
"
goods
"
,
url
:
currentOrigin
+
"
/goods
"
,
authUrl
:
currentOrigin
+
"
/home
"
,
imgUrl
:
logo
imgUrl
:
logo
},
},
consultant
:
{
consultant
:
{
title
:
"
【芒果保险】限时优惠!0.99元聘请芒果保险顾问,1对1量身定制
"
,
title
:
"
【芒果保险】限时优惠!0.99元聘请芒果保险顾问,1对1量身定制
"
,
desc
:
desc
:
"
「芒果保险」1对1保险顾问,帮您最高节省50%保费,为你量身选保险!顾问团队是由资深保险精算师组成,将秉承中立客观的服务态度,进行条款解读。
"
,
"
「芒果保险」1对1保险顾问,帮您最高节省50%保费,为你量身选保险!顾问团队是由资深保险精算师组成,将秉承中立客观的服务态度,进行条款解读。
"
,
url
:
currentOrigin
+
"
consultant
"
,
url
:
currentOrigin
+
"
/consultant
"
,
authUrl
:
currentOrigin
+
"
/consultant
"
,
imgUrl
:
currentOrigin
+
"
/shareImg/advisor.png
"
imgUrl
:
currentOrigin
+
"
/shareImg/advisor.png
"
},
},
user
:
{
user
:
{
title
:
"
【芒果保险】好保险,省钱买
"
,
title
:
"
【芒果保险】好保险,省钱买
"
,
desc
:
desc
:
"
「芒果保险」是专注于健康保障的互联网保险严选平台,为用户挑选性价比高、更适合自己的保险产品,让每个家庭都有备无患。
"
,
"
「芒果保险」是专注于健康保障的互联网保险严选平台,为用户挑选性价比高、更适合自己的保险产品,让每个家庭都有备无患。
"
,
url
:
currentOrigin
+
"
user
"
,
url
:
currentOrigin
+
"
/user
"
,
authUrl
:
currentOrigin
+
"
/user
"
,
imgUrl
:
logo
imgUrl
:
logo
},
},
tkylx001detail
:
{
tkylx001detail
:
{
title
:
"
【芒果保险】万家保·百万医疗险
"
,
title
:
"
【芒果保险】万家保·百万医疗险
"
,
desc
:
desc
:
"
「报销型医疗险」最高600万全面医疗保障,120种重大疾病医疗0免赔,30天~65周岁均可保,70种抗癌特药定期上新,免费提供住院费用垫付服务等一站式就医服务。
"
,
"
「报销型医疗险」最高600万全面医疗保障,120种重大疾病医疗0免赔,30天~65周岁均可保,70种抗癌特药定期上新,免费提供住院费用垫付服务等一站式就医服务。
"
,
url
:
currentOrigin
+
"
goods/detail?id=TKYLX001
"
,
url
:
currentOrigin
+
"
/goods?to=TKYLX001
"
,
authUrl
:
currentOrigin
+
"
/goods
"
,
imgUrl
:
currentOrigin
+
"
/shareImg/goods-01.png
"
imgUrl
:
currentOrigin
+
"
/shareImg/goods-01.png
"
},
},
htdqzjx001detail
:
{
htdqzjx001detail
:
{
title
:
"
【芒果保险】万家保·重疾轻症险
"
,
title
:
"
【芒果保险】万家保·重疾轻症险
"
,
desc
:
desc
:
"
「给付型重疾险」100种重症+40种轻症确诊即赔,轻症赔付后,重疾保障继续有效。30天~60周岁均可保。
"
,
"
「给付型重疾险」100种重症+40种轻症确诊即赔,轻症赔付后,重疾保障继续有效。30天~60周岁均可保。
"
,
url
:
currentOrigin
+
"
goods/detail?id=HTDQZJX001
"
,
url
:
currentOrigin
+
"
/goods?to=HTDQZJX001
"
,
authUrl
:
currentOrigin
+
"
/goods
"
,
imgUrl
:
currentOrigin
+
"
/shareImg/goods-02.png
"
imgUrl
:
currentOrigin
+
"
/shareImg/goods-02.png
"
},
},
zaywx001detail
:
{
zaywx001detail
:
{
title
:
"
【芒果保险】万家保·综合意外险
"
,
title
:
"
【芒果保险】万家保·综合意外险
"
,
desc
:
"
「给付型意外险」意外风险覆盖全,保额最高100万,猝死也可赔。
"
,
desc
:
"
「给付型意外险」意外风险覆盖全,保额最高100万,猝死也可赔。
"
,
url
:
currentOrigin
+
"
goods/detail?id=ZAYWX001
"
,
url
:
currentOrigin
+
"
/goods?to=ZAYWX001
"
,
authUrl
:
currentOrigin
+
"
/goods
"
,
imgUrl
:
currentOrigin
+
"
/shareImg/goods-03.png
"
imgUrl
:
currentOrigin
+
"
/shareImg/goods-03.png
"
},
},
hgsx001detail
:
{
hgsx001detail
:
{
title
:
"
【芒果保险】华贵大麦2020定期寿险
"
,
title
:
"
【芒果保险】华贵大麦2020定期寿险
"
,
desc
:
desc
:
"
「定期寿险」家庭主要收入贡献者的必备保险,最高可赔350万。免体检,责任免除仅3条,1~6类职业均可保,健康告知仅3条。
"
,
"
「定期寿险」家庭主要收入贡献者的必备保险,最高可赔350万。免体检,责任免除仅3条,1~6类职业均可保,健康告知仅3条。
"
,
url
:
currentOrigin
+
"
/goods/detail?id=HGSX001
"
,
url
:
currentOrigin
+
"
/goods?to=HGSX001
"
,
authUrl
:
currentOrigin
+
"
/goods
"
,
imgUrl
:
currentOrigin
+
"
/shareImg/goods-04.png
"
imgUrl
:
currentOrigin
+
"
/shareImg/goods-04.png
"
},
},
policydetail
:
{
policydetail
:
{
...
@@ -74,6 +84,7 @@ const shareList = {
...
@@ -74,6 +84,7 @@ const shareList = {
desc
:
desc
:
"
「芒果保险」是专注于健康保障的互联网保险严选平台,为用户挑选性价比高、更适合自己的保险产品,让每个家庭都有备无患。
"
,
"
「芒果保险」是专注于健康保障的互联网保险严选平台,为用户挑选性价比高、更适合自己的保险产品,让每个家庭都有备无患。
"
,
url
:
currentOrigin
+
"
/user
"
,
url
:
currentOrigin
+
"
/user
"
,
authUrl
:
currentOrigin
+
"
/user
"
,
imgUrl
:
logo
imgUrl
:
logo
}
}
};
};
...
...
src/service/wxJsSdk.js
View file @
9df882de
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Description: weixin-js-sdk
* @Description: weixin-js-sdk
* @LastEditors: gzw
* @LastEditors: gzw
* @Date: 20120-08-30 18:40:11
* @Date: 20120-08-30 18:40:11
* @LastEditTime: 2020-09-01 2
0:08:11
* @LastEditTime: 2020-09-01 2
1:00:22
*/
*/
import
cfg
from
"
@/config/index
"
;
import
cfg
from
"
@/config/index
"
;
import
{
getwxAuth
}
from
"
@/api/user
"
;
import
{
getwxAuth
}
from
"
@/api/user
"
;
...
@@ -18,12 +18,13 @@ export async function setShare({
...
@@ -18,12 +18,13 @@ export async function setShare({
title
=
""
,
title
=
""
,
desc
=
""
,
desc
=
""
,
link
=
window
.
location
.
origin
,
link
=
window
.
location
.
origin
,
authUrl
=
window
.
location
.
origin
,
imgUrl
=
""
imgUrl
=
""
})
{
})
{
// console.log(title, desc, link, imgUrl);
// console.log(title, desc, link, imgUrl);
const
res
=
await
getwxAuth
({
const
res
=
await
getwxAuth
({
appId
:
cfg
.
wxAppId
,
appId
:
cfg
.
wxAppId
,
url
:
link
url
:
authUrl
});
});
const
{
appId
,
timestamp
,
nonceStr
,
signature
}
=
res
;
const
{
appId
,
timestamp
,
nonceStr
,
signature
}
=
res
;
wx
.
config
({
wx
.
config
({
...
...
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