This commit is contained in:
merelendor 2024-07-18 18:40:22 +03:00
commit 8e04f9a4b0
4 changed files with 17 additions and 4 deletions

View File

@ -32,6 +32,19 @@ const WrappedApp = (props) =>
<> <>
{ !props.observer && ( { !props.observer && (
<> <>
<Script
src={`https://www.googletagmanager.com/gtag/js?id=${ process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_ID }`}
strategy="afterInteractive"
/>
<Script id="google-analytics" strategy="afterInteractive">
{`
window.dataLayer = window.dataLayer || [];
function gtag(){window.dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '${ process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_ID }');
`}
</Script>
<Script id="yandex-metrica" strategy={'afterInteractive'}> <Script id="yandex-metrica" strategy={'afterInteractive'}>
{` {`
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};

View File

@ -68,7 +68,7 @@ export default class InnerMenu extends React.Component
</li> </li>
<li> <li>
<Link href={`/events#additional`} shallow> <Link href={`/events#additional`} shallow>
<a className={ type === "additional" ? "active" : "" }>Дополнительные услуги { count.additional > 0 && (<span>{ count.additional }</span>) }</a> <a className={ type === "additional" ? "active" : "" }>Услуги по договору { count.additional > 0 && (<span>{ count.additional }</span>) }</a>
</Link> </Link>
</li> </li>
<li> <li>

View File

@ -178,7 +178,7 @@ class InnerMenu extends React.Component
{ {
if (route.indexOf("/payments") > -1) return "График платежей"; if (route.indexOf("/payments") > -1) return "График платежей";
if (route.indexOf("/change") > -1) return "Изменить график"; if (route.indexOf("/change") > -1) return "Изменить график";
if (route.indexOf("/services") > -1) return "Дополнительные услуги"; if (route.indexOf("/services") > -1) return "Услуги по договору";
if (route.indexOf("/agreement") > -1) return "Документы по договору"; if (route.indexOf("/agreement") > -1) return "Документы по договору";
if (route.indexOf("/documents") > -1) return "Закрывающие документы"; if (route.indexOf("/documents") > -1) return "Закрывающие документы";
if (route.indexOf("/materials") > -1) return "Документы по ФСБУ 25/2018"; if (route.indexOf("/materials") > -1) return "Документы по ФСБУ 25/2018";
@ -242,7 +242,7 @@ class InnerMenu extends React.Component
) } ) }
<li> <li>
<Link href={`/contract/${ number }/services`} shallow> <Link href={`/contract/${ number }/services`} shallow>
<a className={ this.props.router && this.props.router.asPath.indexOf("services") > -1 ? "active" : "" }>Дополнительные услуги</a> <a className={ this.props.router && this.props.router.asPath.indexOf("services") > -1 ? "active" : "" }>Услуги по договору</a>
</Link> </Link>
</li> </li>
<li> <li>

View File

@ -401,7 +401,7 @@ class IndexPage extends React.Component
<div className="table_cell">Гос.номер / VIN</div> <div className="table_cell">Гос.номер / VIN</div>
<div className={`table_cell caret ${sort_status === "asc" ? "reverse" : ""}`} onClick={this._handle_onChangeSort_status}>Статус</div> <div className={`table_cell caret ${sort_status === "asc" ? "reverse" : ""}`} onClick={this._handle_onChangeSort_status}>Статус</div>
<div className="table_cell">Следующий платеж</div> <div className="table_cell">Следующий платеж</div>
<div className="table_cell">Дополнительные услуги</div> <div className="table_cell">Услуги по договору</div>
</div> </div>
{ contracts !== undefined && contracts !== null && ( { contracts !== undefined && contracts !== null && (
<> <>