1. 特色方
This commit is contained in:
@@ -8,3 +8,22 @@ import {post} from './http'
|
||||
export async function getRegisterListApi(params) {
|
||||
return await post('/register/list', params, 3)
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取待支付挂号列表(首页提醒用)
|
||||
* @param params
|
||||
* @returns {Promise<Array>}
|
||||
*/
|
||||
export async function fetchUnpaidRegisterListApi(params = {}) {
|
||||
const storeId = params.store_id || uni.getStorageSync('store_id') || '11001';
|
||||
const res = await post('/register/list?pageSize=100', {
|
||||
store_id: storeId,
|
||||
page: 1,
|
||||
...params,
|
||||
}, 3);
|
||||
if (res.data?.code !== 0 && res.data?.code !== '0') {
|
||||
return [];
|
||||
}
|
||||
const list = res.data?.result?.list || [];
|
||||
return list.filter((item) => item.status === 0 && item.is_cancel !== 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user