|
@@ -184,25 +184,23 @@
|
|
data: {}
|
|
data: {}
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
- if (res.data.data.length > 0) {
|
|
|
|
- that.test = [];
|
|
|
|
- for (let i = 0; i < res.data.data.length; i++) {
|
|
|
|
- var obj = {
|
|
|
|
- img: res.data.data[i].goods_image,
|
|
|
|
- title: res.data.data[i].goods_name,
|
|
|
|
- // label: '黑色 - 6518/320',
|
|
|
|
- // size:'S',
|
|
|
|
- price: res.data.data[i].goods_price,
|
|
|
|
- id: res.data.data[i].id,
|
|
|
|
- buy: res.data.data[i].goods_num,
|
|
|
|
- itemId: res.data.data[i].id,
|
|
|
|
- checked: false,
|
|
|
|
- goods_id:res.data.data[i].goods_id
|
|
|
|
- };
|
|
|
|
- that.test.push(obj)
|
|
|
|
- }
|
|
|
|
- that.jiage()
|
|
|
|
|
|
+ that.test = [];
|
|
|
|
+ for (let i = 0; i < res.data.data.length; i++) {
|
|
|
|
+ var obj = {
|
|
|
|
+ img: res.data.data[i].goods_image,
|
|
|
|
+ title: res.data.data[i].goods_name,
|
|
|
|
+ // label: '黑色 - 6518/320',
|
|
|
|
+ // size:'S',
|
|
|
|
+ price: res.data.data[i].goods_price,
|
|
|
|
+ id: res.data.data[i].id,
|
|
|
|
+ buy: res.data.data[i].goods_num,
|
|
|
|
+ itemId: res.data.data[i].id,
|
|
|
|
+ checked: false,
|
|
|
|
+ goods_id:res.data.data[i].goods_id
|
|
|
|
+ };
|
|
|
|
+ that.test.push(obj)
|
|
}
|
|
}
|
|
|
|
+ that.jiage()
|
|
} else {
|
|
} else {
|
|
that.test = [];
|
|
that.test = [];
|
|
}
|
|
}
|