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
e0f9e699
Commit
e0f9e699
authored
Apr 08, 2024
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
换定位接口
parent
193da193
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
9 deletions
+11
-9
ext.json
+2
-1
src/App.vue
+2
-1
src/app.json
+2
-2
src/components/common/StoreAddr.vue
+1
-1
src/pages/changeAdr/index.vue
+2
-2
src/utils/wxIndex.js
+1
-1
static/nativeComponents/AreaNavigation/index.js
+1
-1
No files found.
ext.json
View file @
e0f9e699
...
...
@@ -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.vue
View file @
e0f9e699
...
...
@@ -32,7 +32,8 @@ export default {
// production: { "mixid":"RON", "shopid": 1503 }, // 荣恩
// production: { "mixid":"ant", "shopid": 6 }, // 小工蚁
// production: { "mixid":"MetaSense", "shopid": 1237 }, // 册为
production
:
{
"mixid"
:
"6V0o4p"
,
"shopid"
:
1332
},
// lost in echo订货
// production: { "mixid":"5BkDRR", "shopid": 1316 }, // lost in echo订货
production
:
{
"mixid"
:
"LFX"
,
"shopid"
:
1710
},
// 老凤祥
// production: { "mixid":"CYNZ", "shopid": 1609 }, // 晨语女装
xhyx_uat
:
{
"mixid"
:
"xhyxshop"
,
"shopid"
:
1
},
xhyx_prod
:
{
"mixid"
:
"xhyxshop"
,
"shopid"
:
1
},
...
...
src/app.json
View file @
e0f9e699
...
...
@@ -37,10 +37,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 @
e0f9e699
...
...
@@ -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 @
e0f9e699
...
...
@@ -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/wxIndex.js
View file @
e0f9e699
...
...
@@ -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 @
e0f9e699
...
...
@@ -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