Authored by 陈峰

commit

@@ -65,9 +65,10 @@ export default { @@ -65,9 +65,10 @@ export default {
65 } 65 }
66 66
67 .layout-content { 67 .layout-content {
  68 + width: 100%;
  69 + height: 100%;
68 flex: 1; 70 flex: 1;
69 - overflow-y: auto;  
70 - overflow-x: hidden; 71 + overflow: hidden;
71 -webkit-overflow-scrolling: touch; 72 -webkit-overflow-scrolling: touch;
72 } 73 }
73 } 74 }
@@ -11,6 +11,11 @@ export default { @@ -11,6 +11,11 @@ export default {
11 }, 11 },
12 [Types.FETCH_ARTICLE_LIST_SUCCESS](state, {data}) { 12 [Types.FETCH_ARTICLE_LIST_SUCCESS](state, {data}) {
13 state.fetchArticleList = false; 13 state.fetchArticleList = false;
  14 + data.forEach(item => {
  15 + get(item, 'productList', []).forEach(product => {
  16 + product.favorite = false;
  17 + });
  18 + });
14 state.articleList = state.articleList.concat(data); 19 state.articleList = state.articleList.concat(data);
15 20
16 state.articleList.forEach((item, index) => { 21 state.articleList.forEach((item, index) => {
@@ -25,11 +30,6 @@ export default { @@ -25,11 +30,6 @@ export default {
25 } 30 }
26 item.index = index; 31 item.index = index;
27 }); 32 });
28 - data.forEach(item => {  
29 - get(item, 'productList', []).forEach(product => {  
30 - product.favorite = false;  
31 - });  
32 - });  
33 }, 33 },
34 [Types.FETCH_ARTICLE_LIST_FAILD](state) { 34 [Types.FETCH_ARTICLE_LIST_FAILD](state) {
35 state.fetchArticleList = false; 35 state.fetchArticleList = false;