提交 2b257a59 编写于 作者: 芊里

open banner

上级 69e1de72
...@@ -170,13 +170,13 @@ ...@@ -170,13 +170,13 @@
*/ */
clickBannerItem(item) { clickBannerItem(item) {
// 有外部链接-跳转url // 有外部链接-跳转url
if (item.open_url) { if (item.open_url) {
//#ifdef APP-PLUS uni.navigateTo({
plus.runtime.openWeb(item.open_url); url: '/pages/common/webview/webview?url='+item.open_url+'&title='+item.title,
//#endif success: res => {},
//#ifdef H5 fail: () => {},
window.open(item.open_url) complete: () => {}
//#endif });
} }
// 其余业务处理 // 其余业务处理
}, },
......
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
//#ifdef APP-PLUS //#ifdef APP-PLUS
if(item.name == 'more'){ if(item.name == 'more'){
// "其他"选项 // "复制链接"选项
uni.setClipboardData({ uni.setClipboardData({
data: 'http://uniapp.dcloud.io/', data: 'http://uniapp.dcloud.io/',
success: function () { success: function () {
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
}); });
} else { } else {
uni.share({ uni.share({
provider: "weixin", provider: item.name,
scene: "WXSceneSession", scene: "WXSceneSession",
type: 0, type: 0,
href: "http://uniapp.dcloud.io/", href: "http://uniapp.dcloud.io/",
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
bottomData: [{ bottomData: [{
text: '微信', text: '微信',
icon: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/c2b17470-50be-11eb-b680-7980c8a877b8.png', icon: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/c2b17470-50be-11eb-b680-7980c8a877b8.png',
name: 'wx' name: 'weixin'
}, },
{ {
text: 'QQ', text: 'QQ',
...@@ -41,12 +41,12 @@ ...@@ -41,12 +41,12 @@
{ {
text: '新浪', text: '新浪',
icon: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/0dacdbe0-50bf-11eb-8ff1-d5dcf8779628.png', icon: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/0dacdbe0-50bf-11eb-8ff1-d5dcf8779628.png',
name: 'sina' name: 'sinaweibo'
}, },
{ {
text: '复制链接', text: '复制链接',
icon: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/2e0fdfe0-50bf-11eb-b997-9918a5dda011.png', icon: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/2e0fdfe0-50bf-11eb-b997-9918a5dda011.png',
name: 'more' name: 'copy'
} }
] ]
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册