Authored by ccbikai

完善页面

@@ -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;
@@ -26,6 +26,7 @@ @@ -26,6 +26,7 @@
26 } 26 }
27 </style> 27 </style>
28 <script> 28 <script>
  29 + const $ = require('jquery');
29 const yoho = require('yoho'); 30 const yoho = require('yoho');
30 const tip = require('common/tip'); 31 const tip = require('common/tip');
31 32