diff --git a/src/app/admin/cms/cms-content-add/cms-content-add.component.html b/src/app/admin/cms/cms-content-add/cms-content-add.component.html index 928b20f..1a05c08 100644 --- a/src/app/admin/cms/cms-content-add/cms-content-add.component.html +++ b/src/app/admin/cms/cms-content-add/cms-content-add.component.html @@ -42,6 +42,19 @@ + + + + 跳转类型 + + + + + + + + + diff --git a/src/app/admin/cms/cms-content-add/cms-content-add.component.ts b/src/app/admin/cms/cms-content-add/cms-content-add.component.ts index e60e8aa..7d5244f 100644 --- a/src/app/admin/cms/cms-content-add/cms-content-add.component.ts +++ b/src/app/admin/cms/cms-content-add/cms-content-add.component.ts @@ -147,6 +147,7 @@ export class CmsContentAddComponent implements OnInit { description: [null, [Validators.required]], sortId: [null, [Validators.required]], content: [null], + jumpType: [null], ext1: [null], tag: [null], }); @@ -393,6 +394,7 @@ export class CmsContentAddComponent implements OnInit { 'tag' : value.tag, 'jumpUrl' : value.jumpUrl, 'ext1' : value.ext1, + 'jumpType' : value.jumpType, 'hasPatch': this.hasPatch, 'imgSource': 1, 'status': 1, diff --git a/src/app/admin/cms/cms-content-edit/cms-content-edit.component.html b/src/app/admin/cms/cms-content-edit/cms-content-edit.component.html index e2df0c0..5a9a0dd 100644 --- a/src/app/admin/cms/cms-content-edit/cms-content-edit.component.html +++ b/src/app/admin/cms/cms-content-edit/cms-content-edit.component.html @@ -41,6 +41,20 @@ + + + + + 跳转类型 + + + + + + + + + diff --git a/src/app/admin/cms/cms-content-edit/cms-content-edit.component.ts b/src/app/admin/cms/cms-content-edit/cms-content-edit.component.ts index 4748c3f..dcf3669 100644 --- a/src/app/admin/cms/cms-content-edit/cms-content-edit.component.ts +++ b/src/app/admin/cms/cms-content-edit/cms-content-edit.component.ts @@ -48,6 +48,7 @@ export class CmsContentEditComponent implements OnInit { recommend: [null], description: [null, [Validators.required]], ext1: [null], + jumpType: [null], sortId: [null, [Validators.required]], content: [null], tag: [null], @@ -73,6 +74,7 @@ export class CmsContentEditComponent implements OnInit { findContentView(id) { this.http.get(this.WEB_SERVE_URL + '/cmsContent/getContentById?id=' + id).subscribe(data => { if (data['return_code'] === '000000') { + data['return_data'].jumpType = String(data['return_data'].jumpType); this.cmsContentView = data['return_data']; this.listImg = data['return_data'].imgData; } else {