@@ -26,9 +26,10 @@ const http = (url = '', date = {}, type = 'POST', header = {
header: header,
dataType: 'json',
}).then((response) => {
- setTimeout(function() {
+ /* setTimeout(function() {
uni.hideLoading();
- }, 200);
+ }, 200); */
+ uni.hideLoading();
let [error, res] = response;
if(res.data.code==1){
@@ -291,11 +291,14 @@
})
}
}else{
- uni.showToast({
- title: '请先签到',
- icon: 'none',
- duration: 2000,
- });
+ setTimeout(function() {
+ uni.showToast({
+ title: '请先进行签到',
+ icon: 'none',
+ duration: 3000,
+ });
+ }, 300);
+
return false;
@@ -304,7 +307,7 @@
uni.showToast({
title: '未查询到检测套餐信息',
icon: 'none',
});
@@ -333,7 +336,7 @@
title: '该门店未设置定位',
return