Commit 8e692bfb312667727ce347bdd21791257d503036
1 parent
276900b7
卡项订单列表搜索失败处理
Showing
1 changed file
with
11 additions
and
9 deletions
pages/user/order_list/order_list.js
... | ... | @@ -1903,11 +1903,11 @@ Page({ |
1903 | 1903 | } |
1904 | 1904 | if(callback) callback(res); |
1905 | 1905 | } else { |
1906 | - wx.showToast({ | |
1907 | - title: res.data.msg, | |
1908 | - icon: 'none', | |
1909 | - duration: 2000 | |
1910 | - }) | |
1906 | + // wx.showToast({ | |
1907 | + // title: res.data.msg, | |
1908 | + // icon: 'none', | |
1909 | + // duration: 2000 | |
1910 | + // }) | |
1911 | 1911 | } |
1912 | 1912 | }) |
1913 | 1913 | }, |
... | ... | @@ -2001,7 +2001,7 @@ Page({ |
2001 | 2001 | |
2002 | 2002 | searchOnline() { |
2003 | 2003 | let currentIndex = this.data.currentIndex; |
2004 | - console.log('online',this.data.searchContent, currentIndex); | |
2004 | + // console.log('online',this.data.searchContent, currentIndex); | |
2005 | 2005 | if(this.data.searchContent) { |
2006 | 2006 | console.log(this.data.searchContent); |
2007 | 2007 | if(currentIndex == 0) { |
... | ... | @@ -2032,11 +2032,13 @@ Page({ |
2032 | 2032 | }).catch(err => { |
2033 | 2033 | // console.log('卡项订单请求失败', err); |
2034 | 2034 | this.setData({ |
2035 | - cardList: null, | |
2035 | + cardList: [], | |
2036 | + is_no_data2: 0, | |
2037 | + is_no_more2: 0, | |
2036 | 2038 | }); |
2037 | 2039 | wx.showToast({ |
2038 | - title: err.data.data, | |
2039 | - icon: 'error', | |
2040 | + title: '搜索失败', | |
2041 | + icon: 'none', | |
2040 | 2042 | }); |
2041 | 2043 | }); |
2042 | 2044 | }; | ... | ... |