提交 43cbed7c 编写于 作者: DCloud_JSON's avatar DCloud_JSON

修复因图片路径调整导致的share图标出错

上级 7e4d083c
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
uniShare({ uniShare({
content: { //公共的分享类型(type)、链接(herf)、标题(title)、summary(描述)、imageUrl(缩略图) content: { //公共的分享类型(type)、链接(herf)、标题(title)、summary(描述)、imageUrl(缩略图)
type: 0, type: 0,
href: baseappConfig.h5.url + `/#/pages/list/detail?id=${_id}&title=${title}`, href: this.baseappConfig.h5.url + `/#/pages/list/detail?id=${_id}&title=${title}`,
title: this.title, title: this.title,
summary: excerpt, summary: excerpt,
imageUrl: avatar imageUrl: avatar
...@@ -198,9 +198,9 @@ ...@@ -198,9 +198,9 @@
scene: "WXSceneSession", scene: "WXSceneSession",
type: 5, type: 5,
miniProgram: { miniProgram: {
id: baseappConfig.mp.weixin.id, id: this.baseappConfig.mp.weixin.id,
path: `/pages/list/detail?id=${_id}&title=${title}`, path: `/pages/list/detail?id=${_id}&title=${title}`,
webUrl: baseappConfig.h5.url + webUrl: this.baseappConfig.h5.url +
`/#/pages/list/detail?id=${_id}&title=${title}`, `/#/pages/list/detail?id=${_id}&title=${title}`,
type: 0 type: 0
}, },
......
...@@ -58,7 +58,7 @@ import uniShare from 'uni_modules/uni-share/js_sdk/uni-share.js'; ...@@ -58,7 +58,7 @@ import uniShare from 'uni_modules/uni-share/js_sdk/uni-share.js';
imageUrl: logo imageUrl: logo
}, },
menus: [{ menus: [{
"img": "/static/sharemenu/wechatfriend.png", "img": "/static/app-plus/sharemenu/wechatfriend.png",
"text": "微信好友", "text": "微信好友",
"share": { "share": {
"provider": "weixin", "provider": "weixin",
...@@ -66,7 +66,7 @@ import uniShare from 'uni_modules/uni-share/js_sdk/uni-share.js'; ...@@ -66,7 +66,7 @@ import uniShare from 'uni_modules/uni-share/js_sdk/uni-share.js';
} }
}, },
{ {
"img": "/static/sharemenu/wechatmoments.png", "img": "/static/app-plus/sharemenu/wechatmoments.png",
"text": "微信朋友圈", "text": "微信朋友圈",
"share": { "share": {
"provider": "weixin", "provider": "weixin",
...@@ -74,26 +74,26 @@ import uniShare from 'uni_modules/uni-share/js_sdk/uni-share.js'; ...@@ -74,26 +74,26 @@ import uniShare from 'uni_modules/uni-share/js_sdk/uni-share.js';
} }
}, },
{ {
"img": "/static/sharemenu/weibo.png", "img": "/static/app-plus/sharemenu/weibo.png",
"text": "微博", "text": "微博",
"share": { "share": {
"provider": "sinaweibo" "provider": "sinaweibo"
} }
}, },
{ {
"img": "/static/sharemenu/qq.png", "img": "/static/app-plus/sharemenu/qq.png",
"text": "QQ", "text": "QQ",
"share": { "share": {
"provider": "qq" "provider": "qq"
} }
}, },
{ {
"img": "/static/sharemenu/copyurl.png", "img": "/static/app-plus/sharemenu/copyurl.png",
"text": "复制", "text": "复制",
"share": "copyurl" "share": "copyurl"
}, },
{ {
"img": "/static/sharemenu/more.png", "img": "/static/app-plus/sharemenu/more.png",
"text": "更多", "text": "更多",
"share": "shareSystem" "share": "shareSystem"
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册