Showing
3 changed files
with
5 additions
and
4 deletions
@@ -34,8 +34,6 @@ | @@ -34,8 +34,6 @@ | ||
34 | {{# is_solded}} | 34 | {{# is_solded}} |
35 | <p class="out-tag">已售罄</p> | 35 | <p class="out-tag">已售罄</p> |
36 | {{/ is_solded}} | 36 | {{/ is_solded}} |
37 | - | ||
38 | - | ||
39 | </div> | 37 | </div> |
40 | <div class="good-detail-text"> | 38 | <div class="good-detail-text"> |
41 | <div class="name"> | 39 | <div class="name"> |
@@ -73,7 +73,7 @@ const getSearchData = (params) => { | @@ -73,7 +73,7 @@ const getSearchData = (params) => { | ||
73 | if (result && result.code === 200) { | 73 | if (result && result.code === 200) { |
74 | let newList = {}; | 74 | let newList = {}; |
75 | 75 | ||
76 | - newList.list = productProcess.processProductList(result.data.product_list || [], {showTags: false}); | 76 | + newList.list = productProcess.processProductList(result.data.product_list || [], {showTags: true}); |
77 | 77 | ||
78 | if (parseInt(params.page) === 1) { | 78 | if (parseInt(params.page) === 1) { |
79 | newList.total = result.data.total; | 79 | newList.total = result.data.total; |
@@ -143,10 +143,13 @@ exports.processProductList = (list, options) => { | @@ -143,10 +143,13 @@ exports.processProductList = (list, options) => { | ||
143 | tags[tag] = true; | 143 | tags[tag] = true; |
144 | }); | 144 | }); |
145 | 145 | ||
146 | - tags.is_solded = true; | 146 | + //tags.is_solded = true; |
147 | + | ||
147 | 148 | ||
148 | // product.tags = tags; | 149 | // product.tags = tags; |
149 | 150 | ||
151 | + product.tags = tags; | ||
152 | + | ||
150 | if (tags.is_solded === true) { | 153 | if (tags.is_solded === true) { |
151 | product.is_solded = true; | 154 | product.is_solded = true; |
152 | } | 155 | } |
-
Please register or login to post a comment