Authored by 郭成尧

CarouselImage

  1 +require('feature.css');
1 require('product/search/list.page.css'); 2 require('product/search/list.page.css');
2 require('product/shop/redshop.page.css'); 3 require('product/shop/redshop.page.css');
3 4
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 * @Author: Targaryen 2 * @Author: Targaryen
3 * @Date: 2017-03-23 17:12:53 3 * @Date: 2017-03-23 17:12:53
4 * @Last Modified by: Targaryen 4 * @Last Modified by: Targaryen
5 - * @Last Modified time: 2017-03-23 17:14:31 5 + * @Last Modified time: 2017-03-24 10:37:26
6 */ 6 */
7 // 红人店铺首页 7 // 红人店铺首页
8 8
@@ -19,6 +19,7 @@ @@ -19,6 +19,7 @@
19 } 19 }
20 20
21 .section-title { 21 .section-title {
  22 + font-size: 32px;
22 text-align: center; 23 text-align: center;
23 } 24 }
24 25
@@ -35,6 +36,15 @@ @@ -35,6 +36,15 @@
35 36
36 .shop-swiper { 37 .shop-swiper {
37 height: 234px; 38 height: 234px;
  39 + overflow: hidden;
  40 +
  41 + ul {
  42 + width: 100%;
  43 + }
  44 +
  45 + ul > li {
  46 + width: 100%;
  47 + }
38 } 48 }
39 49
40 .shop-video { 50 .shop-video {
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 * @Author: Targaryen 2 * @Author: Targaryen
3 * @Date: 2017-03-23 11:02:31 3 * @Date: 2017-03-23 11:02:31
4 * @Last Modified by: Targaryen 4 * @Last Modified by: Targaryen
5 - * @Last Modified time: 2017-03-23 18:42:30 5 + * @Last Modified time: 2017-03-24 10:32:59
6 */ 6 */
7 /* 红人店铺数据处理 */ 7 /* 红人店铺数据处理 */
8 8
@@ -76,7 +76,11 @@ const floor = (decoratorsData) => { @@ -76,7 +76,11 @@ const floor = (decoratorsData) => {
76 let finalData = []; 76 let finalData = [];
77 77
78 _.forEach(decoratorsData, value => { 78 _.forEach(decoratorsData, value => {
79 - value.module_data = JSON.parse(value.module_data); 79 + try {
  80 + value.module_data = JSON.parse(value.module_data);
  81 + } catch (error) {
  82 + console.log(error);
  83 + }
80 84
81 switch (value.module_type) { 85 switch (value.module_type) {
82 case 'Title': 86 case 'Title':