Commit d0a4a739 authored by qipeng's avatar qipeng

后端数据报错提示

parent 6461fea0
...@@ -946,6 +946,12 @@ export default { ...@@ -946,6 +946,12 @@ export default {
this.$request('distribution/distribution/getAutoCode',data).then((res)=>{ this.$request('distribution/distribution/getAutoCode',data).then((res)=>{
if(res.code == '00'){ if(res.code == '00'){
this.codes = res.data.codes this.codes = res.data.codes
if(this.codes.length<0){
uni.showToast({
title: '网络异常,请退出重试',
icon: 'none'
})
}
this.codeStart = new Date().getTime() this.codeStart = new Date().getTime()
this.codeFlag = setInterval(()=>{ this.codeFlag = setInterval(()=>{
this.dynamicCodeRefresh() this.dynamicCodeRefresh()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment