Skip to content

Commit

Permalink
fix:
Browse files Browse the repository at this point in the history
  • Loading branch information
H-Yeji committed Nov 5, 2024
1 parent e8ae931 commit c26a3b5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/views/order/payment/PaymentView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,6 @@ export default {
this.logoImage = paymentMethodRes.data.logoImageUrl;
console.log(this.logoImage);
// packageId로 farmId가져오기
this.farmId = await axios.get(`${process.env.VUE_APP_API_BASE_URL}/product-service/product/info/${packageId}`);
// 멤버 정보 불러오기 (배송지를 위함)
const memberRes = await axios.get(`${process.env.VUE_APP_API_BASE_URL}/member-service/member/member-info`);
this.member = memberRes.data;
Expand Down Expand Up @@ -473,8 +470,8 @@ export default {
const allCoupons = couponRes.data;
console.log("line 470");
console.log(Date.now());
this.availableCoupons = allCoupons.filter(coupon => coupon.useYn === "N" && new Date(coupon.expiration) >= new Date() && coupon.farmId == this.farmId);
console.log(">>>>>coupon.farmId: " + coupon.farmId + " >>>>>this.farmId: " + this.farmId);
this.availableCoupons = allCoupons.filter(coupon => coupon.useYn === "N" && new Date(coupon.expiration) >= new Date() && coupon.farmId == packageProduct.farmId);

Check failure on line 473 in src/views/order/payment/PaymentView.vue

View workflow job for this annotation

GitHub Actions / build-and-deploy

'packageProduct' is not defined
console.log(">>>>>coupon.farmId: " + coupon.farmId + " >>>>>packageProduct.farmId: " + packageProduct.farmId);

Check failure on line 474 in src/views/order/payment/PaymentView.vue

View workflow job for this annotation

GitHub Actions / build-and-deploy

'coupon' is not defined

Check failure on line 474 in src/views/order/payment/PaymentView.vue

View workflow job for this annotation

GitHub Actions / build-and-deploy

'packageProduct' is not defined
this.couponDiscountRate = Number(couponRes.discountRate) / 100;
this.couponDiscountedAmount = this.couponDiscountRate * this.packageProduct.price;
Expand Down

0 comments on commit c26a3b5

Please sign in to comment.