|
|
@ -48,9 +48,10 @@ |
|
|
|
this.pickupId = options.pickupId || null |
|
|
|
this.goodsId = options.goodsId |
|
|
|
this.skuId = options.skuId |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
onShow(options) { |
|
|
|
this.getList() |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
@ -66,10 +67,7 @@ |
|
|
|
} |
|
|
|
this.Post(param, "/api/product/getDeliverShop").then(res => { |
|
|
|
if (res) { |
|
|
|
this.list = [...this.list, ...res.data]; |
|
|
|
if (res.data.length < 10) { |
|
|
|
this.load = true; |
|
|
|
} |
|
|
|
this.list = res.data |
|
|
|
if (this.pickupId && Array.isArray(this.list)) { |
|
|
|
let selectItem = this.list.find(v=>v.id==this.pickupId) |
|
|
|
if (selectItem) { |
|
|
|