...
|
...
|
@@ -2,6 +2,7 @@ require('scss/cart/magazine-confirm.page.scss'); |
|
|
|
|
|
const $ = require('yoho-jquery');
|
|
|
const toast = require('js/plugin/tip');
|
|
|
const dialog = require('js/plugin/dialog');
|
|
|
|
|
|
let $activeItem = $('.choose-list .active');
|
|
|
let $totalPrice = $('.total-price .total-num');
|
...
|
...
|
@@ -88,6 +89,19 @@ $('.buy-btn-wrap').on('click', 'button', function() { |
|
|
});
|
|
|
});
|
|
|
|
|
|
$('.view-buy-tip').on('click', function() {
|
|
|
dialog.showDialog({
|
|
|
hasClass: 'magazine-buytip-dialog',
|
|
|
hasHeader: '购买须知',
|
|
|
dialogText: '<ul><li>购买成功后,需要兑换阅读码阅读;</li>' +
|
|
|
'<li>电子刊为虚拟商品,若无系统问题,购买成功后不支持退换;</li>' +
|
|
|
'<li>购买多个电子刊阅读码,可以在【我的阅读码-阅读码】中赠送给好友兑换阅读;</li>' +
|
|
|
'<li>若出现无法阅读的情况,可以联系客服反馈问题,情况核对属实,将为您补发;</li></ul>',
|
|
|
hasFooter: {
|
|
|
centerBtnText: '知道了'
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
|
|
|
if ($activeItem.length) {
|
|
|
buyNumber = $activeItem.data().number || 1;
|
...
|
...
|
|