...
|
...
|
@@ -9,6 +9,7 @@ |
|
|
const Promise = require('bluebird');
|
|
|
const co = Promise.coroutine;
|
|
|
const moment = require('moment');
|
|
|
const url = require('url');
|
|
|
const _ = require('lodash');
|
|
|
const helpers = global.yoho.helpers;
|
|
|
|
...
|
...
|
@@ -729,7 +730,7 @@ const _detailDataPkg = (origin, uid, vipLevel) => { |
|
|
}
|
|
|
|
|
|
// 分享相关,产品的链接
|
|
|
result.weixinUrl = helpers.urlFormat(origin.productUrl, {}, 'item');
|
|
|
result.weixinUrl = origin.productUrl;
|
|
|
result.shareTitle = result.name;
|
|
|
result.shareImg = 'http:' + result.img; // 分享图片必须使用http
|
|
|
result.shareDesc = result.phrase;
|
...
|
...
|
@@ -777,9 +778,9 @@ const _detailDataPkg = (origin, uid, vipLevel) => { |
|
|
}
|
|
|
|
|
|
statGoodsInfo.imageUrl = result.img;
|
|
|
statGoodsInfo.productUrl = result.weixinUrl;
|
|
|
statGoodsInfo.productUrl = helpers.urlFormat(url.parse(origin.productUrl).pathname, {}, 'item');
|
|
|
statGoodsInfo.smallSortId = result.smallSortId;
|
|
|
statGoodsInfo.soldOut = parseInt(soldOut);
|
|
|
statGoodsInfo.soldOut = soldOut ? 1 : 0;
|
|
|
|
|
|
return {
|
|
|
goodsInfo: result,
|
...
|
...
|
|