|
@@ -240,16 +240,11 @@
|
|
|
spec_ids.sort((a, b) => a - b);
|
|
spec_ids.sort((a, b) => a - b);
|
|
|
let spec_key = spec_ids.join('_')
|
|
let spec_key = spec_ids.join('_')
|
|
|
this.popData.spec_key = spec_key
|
|
this.popData.spec_key = spec_key
|
|
|
- console.log(this.popData.spec_list[spec_key])
|
|
|
|
|
if (this.popData.spec_list[spec_key] !== undefined) {
|
|
if (this.popData.spec_list[spec_key] !== undefined) {
|
|
|
- this.popData.price = this.popData.spec_list[spec_key].seckill_money > 0 ? this.popData.spec_list[
|
|
|
|
|
- spec_key].seckill_money : this.popData.spec_list[spec_key].price
|
|
|
|
|
|
|
+ this.popData.price = this.popData.spec_list[spec_key].seckill_money > 0 ? this.popData.spec_list[spec_key].seckill_money : this.popData.spec_list[spec_key].price
|
|
|
this.popData.line_price = this.popData.spec_list[spec_key].line_price
|
|
this.popData.line_price = this.popData.spec_list[spec_key].line_price
|
|
|
this.popData.goods_spec_id = this.popData.spec_list[spec_key].goods_spec_id + ''
|
|
this.popData.goods_spec_id = this.popData.spec_list[spec_key].goods_spec_id + ''
|
|
|
let cartKey = this.cartData.goods_list.findIndex(row => this.popData.goods_spec_id*1 === row.goods_spec_id*1)
|
|
let cartKey = this.cartData.goods_list.findIndex(row => this.popData.goods_spec_id*1 === row.goods_spec_id*1)
|
|
|
- console.log('this.popData.goods_spec_id:-------------------------------------------')
|
|
|
|
|
- console.log(this.popData.goods_spec_id)
|
|
|
|
|
- console.log(cartKey)
|
|
|
|
|
if (cartKey >= 0) {
|
|
if (cartKey >= 0) {
|
|
|
this.popData.num = this.cartData.goods_list[cartKey].goods_number
|
|
this.popData.num = this.cartData.goods_list[cartKey].goods_number
|
|
|
}
|
|
}
|