Commit 1ac68250 by Sweet Zhang

更新经纪人查询页面

parent a886cabf
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"project": {
"name": "cserp"
},
"apps": [
{
"root": "src",
"outDir": "dist",
"assets": [
"assets",
"favicon.ico"
],
"index": "index.html",
"main": "main.ts",
"polyfills": "polyfills.ts",
"test": "test.ts",
"tsconfig": "tsconfig.app.json",
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"styles": [
"styles.css"
],
"scripts": [
"../node_modules/chart.js/dist/Chart.js"
],
"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
"stage": "environments/environment.stage.ts",
"prod": "environments/environment.prod.ts"
}
}
],
"e2e": {
"protractor": {
"config": "./protractor.conf.js"
}
},
"lint": [
{
"project": "src/tsconfig.app.json",
"exclude": "**/node_modules/**"
},
{
"project": "src/tsconfig.spec.json",
"exclude": "**/node_modules/**"
},
{
"project": "e2e/tsconfig.e2e.json",
"exclude": "**/node_modules/**"
}
],
"test": {
"karma": {
"config": "./karma.conf.js"
}
},
"defaults": {
"styleExt": "css",
"component": {}
}
}
......@@ -27,7 +27,9 @@
"src/styles.css"
],
"scripts": [],
"es5BrowserSupport": true
"es5BrowserSupport": true,
"baseHref": "/brokerQry/",
"deployUrl": "/brokerQry/"
},
"configurations": {
"production": {
......@@ -53,6 +55,24 @@
"maximumError": "5mb"
}
]
},
"dev": {
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
}
]
}
}
},
......
{
"name": "broker-qry",
"name": "angular",
"version": "0.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@angular-devkit/architect": {
"version": "0.13.6",
"resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.13.6.tgz",
"integrity": "sha512-Cg9z4lmCvjt5uD00E/0tBRz3ESjYicmqT3NL/BIsNVNb+s1GwCCoPSOIM8Ss4nyGDtrdono1XKSOmkJnlzF3Cw==",
"version": "0.13.7",
"resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.13.7.tgz",
"integrity": "sha512-1N4R7cuwbbz7Z76v0Fi5nkxg6eS6FA58Y7SnTYCxI2HRJ1lqlafRjr89eoKzzbCH8ZGa7NG0wfRXtUwF/IrGmQ==",
"dev": true,
"requires": {
"@angular-devkit/core": "7.3.6",
"@angular-devkit/core": "7.3.7",
"rxjs": "6.3.3"
}
},
"@angular-devkit/build-angular": {
"version": "0.13.6",
"resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-0.13.6.tgz",
"integrity": "sha512-gdP856Z5tuQ69mJla5VPKm/uR86dcrPWYW41Jyu5oIhL2GAQ4JtDEuL2+ppwQO8i8hsXGIAbulGAbrlvU5I8OA==",
"version": "0.13.7",
"resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-0.13.7.tgz",
"integrity": "sha512-GVYZyLvFXH87loz7GaSt2/JMXeAQrnOFxrx0e82eLtjMjj2ncrTj8FkbCp3WVhUivID1GoDhbgXwcBOHYlzHRg==",
"dev": true,
"requires": {
"@angular-devkit/architect": "0.13.6",
"@angular-devkit/build-optimizer": "0.13.6",
"@angular-devkit/build-webpack": "0.13.6",
"@angular-devkit/core": "7.3.6",
"@ngtools/webpack": "7.3.6",
"@angular-devkit/architect": "0.13.7",
"@angular-devkit/build-optimizer": "0.13.7",
"@angular-devkit/build-webpack": "0.13.7",
"@angular-devkit/core": "7.3.7",
"@ngtools/webpack": "7.3.7",
"ajv": "6.9.1",
"autoprefixer": "9.4.6",
"circular-dependency-plugin": "5.0.2",
......@@ -52,7 +52,7 @@
"semver": "5.6.0",
"source-map-loader": "0.2.4",
"source-map-support": "0.5.10",
"speed-measure-webpack-plugin": "1.3.0",
"speed-measure-webpack-plugin": "1.3.1",
"stats-webpack-plugin": "0.7.0",
"style-loader": "0.23.1",
"stylus": "0.54.5",
......@@ -68,9 +68,9 @@
}
},
"@angular-devkit/build-optimizer": {
"version": "0.13.6",
"resolved": "https://registry.npmjs.org/@angular-devkit/build-optimizer/-/build-optimizer-0.13.6.tgz",
"integrity": "sha512-/EOO0wxw7FIKfove4Fv/aKiKgvH0kFhRT2GOe3pW0yV2y2e1dfQdo2AqdGCfJ4rSbwsfWSGTUUFITc+9jgXFZw==",
"version": "0.13.7",
"resolved": "https://registry.npmjs.org/@angular-devkit/build-optimizer/-/build-optimizer-0.13.7.tgz",
"integrity": "sha512-NXW75v0lS0cGI1ri058vlaLA4D4Z+CsGYbuHYfmZeoyY0Ub9K4PPI+MZnAUT3D3dCes/dcZTmCNru4prOXR43w==",
"dev": true,
"requires": {
"loader-utils": "1.2.3",
......@@ -88,20 +88,20 @@
}
},
"@angular-devkit/build-webpack": {
"version": "0.13.6",
"resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.13.6.tgz",
"integrity": "sha512-lQmYrhOHeBn/r7uw+FfpJUq9puApYe72+mrIfg/UtLwSEYt58n5d156jnuMcfWnCyhYUgYqLTaOUfSM0RV7akw==",
"version": "0.13.7",
"resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.13.7.tgz",
"integrity": "sha512-JXlgO0EzlSY90gbw3Cofr02HrZ24Wxgl6ysd6rFuTlXLqlTkjrUn0VdMeoQE33IvfXoaRzXqIH+EQtJvThjUFw==",
"dev": true,
"requires": {
"@angular-devkit/architect": "0.13.6",
"@angular-devkit/core": "7.3.6",
"@angular-devkit/architect": "0.13.7",
"@angular-devkit/core": "7.3.7",
"rxjs": "6.3.3"
}
},
"@angular-devkit/core": {
"version": "7.3.6",
"resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-7.3.6.tgz",
"integrity": "sha512-aoarMK0DJIdwjVA0OuQIN7b8nKPcF9n5vSMF7MFmhKpTw5/uV3SynQZbm3YCgylu/2CMuiTzKuAunnWWdli//g==",
"version": "7.3.7",
"resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-7.3.7.tgz",
"integrity": "sha512-RRDCqSX4wF3Nxxls+W0BzCHz2HYWFP6bUpWxmzXF8EETGlZq/b/ZsEnVV41jtsqC4PCTks4k0qUFMaKE7XCupg==",
"dev": true,
"requires": {
"ajv": "6.9.1",
......@@ -112,34 +112,34 @@
}
},
"@angular-devkit/schematics": {
"version": "7.3.6",
"resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-7.3.6.tgz",
"integrity": "sha512-YXF7QusmMy3D9H0vNczc1n5BkuEHLwt7cW33euNeGNgTIsD0n6DrUhgClurXicnr2GNPSDYE5+3115lmJkhyrg==",
"version": "7.3.7",
"resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-7.3.7.tgz",
"integrity": "sha512-XHrr63E6p9kLNR83D4AcUkdBFLw4yxeQihual3I88eJUPJdHAvQYkp1sBThlMkNmBWPVagUD4efknkUFfRkFmg==",
"dev": true,
"requires": {
"@angular-devkit/core": "7.3.6",
"@angular-devkit/core": "7.3.7",
"rxjs": "6.3.3"
}
},
"@angular/animations": {
"version": "7.2.10",
"resolved": "https://registry.npmjs.org/@angular/animations/-/animations-7.2.10.tgz",
"integrity": "sha512-WgklBWYKy8LVlugMJ8XgBB4whNiMng8vY6mpaYhza064nsrQXK+ua1anSOGMGlmCI/5i4EgaycTS05XD/C+Kkw==",
"version": "7.2.11",
"resolved": "https://registry.npmjs.org/@angular/animations/-/animations-7.2.11.tgz",
"integrity": "sha512-YlZATC4Gnd3eOBuSW/QqsMPHeJWVKR8yfen2qKgFO3waK+6qXHXIdRF3j81l07jlUx5kBw+f1OCEeHl2QChBiw==",
"requires": {
"tslib": "1.9.3"
}
},
"@angular/cli": {
"version": "7.3.6",
"resolved": "https://registry.npmjs.org/@angular/cli/-/cli-7.3.6.tgz",
"integrity": "sha512-u5lBcYVQRk9cez/DozJvFOYomeko9b5kE+NElyFhPtM3GF1SBcXKb5QyNxH/zSOc850VL7KPe7ZfC6kW3Phhyw==",
"version": "7.3.7",
"resolved": "https://registry.npmjs.org/@angular/cli/-/cli-7.3.7.tgz",
"integrity": "sha512-b8YT+HXkhpK1A6lo56VvnUb07s2DWJSKdyhlJ3vIKwlYRg5svcmxh+AS6Oz0rzcQc++a0I5IODd9yWrMAkCBog==",
"dev": true,
"requires": {
"@angular-devkit/architect": "0.13.6",
"@angular-devkit/core": "7.3.6",
"@angular-devkit/schematics": "7.3.6",
"@schematics/angular": "7.3.6",
"@schematics/update": "0.13.6",
"@angular-devkit/architect": "0.13.7",
"@angular-devkit/core": "7.3.7",
"@angular-devkit/schematics": "7.3.7",
"@schematics/angular": "7.3.7",
"@schematics/update": "0.13.7",
"@yarnpkg/lockfile": "1.1.0",
"ini": "1.3.5",
"inquirer": "6.2.1",
......@@ -151,29 +151,29 @@
}
},
"@angular/common": {
"version": "7.2.10",
"resolved": "https://registry.npmjs.org/@angular/common/-/common-7.2.10.tgz",
"integrity": "sha512-FyiVUhV1MaRogXmVKsw6CMXqWZHsiYMdK651absXtGqWZn6and0jiUwEM9LbV4HRpLbB7F6gwqCvT5Ft8xpzeg==",
"version": "7.2.11",
"resolved": "https://registry.npmjs.org/@angular/common/-/common-7.2.11.tgz",
"integrity": "sha512-78T65tt3zD0Oss6pyRvzLhPlTJMhPpXMCsJdr1s821i+/xg8TUzgU3Cqxvz37r3dysnY08r6BmEqJg3+fGxEwA==",
"requires": {
"tslib": "1.9.3"
}
},
"@angular/compiler": {
"version": "7.2.10",
"resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-7.2.10.tgz",
"integrity": "sha512-sRuH+UDogzAHpagorHfj2rbF8HWGEJGsFUn5TGq1vyWA37ALuu/zkemufIcgET16lTiBEvVn7/Oz9Am+JTlGrg==",
"version": "7.2.11",
"resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-7.2.11.tgz",
"integrity": "sha512-PptrtUgzuxLtBFxcmkkmhr16Pu9A3xqRQGmgTKL2mzwpt/fZswYEv4QT2E5Br8f94UP5XPv+K30kY+exjPnFjg==",
"requires": {
"tslib": "1.9.3"
}
},
"@angular/compiler-cli": {
"version": "7.2.10",
"resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-7.2.10.tgz",
"integrity": "sha512-L/mksAkpb8kywYlHlXi5mAyUNNiSHZpoTV+P2t3nNGmqyXuad92TvdZMCO34TYUyGyFz9AVH2qc6LciY9ipQTA==",
"version": "7.2.11",
"resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-7.2.11.tgz",
"integrity": "sha512-JlyJcRdD0oltKbFKGA83g4+vitF4e7ReqAHYTGbNTDIicWhCXYwwGAqj0HYAUHsv9KnP9F5ojZOJ7FRIN7mPgw==",
"dev": true,
"requires": {
"canonical-path": "1.0.0",
"chokidar": "2.1.2",
"chokidar": "2.1.5",
"convert-source-map": "1.6.0",
"dependency-graph": "0.7.2",
"magic-string": "0.25.2",
......@@ -198,9 +198,9 @@
"dev": true
},
"chokidar": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.2.tgz",
"integrity": "sha512-IwXUx0FXc5ibYmPC2XeEj5mpXoV66sR+t3jqu2NS2GYwCktt3KF1/Qqjws/NkegajBA4RbZ5+DDwlOiJsxDHEg==",
"version": "2.1.5",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.5.tgz",
"integrity": "sha512-i0TprVWp+Kj4WRPtInjexJ8Q+BqTE909VpH8xVhXrJkoc5QC8VO9TryGOqTr+2hljzc1sC62t22h5tZePodM/A==",
"dev": true,
"requires": {
"anymatch": "2.0.0",
......@@ -210,7 +210,7 @@
"glob-parent": "3.1.0",
"inherits": "2.0.3",
"is-binary-path": "1.0.1",
"is-glob": "4.0.0",
"is-glob": "4.0.1",
"normalize-path": "3.0.0",
"path-is-absolute": "1.0.1",
"readdirp": "2.2.1",
......@@ -405,47 +405,47 @@
}
},
"@angular/core": {
"version": "7.2.10",
"resolved": "https://registry.npmjs.org/@angular/core/-/core-7.2.10.tgz",
"integrity": "sha512-u2IKaq4G1wpq5w1AI0Q7jnsKuSfR4WDsBLnwtjTIjde1YDqA0n0dYwqrvWzLK6SbzSWjlrAXx0hrz5SlDchmqA==",
"version": "7.2.11",
"resolved": "https://registry.npmjs.org/@angular/core/-/core-7.2.11.tgz",
"integrity": "sha512-2FUgXbGn75D6HQESVVmnrjqP1l2YNwwIZISembzpr4WvTm0lxzq/9WsuPFJNWggwCerajyjYz+kDJT3RsonGZg==",
"requires": {
"tslib": "1.9.3"
}
},
"@angular/forms": {
"version": "7.2.10",
"resolved": "https://registry.npmjs.org/@angular/forms/-/forms-7.2.10.tgz",
"integrity": "sha512-fQccon0Yuni13QJt16npSRlkitPZBLXfWXDFwCEybo/QqtSar3BOJAQFW2yqokrfW5lbO5VDFJ7Pj2dDyBXEAA==",
"version": "7.2.11",
"resolved": "https://registry.npmjs.org/@angular/forms/-/forms-7.2.11.tgz",
"integrity": "sha512-S7qpaA4lP4yU5HsOvPuf4bpDGiqP6YjwcWHcTkm1kx9oiHGvmUoQAkFw06SMh2YCsGi413Qqys/4L0H8+8Za2A==",
"requires": {
"tslib": "1.9.3"
}
},
"@angular/language-service": {
"version": "7.2.10",
"resolved": "https://registry.npmjs.org/@angular/language-service/-/language-service-7.2.10.tgz",
"integrity": "sha512-14mIHbouqD+JauLcNakhHSL7/YB63+w7NrwNJY/DHNT/IyppBUV2dneHHembGEUs3QBY+7oL8FfPCLDRT+K+OQ==",
"version": "7.2.11",
"resolved": "https://registry.npmjs.org/@angular/language-service/-/language-service-7.2.11.tgz",
"integrity": "sha512-hq6ROxnqghmKXwJ8eIPb0wlz/PSmVTpFNQGrk3H6BFdRxPIHxvYU94mcLiV0/rMLZsSSSd4oANRUQToJR9upUA==",
"dev": true
},
"@angular/platform-browser": {
"version": "7.2.10",
"resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-7.2.10.tgz",
"integrity": "sha512-78r527d0Nw0svkDw2SBr58H3VEH5VAvn+r+q7NLqIqD8jsOMf8CMztUCDs+h02HhEHveCXWI5EtFXxWepB6wFg==",
"version": "7.2.11",
"resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-7.2.11.tgz",
"integrity": "sha512-M/XB1TQDHx2Ni+2NR75Zc1N+UuwfAMwNcBaOxtKRLkZhpyOAneA0ZyqT2GQm6XTGxDwQhz6Q3wG6SwGTm9aLYg==",
"requires": {
"tslib": "1.9.3"
}
},
"@angular/platform-browser-dynamic": {
"version": "7.2.10",
"resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-7.2.10.tgz",
"integrity": "sha512-ZTJL7iIEL3yDgJLx5/a2wfKsxe0ZHEUSibtbRQNpn35ZI0G9QN7ezbTOqj2+/QGvaY8Y1JeoYCeJrMzaUxDxGg==",
"version": "7.2.11",
"resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-7.2.11.tgz",
"integrity": "sha512-MDwNjH0BKfYabTJtfKAy87o+pRVcHsCwlrkp8/LBGNS42vDuzWWNUepMRTf2SloDUthL9Tsibdl1LfbMhUoGpw==",
"requires": {
"tslib": "1.9.3"
}
},
"@angular/router": {
"version": "7.2.10",
"resolved": "https://registry.npmjs.org/@angular/router/-/router-7.2.10.tgz",
"integrity": "sha512-7A0n6O5sW2xbQTG6pHfCwSkx6UvUQLg6Z/sDOghAZUakf4kd5BIWet1Q9eyiYndkpq6esQ+gMt9+CeJidf5l1A==",
"version": "7.2.11",
"resolved": "https://registry.npmjs.org/@angular/router/-/router-7.2.11.tgz",
"integrity": "sha512-6TcXQgTCPrOgkGWkxO879t+kcMovno6VfN4xfqr36IMBRxhmeWFEhLJmsVGPa/TT4XZjYQXyBk57ZXmneUqjQQ==",
"requires": {
"tslib": "1.9.3"
}
......@@ -611,12 +611,12 @@
}
},
"@ngtools/webpack": {
"version": "7.3.6",
"resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-7.3.6.tgz",
"integrity": "sha512-gDMHybwe8B+1BSvtwM5z4qAkUnZ9b4PTyIVWWECgTLDp2x3WhJi2rMk2X8HTkpbZ52pLPue5GL1sfqlZIOcX7Q==",
"version": "7.3.7",
"resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-7.3.7.tgz",
"integrity": "sha512-u14/poGhv0aSQ3vwgX6DpIFN+TWviqOv4+uM4/AUnLGwvNS+p02BMIr3m+biX9dsLH+7EfATEuWOLkSkhaCjnA==",
"dev": true,
"requires": {
"@angular-devkit/core": "7.3.6",
"@angular-devkit/core": "7.3.7",
"enhanced-resolve": "4.1.0",
"rxjs": "6.3.3",
"tree-kill": "1.2.1",
......@@ -624,24 +624,24 @@
}
},
"@schematics/angular": {
"version": "7.3.6",
"resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-7.3.6.tgz",
"integrity": "sha512-Q4VXAjVaCDb2zXFXoIdOfNPsn+EQjqDBHK4a97omytnSNAmu1erl3l2FkEMi6x/VuzK2mQSzBbmHJIgauMmOAA==",
"version": "7.3.7",
"resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-7.3.7.tgz",
"integrity": "sha512-X769unu8NViF4fjQhe3kFSLy2fmigWUJiTdEA76CPHsh5ka7trNhLaKcorXvYQDX+OhT5WHwBx5shg/3aJ3GYw==",
"dev": true,
"requires": {
"@angular-devkit/core": "7.3.6",
"@angular-devkit/schematics": "7.3.6",
"@angular-devkit/core": "7.3.7",
"@angular-devkit/schematics": "7.3.7",
"typescript": "3.2.4"
}
},
"@schematics/update": {
"version": "0.13.6",
"resolved": "https://registry.npmjs.org/@schematics/update/-/update-0.13.6.tgz",
"integrity": "sha512-TkeigdQTHG40ZGj4CAAzQHh7/rSotg0J6nkBBtc4Y+9md7IGg6dzSFJAvYbDX5JZ9tk7DpukdRHOVVopS/J0AQ==",
"version": "0.13.7",
"resolved": "https://registry.npmjs.org/@schematics/update/-/update-0.13.7.tgz",
"integrity": "sha512-7GiQiRkZlrPqINCWf/tKSUMfKz5dCwTFijkN/Hr0z2c679Q8kjiBnibNnzHG+zgmE7pH9gPRPvIa4hL+/zdtYw==",
"dev": true,
"requires": {
"@angular-devkit/core": "7.3.6",
"@angular-devkit/schematics": "7.3.6",
"@angular-devkit/core": "7.3.7",
"@angular-devkit/schematics": "7.3.7",
"@yarnpkg/lockfile": "1.1.0",
"ini": "1.3.5",
"pacote": "9.4.0",
......@@ -1041,9 +1041,9 @@
}
},
"app-root-path": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/app-root-path/-/app-root-path-2.1.0.tgz",
"integrity": "sha1-mL9lmTJ+zqGZMJhm6BQDaP0uZGo=",
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/app-root-path/-/app-root-path-2.2.1.tgz",
"integrity": "sha512-91IFKeKk7FjfmezPKkwtaRvSpnUc4gDwPAjA1YZ9Gn0q0PPeW+vbeUsZuyDwjI7+QTHhcLen2v25fi/AmhvbJA==",
"dev": true
},
"append-transform": {
......@@ -1256,7 +1256,7 @@
"dev": true,
"requires": {
"browserslist": "4.5.2",
"caniuse-lite": "1.0.30000951",
"caniuse-lite": "1.0.30000955",
"normalize-range": "0.1.2",
"num2fraction": "1.2.2",
"postcss": "7.0.14",
......@@ -1520,9 +1520,9 @@
"dev": true
},
"binary-extensions": {
"version": "1.13.0",
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.13.0.tgz",
"integrity": "sha512-EgmjVLMn22z7eGGv3kcnHwSnJXmFHjISTY9E/S5lIcTD3Oxw05QTcBLNkJFzcb3cNueUdF/IN4U+d78V0zO8Hw==",
"version": "1.13.1",
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.13.1.tgz",
"integrity": "sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw==",
"dev": true
},
"blob": {
......@@ -1721,9 +1721,9 @@
"integrity": "sha512-zmJVLiKLrzko0iszd/V4SsjTaomFeoVzQGYYOYgRgsbh7WNh95RgDB0CmBdFWYs/3MyFSt69NypjL/h3iaddKQ==",
"dev": true,
"requires": {
"caniuse-lite": "1.0.30000951",
"electron-to-chromium": "1.3.119",
"node-releases": "1.1.11"
"caniuse-lite": "1.0.30000955",
"electron-to-chromium": "1.3.121",
"node-releases": "1.1.12"
}
},
"browserstack": {
......@@ -1742,7 +1742,7 @@
"dev": true,
"requires": {
"base64-js": "1.3.0",
"ieee754": "1.1.12",
"ieee754": "1.1.13",
"isarray": "1.0.0"
}
},
......@@ -1873,9 +1873,9 @@
}
},
"caniuse-lite": {
"version": "1.0.30000951",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000951.tgz",
"integrity": "sha512-eRhP+nQ6YUkIcNQ6hnvdhMkdc7n3zadog0KXNRxAZTT2kHjUb1yGn71OrPhSn8MOvlX97g5CR97kGVj8fMsXWg==",
"version": "1.0.30000955",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000955.tgz",
"integrity": "sha512-6AwmIKgqCYfDWWadRkAuZSHMQP4Mmy96xAXEdRBlN/luQhlRYOKgwOlZ9plpCOsVbBuqbTmGqDK3JUM/nlr8CA==",
"dev": true
},
"canonical-path": {
......@@ -1931,7 +1931,7 @@
"glob-parent": "3.1.0",
"inherits": "2.0.3",
"is-binary-path": "1.0.1",
"is-glob": "4.0.0",
"is-glob": "4.0.1",
"lodash.debounce": "4.0.8",
"normalize-path": "2.1.1",
"path-is-absolute": "1.0.1",
......@@ -2072,7 +2072,7 @@
"integrity": "sha512-oO6vCkjqsVrEsmh58oNlnJkRXuA30hF8cdNAQV9DytEalDwyOFRvHMnlKFzmOStNerOmPGZU9GAHnBo4tGvtiQ==",
"dev": true,
"requires": {
"app-root-path": "2.1.0",
"app-root-path": "2.2.1",
"css-selector-tokenizer": "0.7.1",
"cssauron": "1.4.0",
"semver-dsl": "1.0.1",
......@@ -2336,7 +2336,7 @@
"cacache": "10.0.4",
"find-cache-dir": "1.0.0",
"globby": "7.1.1",
"is-glob": "4.0.0",
"is-glob": "4.0.1",
"loader-utils": "1.2.3",
"minimatch": "3.0.4",
"p-limit": "1.3.0",
......@@ -2811,9 +2811,9 @@
"dev": true
},
"electron-to-chromium": {
"version": "1.3.119",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.119.tgz",
"integrity": "sha512-3mtqcAWa4HgG+Djh/oNXlPH0cOH6MmtwxN1nHSaReb9P0Vn51qYPqYwLeoSuAX9loU1wrOBhFbiX3CkeIxPfgg==",
"version": "1.3.121",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.121.tgz",
"integrity": "sha512-ALxUkgrnQ6zg2SN9zHnwDcDRy577haGT9dqsbq8lfeAgmEUPC+58SrrU8vIHpGRf7SEyyBYy4mlfonDnoKxONw==",
"dev": true
},
"elliptic": {
......@@ -3587,7 +3587,7 @@
"dev": true,
"optional": true,
"requires": {
"nan": "2.13.1",
"nan": "2.13.2",
"node-pre-gyp": "0.10.3"
},
"dependencies": {
......@@ -4274,7 +4274,7 @@
"neo-async": "2.6.0",
"optimist": "0.6.1",
"source-map": "0.6.1",
"uglify-js": "3.5.1"
"uglify-js": "3.5.2"
},
"dependencies": {
"source-map": {
......@@ -4501,7 +4501,7 @@
"dev": true,
"requires": {
"http-proxy": "1.17.0",
"is-glob": "4.0.0",
"is-glob": "4.0.1",
"lodash": "4.17.11",
"micromatch": "3.1.10"
}
......@@ -4569,9 +4569,9 @@
}
},
"ieee754": {
"version": "1.1.12",
"resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.12.tgz",
"integrity": "sha512-GguP+DRY+pJ3soyIiGPTvdiVXjZ+DbXOxGpXn3eMvNW4x4irjqXm4wHKscC+TfxSJ0yw/S1F24tqdMNsMZTiLA==",
"version": "1.1.13",
"resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz",
"integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==",
"dev": true
},
"iferr": {
......@@ -4895,7 +4895,7 @@
"integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=",
"dev": true,
"requires": {
"binary-extensions": "1.13.0"
"binary-extensions": "1.13.1"
}
},
"is-buffer": {
......@@ -4980,9 +4980,9 @@
}
},
"is-glob": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.0.tgz",
"integrity": "sha1-lSHHaEXMJhCoUgPd8ICpWML/q8A=",
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz",
"integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==",
"dev": true,
"requires": {
"is-extglob": "2.1.1"
......@@ -5443,9 +5443,9 @@
}
},
"jszip": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/jszip/-/jszip-3.2.0.tgz",
"integrity": "sha512-4WjbsaEtBK/DHeDZOPiPw5nzSGLDEDDreFRDEgnoMwmknPjTqa+23XuYFk6NiGbeiAeZCctiQ/X/z0lQBmDVOQ==",
"version": "3.2.1",
"resolved": "https://registry.npmjs.org/jszip/-/jszip-3.2.1.tgz",
"integrity": "sha512-iCMBbo4eE5rb1VCpm5qXOAaUiRKRUKiItn8ah2YQQx9qymmSAY98eyQfioChEYcVQLh0zxJ3wS4A0mh90AVPvw==",
"dev": true,
"requires": {
"lie": "3.3.0",
......@@ -5475,7 +5475,7 @@
"http-proxy": "1.17.0",
"isbinaryfile": "3.0.3",
"lodash": "4.17.11",
"log4js": "4.0.2",
"log4js": "4.1.0",
"mime": "2.4.0",
"minimatch": "3.0.4",
"optimist": "0.6.1",
......@@ -5711,22 +5711,22 @@
"dev": true
},
"log4js": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/log4js/-/log4js-4.0.2.tgz",
"integrity": "sha512-KE7HjiieVDPPdveA3bJZSuu0n8chMkFl8mIoisBFxwEJ9FmXe4YzNuiqSwYUiR1K8q8/5/8Yd6AClENY1RA9ww==",
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/log4js/-/log4js-4.1.0.tgz",
"integrity": "sha512-eDa+zZPeVEeK6QGJAePyXM6pg4P3n3TO5rX9iZMVY48JshsTyLJZLIL5HipI1kQ2qLsSyOpUqNND/C5H4WhhiA==",
"dev": true,
"requires": {
"date-format": "2.0.0",
"debug": "3.2.6",
"debug": "4.1.1",
"flatted": "2.0.0",
"rfdc": "1.1.2",
"streamroller": "1.0.3"
"streamroller": "1.0.4"
},
"dependencies": {
"debug": {
"version": "3.2.6",
"resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz",
"integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==",
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
"integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
"dev": true,
"requires": {
"ms": "2.1.1"
......@@ -6237,9 +6237,9 @@
"dev": true
},
"nan": {
"version": "2.13.1",
"resolved": "https://registry.npmjs.org/nan/-/nan-2.13.1.tgz",
"integrity": "sha512-I6YB/YEuDeUZMmhscXKxGgZlFnhsn5y0hgOZBadkzfTRrZBtJDZeg6eQf7PYMIEclwmorTKK8GztsyOUSVBREA==",
"version": "2.13.2",
"resolved": "https://registry.npmjs.org/nan/-/nan-2.13.2.tgz",
"integrity": "sha512-TghvYc72wlMGMVMluVo9WRJc0mB8KxxF/gZ4YYFy7V2ZQX9l7rgbPg7vjS9mt6U5HXODVFVI2bOduCzwOMv/lw==",
"dev": true,
"optional": true
},
......@@ -6367,9 +6367,9 @@
}
},
"node-releases": {
"version": "1.1.11",
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.11.tgz",
"integrity": "sha512-8v1j5KfP+s5WOTa1spNUAOfreajQPN12JXbRR0oDE+YrJBQCXBnNqUDj27EKpPLOoSiU3tKi3xGPB+JaOdUEQQ==",
"version": "1.1.12",
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.12.tgz",
"integrity": "sha512-Y+AQ1xdjcgaEzpL65PBEF3fnl1FNKnDh9Zm+AUQLIlyyqtSc4u93jyMN4zrjMzdwKQ10RTr3tgY1x7qpsfF/xg==",
"dev": true,
"requires": {
"semver": "5.6.0"
......@@ -6394,7 +6394,7 @@
"lodash.mergewith": "4.6.1",
"meow": "3.7.0",
"mkdirp": "0.5.1",
"nan": "2.13.1",
"nan": "2.13.2",
"node-gyp": "3.8.0",
"npmlog": "4.1.2",
"request": "2.88.0",
......@@ -7994,7 +7994,7 @@
"integrity": "sha512-WH7Aldse+2P5bbFBO4Gle/nuQOdVwpHMTL6raL3uuBj/vPG07k6uzt3aiahu352ONBr5xXh0hDlM3LhtXPOC4Q==",
"dev": true,
"requires": {
"jszip": "3.2.0",
"jszip": "3.2.1",
"rimraf": "2.6.3",
"tmp": "0.0.30",
"xml2js": "0.4.19"
......@@ -8671,9 +8671,9 @@
}
},
"speed-measure-webpack-plugin": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/speed-measure-webpack-plugin/-/speed-measure-webpack-plugin-1.3.0.tgz",
"integrity": "sha512-b9Yd0TrzceMVYSbuamM1sFsGM1oVfyFTM22gOoyLhymNvBVApuYpkdFOgYkKJpN/KhTpcCYcTGHg7X+FJ33Vvw==",
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/speed-measure-webpack-plugin/-/speed-measure-webpack-plugin-1.3.1.tgz",
"integrity": "sha512-qVIkJvbtS9j/UeZumbdfz0vg+QfG/zxonAjzefZrqzkr7xOncLVXkeGbTpzd1gjCBM4PmVNkWlkeTVhgskAGSQ==",
"dev": true,
"requires": {
"chalk": "2.4.2"
......@@ -8806,9 +8806,9 @@
"dev": true
},
"streamroller": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/streamroller/-/streamroller-1.0.3.tgz",
"integrity": "sha512-P7z9NwP51EltdZ81otaGAN3ob+/F88USJE546joNq7bqRNTe6jc74fTBDyynxP4qpIfKlt/CesEYicuMzI0yJg==",
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/streamroller/-/streamroller-1.0.4.tgz",
"integrity": "sha512-Wc2Gm5ygjSX8ZpW9J7Y9FwiSzTlKSvcl0FTTMd3rn7RoxDXpBW+xD9TY5sWL2n0UR61COB0LG1BQvN6nTUQbLQ==",
"dev": true,
"requires": {
"async": "2.6.2",
......@@ -9419,9 +9419,9 @@
"dev": true
},
"uglify-js": {
"version": "3.5.1",
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.5.1.tgz",
"integrity": "sha512-kI+3c+KphOAKIikQsZoT2oDsVYH5qvhpTtFObfMCdhPAYnjSvmW4oTWMhvDD4jtAGHJwztlBXQgozGcq3Xw9oQ==",
"version": "3.5.2",
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.5.2.tgz",
"integrity": "sha512-imog1WIsi9Yb56yRt5TfYVxGmnWs3WSGU73ieSOlMVFwhJCA9W8fqFFMMj4kgDqiS/80LGdsYnWL7O9UcjEBlg==",
"dev": true,
"optional": true,
"requires": {
......
{
"name": "broker-qry",
"name": "angular",
"version": "0.0.0",
"scripts": {
"ng": "ng",
......
......@@ -5,9 +5,9 @@ import {BrokerQryComponent} from './broker-qry/broker-qry.component';
import {BrokerDetailComponent} from './broker-detail/broker-detail.component';
const routes: Routes = [
{
path: '', redirectTo: '/brokerQry', pathMatch: 'full'
path: '', redirectTo: '/index', pathMatch: 'full'
},
{path: 'brokerQry', component: BrokerQryComponent},
{path: 'index', component: BrokerQryComponent},
{path: 'brokerDetail/:id', component: BrokerDetailComponent}
];
@NgModule({
......
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
import { BrokerQryComponent } from './broker-qry/broker-qry.component';
import { BrokerDetailComponent } from './broker-detail/broker-detail.component';
import { MobileNoFormatPipe } from './mobile-no-format.pipe';
import {AppComponent} from './app.component';
import {AppRoutingModule} from './app-routing.module';
import {BrokerQryComponent} from './broker-qry/broker-qry.component';
import {BrokerDetailComponent} from './broker-detail/broker-detail.component';
import {MobileNoFormatPipe} from './mobile-no-format.pipe';
import {HashLocationStrategy, LocationStrategy} from '@angular/common';
import {FormsModule} from '@angular/forms';
import {HttpClientModule} from '@angular/common/http';
import {EventBusService} from './event-bus.service';
@NgModule({
declarations: [
......@@ -16,9 +20,12 @@ import { MobileNoFormatPipe } from './mobile-no-format.pipe';
],
imports: [
BrowserModule,
FormsModule,
HttpClientModule,
AppRoutingModule
],
providers: [],
providers: [{provide: LocationStrategy, useClass: HashLocationStrategy}, EventBusService],
bootstrap: [AppComponent]
})
export class AppModule { }
export class AppModule {
}
......@@ -24,7 +24,7 @@
}
.basicInfo .basicInfoWrapper {
width: 50%;
width: 75%;
}
.cerPhoto {
......@@ -44,7 +44,7 @@
.basicInfo .basicInfoWrapper > div > strong {
display: inline-block;
width: 60%;
width: 35%;
margin-right: 10px;
}
......@@ -54,18 +54,36 @@
align-content: space-between;
}
.honorList > div {
display: flex;
flex-direction: column;
align-items: center;
}
.honorList > div > img {
height: 100px;
margin-bottom: 5px;
}
.bioIntro {
text-align: justify;
}
.contactList > div {
width: 30%;
display: flex;
align-items: center;
}
.contactList > div > strong {
margin-right: 10px;
}
.contact .contactList .icon {
width: 30px;
margin-right: 10px;
}
.lifePhoto .lifePhotoList {
display: flex;
}
......@@ -129,14 +147,27 @@ footer {
width: 100%;
}
.practitionerRegNo {
font-size: 12px;
}
.cerPhoto {
width: 80px;
}
.contact .contactList {
flex-direction: column;
}
.contact .contactList .icon {
width: 25px;
}
.contact .contactList > div {
width: 100%;
height: 28px;
line-height: 28px;
margin-bottom: 12px;
}
.eqrocde > div {
......
<div class="container">
<div class="wrapper">
<h1 class="text-center">
<img src="assets/images/ydinsurance_logo.jpg" alt="">
<img src="assets/images/ydinsurance_logo.png" alt="">
</h1>
<!--经纪人基本信息-->
<section class="basicInfo flex-center">
<div class="basicInfoWrapper">
<div class="name">
<strong>姓名</strong>
<span>张三</span>
<span>{{userPractitionerInfo?.name}}</span>
</div>
<div class="practitionerRegNoWrapper">
<strong>执业编号</strong>
<span>##12345678##</span>
<span class="practitionerRegNo">{{userPractitionerInfo?.practitionerRegNo}}</span>
</div>
<div class="effectiveEndDateWrapper">
<strong>有效截至日期</strong>
<span>2020-02-02</span>
<span>{{userPractitionerInfo?.effectiveEndDate}}</span>
</div>
<div class="areaWrapper">
<strong>所属区域</strong>
<span>江苏省南京市</span>
<span>{{userPractitionerInfo?.provinceName}}{{userPractitionerInfo?.cityName}}</span>
</div>
</div>
<div class="cerPhoto">
<img src="https://yindun-images.oss-cn-shanghai-finance-1-pub.aliyuncs.com/broker/1/head.jpg" alt="" class="img-responsive">
<img src="{{userPractitionerInfo?.headFilePath}}" alt="" class="img-responsive img-circle">
</div>
</section>
<!--经纪人荣誉-->
<section class="honor">
<section class="honor" *ngIf="certificateList && certificateList.length>0">
<h4>荣誉</h4>
<div class="honorList">
<div *ngFor="let honorList of hornorLists">
<img src="{{honorList.path}}" alt="{{honorList.certName}}">
<div *ngFor="let certificateItem of certificateList">
<img src="{{certificateItem.imagePath}}" alt="{{certificateItem.certName}}">
<span>{{certificateItem.certName}}</span>
</div>
</div>
</section>
<!--自我简介-->
<section class="bioIntro">
<section class="bioIntro" *ngIf="userPractitionerInfo?.bioIntro">
<h4>自我简介</h4>
<p>
如果我办得到,我一定把“保险”这两个字写在家家户户的门上,每一个公务员的手册上,以及每个公司的章程上。因为我深信通过保险,每一个家庭,每一个公务员,每一个团体,只要付出微小的代价,就可以免遭万劫不复的
{{userPractitionerInfo?.bioIntro}}
</p>
</section>
<!--联系方式-->
<section class="contact">
<h4>联系方式</h4>
<div class="contactList">
<div>
<strong>手机号:</strong>
<span>13000000000</span>
<div *ngIf="userPractitionerInfo?.mobileNo">
<div class="icon">
<img src="assets/images/phone.png" alt="手机" class="img-responsive">
</div>
<div>
<strong>微信号:</strong>
<span>13000000000</span>
<span><a href="tel:{{userPractitionerInfo?.mobileNo}}">{{userPractitionerInfo?.mobileNo}}</a></span>
</div>
<div>
<strong>QQ号:</strong>
<span>13000000000</span>
<div *ngIf="userPractitionerInfo?.wechatId">
<div class="icon">
<img src="assets/images/wx.png" alt="微信" class="img-responsive">
</div>
<span>{{userPractitionerInfo?.wechatId}}</span>
</div>
<div *ngIf="userPractitionerInfo?.qqId">
<div class="icon">
<img src="assets/images/qq.png" alt="QQ" class="img-responsive">
</div>
<span>{{userPractitionerInfo?.qqId}}</span>
</div>
</div>
</section>
<!--生活照片-->
<section class="lifePhoto">
<section class="lifePhoto" *ngIf="lifePhotoList && lifePhotoList.length>0">
<h4>生活照片</h4>
<div class="lifePhotoList">
<div class="mainPhoto">
<img src="https://yindun-images.oss-cn-shanghai-finance-1-pub.aliyuncs.com/broker/1/20190321205635.jpg" alt="" class="img-responsive">
<div class="mainPhoto" *ngFor="let lifePhotoItem of lifePhotoList.slice(0,1);">
<img src="{{lifePhotoItem.lifePhotoFilePath}}" alt="" class="img-responsive">
</div>
<div class="subPhoto">
<img src="https://yindun-images.oss-cn-shanghai-finance-1-pub.aliyuncs.com/broker/1/20190321205659.jpg" alt="" class="img-responsive">
<div class="subPhoto" *ngFor="let lifePhotoItem of lifePhotoList.slice(1);">
<img src="{{lifePhotoItem.lifePhotoFilePath}}" alt="" class="img-responsive">
</div>
</div>
</section>
<!--尾部-->
<footer>
<div class="eqrocde">
<div><img src="https://www.ydinsurance.cn/wp-content/uploads/2017/11/ydinsurance_qrcode.jpg" alt="" class="img-responsive"></div>
<div><img src="https://www.zuihuibi.cn/wp-content/uploads/2018/07/qrcode_zuihuibi.jpg" alt="" class="img-responsive"></div>
<div><img src="https://www.ydinsurance.cn/wp-content/uploads/2017/11/ydinsurance_qrcode.jpg" alt=""
class="img-responsive"></div>
<div><img src="https://www.zuihuibi.cn/wp-content/uploads/2018/07/qrcode_zuihuibi.jpg" alt=""
class="img-responsive"></div>
</div>
<div class="text-center" style="padding-top: 15px;font-size: 10px">上海银盾保险经纪有限公司</div>
</footer>
......
import {Component, OnInit} from '@angular/core';
import {EventBusService} from '../event-bus.service';
import {ActivatedRoute} from '@angular/router';
@Component({
selector: 'app-broker-detail',
......@@ -6,40 +8,30 @@ import {Component, OnInit} from '@angular/core';
styleUrls: ['./broker-detail.component.css']
})
export class BrokerDetailComponent implements OnInit {
hornorLists: Array<any>;
certificateList: Array<any>;
lifePhotoList: Array<any>;
practitionerId: any;
userPractitionerInfo: any;
constructor() {
constructor(private eventBusService: EventBusService, private activatedRoute: ActivatedRoute) {
}
ngOnInit() {
// 荣誉列表
this.hornorLists = [{
id: '1',
certName: 'RFC',
path: 'https://yindun-images.oss-cn-shanghai-finance-1-pub.aliyuncs.com/broker/cert/rfc.png'
},
{
id: '2',
certName: '人身保险经纪人',
path: 'https://yindun-images.oss-cn-shanghai-finance-1-pub.aliyuncs.com/broker/cert/human.png'
},
{
id: '3',
certName: '产险',
path: 'https://yindun-images.oss-cn-shanghai-finance-1-pub.aliyuncs.com/broker/cert/property.png'
}, {
id: '4',
certName: '投资',
path: 'https://yindun-images.oss-cn-shanghai-finance-1-pub.aliyuncs.com/broker/cert/invest.png'
}, {
id: '5',
certName: '外币',
path: 'https://yindun-images.oss-cn-shanghai-finance-1-pub.aliyuncs.com/broker/cert/currency.png'
}, {
id: '6',
certName: '寿险',
path: 'https://yindun-images.oss-cn-shanghai-finance-1-pub.aliyuncs.com/broker/cert/life.png'
}];
this.practitionerId = this.activatedRoute.snapshot.params['id'];
this.userPractitionerDetailQuery();
}
userPractitionerDetailQuery() {
const practitionerId = {
practitionerId: this.practitionerId
};
this.eventBusService.userPractitionerDetailQuery(practitionerId).then(res => {
if (res['success']) {
this.userPractitionerInfo = res['data'];
this.certificateList = this.userPractitionerInfo.certificateList;
this.lifePhotoList = this.userPractitionerInfo.lifePhotoList;
}
});
}
}
......@@ -57,7 +57,7 @@
}
.queryItem > div {
width: 60%;
width: 100%;
}
.mResultContainer .media-left {
......
......@@ -12,49 +12,29 @@
<div class="col-md-8 col-sm-12 queryItem">
<div class="input-group brokerName">
<span class="glyphicon glyphicon-user"></span>
<input type="text" class="form-control" placeholder="请输入经纪人姓名">
<input type="text" class="form-control" placeholder="请输入经纪人姓名" [(ngModel)]="practitionerName">
</div>
</div>
<div class="col-md-4 col-sm-12">
<div class="search">查询</div>
<div class="search" (click)="userPractitionerQuery()">查询</div>
</div>
</div>
</div>
</div>
<!-- 查询结果-->
<div class="resultContainer">
<!-- <div class="table-responsive">
<table class="table table-bordered">
<thead>
<tr>
<th>操作</th>
<th>姓名</th>
<th>执业登记号</th>
<th>有效截止日</th>
<th>所属区域</th>
<th>手机号</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let brokerList of brokerLists">
<td><a class="viewDetail" (click)="viewDetail(brokerList.id)">查看</a></td>
<td>{{brokerList.name}}</td>
<td>{{brokerList.practitionerRegNo}}</td>
<td>{{brokerList.effectiveEndDate}}</td>
<td>{{brokerList.area}}</td>
<td>{{brokerList.mobileNo | mobileNoFormat}}</td>
</tr>
</tbody>
</table>
</div>-->
<div class="mResultContainer">
<div class="media" *ngFor="let brokerList of brokerLists">
<div class="mResultContainer" *ngIf="userPractitionerQueryItemList && userPractitionerQueryItemList.length <1">
暂无结果
</div>
<div class="mResultContainer" *ngIf="userPractitionerQueryItemList">
<div class="media" *ngFor="let userPractitionerQueryItem of userPractitionerQueryItemList">
<div class="media-body">
<div><strong>姓名</strong><span>{{brokerList.name}}</span></div>
<div><strong>执业编号</strong><span>{{brokerList.practitionerRegNo}}</span></div>
<div><strong>所属区域</strong><span>{{brokerList.area}}</span></div>
<div><strong>手机号</strong><span>{{brokerList.mobileNo | mobileNoFormat}}</span></div>
<div><a class="viewDetail" (click)="viewDetail(brokerList.id)">查看</a></div>
<div><strong>姓名</strong><span>{{userPractitionerQueryItem.name}}</span></div>
<div><strong>执业编号</strong><span>{{userPractitionerQueryItem.practitionerRegNo}}</span></div>
<div><strong>所属区域</strong><span>{{userPractitionerQueryItem.provinceName}}{{userPractitionerQueryItem.cityName}}</span>
</div>
<div><strong>手机号</strong><span>{{userPractitionerQueryItem.mobileNo | mobileNoFormat}}</span></div>
<div><a class="viewDetail" (click)="viewDetail(userPractitionerQueryItem.id)">查看</a></div>
</div>
</div>
</div>
......
import {Component, OnInit} from '@angular/core';
import {CommonService} from '../../common.service';
import {Router} from "@angular/router";
import {Router} from '@angular/router';
import {EventBusService} from '../event-bus.service';
@Component({
selector: 'app-broker-qry',
......@@ -8,52 +8,25 @@ import {Router} from "@angular/router";
styleUrls: ['./broker-qry.component.css']
})
export class BrokerQryComponent implements OnInit {
brokerLists: Array<any>;
userPractitionerQueryItemList: Array<any>;
practitionerName: string;
constructor(private router: Router) {
constructor(private router: Router, private eventBusService: EventBusService) {
}
ngOnInit() {
// 假数据
this.brokerLists = [
{
}
id: '1',
name: '张三',
practitionerRegNo: '12345678912345',
effectiveEndDate: '2001-02-02',
area: '上海',
mobileNo: '13000000000'
}, {
id: '2',
name: '张三',
practitionerRegNo: '12345678912345',
effectiveEndDate: '2001-02-02',
area: '上海',
mobileNo: '4009209291'
}, {
id: '3',
name: '张三',
practitionerRegNo: '12345678912345',
effectiveEndDate: '2001-02-02',
area: '上海',
mobileNo: '0216602026'
}, {
id: '4',
name: '张三',
practitionerRegNo: '12345678912345',
effectiveEndDate: '2001-02-02',
area: '上海',
mobileNo: '13000000000'
}, {
id: '5',
name: '张三',
practitionerRegNo: '12345678912345',
effectiveEndDate: '2001-02-02',
area: '上海',
mobileNo: '13000000000'
},
];
// 经纪人查询
userPractitionerQuery() {
const userPractitioner = {
name: this.practitionerName
};
this.eventBusService.userPractitionerQuery(userPractitioner).then(res => {
if (res['success']) {
this.userPractitionerQueryItemList = res['data'].userPractitionerQueryItemList;
}
});
}
// 经纪人详情信息查询
......
import {Injectable} from '@angular/core';
import {environment} from './../environments/environment';
import {HttpClient, HttpErrorResponse, HttpHeaders} from '@angular/common/http';
import { Observable, throwError } from 'rxjs';
import { catchError, retry } from 'rxjs/operators';
@Injectable({
providedIn: 'root'
})
import {HttpClient, HttpHeaders} from '@angular/common/http';
@Injectable()
export class EventBusService {
private USER_API_URL = '';
private httpOptions;
constructor(private http: HttpClient) {
this.USER_API_URL = environment.apiUrl;
this.httpOptions = {
headers: new HttpHeaders({
'Content-Type': 'application/json',
'X-Authorization': ''
})
};
}
/**
......@@ -21,33 +24,33 @@ export class EventBusService {
const ticketObj = {
ticket: 'brokerQry'
};
return this.http.post(url, JSON.stringify(ticketObj),{ observe: 'response' })
.pipe(
response => {
return response;
return this.http.post(url, JSON.stringify(ticketObj), this.httpOptions).toPromise();
}
);
/**
* 经纪人查询
*/
async userPractitionerQuery(userPractitioner) {
const url = this.USER_API_URL + '/user/userPractitionerQuery';
const res = await this.obtainToken();
this.httpOptions.headers = this.httpOptions.headers.set('X-Authorization', res['data']['token']);
return this.http.post(url, JSON.stringify(userPractitioner), this.httpOptions)
.toPromise().then(response => {
return response;
});
}
/**
* 错误信息处理
* @param error
* @returns {Observable<never>}
* 经纪人详细查询
*/
private handleError(error: HttpErrorResponse) {
if (error.error instanceof ErrorEvent) {
// A client-side or network error occurred. Handle it accordingly.
console.error('An error occurred:', error.error.message);
} else {
// The backend returned an unsuccessful response code.
// The response body may contain clues as to what went wrong,
console.error(
`Backend returned code ${error.status}, ` +
`body was: ${error.error}`);
async userPractitionerDetailQuery(userPractitionerDetail) {
const url = this.USER_API_URL + '/user/userPractitionerDetailQuery';
const res = await this.obtainToken();
this.httpOptions.headers = this.httpOptions.headers.set('X-Authorization', res['data']['token'])
return this.http.post(url, JSON.stringify(userPractitionerDetail), this.httpOptions)
.toPromise().then(response => {
return response;
});
}
// return an observable with a user-facing error message
return throwError(
'Something bad happened; please try again later.');
};
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment