| | |
| | | resultFeedbackPopupShow: false, |
| | | popupDisplay: "none", |
| | | |
| | | regionName: '' |
| | | regionName: '', |
| | | byValue: '' |
| | | }, |
| | | methods: { |
| | | getLocalPoliceStation () { |
| | | window.parent.getRegionName(this.regionName) |
| | | this.regionName = this.byValue |
| | | |
| | | }, |
| | | getDataList () { |
| | | var that = this |
| | |
| | | // 定位成功之后调用的方法 |
| | | function showPosition (position) { |
| | | |
| | | that.regionName = position.district || position.city |
| | | that.byValue = position.district || position.city |
| | | |
| | | that.lat = position.lat // |
| | | that.lng = position.lng //火星坐标 //TODO 实现业务代码逻辑 |
| | |
| | | } |
| | | |
| | | }, |
| | | created () { }, |
| | | created () { |
| | | var that = this |
| | | document.addEventListener('UniAppJSBridgeReady', function (e) { |
| | | uni.getEnv(function (res) { |
| | | console.log('当前环境:' + JSON.stringify(res)) |
| | | }) |
| | | |
| | | // 向uniapp底座发送消息 |
| | | uni.postMessage({ |
| | | data: that.regionName |
| | | }) |
| | | }) |
| | | }, |
| | | mounted () { |
| | | this.getDataList() |
| | | this.getLocationData() |