diff --git a/buyer/src/components/goodsDetail/ShowGoods.vue b/buyer/src/components/goodsDetail/ShowGoods.vue index e9b2b40e..4378d9ac 100644 --- a/buyer/src/components/goodsDetail/ShowGoods.vue +++ b/buyer/src/components/goodsDetail/ShowGoods.vue @@ -123,7 +123,7 @@
- +
@@ -199,7 +199,6 @@ export default { skuId: this.skuDetail.id }; this.loading = true; - console.log(11111111); addCartGoods(params).then(res => { debugger; this.loading = false; @@ -219,11 +218,15 @@ export default { skuId: this.skuDetail.id, cartType: 'BUY_NOW' }; + // 虚拟商品购买 + if (this.skuDetail.goodsType === 'VIRTUAL_GOODS') { + params.cartType = 'VIRTUAL' + } this.loading1 = true; addCartGoods(params).then(res => { this.loading1 = false; if (res.success) { - this.$router.push({path: '/pay', query: {way: 'BUY_NOW'}}); + this.$router.push({path: '/pay', query: {way: params.cartType}}); } else { this.$Message.warning(res.message); } diff --git a/buyer/src/pages/home/orderCenter/OrderDetail.vue b/buyer/src/pages/home/orderCenter/OrderDetail.vue index a073cc4e..6ebc1468 100644 --- a/buyer/src/pages/home/orderCenter/OrderDetail.vue +++ b/buyer/src/pages/home/orderCenter/OrderDetail.vue @@ -2,8 +2,7 @@
-

{{ order.orderStatusValue }}

-

核验码:{{order.orderCode || 'AHDN4123'}}

+

{{ order.orderStatusValue }} 核验码:{{order.order.verificationCode}}

订单号:{{ order.order.sn }}

操作时间:{{order.order.updateTime}}
@@ -235,7 +234,12 @@ table { font-size: 20px; } } - +.verificationCode { + font-size: 16px; + margin-left: 240px; + color: rgb(65, 63, 63); + font-weight: bold; +} /** 订单进度条 */ .progress { margin: 15px 0;