Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
a3580570
Commit
a3580570
authored
Apr 09, 2024
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改定位接口
parent
36d91f1d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
8 deletions
+9
-8
ext.json
+2
-1
src/app.json
+2
-2
src/components/common/StoreAddr.vue
+1
-1
src/pages/changeAdr/index.vue
+2
-2
src/utils/themeModule.js
+0
-0
src/utils/wxIndex.js
+1
-1
static/nativeComponents/AreaNavigation/index.js
+1
-1
No files found.
ext.json
View file @
a3580570
...
...
@@ -6,5 +6,5 @@
"mixid"
:
"xyyx"
,
"shopid"
:
133
},
"requiredPrivateInfos"
:
[
"chooseLocation"
,
"getLocation"
,
"chooseAddress"
]
"requiredPrivateInfos"
:
[
"chooseLocation"
,
"get
Fuzzy
Location"
,
"chooseAddress"
]
}
\ No newline at end of file
src/app.json
View file @
a3580570
...
...
@@ -36,10 +36,10 @@
"navigationBarTextStyle"
:
"black"
},
"permission"
:
{
"scope.userLocation"
:
{
"scope.user
Fuzzy
Location"
:
{
"desc"
:
"你的位置信息将用于获取附近的门店"
}
},
"requiredPrivateInfos"
:
[
"chooseLocation"
,
"getLocation"
,
"chooseAddress"
],
"requiredPrivateInfos"
:
[
"chooseLocation"
,
"get
Fuzzy
Location"
,
"chooseAddress"
],
"__usePrivacyCheck__"
:
true
}
src/components/common/StoreAddr.vue
View file @
a3580570
...
...
@@ -69,7 +69,7 @@ export default {
},
getLocationHandle
(
callback
)
{
let
_this
=
this
;
wx
.
getLocation
({
wx
.
get
Fuzzy
Location
({
type
:
"gcj02"
,
// gcj02 wgs84
isHighAccuracy
:
true
,
success
:
res
=>
{
...
...
src/pages/changeAdr/index.vue
View file @
a3580570
...
...
@@ -155,7 +155,7 @@
this
.
locationStatus
=
true
;
return
}
wx
.
getLocation
({
wx
.
get
Fuzzy
Location
({
type
:
'wgs84'
,
success
:
function
(
res
){
const
latitude
=
res
.
latitude
...
...
@@ -216,7 +216,7 @@
})
}
else
{
wx
.
getLocation
({
wx
.
get
Fuzzy
Location
({
type
:
'wgs84'
,
success
:
function
(
res
){
const
latitude
=
res
.
latitude
...
...
src/utils/themeModule.js
View file @
a3580570
This diff is collapsed.
Click to expand it.
src/utils/wxIndex.js
View file @
a3580570
...
...
@@ -9,7 +9,7 @@ export function wx_decode(appId, sessionKey, encryptedData, iv) {
// 定位方法
export
function
getUserLocation
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
wx
.
getLocation
({
wx
.
get
Fuzzy
Location
({
type
:
'gcj02'
,
// type有两中类型,gcj02 是腾讯地图所能解析的
success
:
res
=>
{
resolve
(
res
)
...
...
static/nativeComponents/AreaNavigation/index.js
View file @
a3580570
...
...
@@ -81,7 +81,7 @@ Component({
if
(
this
.
data
.
changeLocation
==
1
){
return
}
wx
.
getLocation
({
wx
.
get
Fuzzy
Location
({
type
:
'wgs84'
,
success
(
res
)
{
console
.
log
(
'组件1111'
,
_this
.
data
.
designateAreaObj
)
...
...
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