Authored by htoooth

fix bug

... ... @@ -45,7 +45,7 @@
</div>
<div class="pkgDg-footer clearfix">
<p class="totalMoney left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;计:<em>{{pkgPrice}}</em></p>
<span id="pay-pkg" class="buy-product red-color right">
<span class="pay-pkg buy-product red-color right" data-bundleid="{{bundleId}}">
<em>立即购买</em>
</span>
</div>
... ...
... ... @@ -1593,7 +1593,7 @@ $('.package-box').on('click', '#buy-detail', function() {
var pkgDialog = new Dialog(opt); // eslint-disable-line
pkgDialog.show();
pkgDialog.$el.on('click', '#pay-pkg', function() {
pkgDialog.$el.on('click', '.pay-pkg', function() {
var product = pkgDialog.$el.find('.pkgDg-prodetal .pkg-product');
var idArr = [];
... ... @@ -1684,13 +1684,13 @@ $('.package-box').on('click', '#buy-detail', function() {
});
// 立即购买跳转
pkgDialog.$el.on('click', '#pay-pkg', function() {
pkgDialog.$el.on('click', '.pay-pkg', function() {
if (!window.getUid()) {
window.location.href = window.location.href + '#package';
return window.jumpUrl(window.signinUrl());
}
var bundleId = $('#package-pro').data('bundleid'), // eslint-disable-line
var bundleId = $(this).data('bundleid'), // eslint-disable-line
$selectedPkgSizes = $('.pkg-sizes .size:not(.hide)'),
flag = true,
skuList = [];
... ...