Coupon issue & Staging API port revised

This commit is contained in:
Vion 2022-02-14 18:07:06 +08:00
parent b636872ecd
commit 7b1c005389
2 changed files with 4 additions and 2 deletions

View File

@ -5,9 +5,9 @@
* imgBaseUrl: 图片所在域名地址
*/
let baseUrl = 'http://47.96.75.242:10086/royalcanin/royalcanin/'
let baseUrl = 'http://47.96.75.242:8080/royalcanin/royalcanin/'
if (process.env.NODE_ENV === 'development') {
baseUrl = 'http://47.96.75.242:10086/royalcanin/royalcanin/';
baseUrl = 'http://47.96.75.242:8080/royalcanin/royalcanin/';
} else if (process.env.NODE_ENV === 'production') {
baseUrl = 'https://shop.royalcanin.com.cn/royalcanin/royalcanin/royalcanin/';
}

View File

@ -296,6 +296,8 @@ export default {
return this.sumPrice * ( 1 - this.curCoupon.discount );
}
} else {
this.discountAmount = 0;
this.curCoupon = {couponName:'未能使用该优惠券'};
return this.sumPrice;
}
},