How to use the antd-mobile.Toast.offline function in antd-mobile

To help you get started, we’ve selected a few antd-mobile examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hqwlkj / umi-dva-antd-mobile / src / utils / request.js View on Github external
const checkStatus = response => {
  if (response.status >= 200 && response.status < 300) {
    return response;
  }
  const errortext = codeMessage[response.status] || response.statusText;
  Toast.offline(`请求错误 ${response.status}: ${response.url},${errortext}`);
  const error = new Error(errortext);
  error.name = response.status;
  error.response = response;
  throw error;
};
github minooo / react-ssr / pages / 1-loan / 3-goLoan.js View on Github external
    }).catch(() => { Toast.offline('网络异常,请稍后再试!') })
  }
github jinjinwa / umi-antd-mobile / src / services / request.js View on Github external
const checkStatus = response => {
  if (response.status >= 200 && response.status < 300) {
    return response;
  }
  const errortext = codeMessage[response.status] || response.statusText;
  Toast.offline(`请求错误 ${response.status}: ${response.url},${errortext}`);
  const error = new Error(errortext);
  error.name = response.status;
  error.response = response;
  throw error;
};
github minooo / react-ssr / pages / 1-loan / 2-detail.js View on Github external
    }).catch(() => { Toast.offline('抱歉,网络错误,请稍后再试!') })
  }
github hqwlkj / umi-dva-antd-mobile / src / global.js View on Github external
window.addEventListener('sw.offline', () => {
  Toast.offline('当前处于离线状态');
});
github minooo / react-ssr / pages / 3-me / 6-feedback.js View on Github external
    }).catch(() => { Toast.offline('抱歉,网络错误,请稍后再试。') })
  }
github minooo / react-ssr / pages / 2-card / 3-detail.js View on Github external
    }).catch(() => { Toast.offline('抱歉,网络错误,请稍后再试!') })
  }
github minooo / react-ssr / components / 0-00-Layout.js View on Github external
    }).catch(() => { Toast.offline('网络异常,请稍后再试!') })
  }
github ruichengping / react-mobile-qqMusic / src / components / Header / index.js View on Github external
popoverSelect=(options)=>{
        if(options.key==="1"){
            Toast.offline('听歌识曲功能未开放', 1);
        }else if(options.key==="2"){
            Toast.offline('扫一扫功能未开放', 1);
        }
        this.setState({
            popover:false
        });
    }
    render(){
github minooo / react-ssr / pages / 3-me / 2-login.js View on Github external
          }).catch(() => { Toast.offline('抱歉,网络错误,请稍后再试!') })
        })