From c4faa672f16b5e8027f62a4c741e410b31b77256 Mon Sep 17 00:00:00 2001
From: Sum1Dream <418471657@qq.com>
Date: Fri, 28 Oct 2022 09:51:48 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=9D=E8=B4=B9=E8=AE=A2?=
=?UTF-8?q?=E5=8D=95=E5=AF=BC=E5=87=BA=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../cms/cms-content/cms-content.component.html | 2 +-
src/app/services/cms.service.ts | 14 +++++++++++++-
src/environments/environment.ts | 8 ++++----
3 files changed, 18 insertions(+), 6 deletions(-)
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=',
};