|
@@ -61,8 +61,6 @@
|
|
|
<u-image width="160rpx" height="160rpx" src="/static/img/index-feature-07.png"></u-image>
|
|
|
<view class="feature-item-text">密码修改</view>
|
|
|
</view> -->
|
|
|
- <view class="feature-item" @click="openPage('pages/ownersquery/ownersquery')">
|
|
|
- <u-image width="160rpx" height="160rpx" src="/static/img/index-feature-10.png"></u-image>
|
|
|
<view class="feature-item" @click="onPrint()">
|
|
|
<u-image width="120rpx" height="120rpx" src="/static/img/index-feature-10.png"></u-image>
|
|
|
<view class="feature-item-text">车主查询</view>
|
|
@@ -88,10 +86,12 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ //#ifdef APP-PLUS
|
|
|
var ALog = uni.requireNativePlugin("AndroidLog")
|
|
|
var location = uni.requireNativePlugin("Location")
|
|
|
var speak = uni.requireNativePlugin("SpeechPlug")
|
|
|
var device = uni.requireNativePlugin("DeviceInfo")
|
|
|
+ //#endif
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -145,22 +145,15 @@
|
|
|
|
|
|
},
|
|
|
getLocation(){
|
|
|
- ALog.info({msg:'请求定位'})
|
|
|
uni.getLocation({
|
|
|
type:"gcj02",
|
|
|
success : function (res) {
|
|
|
- // console.log("定位返回信息:", res)
|
|
|
- // alert(res.longitude + "," + res.latitude )
|
|
|
- ALog.info({msg:res})
|
|
|
var dst = '26.58751,106.78329';
|
|
|
var src = res.latitude + ',' + res.longitude;
|
|
|
var locRet = location.distance(src, dst)
|
|
|
- ALog.info({msg:locRet.distance})
|
|
|
-
|
|
|
},
|
|
|
fail: function(res){
|
|
|
-
|
|
|
- ALog.info({msg:'请求错误',err:res})
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
},
|