Showing
1 changed file
with
3 additions
and
2 deletions
@@ -10,6 +10,7 @@ define('mobile', function(require, exports) { | @@ -10,6 +10,7 @@ define('mobile', function(require, exports) { | ||
10 | share = require("plugins/share"), | 10 | share = require("plugins/share"), |
11 | common = require("common"), | 11 | common = require("common"), |
12 | store = require("lib/util/store"), | 12 | store = require("lib/util/store"), |
13 | + tools = require("lib/util/tools"), | ||
13 | swiper = require("plugins/idangerous.swiper"), | 14 | swiper = require("plugins/idangerous.swiper"), |
14 | mlellipsis = require("plugins/mlellipsis"); | 15 | mlellipsis = require("plugins/mlellipsis"); |
15 | require("plugins/imgZoom"); | 16 | require("plugins/imgZoom"); |
@@ -31,7 +32,7 @@ define('mobile', function(require, exports) { | @@ -31,7 +32,7 @@ define('mobile', function(require, exports) { | ||
31 | } | 32 | } |
32 | } | 33 | } |
33 | }); | 34 | }); |
34 | - if (store.get('download_state')) { | 35 | + if (tools.cookie('download_state')) { |
35 | $('.header-download-wrap').remove(); | 36 | $('.header-download-wrap').remove(); |
36 | } else { | 37 | } else { |
37 | $('.header-download-wrap').show(); | 38 | $('.header-download-wrap').show(); |
@@ -39,7 +40,7 @@ define('mobile', function(require, exports) { | @@ -39,7 +40,7 @@ define('mobile', function(require, exports) { | ||
39 | //关闭下载 | 40 | //关闭下载 |
40 | $('.header-download-wrap').on('click', '.tip-close', function() { | 41 | $('.header-download-wrap').on('click', '.tip-close', function() { |
41 | $('.header-download-wrap').remove(); | 42 | $('.header-download-wrap').remove(); |
42 | - store.set('download_state', 1); | 43 | + tools.cookie('download_state', 1); |
43 | }); | 44 | }); |
44 | } | 45 | } |
45 | //返回 | 46 | //返回 |
-
Please register or login to post a comment