1. 特色方

This commit is contained in:
李琦
2026-07-02 14:11:24 +08:00
parent 3f699fa2c6
commit 4ff6564ffb
16 changed files with 4241 additions and 2004 deletions

View File

@@ -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);
}