Commit e5a3777832ad46c8dcd191e62053012ef3ded00d

Authored by 王强
1 parent 4a38b9ad

清理垃圾代码~

src/pages/discountList2/discountList2.vue
@@ -336,24 +336,6 @@ @@ -336,24 +336,6 @@
336 // 判断App内 336 // 判断App内
337 if (this.isCNLive.value) { 337 if (this.isCNLive.value) {
338 338
339 - // 判断是活动未开始状态,弹窗提示活动未开始  
340 - if (this.tabs.list[this.tabs.active].type == '0' && this.tabs.list[this.tabs.active].discountType == '0') {  
341 -  
342 - // 通用弹窗提示  
343 - this.showModal();  
344 - return false;  
345 - }  
346 -  
347 - // 已结束,不跳转  
348 - if (this.tabs.list[this.tabs.active].type == '0' && this.tabs.list[this.tabs.active].discountType == '2') {  
349 - return false;  
350 - }  
351 -  
352 - // 已抢光,不跳转  
353 - if (this.tabs.list[this.tabs.active].type == '0' && (item.num == '2' || (item.num == '1' && item.stock == '0'))) {  
354 - return false;  
355 - }  
356 -  
357 // 判断通用跳转函数是否存在 339 // 判断通用跳转函数是否存在
358 if (typeof this.$parent.gotoDetail === 'function') { 340 if (typeof this.$parent.gotoDetail === 'function') {
359 341
@@ -384,24 +366,6 @@ @@ -384,24 +366,6 @@
384 this.toDetail(item); 366 this.toDetail(item);
385 }, 367 },
386 368
387 - showModal() {  
388 -  
389 - // 判断通用弹窗是否存在  
390 - if (typeof this.$parent.showModal === 'function') {  
391 -  
392 - // 设置通用弹窗参数  
393 - let options = {  
394 - title: "提示",  
395 - message: "当前活动未开始,请耐心等待",  
396 - confirmButtonText: "我知道了",  
397 - closeOnClickModal: true  
398 - };  
399 -  
400 - // 调用函数,显示通用弹窗  
401 - this.$parent.showModal(options);  
402 - }  
403 - },  
404 -  
405 /** 369 /**
406 * 唤起App封装 370 * 唤起App封装
407 */ 371 */