...
|
...
|
@@ -28,11 +28,11 @@ const XianyuJSBridge = { |
|
|
},
|
|
|
|
|
|
// 导航栏右侧自定义按钮 设为可见
|
|
|
setNavRightItem (shareParam = null) {
|
|
|
setNavRightItem (shareParam = null, handler) {
|
|
|
console.log('setNavRightItem', shareParam);
|
|
|
|
|
|
window._xianyuShare = () => {
|
|
|
this.setXianyuShare(shareParam);
|
|
|
this.setXianyuShare(shareParam, handler);
|
|
|
}
|
|
|
if (this.isAliApp && window.WindVane) {
|
|
|
window.WindVane.call('WVIdleFishApi', 'setNavigatorRightItem', {
|
...
|
...
|
@@ -61,11 +61,14 @@ const XianyuJSBridge = { |
|
|
link: '//xianyu.yohobuy.com/xianyu/index/channel?wxIsAvailable', // 和url保持
|
|
|
title: '闲鱼潮品首页', // 分享标题
|
|
|
text: '' // 分享描述
|
|
|
}) {
|
|
|
}, { XY_SHARE_H5, XY_SHARE_TYPE }) {
|
|
|
if (this.isAliApp && window.WindVane) {
|
|
|
XY_SHARE_H5.call(this);
|
|
|
window.WindVane.call('WVIdleFishApi', 'showShareMenu', param, (data) => {
|
|
|
console.log('success:', JSON.stringify(data), typeof data.isCancel);
|
|
|
// if (data.isCancel === 'false') {}
|
|
|
if (data.isCancel === 'false') {
|
|
|
XY_SHARE_TYPE.call(this, data);
|
|
|
}
|
|
|
}, function(e) {
|
|
|
console.log('fail:', JSON.stringify(e));
|
|
|
});
|
...
|
...
|
|