This commit is contained in:
wangshiming
2022-03-24 10:22:06 +08:00
parent 4d5de1e536
commit cc8cf5c64d
3 changed files with 34 additions and 10 deletions

View File

@ -1,3 +1,13 @@
/*
* @Description :
* @Version : 1.0
* @Author : Shiming
* @Date : 2022-03-14 14:17:38
* @LastEditors : Shiming
* @LastEditTime : 2022-03-24 10:12:00
* @FilePath : \\tms-obc-web\\src\\app\\routes\\passport\\components\\order-agreement\\order-agreement.component.ts
* Copyright (C) 2022 huzhenhong. All rights reserved.
*/
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Params } from '@angular/router';
import { PassportService } from '../../services/passport.service';
@ -16,6 +26,14 @@ export class OrderAgreementComponent implements OnInit {
});
}
ngOnInit() {
console.log(this.type);
if(this.type == 3) {
this.service.request(this.service.$api_get_getSupplementaryAgreement, { type: this.type }).subscribe(res => {
if (res) {
this.agreementContent = res;
}
});
}
this.service.request(this.service.$api_get_agreement, { type: this.type }).subscribe(res => {
if (res) {
this.agreementContent = res;

View File

@ -4,7 +4,7 @@
* @Author : Shiming
* @Date : 2021-12-27 21:08:36
* @LastEditors : Shiming
* @LastEditTime : 2022-01-18 17:24:52
* @LastEditTime : 2022-03-24 09:59:50
* @FilePath : \\tms-obc-web\\src\\app\\routes\\passport\\services\\passport.service.ts
* Copyright (C) 2022 huzhenhong. All rights reserved.
*/
@ -17,6 +17,8 @@ import { BaseService } from 'src/app/shared/services/core/base.service';
export class PassportService extends BaseService {
// 登录协议,服务订购协议
public $api_get_agreement = `/api/mdc/pbc/agreementInfo/getAgreementInfoByType?_allow_anonymous=true`;
// 查看补充协议
public $api_get_getSupplementaryAgreement = `/api/sdc/billOperate/getSupplementaryAgreement?_allow_anonymous=true`;
// 未登录账号发送验证码
public $getAccountSMVerificationCode = `/api/mdc/cuc/userBasicInfo/forgetPassword/getAccountSMVerificationCode?_allow_anonymous=true`;
constructor(public injector: Injector) {