diff --git a/pages/giftpack/giftpacklist/giftpacklist.js b/pages/giftpack/giftpacklist/giftpacklist.js index d6171eb..14eb78e 100644 --- a/pages/giftpack/giftpacklist/giftpacklist.js +++ b/pages/giftpack/giftpacklist/giftpacklist.js @@ -179,7 +179,7 @@ Page({ } this.init(); }) - th.setData({ submit:0}) + this.setData({ submit:0}) }, GetBuyPrice: function (e) { var that = this.data; @@ -190,9 +190,6 @@ Page({ return false; } - if(th.data.submit) return false; - th.setData({submit:1}) - this.data.payMoney = th.data.sele_g.payMoney; th.setData({buyType: 2}) @@ -201,6 +198,7 @@ Page({ openSpecModal: 1 }) } else { + var my_confirm = th.selectComponent("#my_confirm"); //组件的id my_confirm.open( "是否确定购买该礼包", @@ -210,6 +208,7 @@ Page({ my_confirm.open_cancel(0); }, function () { + my_confirm.open_cancel(0); com.buy_libao(th) } diff --git a/pages/giftpack/public/buy_com.js b/pages/giftpack/public/buy_com.js index 6f37976..49fb0b4 100644 --- a/pages/giftpack/public/buy_com.js +++ b/pages/giftpack/public/buy_com.js @@ -214,7 +214,9 @@ module.exports = { } } + if(th.data.submit) return false; th.setData({submit:1}) + var id=th.data.sele_g.lbId; var that=th; var json = {