|
|
|
@ -321,7 +321,7 @@ |
|
|
|
methods: { |
|
|
|
goExchange() { |
|
|
|
if(this.showSpec == '请选择规格') { |
|
|
|
this.shoot(2) |
|
|
|
this.shoot(3) |
|
|
|
} |
|
|
|
}, |
|
|
|
// 切换商品收藏 |
|
|
|
@ -459,12 +459,6 @@ |
|
|
|
qty: this.goods_num |
|
|
|
} |
|
|
|
} |
|
|
|
// 秒杀商品 |
|
|
|
if(this.$isRight(this.seckill)){ |
|
|
|
delete par.product_id; |
|
|
|
par.seckill_goods_id = this.seckill.item_id; |
|
|
|
par.seckill_item_id = this.seckill.id; |
|
|
|
} |
|
|
|
|
|
|
|
uni.showLoading({ |
|
|
|
title: '正在提交' |
|
|
|
@ -490,7 +484,7 @@ |
|
|
|
// 直接结算 |
|
|
|
this.$cookieStorage.set('order_confirm', par); |
|
|
|
uni.hideLoading(); |
|
|
|
this.$url('/pages/order/confirm/confirm?goods_type=0'); |
|
|
|
this.$url('/pages/order/confirm/confirm?goods_type=1'); |
|
|
|
// this.$http.post({ |
|
|
|
// api: 'api/shopping/order/checkout', |
|
|
|
// data: par, |
|
|
|
@ -505,6 +499,11 @@ |
|
|
|
// } |
|
|
|
// uni.hideLoading() |
|
|
|
// }).catch(err => uni.hideLoading()) |
|
|
|
}else if(this.click_type == 3) { |
|
|
|
// 直接结算 |
|
|
|
this.$cookieStorage.set('order_confirm', par); |
|
|
|
uni.hideLoading(); |
|
|
|
this.$url('/pages/order/confirm/confirm?goods_type=0'); |
|
|
|
} |
|
|
|
}, |
|
|
|
// 点击页面分享按钮 |
|
|
|
|