提交代码

dev
胡锐 1 year ago
parent 2297e936ec
commit ddbe85a25a
  1. 10
      src/app/admin/statistics/coupon-use/coupon-use.component.ts
  2. 3
      src/environments/environment.ts

@ -59,7 +59,15 @@ export class CouponUseComponent implements OnInit {
param['pageNum'] = this.pageNum; param['pageNum'] = this.pageNum;
param['pageSize'] = this.pageSize; param['pageSize'] = this.pageSize;
this.couponService.getCount(param,response => { this.couponService.getCount(param,response => {
this.countObject = response['return_data']; const returnData = response['return_data'];
if (returnData != null) {
this.countObject = returnData;
} else {
this.countObject.batchNum = 0;
this.countObject.useNum = 0;
this.countObject.usePrice = 0;
this.countObject.useRate = 0;
}
}); });
this.couponService.getBatchUseCount(param, response => { this.couponService.getBatchUseCount(param, response => {
this.dataObject = response['return_data']; this.dataObject = response['return_data'];

@ -4,9 +4,10 @@
export const environment = { export const environment = {
production: false, production: false,
baseUrl: 'http://localhost:9302/brest/', // 测试环境服务器地址(请求数据地址) // baseUrl: 'http://localhost:9302/brest/', // 测试环境服务器地址(请求数据地址)
// orderUrl: 'http://localhost:9304/order/', // 测试环境服务器地址(请求数据地址) // orderUrl: 'http://localhost:9304/order/', // 测试环境服务器地址(请求数据地址)
// baseUrl: 'https://hsgcs.dctpay.com/brest/', // 测试环境服务器地址(请求数据地址) // baseUrl: 'https://hsgcs.dctpay.com/brest/', // 测试环境服务器地址(请求数据地址)
baseUrl: 'https://hsg.dctpay.com/brest/', // 测试环境服务器地址(请求数据地址)
orderUrl: 'https://hsgcs.dctpay.com/order/', // 测试环境服务器地址(请求数据地址) orderUrl: 'https://hsgcs.dctpay.com/order/', // 测试环境服务器地址(请求数据地址)
imageUrl: 'https://hsgcs.dctpay.com/filesystem/', imageUrl: 'https://hsgcs.dctpay.com/filesystem/',
key: 'https://hsgcs.dctpay.com/phone-recharge-H5/index.html?codeValue=', key: 'https://hsgcs.dctpay.com/phone-recharge-H5/index.html?codeValue=',

Loading…
Cancel
Save