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

open banner

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