@unsource/ui 2.8.28 → 2.9.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -86,7 +86,7 @@ const submit = async () => {
|
|
|
86
86
|
toWalletId: w.value?.find((e) => e.coin.key === "wallet")?.id,
|
|
87
87
|
status: "ACCEPTED",
|
|
88
88
|
type: "TRANSFER",
|
|
89
|
-
redirectUrl: window.urlPrefix + location.href,
|
|
89
|
+
redirectUrl: (window.urlPrefix || "") + location.href,
|
|
90
90
|
amount: Number(s2n(amount.value))
|
|
91
91
|
};
|
|
92
92
|
const res = await submitPayment(0, details, void 0, false);
|
|
@@ -43,7 +43,7 @@ const deposit = async () => {
|
|
|
43
43
|
gatewayId: selectedMethod.value?.id,
|
|
44
44
|
status: "PENDING",
|
|
45
45
|
type: "DEPOSIT",
|
|
46
|
-
redirectUrl: window.urlPrefix + location.href,
|
|
46
|
+
redirectUrl: (window.urlPrefix || "") + location.href,
|
|
47
47
|
amount: Number(s2n(depositAmount.value))
|
|
48
48
|
};
|
|
49
49
|
await submitPayment(0, details, void 0, true).catch(() => loading.value = false);
|
|
@@ -282,7 +282,7 @@ export const submitPayment = async (amount, details = {}, giftCode = void 0, red
|
|
|
282
282
|
userId: userId.value || "",
|
|
283
283
|
discountCode: giftCode,
|
|
284
284
|
type: "PAYMENT",
|
|
285
|
-
redirectUrl: window.urlPrefix + location.origin + "/verify",
|
|
285
|
+
redirectUrl: (window.urlPrefix || "") + location.origin + "/verify",
|
|
286
286
|
...details
|
|
287
287
|
});
|
|
288
288
|
console.log("here", result);
|
|
@@ -66,7 +66,7 @@ export const getCategorySection = async (data) => {
|
|
|
66
66
|
const { result } = await useGet(`/InputOption${data.query}`, {
|
|
67
67
|
headers: {
|
|
68
68
|
"qt": "v1",
|
|
69
|
-
"app-code": data.appCode
|
|
69
|
+
"app-code": data.appCode || window.APP_CODE
|
|
70
70
|
},
|
|
71
71
|
params: {
|
|
72
72
|
"with-input": true
|