Lnews
Lnews
  • 发布:2016-10-11 09:42
  • 更新:2016-10-11 09:42
  • 阅读:974

【报Bug】

分类:HBuilder

详细问题描述
[内容]
plus.nativeUI.actionSheet 升级版本后,原生的这个弹出框样式内容都很差劲!!!

[代码片段]
//分享链接点击事件
document.getElementById("share").addEventListener('tap', function() {
var ids = [{
id: "weixin",
ex: "WXSceneSession"
}, {
id: "weixin",
ex: "WXSceneTimeline"
}, {
id: "sinaweibo"
}, {
id: "tencentweibo"
}, {
id: "qq"
}],
bts = [{
title: "发送给微信好友"
}, {
title: "分享到微信朋友圈"
}, {
title: "分享到新浪微博"
}, {
title: "分享到腾讯微博"
}, {
title: "分享到QQ"
}];
plus.nativeUI.actionSheet({
cancel: "取消",
buttons: bts
}, function(e) {
var i = e.index;
if (i > 0) {
var s_id = ids[i - 1].id;
var share = shares[s_id];
if (share) {
if (share.authenticated) {
shareMessage(share, ids[i - 1].ex);
} else {
share.authorize(function() {
shareMessage(share, ids[i - 1].ex);
}, function(e) {
console.log("认证授权失败:" + e.code + " - " + e.message);
});
}
} else {
mui.toast("无法获取分享服务,请检查manifest.json中分享插件参数配置,并重新打包")
}
}
});
});
[安装包]

联系方式
[QQ]
[电话]

2016-10-11 09:42 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复