| | |
| | | that.$refs.LsBar.focus(); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | //that.$toast.fail(json.message); |
| | | that.$dialog.alert({ |
| | | message: json.message, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.$playSound('error'); |
| | | that.$refs.ZsBar.focus(); |
| | | that.ZsBar = ""; |
| | |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | //that.$toast.fail("网络错误,请重试!"); |
| | | that.$dialog.alert({ |
| | | message: "网络错误,请重试!", |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.$playSound('error'); |
| | | that.$refs.ZsBar.focus(); |
| | | that.ZsBar = ""; |
| | |
| | | that.LsBar = null; |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | //that.$toast.fail(json.message); |
| | | that.$dialog.alert({ |
| | | message: json.message, |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.$playSound('error'); |
| | | that.$refs.ZsBar.focus(); |
| | | that.ZsBar = null; |
| | |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | //that.$toast.fail("网络错误,请重试!"); |
| | | that.$dialog.alert({ |
| | | message: "网络错误,请重试!", |
| | | theme: 'round-button', |
| | | }).then(() => { |
| | | // on close |
| | | }); |
| | | that.$playSound('error'); |
| | | that.$refs.ZsBar.focus(); |
| | | that.ZsBar = null; |