Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xugong
hls-xcmg-vue-app
Commits
bd46487f
Commit
bd46487f
authored
Dec 19, 2019
by
李晓兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'定位插件'
parent
b20538e5
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
11 deletions
+9
-11
index.html
index.html
+1
-1
main.js
src/main.js
+2
-2
home-page.vue
src/pages/home/home-page.vue
+1
-1
location.vue
src/pages/home/location.vue
+3
-5
index.html
www/index.html
+1
-1
manifest.3ad1d5771e9b13dbdad2.js.map
www/static/js/manifest.3ad1d5771e9b13dbdad2.js.map
+1
-1
No files found.
index.html
View file @
bd46487f
...
...
@@ -16,7 +16,7 @@
<script
type=
"text/javascript"
src=
"./static/prototype.js"
></script>
<script
type=
"text/javascript"
src=
"cordova.js"
></script>
<!-- 定位 -->
<script
type=
"text/javascript"
src=
"http
s
://api.map.baidu.com/api?v=2.0&ak=o7fTnpVAGzXKN7SirV8xGU2xzWQS2NrI"
></script>
<script
type=
"text/javascript"
src=
"http://api.map.baidu.com/api?v=2.0&ak=o7fTnpVAGzXKN7SirV8xGU2xzWQS2NrI"
></script>
<title>
徐工融租
</title>
</head>
<body>
...
...
src/main.js
View file @
bd46487f
...
...
@@ -59,8 +59,8 @@ import Jpush from './scripts/jpushService'
import
Jmessage
from
'./scripts/jmessageService'
// if (process.env.CONFIG_ENV === 'uat') {
//
const VConsole = require('vconsole')
//
new VConsole() // eslint-disable-line
const
VConsole
=
require
(
'vconsole'
)
new
VConsole
()
// eslint-disable-line
// }
Vue
.
use
(
componentInstall
)
...
...
src/pages/home/home-page.vue
View file @
bd46487f
...
...
@@ -122,7 +122,7 @@ export default {
vm
.
province
=
window
.
localStorage
.
getItem
(
'province'
)
}
else
{
vm
.
city
=
result
.
city
vm
.
province
=
result
.
addr
vm
.
province
=
result
.
province
}
vm
.
guessingQuery
()
// 猜你喜欢查询
},
function
(
error
)
{
...
...
src/pages/home/location.vue
View file @
bd46487f
...
...
@@ -111,10 +111,9 @@ export default {
console
.
log
(
error
)
},
{
enableHighAccuracy
:
true
})
}
else
{
// ios使用插件定位
console
.
log
(
'&&&&&&&&&&&&___ios'
)
baidumap_location
.
getCurrentPosition
(
function
(
result
)
{
console
.
log
(
'*********** '
+
JSON
.
stringify
(
result
))
window
.
localStorage
.
setItem
(
'province'
,
result
.
addr
)
console
.
log
(
'*********** '
+
JSON
.
stringify
(
result
))
window
.
localStorage
.
setItem
(
'province'
,
result
.
province
)
window
.
localStorage
.
setItem
(
'city'
,
result
.
city
)
vm
.
places
=
window
.
localStorage
.
getItem
(
'province'
)
+
'-'
+
window
.
localStorage
.
getItem
(
'city'
)
vm
.
province
=
'请选择省'
...
...
@@ -122,10 +121,9 @@ export default {
vm
.
flag
=
false
vm
.
province_flag
=
true
},
function
(
error
)
{
console
.
log
(
'errorerrorerrorerror '
+
error
)
console
.
log
(
'errorerrorerrorerror '
+
error
)
})
}
},
// 省份查询
...
...
www/index.html
View file @
bd46487f
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"
><meta
name=
format-detection
content=
"telephone=no"
><meta
name=
format-detection
content=
"email=no"
><meta
name=
apple-mobile-web-app-capable
content=
yes
><meta
name=
apple-mobile-web-app-status-bar-style
content=
black
><script
type=
text/javascript
src=
./static/vuePlatform.js
></script><script
type=
text/javascript
src=
./static/prototype.js
></script><script
type=
text/javascript
src=
cordova.js
></script><script
type=
text/javascript
src=
"https://api.map.baidu.com/api?v=2.0&ak=o7fTnpVAGzXKN7SirV8xGU2xzWQS2NrI"
></script><title>
徐工融租
</title><link
href=
./static/css/app.cef9e99b92cf0ba926ef46444ea235b0.css
rel=
stylesheet
></head><body><div
id=
app-box
></div><script
type=
text/javascript
src=
./static/js/manifest.3ad1d5771e9b13dbdad2.js
></script><script
type=
text/javascript
src=
./static/js/vendor.e547499500fbe65e7169.js
></script><script
type=
text/javascript
src=
./static/js/app.b98728f85bf36e31eb7e.js
></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"
><meta
name=
format-detection
content=
"telephone=no"
><meta
name=
format-detection
content=
"email=no"
><meta
name=
apple-mobile-web-app-capable
content=
yes
><meta
name=
apple-mobile-web-app-status-bar-style
content=
black
><script
type=
text/javascript
src=
./static/vuePlatform.js
></script><script
type=
text/javascript
src=
./static/prototype.js
></script><script
type=
text/javascript
src=
cordova.js
></script><script
type=
text/javascript
src=
"http://api.map.baidu.com/api?v=2.0&ak=o7fTnpVAGzXKN7SirV8xGU2xzWQS2NrI"
></script><title>
徐工融租
</title><link
href=
./static/css/app.f498d74b055e0448fc22239df093ac8b.css
rel=
stylesheet
></head><body><div
id=
app-box
></div><script
type=
text/javascript
src=
./static/js/manifest.3ad1d5771e9b13dbdad2.js
></script><script
type=
text/javascript
src=
./static/js/vendor.efd596b798e6119ce4a4.js
></script><script
type=
text/javascript
src=
./static/js/app.a4da29c5b69cdae12c13.js
></script></body></html>
\ No newline at end of file
www/static/js/manifest.3ad1d5771e9b13dbdad2.js.map
View file @
bd46487f
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment