|
@@ -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() {
|