Port modular price, product, and PWA fixes into boursecu
Sync live quote handling, SSE product images, store hours, file URL normalization, PWA icon cache, TV monitor, about software, SuperAdmin menu gates, price alerts, and related UX from modular while preserving boursecu branding and config constraints. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -18,12 +18,11 @@
|
||||
</div>
|
||||
|
||||
<div class="deposit-guide__accounts">
|
||||
<div class="deposit-guide__account-row">
|
||||
<div v-if="hasDepositCardValue" class="deposit-guide__account-row">
|
||||
<span class="deposit-guide__account-label">{{ depositCardLabel }}</span>
|
||||
<button
|
||||
type="button"
|
||||
class="deposit-guide__account-value"
|
||||
:class="{ 'deposit-guide__account-value--empty': !hasDepositCardValue }"
|
||||
:aria-label="`کپی ${depositCardLabel}`"
|
||||
@click="copyDepositCardNumber"
|
||||
>
|
||||
@@ -33,17 +32,33 @@
|
||||
size="18"
|
||||
color="#15803d"
|
||||
class="deposit-guide__copy-icon"
|
||||
:class="{ 'deposit-guide__copy-icon--disabled': !hasDepositCardValue }"
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="deposit-guide__account-row">
|
||||
<div v-if="hasDepositAccountNumberValue" class="deposit-guide__account-row">
|
||||
<span class="deposit-guide__account-label">{{ depositAccountNumberLabel }}</span>
|
||||
<button
|
||||
type="button"
|
||||
class="deposit-guide__account-value"
|
||||
:aria-label="`کپی ${depositAccountNumberLabel}`"
|
||||
@click="copyDepositAccountNumber"
|
||||
>
|
||||
<span class="deposit-guide__account-text" dir="ltr">{{ depositAccountNumber }}</span>
|
||||
<BasicIcon
|
||||
icon="vuesax-linear:copy"
|
||||
size="18"
|
||||
color="#15803d"
|
||||
class="deposit-guide__copy-icon"
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div v-if="hasDepositShebaValue" class="deposit-guide__account-row">
|
||||
<span class="deposit-guide__account-label">{{ depositShebaLabel }}</span>
|
||||
<button
|
||||
type="button"
|
||||
class="deposit-guide__account-value"
|
||||
:class="{ 'deposit-guide__account-value--empty': !hasDepositShebaValue }"
|
||||
:aria-label="`کپی ${depositShebaLabel}`"
|
||||
@click="copyDepositShebaNumber"
|
||||
>
|
||||
@@ -53,7 +68,6 @@
|
||||
size="18"
|
||||
color="#15803d"
|
||||
class="deposit-guide__copy-icon"
|
||||
:class="{ 'deposit-guide__copy-icon--disabled': !hasDepositShebaValue }"
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
@@ -119,12 +133,16 @@ const props = withDefaults(
|
||||
|
||||
const {
|
||||
depositCardNumber,
|
||||
depositAccountNumber,
|
||||
depositSheba,
|
||||
depositCardLabel,
|
||||
depositAccountNumberLabel,
|
||||
depositShebaLabel,
|
||||
hasDepositCardValue,
|
||||
hasDepositAccountNumberValue,
|
||||
hasDepositShebaValue,
|
||||
copyDepositCardNumber,
|
||||
copyDepositAccountNumber,
|
||||
copyDepositShebaNumber,
|
||||
hasMessengerLink,
|
||||
openDepositSupportMessenger,
|
||||
|
||||
@@ -146,7 +146,7 @@ export function useWalletPage() {
|
||||
async function addCard() {
|
||||
try {
|
||||
loading.value = true
|
||||
await createCard(cardForm.value)
|
||||
const res: any = await createCard(cardForm.value)
|
||||
await getCards()
|
||||
showAddCard.value = false
|
||||
cardForm.value = {
|
||||
@@ -156,7 +156,9 @@ export function useWalletPage() {
|
||||
cart_number: '',
|
||||
shaba_number: '',
|
||||
}
|
||||
message.success('کارت وارد شده با موفقیت افزوده شد و پس از تایید نمایش داده خواهد شد.')
|
||||
message.success(
|
||||
res?.message || 'اطلاعات کارت بانکی شما ثبت شد و پس از تایید ادمین فعال سازی خواهد شد',
|
||||
)
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user