...
|
...
|
@@ -46,6 +46,8 @@ let nowShareData = { |
|
|
imgUrl: productPic
|
|
|
};
|
|
|
|
|
|
const DOWNLOAD_URL = '//union.yoho.cn/union/app-downloads.html';
|
|
|
|
|
|
yoho.ready(function() {
|
|
|
if (yoho.isMarsApp) {
|
|
|
yoho.invokeMethod('set.shareInfo', shareData);
|
...
|
...
|
@@ -115,8 +117,24 @@ setTimeout(() => { |
|
|
data.studentPrice = Math.round(data.studentPrice.toString().replace('¥', ''));
|
|
|
}
|
|
|
|
|
|
$('#placeholder-pricedata').replaceWith(priceDataHbs(data));
|
|
|
if (data.tickets && data.cartInfo) {
|
|
|
let $downloadBtn = $('#download-go');
|
|
|
let ticketsUrl;
|
|
|
|
|
|
if ($downloadBtn.length) {
|
|
|
ticketsUrl = $downloadBtn.attr('href');
|
|
|
}
|
|
|
|
|
|
if (!ticketsUrl) {
|
|
|
let mktCode = window._getMktCode ? window._getMktCode() : '';
|
|
|
|
|
|
ticketsUrl = `${DOWNLOAD_URL}?union_type=${mktCode}&openby:yohobuy={"action":"go.productDetail","params":{"product_skn":${data.productSkn}}}`; // eslint-disable-line
|
|
|
}
|
|
|
|
|
|
data.cartInfo.ticketsUrl = ticketsUrl;
|
|
|
}
|
|
|
|
|
|
$('#placeholder-pricedata').replaceWith(priceDataHbs(data));
|
|
|
$('#placeholder-infodata').replaceWith(infoDataHbs(data));
|
|
|
|
|
|
setTimeout(function() {
|
...
|
...
|
|