Commit 8f8ba37a by Sweet Zhang

增加IP地址

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