统一摸大红PC支付方式选择为带图标弹窗
抽取PayWaySelectDialog,与租号端一致展示微信/支付宝图标。
This commit is contained in:
@@ -11,6 +11,7 @@ import {
|
||||
} from '@/features/mohong/api/mohong'
|
||||
import MohongCartPanel from '@/features/mohong/components/MohongCartPanel.vue'
|
||||
import { useMohongCart } from '@/features/mohong/composables/useMohongCart'
|
||||
import PayWaySelectDialog from '@/features/orders/components/PayWaySelectDialog.vue'
|
||||
import type { PaymentPayWay } from '@/features/orders/api/orders'
|
||||
import { useOrderPaymentCashier } from '@/features/orders/composables/useOrderPaymentCashier'
|
||||
import { useSessionStore } from '@/stores/session'
|
||||
@@ -260,25 +261,11 @@ async function handleBuy() {
|
||||
:start-cashier="(payment, onPaid) => cashier.openPaymentCashier(payment, onPaid)"
|
||||
/>
|
||||
|
||||
<el-dialog
|
||||
<PayWaySelectDialog
|
||||
v-model="payWayDialogVisible"
|
||||
title="选择支付方式"
|
||||
width="420px"
|
||||
append-to-body
|
||||
@choose="choosePayWay"
|
||||
@closed="handlePayWayDialogClosed"
|
||||
>
|
||||
<p class="pay-way-tip">选择渠道后将生成对应的支付二维码</p>
|
||||
<div class="pay-way-options">
|
||||
<button type="button" class="pay-way-option wechat" @click="choosePayWay('WXZF')">
|
||||
<strong>微信支付</strong>
|
||||
<small>使用微信扫码完成支付</small>
|
||||
</button>
|
||||
<button type="button" class="pay-way-option alipay" @click="choosePayWay('ZFBZF')">
|
||||
<strong>支付宝支付</strong>
|
||||
<small>使用支付宝扫码完成支付</small>
|
||||
</button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
/>
|
||||
|
||||
<el-dialog
|
||||
v-model="cashier.paymentPopupVisible.value"
|
||||
@@ -509,41 +496,6 @@ async function handleBuy() {
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.pay-way-tip {
|
||||
margin: 0 0 14px;
|
||||
color: #6b7a90;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.pay-way-options {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.pay-way-option {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
width: 100%;
|
||||
padding: 14px 16px;
|
||||
border: 1px solid #e7edf6;
|
||||
border-radius: 12px;
|
||||
background: #fff;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.pay-way-option:hover {
|
||||
border-color: #ff6a00;
|
||||
}
|
||||
|
||||
.pay-way-option strong {
|
||||
color: #17233d;
|
||||
}
|
||||
|
||||
.pay-way-option small {
|
||||
color: #8a94a6;
|
||||
}
|
||||
|
||||
.pay-dialog-body {
|
||||
display: grid;
|
||||
gap: 16px;
|
||||
|
||||
Reference in New Issue
Block a user