|
@@ -482,19 +482,19 @@
|
|
|
});
|
|
|
//点击分享
|
|
|
$('.red-packet-next')[0].addEventListener('click',(e) => {
|
|
|
- if(!e.target.dataset.obj){
|
|
|
- return
|
|
|
- }
|
|
|
- var obj = JSON.parse(e.target.dataset.obj);
|
|
|
- if(obj.shareCount === obj.quantity){
|
|
|
- stopManyClick(() => {
|
|
|
- toastr.error('没有剩余红包可以分享!');
|
|
|
- })
|
|
|
- return
|
|
|
- }else{
|
|
|
- $('.share-num-text').eq(0).text(`还有${obj.quantity - obj.shareCount}张优惠券可以分享`);
|
|
|
- }
|
|
|
if(e.target.className === 'share' || e.target.className === 'share-num'){
|
|
|
+ if(obj.money){
|
|
|
+ return
|
|
|
+ }
|
|
|
+ var obj = JSON.parse(e.target.dataset.obj);
|
|
|
+ if(obj.shareCount === obj.quantity){
|
|
|
+ stopManyClick(() => {
|
|
|
+ toastr.error('没有剩余红包可以分享!');
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }else{
|
|
|
+ $('.share-num-text').eq(0).text(`还有${obj.quantity - obj.shareCount}张优惠券可以分享`);
|
|
|
+ }
|
|
|
operate('dt_双11_h5_弹窗按钮');
|
|
|
money = obj.totalMoney;
|
|
|
couponRandomId = obj.couponRandomId;
|