新增微信支付
This commit is contained in:
@@ -406,12 +406,18 @@
|
||||
|
||||
@if ($vip->price > 0 && $vipPaymentEnabled)
|
||||
<form action="{{ route('vip.payment.store') }}" method="POST"
|
||||
onsubmit="return confirm('确认支付 {{ $vip->price }} 元购买【{{ $vip->name }}】吗?');">
|
||||
class="inline-flex items-center gap-2">
|
||||
@csrf
|
||||
<input type="hidden" name="vip_level_id" value="{{ $vip->id }}">
|
||||
<button type="submit"
|
||||
<button type="submit" name="provider" value="alipay"
|
||||
onclick="return confirm('确认使用支付宝支付 {{ $vip->price }} 元购买【{{ $vip->name }}】吗?');"
|
||||
class="px-3 py-1.5 rounded-lg bg-indigo-600 text-white text-xs font-bold hover:bg-indigo-700 transition">
|
||||
{{ $isCurrentVipLevel ? '立即续费' : '立即购买' }}
|
||||
支付宝
|
||||
</button>
|
||||
<button type="submit" name="provider" value="wechat"
|
||||
onclick="return confirm('确认使用微信支付 {{ $vip->price }} 元购买【{{ $vip->name }}】吗?');"
|
||||
class="px-3 py-1.5 rounded-lg bg-emerald-600 text-white text-xs font-bold hover:bg-emerald-700 transition">
|
||||
微信
|
||||
</button>
|
||||
</form>
|
||||
@elseif ($vip->price > 0)
|
||||
|
||||
Reference in New Issue
Block a user