Authored by uedxwg

update 添加删除提示 cby 赵彪

@@ -99,6 +99,7 @@ $page.on('touchstart', '.del-icon', function() { @@ -99,6 +99,7 @@ $page.on('touchstart', '.del-icon', function() {
99 rightBtnText: '确定' 99 rightBtnText: '确定'
100 } 100 }
101 }, function() { 101 }, function() {
  102 +
102 $.ajax({ 103 $.ajax({
103 type: 'GET', 104 type: 'GET',
104 url: '/home/delRecord', 105 url: '/home/delRecord',
@@ -107,7 +108,12 @@ $page.on('touchstart', '.del-icon', function() { @@ -107,7 +108,12 @@ $page.on('touchstart', '.del-icon', function() {
107 }, 108 },
108 success: function(data) { 109 success: function(data) {
109 if (data.code === 200) { 110 if (data.code === 200) {
110 - window.history.go(0); 111 + dialog.showDialog({
  112 + dialogText: '删除浏览记录成功',
  113 + autoHide: true,
  114 + fast: true
  115 + });
  116 + setTimeout(function(){window.history.go(0);},1000);
111 } 117 }
112 }, 118 },
113 complete: function() { 119 complete: function() {
@@ -181,7 +181,8 @@ class HomeController extends AbstractAction @@ -181,7 +181,8 @@ class HomeController extends AbstractAction
181 $this->setNavHeader('浏览记录', true, SITE_MAIN); 181 $this->setNavHeader('浏览记录', true, SITE_MAIN);
182 182
183 $this->_view->display('browse-record', array( 183 $this->_view->display('browse-record', array(
184 - 'browseRecordPage' => true 184 + 'browseRecordPage' => true,
  185 + 'pageFooter' => true
185 )); 186 ));
186 } 187 }
187 188