Authored by 郭成尧

swiper-index-handle

@@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
4 'use strict'; 4 'use strict';
5 5
6 const api = global.yoho.API; 6 const api = global.yoho.API;
7 -const shopData = require('./redShop.json'); // 这边要改的,开发用。  
8 7
9 /** 8 /**
10 * 获取红人店铺 banner 9 * 获取红人店铺 banner
@@ -60,8 +59,5 @@ exports.getShopsdecorator = shopId => { @@ -60,8 +59,5 @@ exports.getShopsdecorator = shopId => {
60 shop_id: shopId 59 shop_id: shopId
61 }; 60 };
62 61
63 - // 这边要改的,开发用  
64 - return api.get('', params, {cache: true, code: 200}).then(()=> {  
65 - return shopData;  
66 - }); 62 + return api.get('', params, {cache: true, code: 200});
67 }; 63 };
1 -{  
2 - "alg": "SALT_MD5",  
3 - "code": 200,  
4 - "data": {  
5 - "app_type": 0,  
6 - "modules": [  
7 - {  
8 - "module_data": "{\"data\":[{\"resource\":\"\",\"__index\":0,\"linkType\":\"\",\"text\":\"\",\"pic\":\"http://img13.static.yhbimg.com/yhb-img02/2017/02/15/15/02de097cfb04c8574f1c8359593b0ca517.jpg\",\"_num\":0,\"id\":1487142887836327}],\"properties\":{}}",  
9 - "module_order": 0,  
10 - "module_style": 0,  
11 - "module_type": "ShopBanner",  
12 - "template_id": 330  
13 - },  
14 - {  
15 - "module_data": "{\"data\":[{\"resource\":\"318\",\"__index\":0,\"linkType\":\"0\",\"text\":\"教你搭衣-直播\",\"pic\":\"\",\"_num\":0,\"id\":1487569942191581}],\"properties\":{\"isModuleMargin\":\"0\"}}",  
16 - "module_order": 1,  
17 - "module_style": 0,  
18 - "module_type": "Title",  
19 - "template_id": 330  
20 - },  
21 - {  
22 - "module_data": "{\"data\":[{\"__index\":0,\"text\":{\"title\":\"美女直播\",\"content\":\"摩羯座是半身为羊半身为鱼的牧神潘恩的化身,他虽然样貌丑陋,但却可以忍耐他人的诧异眼光,将自己的才华慢\"},\"pic\":\"http://img12.static.yhbimg.com/yhb-img02/2017/02/15/15/0298a3b6b8b212e7d8f3f38d8421df1f76.jpg\",\"video\":\"http://m.yohobuy.com/activity/live/1008?type=1&room=1008&bgpic=http://img11.static.yhbimg.com/yhb-img01/2016/08/24/15/013c2a213f1552a5b6ccf35a346388092d.jpg\",\"_num\":0,\"id\":1487159638187690}],\"properties\":{\"isModuleMargin\":\"1\"}}",  
23 - "module_order": 2,  
24 - "module_style": 0,  
25 - "module_type": "Video",  
26 - "template_id": 330  
27 - },  
28 - {  
29 - "module_data": "{\"data\":[{\"resource\":\"512585254\",\"__index\":0,\"linkType\":\"1\",\"text\":\"\",\"pic\":\"http://img12.static.yhbimg.com/goodsimg/2017/01/19/10/025bb70daacc31170dcc1292dad7bad25d.jpg?imageView2/1/w/750/h/234\",\"_num\":0,\"id\":1487149723218171},{\"resource\":\"318\",\"__index\":1,\"linkType\":\"0\",\"pic\":\"http://img13.static.yhbimg.com/yhb-img02/2017/02/15/15/02973f48e7138837836bea9c6ef7bcec9a.jpg\",\"text\":\"\",\"_num\":1,\"id\":1487149723218357},{\"resource\":\"306\",\"__index\":2,\"linkType\":\"0\",\"pic\":\"http://img12.static.yhbimg.com/yhb-img02/2017/02/15/15/02514c611b2bca2dad0a1103e8a20f259f.jpg\",\"text\":\"\",\"_num\":2,\"id\":1487149723218184},{\"resource\":\"316\",\"__index\":3,\"linkType\":\"0\",\"pic\":\"http://img12.static.yhbimg.com/yhb-img02/2017/02/15/17/02080f7e2b7ab647422c193bc853bd9199.jpg\",\"text\":\"\",\"_num\":3,\"id\":1487149723218835},{\"resource\":\"\",\"__index\":4,\"linkType\":\"\",\"pic\":\"\",\"text\":\"\",\"_num\":4}],\"properties\":{\"isModuleMargin\":\"1\"}}",  
30 - "module_order": 3,  
31 - "module_style": 0,  
32 - "module_type": "CarouselImage",  
33 - "template_id": 330  
34 - },  
35 - {  
36 - "module_data": "{\"data\":[{\"resource\":\"\",\"__index\":0,\"linkType\":\"\",\"text\":\"人气单品\",\"pic\":\"\",\"_num\":0,\"id\":1488854089202716}],\"properties\":{\"isModuleMargin\":0}}",  
37 - "module_order": 4,  
38 - "module_style": 0,  
39 - "module_type": "Title",  
40 - "template_id": 330  
41 - },  
42 - {  
43 - "module_data": "{\"data\":[{\"resource\":\"512584528\",\"__index\":0,\"linkType\":\"1\",\"text\":\"\",\"pic\":\"http://img13.static.yhbimg.com/yhb-img02/2017/02/15/19/02fb415168a414272f3da1b575291f47b2.jpg\",\"_num\":0,\"id\":1487159121493507}],\"properties\":{\"moduleHeight\":203.5,\"width\":750,\"isModuleMargin\":\"1\",\"height\":407}}",  
44 - "module_order": 5,  
45 - "module_style": 0,  
46 - "module_type": "SingleImage",  
47 - "template_id": 330  
48 - },  
49 - {  
50 - "module_data": "{\"data\":[{\"resource\":\"318\",\"__index\":0,\"linkType\":\"0\",\"text\":\"\",\"pic\":\"http://img12.static.yhbimg.com/yhb-img02/2017/02/14/16/026ab48e98e4aefa5d8e86a6fdb6d16b11.jpeg\",\"_num\":0,\"id\":1488854109760857}],\"properties\":{\"moduleHeight\":180,\"width\":750,\"isModuleMargin\":0,\"height\":360}}",  
51 - "module_order": 6,  
52 - "module_style": 0,  
53 - "module_type": "SingleImage",  
54 - "template_id": 330  
55 - },  
56 - {  
57 - "module_data": "{\"data\":[{\"resource\":\"512584528\",\"__index\":0,\"linkType\":\"1\",\"text\":\"\",\"pic\":\"http://img13.static.yhbimg.com/yhb-img02/2017/02/15/19/028e4cb9cc859d3b835debdafe55c9c253.jpg\",\"_num\":0,\"id\":1487159346329669},{\"resource\":\"316\",\"__index\":1,\"linkType\":\"0\",\"text\":\"\",\"pic\":\"http://img12.static.yhbimg.com/yhb-img02/2017/02/14/15/0271e7294c2669b12e4df630fdc539dd7c.jpg\",\"_num\":1,\"id\":1487159346329868}],\"properties\":{\"isModuleMargin\":\"0\"}}",  
58 - "module_order": 7,  
59 - "module_style": 0,  
60 - "module_type": "DoubleImage",  
61 - "template_id": 330  
62 - },  
63 - {  
64 - "module_data": "{\"data\":[{\"resource\":\"512585254\",\"__index\":0,\"linkType\":\"1\",\"text\":\"\",\"pic\":\"http://img12.static.yhbimg.com/goodsimg/2017/01/19/10/025bb70daacc31170dcc1292dad7bad25d.jpg?imageView2/1/w/250/h/330\",\"_num\":0,\"id\":1488854112330352},{\"resource\":\"http://m.yohobuy.com\",\"__index\":1,\"linkType\":\"2\",\"text\":\"\",\"pic\":\"http://img12.static.yhbimg.com/yhb-img02/2017/02/14/16/02be88b7dff97d40d78718b662eca53e24.jpeg\",\"_num\":1,\"id\":1488854112330994},{\"resource\":\"316\",\"__index\":2,\"linkType\":\"0\",\"text\":\"\",\"pic\":\"http://img12.static.yhbimg.com/yhb-img02/2017/02/14/16/02b854375a40cbe612ca6983563f92e248.jpg\",\"_num\":2,\"id\":1488854112330548}],\"properties\":{\"displayType\":\"1\",\"isModuleMargin\":0}}",  
65 - "module_order": 8,  
66 - "module_style": 0,  
67 - "module_type": "TripleImage",  
68 - "template_id": 330  
69 - },  
70 - {  
71 - "module_data": "{\"data\":[{\"resource\":\"316\",\"__index\":0,\"linkType\":\"0\",\"text\":\"\",\"pic\":\"http://img13.static.yhbimg.com/yhb-img02/2017/02/15/15/021ff0baedfe20f52ecc7eb732c93f2c51.jpg\",\"_num\":0,\"id\":1487734345011130},{\"resource\":\"512584852\",\"__index\":1,\"linkType\":\"1\",\"text\":\"\",\"pic\":\"http://img12.static.yhbimg.com/yhb-img02/2017/02/15/15/02acb61e63fc97a7dcf4aa68e01e5b9a47.jpg\",\"_num\":1,\"id\":1487734345011893},{\"resource\":\"https://search.m.yohobuy.com/?filter_poolId=8602&title=开学福利 限量6折&openby:yohobuy={\\\"action\\\":\\\"go.poollist\\\",\\\"params\\\":{\\\"productPool\\\":\\\"358\\\",\\\"title\\\":\\\"开学福利 限量6折\\\"}}\",\"__index\":2,\"linkType\":\"2\",\"text\":\"\",\"pic\":\"http://img12.static.yhbimg.com/yhb-img02/2017/02/15/15/02a505d1cb73afd2b4c34a88f91155cb89.jpg\",\"_num\":2,\"id\":1487734345011103}],\"properties\":{\"displayType\":\"2\",\"isModuleMargin\":\"1\"}}",  
72 - "module_order": 9,  
73 - "module_style": 0,  
74 - "module_type": "TripleImage",  
75 - "template_id": 330  
76 - },  
77 - {  
78 - "module_data": "{\"data\":[{\"resource\":\"318\",\"__index\":0,\"linkType\":\"0\",\"text\":\"\",\"pic\":\"http://img12.static.yhbimg.com/yhb-img02/2017/02/15/15/02505b86d8b2b3eb34b18fd00465450b27.jpg\",\"_num\":0,\"id\":1487733776711599},{\"resource\":\"512583364\",\"__index\":1,\"linkType\":\"1\",\"text\":\"\",\"pic\":\"http://img12.static.yhbimg.com/yhb-img02/2017/02/15/15/02ee39760eb82c859a0419bddd0d1438a1.jpg\",\"_num\":1,\"id\":1487733776711944},{\"resource\":\"https://search.m.yohobuy.com/?filter_poolId=8602&title=开学福利 限量6折&openby:yohobuy={\\\"action\\\":\\\"go.poollist\\\",\\\"params\\\":{\\\"productPool\\\":\\\"8602\\\",\\\"title\\\":\\\"开学福利 限量6折\\\"}}\",\"__index\":2,\"linkType\":\"2\",\"text\":\"\",\"pic\":\"http://img13.static.yhbimg.com/yhb-img02/2017/02/15/15/02e4896d2f489b611e7f4364e1ffe2c967.jpg\",\"_num\":2,\"id\":1487733776711818}],\"properties\":{\"displayType\":\"3\",\"isModuleMargin\":\"1\"}}",  
79 - "module_order": 10,  
80 - "module_style": 0,  
81 - "module_type": "TripleImage",  
82 - "template_id": 330  
83 - },  
84 - {  
85 - "module_data": "{\"data\":[{\"resource\":\"\",\"__index\":0,\"linkType\":\"\",\"text\":\"潮流推荐\",\"pic\":\"\",\"_num\":0,\"id\":1488854095527519}],\"properties\":{\"isModuleMargin\":1}}",  
86 - "module_order": 11,  
87 - "module_style": 0,  
88 - "module_type": "Title",  
89 - "template_id": 330  
90 - },  
91 - {  
92 - "module_data": "{\"data\":[{\"resource\":\"318\",\"__index\":0,\"linkType\":\"0\",\"text\":\"\",\"pic\":\"http://img13.static.yhbimg.com/yhb-img02/2017/02/15/15/021aa19883cc9032c49ecbc8b9075127e9.jpg\",\"_num\":0,\"id\":1487143046390283},{\"resource\":\"512584506\",\"__index\":1,\"linkType\":\"1\",\"text\":\"\",\"pic\":\"http://img13.static.yhbimg.com/yhb-img02/2017/02/15/15/0216a8043ac608d7046ed7edcec0928b2c.jpg\",\"_num\":1,\"id\":1487143046390680},{\"resource\":\"http://item.yohobuy.com/product/pro_505576_668120/5CMnanzhangxiuTxu.html\",\"__index\":2,\"linkType\":\"2\",\"text\":\"\",\"pic\":\"http://img13.static.yhbimg.com/yhb-img02/2017/02/15/15/02c0b953b489534951b9fce0cebc88587c.jpg\",\"_num\":2,\"id\":1487143046390893}],\"properties\":{\"displayType\":\"4\",\"isModuleMargin\":\"1\"}}",  
93 - "module_order": 12,  
94 - "module_style": 0,  
95 - "module_type": "TripleImage",  
96 - "template_id": 330  
97 - },  
98 - {  
99 - "module_data": "{\"data\":[{\"resource\":\"318\",\"__index\":0,\"linkType\":\"0\",\"text\":\"\",\"pic\":\"http://img13.static.yhbimg.com/yhb-img02/2017/02/15/15/029b07cb4e260718e0ba2d7b6ec0376971.jpg\",\"_num\":0,\"id\":1487143131935208},{\"resource\":\"316\",\"__index\":1,\"linkType\":\"0\",\"text\":\"\",\"pic\":\"http://img12.static.yhbimg.com/yhb-img02/2017/02/15/15/02357c0a7a9c212a051996cb592b0177a0.jpg\",\"_num\":1,\"id\":1487143131935934}],\"properties\":{\"isModuleMargin\":\"1\"}}",  
100 - "module_order": 13,  
101 - "module_style": 0,  
102 - "module_type": "DoubleImage",  
103 - "template_id": 330  
104 - },  
105 - {  
106 - "module_data": "{\"data\":[\"512585254\",\"512584528\",\"512584852\",\"512583364\",\"512584506\"]}",  
107 - "module_order": 14,  
108 - "module_style": 0,  
109 - "module_type": "SknList",  
110 - "template_id": 330  
111 - },  
112 - {  
113 - "module_data": "{\"data\":[{\"resource\":\"\",\"__index\":0,\"linkType\":\"\",\"text\":\"\",\"pic\":\"http://img13.static.yhbimg.com/yhb-img02/2017/02/15/15/02de097cfb04c8574f1c8359593b0ca517.jpg\",\"_num\":0,\"id\":1487142887836327,\"showShopInfo\":false}],\"properties\":{},\"showShopInfo\":false}",  
114 - "module_order": 0,  
115 - "module_style": 0,  
116 - "module_type": "ShopBanner",  
117 - "template_id": 330  
118 - },  
119 - {  
120 - "module_data": "{\"data\":[{\"resource\":\"318\",\"__index\":0,\"linkType\":\"0\",\"text\":\"教你搭衣-直播\",\"pic\":\"\",\"_num\":0,\"id\":1487569942191581}],\"properties\":{\"isModuleMargin\":\"0\"}}",  
121 - "module_order": 1,  
122 - "module_style": 0,  
123 - "module_type": "Title",  
124 - "template_id": 330  
125 - },  
126 - {  
127 - "module_data": "{\"data\":[{\"__index\":0,\"text\":{\"title\":\"美女直播\",\"content\":\"摩羯座是半身为羊半身为鱼的牧神潘恩的化身,他虽然样貌丑陋,但却可以忍耐他人的诧异眼光,将自己的才华慢\"},\"pic\":\"http://img12.static.yhbimg.com/yhb-img02/2017/02/15/15/0298a3b6b8b212e7d8f3f38d8421df1f76.jpg\",\"video\":\"http://m.yohobuy.com/activity/live/1008?type=1&room=1008&bgpic=http://img11.static.yhbimg.com/yhb-img01/2016/08/24/15/013c2a213f1552a5b6ccf35a346388092d.jpg\",\"_num\":0,\"id\":1487159638187690}],\"properties\":{\"isModuleMargin\":\"1\"}}",  
128 - "module_order": 2,  
129 - "module_style": 0,  
130 - "module_type": "Video",  
131 - "template_id": 330  
132 - },  
133 - {  
134 - "module_data": "{\"data\":[{\"resource\":\"512585254\",\"__index\":0,\"linkType\":\"1\",\"text\":\"\",\"pic\":\"http://img12.static.yhbimg.com/goodsimg/2017/01/19/10/025bb70daacc31170dcc1292dad7bad25d.jpg?imageView2/1/w/750/h/234\",\"_num\":0,\"id\":1487149723218171},{\"resource\":\"318\",\"__index\":1,\"linkType\":\"0\",\"pic\":\"http://img13.static.yhbimg.com/yhb-img02/2017/02/15/15/02973f48e7138837836bea9c6ef7bcec9a.jpg\",\"text\":\"\",\"_num\":1,\"id\":1487149723218357},{\"resource\":\"306\",\"__index\":2,\"linkType\":\"0\",\"pic\":\"http://img12.static.yhbimg.com/yhb-img02/2017/02/15/15/02514c611b2bca2dad0a1103e8a20f259f.jpg\",\"text\":\"\",\"_num\":2,\"id\":1487149723218184},{\"resource\":\"316\",\"__index\":3,\"linkType\":\"0\",\"pic\":\"http://img12.static.yhbimg.com/yhb-img02/2017/02/15/17/02080f7e2b7ab647422c193bc853bd9199.jpg\",\"text\":\"\",\"_num\":3,\"id\":1487149723218835},{\"resource\":\"\",\"__index\":4,\"linkType\":\"\",\"pic\":\"\",\"text\":\"\",\"_num\":4}],\"properties\":{\"isModuleMargin\":\"1\"}}",  
135 - "module_order": 3,  
136 - "module_style": 0,  
137 - "module_type": "CarouselImage",  
138 - "template_id": 330  
139 - },  
140 - {  
141 - "module_data": "{\"data\":[{\"resource\":\"\",\"__index\":0,\"linkType\":\"\",\"text\":\"人气单品\",\"pic\":\"\",\"_num\":0,\"id\":1488854089202716}],\"properties\":{\"isModuleMargin\":0}}",  
142 - "module_order": 4,  
143 - "module_style": 0,  
144 - "module_type": "Title",  
145 - "template_id": 330  
146 - },  
147 - {  
148 - "module_data": "{\"data\":[{\"resource\":\"512584528\",\"__index\":0,\"linkType\":\"1\",\"showProductInfo\":true,\"text\":\"\",\"pic\":\"http://img13.static.yhbimg.com/yhb-img02/2017/02/15/19/02fb415168a414272f3da1b575291f47b2.jpg\",\"_num\":0,\"id\":1489991517299651}],\"properties\":{\"moduleHeight\":203.5,\"width\":750,\"isModuleMargin\":1,\"height\":407}}",  
149 - "module_order": 5,  
150 - "module_style": 0,  
151 - "module_type": "SingleImage",  
152 - "template_id": 330  
153 - },  
154 - {  
155 - "module_data": "{\"data\":[{\"resource\":\"318\",\"__index\":0,\"linkType\":\"0\",\"text\":\"\",\"pic\":\"http://img12.static.yhbimg.com/yhb-img02/2017/02/14/16/026ab48e98e4aefa5d8e86a6fdb6d16b11.jpeg\",\"_num\":0,\"id\":1488854109760857}],\"properties\":{\"moduleHeight\":180,\"width\":750,\"isModuleMargin\":0,\"height\":360}}",  
156 - "module_order": 6,  
157 - "module_style": 0,  
158 - "module_type": "SingleImage",  
159 - "template_id": 330  
160 - },  
161 - {  
162 - "module_data": "{\"data\":[{\"resource\":\"512584528\",\"__index\":0,\"linkType\":\"1\",\"text\":\"\",\"pic\":\"http://img13.static.yhbimg.com/yhb-img02/2017/02/15/19/028e4cb9cc859d3b835debdafe55c9c253.jpg\",\"_num\":0,\"id\":1487159346329669},{\"resource\":\"316\",\"__index\":1,\"linkType\":\"0\",\"text\":\"\",\"pic\":\"http://img12.static.yhbimg.com/yhb-img02/2017/02/14/15/0271e7294c2669b12e4df630fdc539dd7c.jpg\",\"_num\":1,\"id\":1487159346329868}],\"properties\":{\"isModuleMargin\":\"0\"}}",  
163 - "module_order": 7,  
164 - "module_style": 0,  
165 - "module_type": "DoubleImage",  
166 - "template_id": 330  
167 - },  
168 - {  
169 - "module_data": "{\"data\":[{\"resource\":\"512585254\",\"__index\":0,\"linkType\":\"1\",\"text\":\"\",\"pic\":\"http://img12.static.yhbimg.com/goodsimg/2017/01/19/10/025bb70daacc31170dcc1292dad7bad25d.jpg?imageView2/1/w/250/h/330\",\"_num\":0,\"id\":1488854112330352},{\"resource\":\"http://m.yohobuy.com\",\"__index\":1,\"linkType\":\"2\",\"text\":\"\",\"pic\":\"http://img12.static.yhbimg.com/yhb-img02/2017/02/14/16/02be88b7dff97d40d78718b662eca53e24.jpeg\",\"_num\":1,\"id\":1488854112330994},{\"resource\":\"316\",\"__index\":2,\"linkType\":\"0\",\"text\":\"\",\"pic\":\"http://img12.static.yhbimg.com/yhb-img02/2017/02/14/16/02b854375a40cbe612ca6983563f92e248.jpg\",\"_num\":2,\"id\":1488854112330548}],\"properties\":{\"displayType\":\"1\",\"isModuleMargin\":0}}",  
170 - "module_order": 8,  
171 - "module_style": 0,  
172 - "module_type": "TripleImage",  
173 - "template_id": 330  
174 - },  
175 - {  
176 - "module_data": "{\"data\":[{\"resource\":\"316\",\"__index\":0,\"linkType\":\"0\",\"text\":\"\",\"pic\":\"http://img13.static.yhbimg.com/yhb-img02/2017/02/15/15/021ff0baedfe20f52ecc7eb732c93f2c51.jpg\",\"_num\":0,\"id\":1487734345011130},{\"resource\":\"512584852\",\"__index\":1,\"linkType\":\"1\",\"text\":\"\",\"pic\":\"http://img12.static.yhbimg.com/yhb-img02/2017/02/15/15/02acb61e63fc97a7dcf4aa68e01e5b9a47.jpg\",\"_num\":1,\"id\":1487734345011893},{\"resource\":\"https://search.m.yohobuy.com/?filter_poolId=8602&title=开学福利 限量6折&openby:yohobuy={\\\"action\\\":\\\"go.poollist\\\",\\\"params\\\":{\\\"productPool\\\":\\\"358\\\",\\\"title\\\":\\\"开学福利 限量6折\\\"}}\",\"__index\":2,\"linkType\":\"2\",\"text\":\"\",\"pic\":\"http://img12.static.yhbimg.com/yhb-img02/2017/02/15/15/02a505d1cb73afd2b4c34a88f91155cb89.jpg\",\"_num\":2,\"id\":1487734345011103}],\"properties\":{\"displayType\":\"2\",\"isModuleMargin\":\"1\"}}",  
177 - "module_order": 9,  
178 - "module_style": 0,  
179 - "module_type": "TripleImage",  
180 - "template_id": 330  
181 - },  
182 - {  
183 - "module_data": "{\"data\":[{\"resource\":\"318\",\"__index\":0,\"linkType\":\"0\",\"text\":\"\",\"pic\":\"http://img12.static.yhbimg.com/yhb-img02/2017/02/15/15/02505b86d8b2b3eb34b18fd00465450b27.jpg\",\"_num\":0,\"id\":1487733776711599},{\"resource\":\"512583364\",\"__index\":1,\"linkType\":\"1\",\"text\":\"\",\"pic\":\"http://img12.static.yhbimg.com/yhb-img02/2017/02/15/15/02ee39760eb82c859a0419bddd0d1438a1.jpg\",\"_num\":1,\"id\":1487733776711944},{\"resource\":\"https://search.m.yohobuy.com/?filter_poolId=8602&title=开学福利 限量6折&openby:yohobuy={\\\"action\\\":\\\"go.poollist\\\",\\\"params\\\":{\\\"productPool\\\":\\\"8602\\\",\\\"title\\\":\\\"开学福利 限量6折\\\"}}\",\"__index\":2,\"linkType\":\"2\",\"text\":\"\",\"pic\":\"http://img13.static.yhbimg.com/yhb-img02/2017/02/15/15/02e4896d2f489b611e7f4364e1ffe2c967.jpg\",\"_num\":2,\"id\":1487733776711818}],\"properties\":{\"displayType\":\"3\",\"isModuleMargin\":\"1\"}}",  
184 - "module_order": 10,  
185 - "module_style": 0,  
186 - "module_type": "TripleImage",  
187 - "template_id": 330  
188 - },  
189 - {  
190 - "module_data": "{\"data\":[{\"resource\":\"\",\"__index\":0,\"linkType\":\"\",\"text\":\"潮流推荐\",\"pic\":\"\",\"_num\":0,\"id\":1488854095527519}],\"properties\":{\"isModuleMargin\":1}}",  
191 - "module_order": 11,  
192 - "module_style": 0,  
193 - "module_type": "Title",  
194 - "template_id": 330  
195 - },  
196 - {  
197 - "module_data": "{\"data\":[{\"resource\":\"318\",\"__index\":0,\"linkType\":\"0\",\"text\":\"\",\"pic\":\"http://img13.static.yhbimg.com/yhb-img02/2017/02/15/15/021aa19883cc9032c49ecbc8b9075127e9.jpg\",\"_num\":0,\"id\":1487143046390283},{\"resource\":\"512584506\",\"__index\":1,\"linkType\":\"1\",\"text\":\"\",\"pic\":\"http://img13.static.yhbimg.com/yhb-img02/2017/02/15/15/0216a8043ac608d7046ed7edcec0928b2c.jpg\",\"_num\":1,\"id\":1487143046390680},{\"resource\":\"http://item.yohobuy.com/product/pro_505576_668120/5CMnanzhangxiuTxu.html\",\"__index\":2,\"linkType\":\"2\",\"text\":\"\",\"pic\":\"http://img13.static.yhbimg.com/yhb-img02/2017/02/15/15/02c0b953b489534951b9fce0cebc88587c.jpg\",\"_num\":2,\"id\":1487143046390893}],\"properties\":{\"displayType\":\"4\",\"isModuleMargin\":\"1\"}}",  
198 - "module_order": 12,  
199 - "module_style": 0,  
200 - "module_type": "TripleImage",  
201 - "template_id": 330  
202 - },  
203 - {  
204 - "module_data": "{\"data\":[{\"resource\":\"318\",\"__index\":0,\"linkType\":\"0\",\"text\":\"\",\"pic\":\"http://img13.static.yhbimg.com/yhb-img02/2017/02/15/15/029b07cb4e260718e0ba2d7b6ec0376971.jpg\",\"_num\":0,\"id\":1487143131935208},{\"resource\":\"316\",\"__index\":1,\"linkType\":\"0\",\"text\":\"\",\"pic\":\"http://img12.static.yhbimg.com/yhb-img02/2017/02/15/15/02357c0a7a9c212a051996cb592b0177a0.jpg\",\"_num\":1,\"id\":1487143131935934}],\"properties\":{\"isModuleMargin\":\"1\"}}",  
205 - "module_order": 13,  
206 - "module_style": 0,  
207 - "module_type": "DoubleImage",  
208 - "template_id": 330  
209 - },  
210 - {  
211 - "module_data": "{\"data\":[\"512585254\",\"512584528\",\"512584852\",\"512583364\",\"512584506\"]}",  
212 - "module_order": 14,  
213 - "module_style": 0,  
214 - "module_type": "SknList",  
215 - "template_id": 330  
216 - }  
217 - ],  
218 - "plateform": 0,  
219 - "shop_id": 792,  
220 - "template_id": 330,  
221 - "template_type": 1  
222 - },  
223 - "md5": "537178e031ad7acb17cd7c857079202d",  
224 - "message": "red shops decorator source data."  
225 -}  
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 * @Author: Targaryen 2 * @Author: Targaryen
3 * @Date: 2017-03-23 11:31:51 3 * @Date: 2017-03-23 11:31:51
4 * @Last Modified by: Targaryen 4 * @Last Modified by: Targaryen
5 - * @Last Modified time: 2017-03-24 16:32:30 5 + * @Last Modified time: 2017-03-28 09:46:21
6 */ 6 */
7 /* 红人店铺首页 */ 7 /* 红人店铺首页 */
8 const Swiper2 = require('yoho-swiper2'); 8 const Swiper2 = require('yoho-swiper2');
@@ -49,12 +49,11 @@ $.each($goodsContainer, function(index, elem) { @@ -49,12 +49,11 @@ $.each($goodsContainer, function(index, elem) {
49 /** 49 /**
50 * 店铺轮播图 50 * 店铺轮播图
51 */ 51 */
52 -if ($('.shop-swiper')) { 52 +if ($('.shop-swiper').length > 0) {
53 let num = $('.shop-swiper').length; 53 let num = $('.shop-swiper').length;
54 54
55 for (let i = 1; i <= num; i++) { 55 for (let i = 1; i <= num; i++) {
56 new Swiper2('.shop-swiper-' + i, { 56 new Swiper2('.shop-swiper-' + i, {
57 - lazyLoading: true,  
58 lazyLoadingInPrevNext: true, 57 lazyLoadingInPrevNext: true,
59 loop: true, 58 loop: true,
60 autoplay: 3000, 59 autoplay: 3000,
@@ -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-24 13:41:34 5 + * @Last Modified time: 2017-03-28 09:45:12
6 */ 6 */
7 /* 红人店铺数据处理 */ 7 /* 红人店铺数据处理 */
8 8
@@ -133,6 +133,7 @@ const _tools = { @@ -133,6 +133,7 @@ const _tools = {
133 const floor = (decoratorsData) => { 133 const floor = (decoratorsData) => {
134 let finalData = []; 134 let finalData = [];
135 135
  136 + countCarouselImage = 0;
136 _.forEach(decoratorsData, value => { 137 _.forEach(decoratorsData, value => {
137 try { 138 try {
138 value.module_data = JSON.parse(value.module_data); 139 value.module_data = JSON.parse(value.module_data);