mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-02 02:06:38 +08:00
Coupon issue & Staging API port revised
This commit is contained in:
parent
b636872ecd
commit
7b1c005389
@ -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/';
|
||||
}
|
||||
|
@ -296,6 +296,8 @@ export default {
|
||||
return this.sumPrice * ( 1 - this.curCoupon.discount );
|
||||
}
|
||||
} else {
|
||||
this.discountAmount = 0;
|
||||
this.curCoupon = {couponName:'未能使用该优惠券'};
|
||||
return this.sumPrice;
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user