wangfukang 1 week ago
parent
commit
8506f1ec6e
  1. 12
      pages/index/index.vue

12
pages/index/index.vue

@ -746,6 +746,7 @@
navBarHeight: 0, navBarHeight: 0,
menuListOffsetTop: 0, menuListOffsetTop: 0,
lastScrollTop: 0, lastScrollTop: 0,
lastRefreshTime: 0,
worker: null, worker: null,
isSwitching: true, isSwitching: true,
getAreaData: {}, getAreaData: {},
@ -1306,6 +1307,17 @@
}, },
// //
searchOrder(type, value) { searchOrder(type, value) {
if (type == 'shuaxin') {
const now = Date.now();
const refreshInterval = 10 * 1000;
const diff = now - this.lastRefreshTime;
if (diff < refreshInterval) {
const waitSeconds = Math.ceil((refreshInterval - diff) / 1000);
this.tui.toast(waitSeconds + '秒后再刷新');
return;
}
this.lastRefreshTime = now;
}
if (type == 'getarea') { if (type == 'getarea') {
if (this.searchForm.getAreaId == value.id) { if (this.searchForm.getAreaId == value.id) {
this.searchForm.getAreaId = '' this.searchForm.getAreaId = ''

Loading…
Cancel
Save