Commit f6263accc583b50bb720059cb78c47118e0b777a
1 parent
2c59d9f9
1、代码格式整理
2、清除垃圾代码
Showing
2 changed files
with
2 additions
and
17 deletions
src/pages/common/common.vue
| ... | ... | @@ -725,7 +725,7 @@ |
| 725 | 725 | // 请求接口 |
| 726 | 726 | this.http("/Api/" + (this.getApiVersion().index) + "/getShareData", params, this.getShareDataCallback, { |
| 727 | 727 | method: "POST" |
| 728 | - }) | |
| 728 | + }); | |
| 729 | 729 | }, |
| 730 | 730 | |
| 731 | 731 | /** |
| ... | ... | @@ -799,7 +799,7 @@ |
| 799 | 799 | }, this.getWxParamsCallback, { |
| 800 | 800 | method: "POST", |
| 801 | 801 | shares |
| 802 | - }) | |
| 802 | + }); | |
| 803 | 803 | } |
| 804 | 804 | }, |
| 805 | 805 | ... | ... |
src/pages/discountList2/discountList2.vue
| ... | ... | @@ -492,21 +492,6 @@ |
| 492 | 492 | }); |
| 493 | 493 | } |
| 494 | 494 | } |
| 495 | - | |
| 496 | - // 页面切换可见状态监听 | |
| 497 | - document.addEventListener('visibilitychange', () => { | |
| 498 | - | |
| 499 | - // 页面显示出来了 | |
| 500 | - if (document.hidden === false && this.$route.name == 'discountList') { | |
| 501 | - | |
| 502 | - // 只有折扣专区的刷新页面 | |
| 503 | - if (this.tabs.list[this.tabs.active].type == '0') { | |
| 504 | - | |
| 505 | - // 请求接口封装 | |
| 506 | - this.request(this.tabs.active); | |
| 507 | - } | |
| 508 | - } | |
| 509 | - }); | |
| 510 | 495 | } |
| 511 | 496 | } |
| 512 | 497 | </script> | ... | ... |