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

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

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