Commit 9baa1b7f authored by 786817560's avatar 786817560

Merge branch 'ren' into develop

parents 4ce1a2cc eb2441e2
......@@ -2,7 +2,7 @@
* @Descrip: 主页
* @Author: your name
* @Date: 2019-10-10 14:25:15
* @LastEditTime: 2019-10-11 16:26:13
* @LastEditTime: 2019-10-12 11:27:42
* @LastEditors: Please set LastEditors
-->
<template>
......@@ -13,7 +13,7 @@
<img class="locations" src="@/assets/homePage/location.png" alt="" @click="location">
<span>徐州</span>
</div>
<div slot="center">徐工租赁</div>
<div slot="center" @click="getLocation">徐工租赁</div>
</h-header>
<h-content>
<swipe :interval="5000" class="hls-swipe">
......@@ -99,8 +99,18 @@ export default {
},
computed: {},
watch: {},
created () {
this.getLocation()
},
methods:
{
// 定位
getLocation () {
let url = 'http://api.map.baidu.com/location/ip?ak=2h7McXV8X4CmFkYEuhPGWLKWpdQrdHCg&coor=bd09ll'
this.hlsHttp.post(url).then(function (res) {
console.log(res)
})
},
goFunctionHome (data) {
// if (data.functionState === 'NaturePersonReadOnly') {
// if (this.user_bp_status === 'APPROVED' && this.user_bp_class === 'NP') {
......
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