diff --git a/frontend/views/goods/one_item.php b/frontend/views/goods/one_item.php
index 5649a54..0254a61 100644
--- a/frontend/views/goods/one_item.php
+++ b/frontend/views/goods/one_item.php
@@ -20,9 +20,12 @@ $cross_prefix = ( empty($model->crosses) )? '': '_cross';
-
= $model->description?>
-
-
+
+ = $model->description?>
+
endBlock();
diff --git a/frontend/views/goods/one_item1.php b/frontend/views/goods/one_item1.php
deleted file mode 100644
index 845c413..0000000
--- a/frontend/views/goods/one_item1.php
+++ /dev/null
@@ -1,89 +0,0 @@
-registerCssFile('/css/BC2_catalog_zapchasti.css');
-// если товар один и тот же то выводим только цену и кол-во
-// иначе всю информацию
-$new_good = false;
-//в провайдере в качестве ключей установлен - артикул
-$article_arr = $widget->dataProvider->getKeys();
-if ( empty($article_arr[$index - 1]) || $article_arr[$index - 1] != $key )
- // если предыдущий артикул равен текущему, то это тот же товар
- $new_good = true;
-?>
-
-beginBlock('item_details');
-// выделим отдельно детали товара в блок, для опционального его вывода
-?>
-
- = $model->brand?>
- = $model->article?>
-
-
-
- = $model->description?>
-
-
-
-endBlock(); ?>
-
- beginBlock('empty_details');
- // иначе пустой блок
- ?>
-
-
-
-
-
- endBlock(); ?>
-
- blocks['item_details'];
- }else{
- echo $this->blocks['empty_details'];
- }
-
- ?>
-
-
-
-
-
-
-
-
-
-
-
-
- В корзину
-
-
-
-
-
-
-
-
-
-
- = $model->delivery?> дн.
-
-
-
- = $model->outputPrice?>
-
-
-
-
-
-
\ No newline at end of file
diff --git a/frontend/web/css/general_styles.css b/frontend/web/css/general_styles.css
index 0040c29..40051d4 100755
--- a/frontend/web/css/general_styles.css
+++ b/frontend/web/css/general_styles.css
@@ -2760,10 +2760,6 @@ margin-left: 0!important
}
-#modal_form_photo img:nth-child(2){
- display: table;
- margin: 112px auto;
-}
::-webkit-input-placeholder {
color: #333333;
diff --git a/frontend/web/css/main.css b/frontend/web/css/main.css
index d1891e4..af4456b 100755
--- a/frontend/web/css/main.css
+++ b/frontend/web/css/main.css
@@ -625,4 +625,28 @@ div.required:after { content: " *";
.large_width{
padding-left:13px!important;
+}
+
+.thin_line {
+ line-height: 26px;
+}
+
+.bold_line {
+ line-height: 25px;
+}
+
+.row_select {
+ padding-bottom: 8px;
+ width: 163px;
+ position: relative;
+ height: auto;
+}
+
+
+.large_width p{
+ width: 250px;
+ display: inline-block;
+}
+.buttons_sm{
+ display: inline;
}
\ No newline at end of file
diff --git a/frontend/web/js/goods.js b/frontend/web/js/goods.js
index a61fda2..d844098 100644
--- a/frontend/web/js/goods.js
+++ b/frontend/web/js/goods.js
@@ -47,4 +47,58 @@ $( document ).ready(function() {
}
}
-})
+
+//модальное окно для фото
+ $('a#go_photo').click( function(event){ // ловим клик по ссылки с id="go"
+ event.preventDefault(); // выключаем стандартную роль элемента
+ var scrollTop = window.pageYOffset ? window.pageYOffset : (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop);
+ viewportHeight = $(window).height();
+ var modalWidth=$('#modal_form_photo').width()/2;
+ var modalHeight=$('#modal_form_photo').outerHeight()/2;
+ $('#overlay').fadeIn(400, // сначала плавно показываем темную подложку
+ function(){ // после выполнения предъидущей анимации
+ $('#modal_form_photo')
+ .css({'display':'block',opacity: 1, marginTop: -modalHeight, marginLeft: -modalWidth}) // убираем у модального окна display: none;
+ .animate({opacity: 1, top: scrollTop+(viewportHeight/2)}, 200); // плавно прибавляем прозрачность одновременно со съезжанием вниз
+
+
+ });
+
+ });
+ /* Закрытие модального окна, тут делаем то же самое но в обратном порядке */
+ $('#modal_close, #overlay').click( function(){ // ловим клик по крестику или подложке
+ $('#modal_form_photo')
+ .animate({opacity: 0, top: '45%'}, 200, // плавно меняем прозрачность на 0 и одновременно двигаем окно вверх
+ function(){ // после анимации
+ $(this).css('display', 'none'); // делаем ему display: none;
+ $('#overlay').fadeOut(400); // скрываем подложку
+ }
+ );
+ });
+
+
+ //открытие-закрытие карточки товара и смена текста на бирке карточки товара
+ function changeText() {
+ console.log('odfks');
+ e = document.getElementById('button_grey_card');
+ console.log( e.innerHTML );
+ e.innerHTML = e.innerHTML == "Скрыть карточку товара" ? "Открыть карточку товара" : "Скрыть карточку товара";
+ }
+ $('#button_grey_card').click(function(){
+ changeText();
+ $(this).toggleClass('change_b');
+ $('.tovar_card').toggleClass('tovar_card_visible');
+ $('.table').toggleClass('table_height');
+ });
+
+ //стрелочки вниз
+ $('.link_sort').click(function(){
+
+ $(this).find('.desc').toggleClass('arrow_downA');
+
+ })
+
+});
+
+
+
--
libgit2 0.21.4