This commit is contained in:
Taric Xin
2021-12-27 18:27:08 +08:00
parent 7e6d86d00e
commit 786c2e1bad
13 changed files with 104 additions and 84 deletions

View File

@ -1,9 +1,9 @@
<div class="page-box">
<div style="width: 90%; margin: 5rem auto">
<h1 class="mb-md mt-md">
{{ agreementContent?.typeName }}
{{ agreementContent?.agreementName }}
</h1>
<p class="md">最新版本生效日期:{{ agreementContent?.modifyTime }}</p>
<div [innerHTML]="agreementContent?.content"></div>
<div [innerHTML]="agreementContent?.agreementContent | safehtml"></div>
</div>
</div>
</div>

View File

@ -16,9 +16,10 @@ export class OrderAgreementComponent implements OnInit {
});
}
ngOnInit() {
this.service.request(this.service.$api_get_agreement, { type: this.type }).subscribe(res => {
console.log({ type: this.type });
this.service.request(this.service.$api_get_agreement, { type: this.type }, 'POST', true, 'FORM').subscribe(res => {
if (res) {
console.log(res);
this.agreementContent = res;
}
});

View File

@ -6,6 +6,7 @@ import { SEModule } from '@delon/abc/se';
import { DelonACLModule } from '@delon/acl';
import { DelonFormModule } from '@delon/form';
import { AlainThemeModule } from '@delon/theme';
import { PipeModule } from '@shared';
import { NzAlertModule } from 'ng-zorro-antd/alert';
import { NzAvatarModule } from 'ng-zorro-antd/avatar';
import { NzButtonModule } from 'ng-zorro-antd/button';
@ -60,6 +61,7 @@ const COMPONENTS = [
DelonFormModule,
NzStepsModule,
ProPageModule,
PipeModule
],
declarations: COMPONENTS
})

View File

@ -9,7 +9,7 @@ import { EAFileUtil } from 'src/app/shared/utils/file.util';
})
export class PassportService extends BaseService {
// 登录协议,服务订购协议
public $api_get_agreement = `/scm/cms/cms/agreement/getAgreement?_allow_anonymous=true`;
public $api_get_agreement = `/api/mdc/pbc/agreementInfo/getAgreementInfoByType?_allow_anonymous=true`;
constructor(public injector: Injector) {
super(injector);