src/views/productDetail/components/PayCard.vue
@@ -300,7 +300,9 @@ <div class="btns"> <div class="button addCar">加入购物车</div> <div class="button pay" @click="confirmNow">立即购买</div> <div class="button pay" @click="confirmNow"> {{ data.priceBase ? "立即购买" : "免费试用" }} </div> </div> </div> @@ -533,6 +535,7 @@ payMethod: 0, products, status: 0, userId: JSON.parse(sessionStorage.getItem("userInfo")).id, }).then((res) => { if (res.success) { this.orderId = res.data.orderId;