index.ts 580 B

1234567891011121314151617181920212223
  1. import { Dict_Apis } from "@/dict";
  2. import { ModuleRoot } from "queenjs";
  3. import { https } from "./https";
  4. import { store } from "./store";
  5. import { actions } from "./actions";
  6. export class PaymentModule extends ModuleRoot {
  7. config = this.setConfig({
  8. project: "",
  9. httpConfig: {
  10. baseURL: Dict_Apis.promotion,
  11. },
  12. });
  13. actions = this.createActions(actions)
  14. https = this.createHttps(https);
  15. store = this.createStore(store);
  16. onReady() {
  17. this.actions.initPayPoints();
  18. }
  19. }
  20. export const { initPayment, usePayment } = PaymentModule.hook("Payment");