test #80

Merged
yezian merged 6 commits from test into main 2024-05-07 21:08:20 +08:00
5 changed files with 15 additions and 15 deletions

View File

@ -68,9 +68,9 @@ export default function WechatBar({
break;
case "wxpay_h5":
router.push(
`https://weixin.tiefen.fun/pay/wxpay_h5/${encodeURIComponent(
`https://shop.tiefen.fun/pay/wxpay_h5/${encodeURIComponent(
temData.data.wxpay_h5_param_str +
"&redirect_url=https%3A%2F%2Fweixin.tiefen.fun%2Fpurchased"
"&redirect_url=https%3A%2F%2Fshop.tiefen.fun%2Fpurchased"
)}`
);
break;

View File

@ -134,7 +134,7 @@ export default function Pay() {
break;
case "wxpay_h5":
router.push(
`https://weixin.tiefen.fun/pay/wxpay_h5/${encodeURIComponent(
`https://shop.tiefen.fun/pay/wxpay_h5/${encodeURIComponent(
data.data.wxpay_h5_param_str
)}`
);
@ -273,7 +273,7 @@ export default function Pay() {
</div>
)}
<div className="flex mt-auto mb-12">
<div className="w-full px-2">
<div className="basis-1/2 px-2">
<button
onClick={() => createOrder("alipay_h5")}
className="flex flex-row h-12 w-full items-center justify-center bg-primary rounded-full py-2"
@ -287,7 +287,7 @@ export default function Pay() {
<p className="text-white text-base ml-1">支付宝</p>
</button>
</div>
{/* <div className="w-full px-2">
<div className="basis-1/2 px-2">
<button
onClick={() => createOrder("wxpay_h5")}
className="flex flex-row h-12 w-full items-center justify-center bg-primary rounded-full py-2"
@ -300,7 +300,7 @@ export default function Pay() {
</svg>
<p className="text-white text-base ml-1">微信支付</p>
</button>
</div> */}
</div>
</div>
</div>
</section>

View File

@ -13,7 +13,7 @@ export default function Purchased() {
const router = useRouter();
useEffect(() => {
const prepare = async () => {
if (window.location.origin === "https://weixin.tiefen.fun") {
if (window.location.origin === "https://shop.tiefen.fun") {
router.replace("https://tiefen.fun/purchased");
return;
}

View File

@ -125,7 +125,7 @@ export default function Vip() {
break;
case "wxpay_h5":
router.push(
`https://weixin.tiefen.fun/pay/wxpay_h5/${encodeURIComponent(
`https://shop.tiefen.fun/pay/wxpay_h5/${encodeURIComponent(
data.data.wxpay_h5_param_str
)}`
);
@ -246,7 +246,7 @@ export default function Vip() {
<div className="h-12 bg-gradient-to-t from-[#07050AE5] to-[#07050A00]"></div>
<div className="flex flex-col pt-3 pb-11 px-4 bg-[#07050AE5]">
<div className="flex flex-row justify-between">
<div className="w-full px-2">
<div className="basis-1/2 px-2">
<div
onClick={() => createOrder("alipay_h5")}
className="flex flex-row cursor-pointer gap-1.5 h-11 items-center justify-center bg-primary rounded-full"
@ -257,7 +257,7 @@ export default function Vip() {
</p>
</div>
</div>
{/* <div className="w-full px-2">
<div className="basis-1/2 px-2">
<div
onClick={() => createOrder("wxpay_h5")}
className="flex flex-row cursor-pointer gap-1.5 h-11 items-center justify-center bg-primary rounded-full"
@ -272,7 +272,7 @@ export default function Vip() {
微信支付
</p>
</div>
</div> */}
</div>
</div>
<p className="text-secondary text-xs font-medium mt-4 text-center mb-1">
确认购买即视为同意

View File

@ -140,7 +140,7 @@ export default function Pay({ params }) {
break;
case "wxpay_h5":
router.push(
`https://weixin.tiefen.fun/pay/wxpay_h5/${encodeURIComponent(
`https://shop.tiefen.fun/pay/wxpay_h5/${encodeURIComponent(
data.data.wxpay_h5_param_str
)}`
);
@ -305,7 +305,7 @@ export default function Pay({ params }) {
<div className="h-12 bg-gradient-to-t from-[#07050AE5] to-[#07050A00]"></div>
<div className="flex flex-col pt-3 pb-11 px-4 bg-[#07050AE5]">
<div className="flex flex-row justify-between">
<div className="w-full px-2">
<div className="basis-1/2 px-2">
<div
onClick={() => createOrder("alipay_h5")}
className="flex flex-row cursor-pointer gap-1.5 h-11 items-center justify-center bg-primary rounded-full"
@ -316,7 +316,7 @@ export default function Pay({ params }) {
</p>
</div>
</div>
{/* <div className="w-full px-2">
<div className="basis-1/2 px-2">
<div
onClick={() => createOrder("wxpay_h5")}
className="flex flex-row cursor-pointer gap-1.5 h-11 items-center justify-center bg-primary rounded-full"
@ -331,7 +331,7 @@ export default function Pay({ params }) {
微信支付
</p>
</div>
</div> */}
</div>
</div>
<p className="text-secondary text-xs font-medium mt-4 text-center mb-1">
确认购买即视为同意