add notice bar for HomeTab.vue
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { pendingNoticeEvents } from "@/utils/pendingNoticeEvents";
|
||||
import { axios } from "timi-web-api";
|
||||
import { withCurrentStoreId } from "@/utils/store";
|
||||
import { getCurrentStoreId, withCurrentStoreId } from "@/utils/store";
|
||||
import type {
|
||||
DirectProductOrderCreateRequest,
|
||||
FundRecord,
|
||||
@@ -45,7 +46,10 @@ async function receivePaymentAndVerify(request: OrderPaymentReceiveRequest): Pro
|
||||
return await axios.post(`${ORDER_URI}/payment/receive-and-verify`, request);
|
||||
}
|
||||
async function verifyPayment(id: string): Promise<FundRecord> {
|
||||
return await axios.post(`${ORDER_URI}/payment/verify`, undefined, { params: { id } });
|
||||
const storeId = getCurrentStoreId();
|
||||
const result = await axios.post(`${ORDER_URI}/payment/verify`, undefined, { params: { id } });
|
||||
pendingNoticeEvents.emit("changed", storeId);
|
||||
return result;
|
||||
}
|
||||
async function rejectPayment(request: OrderPaymentActionRequest): Promise<FundRecord> {
|
||||
return await axios.post(`${ORDER_URI}/payment/reject`, request);
|
||||
|
||||
Reference in New Issue
Block a user