403Webshell
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/checkout/view/product/src/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/cvetdv.ru/bitrix/js/sale/checkout/view/product/src/summary.js
import { BitrixVue } from 'ui.vue';
import { EventEmitter } from 'main.core.events';
import { EventType, Application } from 'sale.checkout.const';

import 'sale.checkout.view.element.animate-price'

BitrixVue.component('sale-checkout-view-product-summary', {
	props: ['total', 'mode'],
	methods:
	{
		hasDiscount()
		{
			return this.total.discount.sum !== 0;
		},
		backdropTotalOpen()
		{
			EventEmitter.emit(EventType.basket.backdropTotalOpen)
		}
	},
	computed:
	{
		localize() {
			return Object.freeze(
				BitrixVue.getFilteredPhrases('CHECKOUT_VIEW_SUMMARY_'))
		},
		getConstMode()
		{
			return Application.mode
		}
	},
	// language=Vue
	template: `
		<div class="checkout-basket-summary-container">
			<!--region mobile -->
			<div class="checkout-basket-mobile-only checkout-basket-summary-discount checkout-summary-item-discount" v-if="hasDiscount()">
				<div class="checkout-basket-summary-text">{{localize.CHECKOUT_VIEW_SUMMARY_BASKET_PROFIT}}</div>
				<div class="checkout-item-price-block">
					<span class="checkout-summary-item-price-discount">
						<sale-checkout-view-element-animate_price :sum="this.total.discount.sum" :currency="this.total.currency" :prefix="'-'"/>
					</span>
				</div>
			</div>
			<!--endregion-->

			<!--region web-->
			<div class="checkout-basket-summary">
				<div class="checkout-basket-summary-text">{{localize.CHECKOUT_VIEW_SUMMARY_BASKET_ITEMS}}</div>
				<div class="checkout-item-price-block">
					<div class="checkout-item-price-discount-container checkout-basket-desktop-only" v-if="hasDiscount()">
						<span class="checkout-item-price-discount">
							<sale-checkout-view-element-animate_price :sum="this.total.basePrice" :currency="this.total.currency" />
						</span>
						<span class="checkout-item-price-discount-diff">
							<sale-checkout-view-element-animate_price :sum="this.total.discount.sum" :currency="this.total.currency" :prefix="'-'"/>
						</span>
					</div>
					<span class="checkout-item-price">
						<sale-checkout-view-element-animate_price :sum="this.total.price" :currency="this.total.currency" />
					</span>
				</div>
				<template v-if="mode === getConstMode.view">
					<div class="d-block w-100 text-right">
						<span class="checkout-basket-total-backdrop-btn checkout-basket-mobile-only" @click="backdropTotalOpen">{{localize.CHECKOUT_VIEW_SUMMARY_DETAILS}}</span>
					</div>
				</template>
			</div>
			<!--endregion-->
		</div>
	`
});

Youez - 2016 - github.com/yon3zu
LinuXploit