Commit 8f8ba37a by Sweet Zhang

增加IP地址

parent 8a366b9b
...@@ -2,7 +2,7 @@ import {Component, OnInit} from '@angular/core'; ...@@ -2,7 +2,7 @@ import {Component, OnInit} from '@angular/core';
import {CommonService} from '../common.service' import {CommonService} from '../common.service'
import {ActivatedRoute, Router} from "@angular/router"; import {ActivatedRoute, Router} from "@angular/router";
import {environment} from "../../environments/environment"; import {environment} from "../../environments/environment";
declare let returnCitySN: any;
@Component({ @Component({
selector: 'app-live', selector: 'app-live',
templateUrl: './live.component.html', templateUrl: './live.component.html',
...@@ -173,7 +173,11 @@ export class LiveComponent implements OnInit { ...@@ -173,7 +173,11 @@ export class LiveComponent implements OnInit {
customerId: sessionStorage.getItem('customerId'), customerId: sessionStorage.getItem('customerId'),
orderId: sessionStorage.getItem('orderId'), orderId: sessionStorage.getItem('orderId'),
pages: this.commonService.todosCopy pages: this.commonService.todosCopy
} },
ipInfo: {
ipAddress: returnCitySN['cip'] ? returnCitySN['cip'] : null,
ipRegion: returnCitySN['cname'] ? returnCitySN['cname'] : null
},
}; };
// 有campaignInfo表示 自动评测 // 有campaignInfo表示 自动评测
if (sessionStorage.getItem('campaignInfo')) { if (sessionStorage.getItem('campaignInfo')) {
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
<body> <body>
<app-root></app-root> <app-root></app-root>
</body> </body>
<script src="https://pv.sohu.com/cityjson?ie=utf-8"></script>
<script> <script>
var _hmt = _hmt || []; var _hmt = _hmt || [];
(function () { (function () {
...@@ -24,4 +25,4 @@ ...@@ -24,4 +25,4 @@
})(); })();
</script> </script>
</html> </html>
\ No newline at end of file
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