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/rospirotorg.ru/bitrix/js/sale/checkout/view/successful/src/ |
Upload File : |
import { BitrixVue } from 'ui.vue'; import 'sale.checkout.view.element.button'; import { Property as Const } from 'sale.checkout.const'; import './call' import './property-list'; BitrixVue.component('sale-checkout-view-successful', { props: ['items', 'order', 'config'], computed: { localize() { return Object.freeze( BitrixVue.getFilteredPhrases('CHECKOUT_VIEW_SUCCESSFUL_')) }, getItemsForView() { const itemsForView = []; for (let propertyId in this.items) { const item = this.items[propertyId]; if (BX.util.in_array(item.type, [ Const.type.name, Const.type.phone, Const.type.email, ])) { itemsForView.push(item); } } return itemsForView; } }, // language=Vue template: ` <div class="checkout-order-status-successful"> <svg class="checkout-order-status-icon" width="106" height="106" viewBox="0 0 106 106" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle class="checkout-order-status-icon-circle" stroke-width="3" cx="53" cy="53" r="51"/> <path class="checkout-order-status-icon-angle" fill="#fff" fill-rule="evenodd" clip-rule="evenodd" d="M45.517 72L28.5 55.4156L34.4559 49.611L45.517 60.3909L70.5441 36L76.5 41.8046L45.517 72Z"/> </svg> <div class="checkout-order-status-text"> {{localize.CHECKOUT_VIEW_SUCCESSFUL_STATUS_ORDER_CREATED}} </div> <sale-checkout-view-successful-property_list :items="getItemsForView" :order="order"/> <sale-checkout-view-element-button-shipping-button_to_checkout/> <sale-checkout-view-element-button-shipping-link :url="config.mainPage"> <template v-slot:link-title>{{localize.CHECKOUT_VIEW_SUCCESSFUL_ELEMENT_BUTTON_SHIPPING_BUY}}</template> </sale-checkout-view-element-button-shipping-link> </div> ` });