Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/cvetdv.ru/bitrix/js/sale/payment-pay/components/src/payment-system/ |
Upload File : |
import { BitrixVue } from 'ui.vue'; import { EventType } from 'sale.payment-pay.const'; import { EventEmitter } from 'main.core.events'; BitrixVue.component('sale-payment_pay-components-payment_system-backdrop', { props:['paySystem'], data() { return { isShow: true } }, // language=Vue methods: { close() { this.isShow = false EventEmitter.emit(EventType.payment.reset, {}); }, }, computed: { localize() { return Object.freeze( BitrixVue.getFilteredPhrases('PAYMENT_PAY_PAYMENT_SYSTEM_COMPONENTS_')) }, getObjectClass() { let result = [ 'checkout-basket-item' ]; if(this.isShow === true) { result.push('active-backdrop-open-change-sku active-popup-open') } return result }, title() { return BX.util.htmlspecialchars(this.paySystem.NAME) }, logoStyle() { const defaultLogo = '/bitrix/js/sale/payment-pay/images/default_logo.png'; const src = this.paySystem.LOGOTIP || defaultLogo; return `background-image: url("${BX.util.htmlspecialchars(src)}")`; } }, template: ` <div :class=getObjectClass> <div class="checkout-basket-item-backdrop-wrapper js-backdrop-open-change-sku"> <div class="checkout-basket-item-backdrop-overlay js-backdrop-open-change-sku"></div> <div class="checkout-basket-item-backdrop-container js-backdrop-open-change-sku"> <div class="checkout-basket-item-detail-header justify-content-between align-items-center"> <div id="bx_3966226736_424_7e1b8e3524755c391129a9d7e6f2d206_prebuy_swipe_btn" class="checkout-basket-item-detail-swipe-btn-container"> <div class="checkout-basket-item-detail-swipe-btn"></div> </div> <div class="checkout-order-payment-close" @click="close()">{{ localize.PAYMENT_PAY_PAYMENT_SYSTEM_COMPONENTS_12 }}</div> </div> <div class="checkout-basket-item-backdrop-inner"> <div class="checkout-basket-item-backdrop-main"> <div class="checkout-order-payment-title"> <div class="checkout-basket-pay-method-item-logo-block"> <div :style=logoStyle class="checkout-basket-pay-method-logo"/> </div> <div class="checkout-order-payment-title-text">{{title}}</div> </div> <slot name="main-content"></slot> </div> </div> </div> </div> </div> `, });