Skip to content

Commit

Permalink
更新日志文件
Browse files Browse the repository at this point in the history
  • Loading branch information
wteam-xq committed Feb 20, 2016
1 parent fbdc306 commit c33ae9e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 2 additions & 0 deletions devLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
* 线上加载时间对比截图1,cdn未加速版:
![线上加载时间对比截图1,cdn未加速版](https://github.com/wteam-xq/threeKingdoms/blob/master/images/tkd_v2_load2.png)
* 应用初始加载的数据用了6.82s(8.42s), 所以该单页面demo线上的主要问题在于将所有数据起始加载;
* cdn 加载依赖类库时间:boostrap.min.css(92ms) + jquery.min.js(137ms) + boostrap.min.js(99ms) = 约 350ms
* 非cdn, gulp本地压缩、合并依赖库加载时间: boostrap.min.css(1.73s) + lib.js(2.87s, jquery.min.js + boostrap.min.js) = 约4.5s

### 维护日志:
* 04-10 武将攻略页面, 翻页点击事件 仍留内存;
Expand Down
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@
</div>
</form>
</div>

<div class="panel panel-warning">
<div class="panel-heading">三国杀FAQ &nbsp;&nbsp;应用信息</div>
<ul class="list-group">
Expand Down
6 changes: 1 addition & 5 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -959,16 +959,14 @@ $(document).ready(function(){
if ($target == null || $main == null){
return false;
}

// 判断是否为 搜索详情页打开
// 搜索详情页打开,返回主面板
if ( $main.hasClass('search-detail') ){
$main.find('#back-index').trigger('click');
return false;
}
var back_event = function(){
closePage($target, $main);
}

var $backIco = $target.find('#back-index');
openPage($target, $main);
// 配置返回页面事件
Expand Down Expand Up @@ -1023,7 +1021,6 @@ $(document).ready(function(){
return false;
}
var $backIco = $target.find('#back-index');

$main.css('margin-left', '-' + $main.css('width'));
$main.show();
$main.css({'-webkit-transform':'translate3d(0,0,0)',
Expand All @@ -1032,7 +1029,6 @@ $(document).ready(function(){
});
$main.animate({'margin-left':'0px'}, 500, function(){
});

$target.css({'-webkit-transform':'translate3d(0,0,0)',
'-o-transform':'translate3d(0,0,0)',
'transform':'translate3d(0,0,0)'
Expand Down

0 comments on commit c33ae9e

Please sign in to comment.