43 lines
1.0 KiB
JavaScript
43 lines
1.0 KiB
JavaScript
import { c as createElementBlock, j as openBlock } from "./index-CIAVq8iD-1776148658686.js";
|
|
|
|
function buildRechargeActivityURL() {
|
|
const params = new URLSearchParams(window.location.search || "");
|
|
const hash = window.location.hash || "";
|
|
const queryIndex = hash.indexOf("?");
|
|
|
|
if (queryIndex >= 0) {
|
|
const hashParams = new URLSearchParams(hash.slice(queryIndex + 1).split("#")[0]);
|
|
hashParams.forEach((value, key) => {
|
|
if (!params.has(key)) {
|
|
params.append(key, value);
|
|
}
|
|
});
|
|
}
|
|
|
|
const query = params.toString();
|
|
return `/activity/recharge/index.html${query ? `?${query}` : ""}`;
|
|
}
|
|
|
|
const RechargeReward = {
|
|
__name: "RechargeReward",
|
|
setup() {
|
|
const src = buildRechargeActivityURL();
|
|
|
|
return () => (
|
|
openBlock(),
|
|
createElementBlock("iframe", {
|
|
src,
|
|
title: "Recharge Reward",
|
|
style: {
|
|
border: "0",
|
|
display: "block",
|
|
height: "100vh",
|
|
width: "100vw",
|
|
},
|
|
})
|
|
);
|
|
},
|
|
};
|
|
|
|
export { RechargeReward as default };
|