From f4ab266e5c73ae9630680a2a3abb3426508256b1 Mon Sep 17 00:00:00 2001 From: artweb-job Date: Fri, 6 Jul 2018 17:56:44 +0300 Subject: [PATCH] qwerty --- .gitignore | 1 + app/assets/AppAsset.php | 1 + app/views/layouts/main.php | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ app/views/products/show.php | 2 +- app/widgets/views/_product_view.php | 11 ++--------- css/new-style.scss | 285 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ img/basket/basket-1.jpg | Bin 0 -> 6589 bytes img/basket/ico-remove-b.jpg | Bin 0 -> 1274 bytes index.php | 4 ++++ js/new-basket.js | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 10 files changed, 461 insertions(+), 10 deletions(-) create mode 100644 css/new-style.scss create mode 100644 img/basket/basket-1.jpg create mode 100644 img/basket/ico-remove-b.jpg create mode 100644 js/new-basket.js diff --git a/.gitignore b/.gitignore index d15d877..8eb4b01 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,4 @@ phpunit.phar /files/* upload.tar.gz app/config/db.php +app/config/main-local.php \ No newline at end of file diff --git a/app/assets/AppAsset.php b/app/assets/AppAsset.php index 2caa7a5..eafef29 100755 --- a/app/assets/AppAsset.php +++ b/app/assets/AppAsset.php @@ -19,6 +19,7 @@ class AppAsset extends AssetBundle public $baseUrl = '@web'; public $css = [ 'css/style.css', + 'css/new-style.css', ]; public $js = [ ]; diff --git a/app/views/layouts/main.php b/app/views/layouts/main.php index 98cd3cf..3bcda2c 100755 --- a/app/views/layouts/main.php +++ b/app/views/layouts/main.php @@ -17,6 +17,7 @@ $this->registerJs(" $this->registerJs(" $('.call').call({token:'".Yii::$app->request->getCsrfToken()."'}); ", View::POS_READY, 'call'); +$this->registerJsFile(Yii::$app->request->baseUrl.'/js/new-basket.js',['position'=>View::POS_HEAD,'depends'=>['yii\web\YiiAsset']]); ?> beginPage() ?> @@ -80,6 +81,101 @@ $this->registerJs(" +
+
+
+
+
+ Корзина +
+
+ + + + + + + + + + + + + + + +
+ + + + + + +
цена 22.90 грн
+
+ удалить +
+
+
+ Количество +
+ +
+ + +
+
+
+
цена 45.80 грн
+ + + + + + +
цена 22.90 грн
+
+ удалить +
+
+
+ Количество +
+ +
+ + +
+
+
+
цена 45.80 грн
+ +
+ +
+ Внимание!
Минимальная сумма заказача 100 грн. +
+
+ Общая сумма: 137,4 грн. +
+
+ + +
+
+
+
+
+ endBody() ?>