1. 特色方
This commit is contained in:
@@ -375,6 +375,29 @@ export async function getOrdlist(params) {
|
||||
return normalizeXkApiResponse(data)
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取待支付商品订单列表(首页提醒用)
|
||||
*/
|
||||
export async function fetchUnpaidProductOrderListApi(params = {}) {
|
||||
const storeId = params.store_id || uni.getStorageSync('store_id') || '11001';
|
||||
const res = await getOrdlist({
|
||||
method: 'post',
|
||||
data: {
|
||||
store_id: storeId,
|
||||
type: 'unpaid',
|
||||
page: 1,
|
||||
...params,
|
||||
},
|
||||
});
|
||||
if (res.data?.errcode != 0) {
|
||||
return [];
|
||||
}
|
||||
const list = res.data?.data?.list || [];
|
||||
return list.filter(
|
||||
(item) => item.status === 0 && item.is_pay === 0 && item.cancel_status === 0
|
||||
);
|
||||
}
|
||||
|
||||
// v1/product-order/list
|
||||
export async function getToken(params) {
|
||||
let data = await http('/oldApi/v1/user/login-platform', params)
|
||||
|
||||
Reference in New Issue
Block a user