Commit eb2441e2 authored by 786817560's avatar 786817560

'拉取'

parent 631b106e
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Descrip: 主页 * @Descrip: 主页
* @Author: your name * @Author: your name
* @Date: 2019-10-10 14:25:15 * @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 * @LastEditors: Please set LastEditors
--> -->
<template> <template>
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<img class="locations" src="@/assets/homePage/location.png" alt="" @click="location"> <img class="locations" src="@/assets/homePage/location.png" alt="" @click="location">
<span>徐州</span> <span>徐州</span>
</div> </div>
<div slot="center">徐工租赁</div> <div slot="center" @click="getLocation">徐工租赁</div>
</h-header> </h-header>
<h-content> <h-content>
<swipe :interval="5000" class="hls-swipe"> <swipe :interval="5000" class="hls-swipe">
...@@ -99,8 +99,18 @@ export default { ...@@ -99,8 +99,18 @@ export default {
}, },
computed: {}, computed: {},
watch: {}, watch: {},
created () {
this.getLocation()
},
methods: 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) { goFunctionHome (data) {
// if (data.functionState === 'NaturePersonReadOnly') { // if (data.functionState === 'NaturePersonReadOnly') {
// if (this.user_bp_status === 'APPROVED' && this.user_bp_class === 'NP') { // 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