From e23e4d18e3f40954361f9041a6fa0c0d75234a56 Mon Sep 17 00:00:00 2001 From: devil Date: Wed, 19 Aug 2020 18:01:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E9=A1=B5=E9=9D=A2=E8=B4=AD?= =?UTF-8?q?=E4=B9=B0=E7=A1=AE=E8=AE=A4=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/index/default/js/goods.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/public/static/index/default/js/goods.js b/public/static/index/default/js/goods.js index b4ca2eb7d..544eddc0d 100755 --- a/public/static/index/default/js/goods.js +++ b/public/static/index/default/js/goods.js @@ -396,13 +396,12 @@ function GoodsBaseRestore() * @date 2020-08-16 * @desc description */ -function SpecPopupShow() +function SpecPopupShow(e) { $(document.body).css('position', 'fixed'); $('.theme-popover-mask').show(); $('.theme-popover').slideDown(200); - - $('.theme-popover .confirm').attr('data-type', $(this).data('type')); + $('.theme-popover .confirm').attr('data-type', e.data('type') || 'buy'); } $(function() { @@ -492,7 +491,7 @@ $(function() { // 规格选择显示事件 $('.mini-spec-event').on('click', function() { - SpecPopupShow(); + SpecPopupShow($(this)); }); //弹出规格选择 @@ -501,7 +500,7 @@ $(function() { // 是否登录 if(__user_id__ != 0) { - SpecPopupShow(); + SpecPopupShow($(this)); } } else { PoptitPcShow();