!162 2022-2-14 Leung

Merge pull request !162 from Admin/sit-Leung-v3
This commit is contained in:
Admin 2022-02-14 10:08:44 +00:00 committed by Gitee
commit d93416741f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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;
}
},