diff --git a/src/app/admin/cms/cms-content/cms-content.component.html b/src/app/admin/cms/cms-content/cms-content.component.html index c9249da..3cecfd1 100644 --- a/src/app/admin/cms/cms-content/cms-content.component.html +++ b/src/app/admin/cms/cms-content/cms-content.component.html @@ -51,7 +51,7 @@ 展示平台 - + diff --git a/src/app/services/cms.service.ts b/src/app/services/cms.service.ts index 5c01ec2..4a9aaa0 100644 --- a/src/app/services/cms.service.ts +++ b/src/app/services/cms.service.ts @@ -13,12 +13,24 @@ export class CmsService { private commonsService: CommonsService ) { } + /** + * 获取cms内容 + * @param paramObject 内容 + * @param callBack 回调 + */ + getListContent(paramObject: object, callBack) { + this.http.get(environment.baseUrl + 'cmsContent/getListContent?' + this.commonsService.getWhereCondition(paramObject)).subscribe(data => { + callBack(data); + }); + } + + /** * 获取cms内容 * @param paramObject 内容 * @param callBack 回调 */ - getListContent(paramObject: object, callBack) { + getListCmsContent(paramObject: object, callBack) { this.http.get(environment.baseUrl + 'cmsContent/getListCmsContent?' + this.commonsService.getWhereCondition(paramObject)).subscribe(data => { callBack(data); }); diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 21ad46f..cc5edd5 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -4,10 +4,10 @@ export const environment = { production: false, - // baseUrl: 'http://localhost:9302/brest/', // 测试环境服务器地址(请求数据地址) - // imageUrl: 'http://localhost:9302/filesystem/', - baseUrl: 'https://hsgcs.dctpay.com/brest/', // 测试环境服务器地址(请求数据地址) - imageUrl: 'https://hsgcs.dctpay.com/filesystem/', + baseUrl: 'http://localhost:9302/brest/', // 测试环境服务器地址(请求数据地址) + imageUrl: 'http://localhost:9302/filesystem/', + // baseUrl: 'https://hsg.dctpay.com/brest/', // 测试环境服务器地址(请求数据地址) + // imageUrl: 'https://hsg.dctpay.com/filesystem/', key: 'https://hsgcs.dctpay.com/phone-recharge-H5/index.html?codeValue=', inviteUrl: 'https://hsgcs.dctpay.com/wx/?action=ic&id=', };