Authored by whb

mobile 存储

... ... @@ -10,6 +10,7 @@ define('mobile', function(require, exports) {
share = require("plugins/share"),
common = require("common"),
store = require("lib/util/store"),
tools = require("lib/util/tools"),
swiper = require("plugins/idangerous.swiper"),
mlellipsis = require("plugins/mlellipsis");
require("plugins/imgZoom");
... ... @@ -31,7 +32,7 @@ define('mobile', function(require, exports) {
}
}
});
if (store.get('download_state')) {
if (tools.cookie('download_state')) {
$('.header-download-wrap').remove();
} else {
$('.header-download-wrap').show();
... ... @@ -39,7 +40,7 @@ define('mobile', function(require, exports) {
//关闭下载
$('.header-download-wrap').on('click', '.tip-close', function() {
$('.header-download-wrap').remove();
store.set('download_state', 1);
tools.cookie('download_state', 1);
});
}
//返回
... ...