edit
This commit is contained in:
@ -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>
|
||||
@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
@ -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
|
||||
})
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user