Commit 3698e439cd3585e37df2aeb0270fb771c25c51a4
1 parent
84794194
多活动的优化
Showing
3 changed files
with
12 additions
and
12 deletions
packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js
| @@ -1231,13 +1231,11 @@ Page({ | @@ -1231,13 +1231,11 @@ Page({ | ||
| 1231 | }, | 1231 | }, |
| 1232 | 1232 | ||
| 1233 | 1233 | ||
| 1234 | - | ||
| 1235 | - | ||
| 1236 | // 页面卸载 | 1234 | // 页面卸载 |
| 1237 | onUnload: function () { | 1235 | onUnload: function () { |
| 1238 | - for (var i = 1; i < 100; i++) { | ||
| 1239 | - clearInterval(i); | ||
| 1240 | - } | 1236 | + // for (var i = 1; i < 100; i++) { |
| 1237 | + // clearInterval(i); | ||
| 1238 | + // } | ||
| 1241 | }, | 1239 | }, |
| 1242 | 1240 | ||
| 1243 | // 页面隐藏 | 1241 | // 页面隐藏 |
packageC/pages/presell/goodsInfo/goodsInfo.js
| @@ -860,15 +860,15 @@ Page({ | @@ -860,15 +860,15 @@ Page({ | ||
| 860 | }); | 860 | }); |
| 861 | }, | 861 | }, |
| 862 | onUnload: function () { | 862 | onUnload: function () { |
| 863 | - for (var i = 1; i < 100; i++) { | ||
| 864 | - clearInterval(i); | ||
| 865 | - } | 863 | + // for (var i = 1; i < 100; i++) { |
| 864 | + // clearInterval(i); | ||
| 865 | + // } | ||
| 866 | }, | 866 | }, |
| 867 | onHide: function () { | 867 | onHide: function () { |
| 868 | this.data.is_timer = 0; | 868 | this.data.is_timer = 0; |
| 869 | - for (var i = 1; i < 100; i++) { | ||
| 870 | - clearInterval(i); | ||
| 871 | - } | 869 | + // for (var i = 1; i < 100; i++) { |
| 870 | + // clearInterval(i); | ||
| 871 | + // } | ||
| 872 | }, | 872 | }, |
| 873 | //----------三个选项按钮----------- | 873 | //----------三个选项按钮----------- |
| 874 | tabClick: function (t) { | 874 | tabClick: function (t) { |
pages/goods/goodsInfo/goodsInfo.js
| @@ -456,7 +456,7 @@ Page({ | @@ -456,7 +456,7 @@ Page({ | ||
| 456 | appoint_pick_keyid: json_d.appoint_pick_keyid | 456 | appoint_pick_keyid: json_d.appoint_pick_keyid |
| 457 | 457 | ||
| 458 | }); | 458 | }); |
| 459 | - ee.init(gid); | 459 | + |
| 460 | //------几人评价------- | 460 | //------几人评价------- |
| 461 | //n.init(th, "", "comments"); | 461 | //n.init(th, "", "comments"); |
| 462 | 462 | ||
| @@ -921,6 +921,8 @@ Page({ | @@ -921,6 +921,8 @@ Page({ | ||
| 921 | }); | 921 | }); |
| 922 | } | 922 | } |
| 923 | 923 | ||
| 924 | + ee.init(gid); | ||
| 925 | + | ||
| 924 | var timestamp = Date.parse(new Date()); | 926 | var timestamp = Date.parse(new Date()); |
| 925 | timestamp = timestamp / 1000; | 927 | timestamp = timestamp / 1000; |
| 926 | if (t.data.data.on_time > timestamp) { | 928 | if (t.data.data.on_time > timestamp) { |