Showing
2 changed files
with
6 additions
and
0 deletions
@@ -179,8 +179,10 @@ | @@ -179,8 +179,10 @@ | ||
179 | 179 | ||
180 | </style> | 180 | </style> |
181 | <script> | 181 | <script> |
182 | + const $ = require('jquery'); | ||
182 | const yoho = require('yoho'); | 183 | const yoho = require('yoho'); |
183 | 184 | ||
185 | + | ||
184 | require('common/vue-filter'); | 186 | require('common/vue-filter'); |
185 | module.exports = { | 187 | module.exports = { |
186 | components: { | 188 | components: { |
@@ -260,6 +262,9 @@ | @@ -260,6 +262,9 @@ | ||
260 | 262 | ||
261 | // 延时读取商品价格、名称等信息 | 263 | // 延时读取商品价格、名称等信息 |
262 | loadDeferred = () => { | 264 | loadDeferred = () => { |
265 | + if (!goods || !goods.length) { | ||
266 | + return; | ||
267 | + } | ||
263 | $.get('/product/search_product.json', { | 268 | $.get('/product/search_product.json', { |
264 | ids: goods.map((item)=> { | 269 | ids: goods.map((item)=> { |
265 | return item.id; | 270 | return item.id; |
-
Please register or login to post a comment