Authored by 李靖

app分享

... ... @@ -14,8 +14,8 @@ const domains = {
// api: 'http://192.168.103.59:8080/gateway',
// service: 'http://192.168.103.59:8080/gateway',
api: 'http://api-test2.yohops.com:9999/',
service: 'http://service-test2.yohops.com:9999/',
api: 'http://api-test3.yohops.com:9999/',
service: 'http://service-test3.yohops.com:9999/',
singleApi: 'http://api-test2.yohops.com:9999/',
global: 'http://global-test-soa.yohops.com:9999',
liveApi: 'http://testapi.live.yohops.com:9999/',
... ...
... ... @@ -22,6 +22,26 @@ require('./detail/recommend-for-you-product-desc');
let detailFuns = require('./detail/functions');
let productName = $('.goods-name .name').text();
let productPic = $('.banner-container').find('img:first').attr('src');
if (productPic && productPic.indexOf('http:') < 0) {
productPic = `http:${productPic}`;
}
let shareData = {
title: `推荐这本城市指南给你:${productName}`,
link: location.href,
desc: '最近很多 KOL 在推!据说是探索城市必备神器',
desCircle: `最近刷屏的这个城市指南终于可以买到了!${productName}`,
imgUrl: productPic
};
if (yoho.isMarsApp) {
yoho.ready(function() {
yoho.invokeMethod('set.shareInfo', shareData);
});
}
window.rePosFooter && window.rePosFooter();
setTimeout(() => {
... ...