新增微信支付

This commit is contained in:
2026-04-13 17:25:33 +08:00
parent dca43a2d0d
commit d060e1b797
8 changed files with 165 additions and 29 deletions
+21 -6
View File
@@ -165,14 +165,29 @@
</div>
@if ($vipPaymentEnabled)
<form action="{{ route('vip.payment.store') }}" method="POST" class="mt-6" target="_blank">
<form action="{{ route('vip.payment.store') }}" method="POST" class="mt-6 space-y-3" target="_blank">
@csrf
<input type="hidden" name="vip_level_id" value="{{ $vip->id }}">
<button type="submit"
@if($isDisabled) disabled @endif
class="w-full py-3.5 rounded-2xl {{ $btnColor }} font-bold text-sm transition-all duration-200 active:scale-[0.98] shadow-sm">
{{ $btnText }}
</button>
@if ($isDisabled)
<button type="button" disabled
class="w-full py-3.5 rounded-2xl {{ $btnColor }} font-bold text-sm transition-all duration-200 shadow-sm">
{{ $btnText }}
</button>
@else
<div class="grid grid-cols-2 gap-3">
<button type="submit" name="provider" value="alipay"
class="py-3.5 rounded-2xl {{ $btnColor }} font-bold text-sm transition-all duration-200 active:scale-[0.98] shadow-sm">
支付宝支付
</button>
<button type="submit" name="provider" value="wechat"
class="py-3.5 rounded-2xl border border-emerald-200 bg-emerald-50 text-emerald-700 font-bold text-sm transition-all duration-200 active:scale-[0.98] shadow-sm hover:bg-emerald-100">
微信支付
</button>
</div>
<p class="text-[11px] text-gray-400">
{{ $btnText }}后,支付宝会打开支付页,微信会跳转到平台二维码页。
</p>
@endif
</form>
@endif
</div>