扫码排队
This commit is contained in:
@@ -45,22 +45,23 @@ export default (params) => {
|
||||
if (res.code == 200) {
|
||||
uni.hideLoading();
|
||||
uni.hideToast();
|
||||
resolve(res.data ?res.data: true);
|
||||
resolve(res.data ? res.data : true);
|
||||
} else {
|
||||
switch (res.code) {
|
||||
case '501':
|
||||
uni.cache.remove('shopId')
|
||||
uni.showToast({
|
||||
title: '',
|
||||
icon: "none",
|
||||
success: () => {
|
||||
setTimeout(() => {
|
||||
uni.reLaunch({
|
||||
url: "/pages/index/index",
|
||||
})
|
||||
}, 1000);
|
||||
}
|
||||
})
|
||||
// uni.showToast({
|
||||
// title: '',
|
||||
// icon: "none",
|
||||
// success: () => {
|
||||
|
||||
// }
|
||||
// })
|
||||
setTimeout(() => {
|
||||
uni.reLaunch({
|
||||
url: "/pages/index/index",
|
||||
})
|
||||
}, 1000);
|
||||
break;
|
||||
case 404:
|
||||
uni.showToast({
|
||||
|
||||
@@ -40,12 +40,19 @@ export const APIqueuedetail = (data) => {
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 消息订阅
|
||||
export const APIcallTablesubMsg = (data) => {
|
||||
return request({
|
||||
url: urlAccount + '/user/callTable/subMsg',
|
||||
method: 'get',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 取消排队
|
||||
export const APIqueuecancel = (data) => {
|
||||
return request({
|
||||
url: urlAccount + '/user/callTable/cancel?queueId=' + data.queueId + '&shopId=' + data.shopId,
|
||||
method: 'DELETE'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user