no message
This commit is contained in:
+2
-2
@@ -3,9 +3,9 @@
|
||||
|
||||
export const BASE_URL = "https://api.tbmall.xin"; //生产
|
||||
// export const BASE_URL ='http://api.hm.a-d.work:6880' // 测试
|
||||
// export const BASE_URL ='https://api.o.tbmall.xin' // 本地测试
|
||||
|
||||
// export const BASE_URL ='https://api.o.tbmall.xin'; // 本地测试
|
||||
|
||||
export const SHARE_URL = 'https://h.tbmall.xin';
|
||||
|
||||
export const PRIVACY_EN = "https://www.finecc.net/?Privacy-Agreement/";//隐私协议地址(英文版)
|
||||
export const PRIVACY_CN = "https://www.finecc.net/?Privac |y/";//隐私协议地址(中文版)
|
||||
|
||||
@@ -40,6 +40,27 @@ export default {
|
||||
}
|
||||
return tmpTime;
|
||||
},
|
||||
myToast(str = '',time = 1000){
|
||||
if(str){
|
||||
uni.hideToast();
|
||||
setTimeout(()=>{
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title:str,
|
||||
mask:true,
|
||||
duration:time
|
||||
})
|
||||
},100)
|
||||
|
||||
}else{
|
||||
uni.showToast({
|
||||
icon:'loading',
|
||||
title:'请求中...',
|
||||
mask:true,
|
||||
duration:1000
|
||||
})
|
||||
}
|
||||
},
|
||||
debounce(func,wait = 1000,immediate = true){
|
||||
// 清除定时器
|
||||
if (timeout !== null) clearTimeout(timeout)
|
||||
|
||||
Reference in New Issue
Block a user