parent
67a8e1b1c0
commit
9b2bc20c69
@ -34,7 +34,9 @@
|
|||||||
"node_modules/primeng/resources/primeng.min.css",
|
"node_modules/primeng/resources/primeng.min.css",
|
||||||
"src/styles.scss"
|
"src/styles.scss"
|
||||||
],
|
],
|
||||||
"scripts": [],
|
"scripts": [
|
||||||
|
"src/assets/firebase-messaging-sw.js"
|
||||||
|
],
|
||||||
"serviceWorker": true,
|
"serviceWorker": true,
|
||||||
"ngswConfigPath": "ngsw-config.json"
|
"ngswConfigPath": "ngsw-config.json"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -25,21 +25,21 @@ export const PageListWithBonus: Page[] = [
|
|||||||
{
|
{
|
||||||
code: PageCode.BonusProgram,
|
code: PageCode.BonusProgram,
|
||||||
name: 'Ваша карта лояльности',
|
name: 'Ваша карта лояльности',
|
||||||
description: 'Lorem Ipsum - это текст-"рыба", часто используемый в печати и вэб-дизайне.',
|
description: '',
|
||||||
resName: 'bonus-program',
|
resName: 'bonus-program',
|
||||||
onSideBar: true,
|
onSideBar: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
code: PageCode.Orders,
|
code: PageCode.Orders,
|
||||||
name: 'Ваши чеки',
|
name: 'Ваши чеки',
|
||||||
description: 'Lorem Ipsum - это текст-"рыба", часто используемый в печати и вэб-дизайне.',
|
description: '',
|
||||||
resName: 'orders',
|
resName: 'orders',
|
||||||
onSideBar: true,
|
onSideBar: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
code: PageCode.RefSystem,
|
code: PageCode.RefSystem,
|
||||||
name: 'Пригласить друга',
|
name: 'Пригласить друга',
|
||||||
description: 'Lorem Ipsum - это текст-"рыба", часто используемый в печати и вэб-дизайне.',
|
description: '',
|
||||||
resName: 'ref-system',
|
resName: 'ref-system',
|
||||||
onSideBar: true,
|
onSideBar: true,
|
||||||
},
|
},
|
||||||
|
|||||||
@ -2,7 +2,7 @@ button {
|
|||||||
margin-right: 1rem;
|
margin-right: 1rem;
|
||||||
padding: 4px 21px;
|
padding: 4px 21px;
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
background-color: #009688;
|
background-color: #09467f;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
border: none;
|
border: none;
|
||||||
|
|||||||
@ -4,6 +4,7 @@
|
|||||||
padding: 20px 18px;
|
padding: 20px 18px;
|
||||||
nav {
|
nav {
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
|
margin-top: 26px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
ul {
|
ul {
|
||||||
|
|||||||
@ -45,7 +45,6 @@
|
|||||||
<form
|
<form
|
||||||
class="woocommerce-form woocommerce-form-login login"
|
class="woocommerce-form woocommerce-form-login login"
|
||||||
action="false"
|
action="false"
|
||||||
style="height: 334px;"
|
|
||||||
(submit)="confirmCode($event)"
|
(submit)="confirmCode($event)"
|
||||||
>
|
>
|
||||||
<h2>Вход</h2>
|
<h2>Вход</h2>
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
:host {
|
:host {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
.woocommerce-form-login__submit {
|
.woocommerce-form-login__submit {
|
||||||
width: 150px;
|
width: 150px;
|
||||||
}
|
}
|
||||||
@ -35,9 +37,11 @@
|
|||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
box-shadow: 0px 0px 10px rgb(0 0 0 / 15%);
|
box-shadow: 0px 0px 10px rgb(0 0 0 / 15%);
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
height: 262px;
|
min-height: 262px;
|
||||||
|
max-width: 400px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
padding-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-row {
|
.form-row {
|
||||||
@ -85,9 +89,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.decoration-pattern {
|
.decoration-pattern {
|
||||||
position: absolute;
|
|
||||||
bottom: 10px;
|
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 34px;
|
height: 34px;
|
||||||
background: url("../../../../assets/card-decorative-pattern.png") repeat-x;
|
background: url("../../../../assets/card-decorative-pattern.png") repeat-x;
|
||||||
|
|||||||
@ -1,30 +1,32 @@
|
|||||||
<div class="woocommerce-MyAccount-content">
|
<div class="woocommerce-MyAccount-content">
|
||||||
<h2>{{currentPage.name}}</h2>
|
<h2>{{currentPage.name}}</h2>
|
||||||
<p>{{currentPage.description}}</p>
|
<!-- <p>{{currentPage.description}}</p> -->
|
||||||
<div class="card-container">
|
<div style="display: flex;justify-content: center;">
|
||||||
<div class="card-container__header">
|
<div class="card-container">
|
||||||
<img src="../../../../assets/logo.svg" alt="Логотип карта">
|
<div class="card-container__header">
|
||||||
<span *ngIf="accountData">#{{accountData.CardNumber}}</span>
|
<img src="../../../../assets/logo.svg" alt="Логотип карта">
|
||||||
</div>
|
<span *ngIf="accountData">#{{accountData.CardNumber}}</span>
|
||||||
<div class="card-container__decorative-pattern">
|
|
||||||
<div class="imgs-row"></div>
|
|
||||||
<div class="imgs-row" style="background-position-x: -22px;"></div>
|
|
||||||
<div class="imgs-row"></div>
|
|
||||||
</div>
|
|
||||||
<div class="card-container__content">
|
|
||||||
<div class="info" *ngIf="accountData">
|
|
||||||
<div class="row">
|
|
||||||
<span class="key">Имя</span>
|
|
||||||
<span class="value" *ngIf="accountData.BonusProgramName">{{accountData.BonusProgramName}}</span>
|
|
||||||
<span class="value" *ngIf="!accountData.BonusProgramName">Не задано</span>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<span class="key">Баланс карты</span>
|
|
||||||
<span class="value">{{accountData.Bonuses}}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="card-container__barcode-container">
|
<div class="card-container__decorative-pattern">
|
||||||
<svg id="barcode"></svg>
|
<div class="imgs-row"></div>
|
||||||
|
<div class="imgs-row" style="background-position-x: -22px;"></div>
|
||||||
|
<div class="imgs-row"></div>
|
||||||
|
</div>
|
||||||
|
<div class="card-container__content">
|
||||||
|
<div class="info" *ngIf="accountData">
|
||||||
|
<div class="row">
|
||||||
|
<span class="key">Имя</span>
|
||||||
|
<span class="value" *ngIf="accountData.BonusProgramName">{{accountData.BonusProgramName}}</span>
|
||||||
|
<span class="value" *ngIf="!accountData.BonusProgramName">Не задано</span>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<span class="key">Баланс карты</span>
|
||||||
|
<span class="value">{{accountData.Bonuses}}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-container__barcode-container">
|
||||||
|
<svg id="barcode"></svg>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -22,6 +22,8 @@
|
|||||||
height: 466px;
|
height: 466px;
|
||||||
margin-top: 11px;
|
margin-top: 11px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
max-width: 400px;
|
||||||
|
width: 100%;
|
||||||
&__header {
|
&__header {
|
||||||
height: 62px;
|
height: 62px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
@ -79,7 +81,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 33px 0;
|
padding: 33px 0;
|
||||||
#barcode {
|
#barcode {
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
13
src/assets/firebase-messaging-sw.js
Normal file
13
src/assets/firebase-messaging-sw.js
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
importScripts('https://www.gstatic.com/firebasejs/3.6.8/firebase-app.js');
|
||||||
|
importScripts('https://www.gstatic.com/firebasejs/3.6.8/firebase-messaging.js');
|
||||||
|
|
||||||
|
firebase.initializeApp({
|
||||||
|
apiKey: "AIzaSyCujHg9GtN8Uxi-JcCN8zggvXlfNQRKc04",
|
||||||
|
authDomain: "push-notification-test2-56dac.firebaseapp.com",
|
||||||
|
projectId: "push-notification-test2-56dac",
|
||||||
|
storageBucket: "push-notification-test2-56dac.appspot.com",
|
||||||
|
messagingSenderId: "1004369687552",
|
||||||
|
appId: "1:1004369687552:web:a6cc20625e05520a37d4e5"
|
||||||
|
});
|
||||||
|
|
||||||
|
const messaging = firebase.messaging();
|
||||||
Loading…
Reference in New Issue
Block a user