...
|
...
|
@@ -38,11 +38,21 @@ let shareData = { |
|
|
imgUrl: productPic
|
|
|
};
|
|
|
|
|
|
if (yoho.isMarsApp || yoho.isNowApp) {
|
|
|
yoho.ready(function() {
|
|
|
let nowShareData = {
|
|
|
title: `推荐这本城市指南给你:${productName}`,
|
|
|
link: location.href.split('?')[0],
|
|
|
desc: '最近很多 KOL 在推!据说是探索城市必备神器',
|
|
|
desCircle: `最近被刷屏的这本城市指南终于可以买到了!${productName}`,
|
|
|
imgUrl: productPic
|
|
|
};
|
|
|
|
|
|
yoho.ready(function() {
|
|
|
if (yoho.isMarsApp) {
|
|
|
yoho.invokeMethod('set.shareInfo', shareData);
|
|
|
});
|
|
|
}
|
|
|
} else if (yoho.isNowApp) {
|
|
|
yoho.invokeMethod('set.shareInfo', nowShareData);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
window.rePosFooter && window.rePosFooter();
|
|
|
|
...
|
...
|
|