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
954ca8fa
Commit
954ca8fa
authored
Mar 14, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
b034ce42
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
src/pages/home/index.vue
+3
-7
No files found.
src/pages/home/index.vue
View file @
954ca8fa
...
@@ -215,6 +215,7 @@ export default {
...
@@ -215,6 +215,7 @@ export default {
showSpe
:
false
,
showSpe
:
false
,
pageLoading
:
true
,
pageLoading
:
true
,
firstOpenPage
:
true
,
//首次打开页面
firstOpenPage
:
true
,
//首次打开页面
h5Params
:
{},
//params
};
};
},
},
components
:{
components
:{
...
@@ -333,6 +334,7 @@ export default {
...
@@ -333,6 +334,7 @@ export default {
console
.
log
(
options
,
this
.
firstOpenPage
,
'---------home----options'
)
console
.
log
(
options
,
this
.
firstOpenPage
,
'---------home----options'
)
log
.
info
(
options
,
'---------home----options'
)
log
.
info
(
options
,
'---------home----options'
)
let
h5Params
=
options
&&
options
.
params
?
JSON
.
parse
(
decodeURIComponent
(
options
.
params
))
:
{};
let
h5Params
=
options
&&
options
.
params
?
JSON
.
parse
(
decodeURIComponent
(
options
.
params
))
:
{};
this
.
h5Params
=
h5Params
;
console
.
log
(
h5Params
,
'--h5Params'
)
console
.
log
(
h5Params
,
'--h5Params'
)
if
(
Object
.
keys
(
h5Params
).
length
>
0
)
{
if
(
Object
.
keys
(
h5Params
).
length
>
0
)
{
// 存储h5url门店信息
// 存储h5url门店信息
...
@@ -340,11 +342,6 @@ export default {
...
@@ -340,11 +342,6 @@ export default {
offlineShopCode
:
h5Params
.
offlineShopCode
,
offlineShopCode
:
h5Params
.
offlineShopCode
,
offlineShopName
:
h5Params
.
offlineShopName
,
offlineShopName
:
h5Params
.
offlineShopName
,
});
});
}
else
{
setStoreInfo
({
offlineShopCode
:
""
,
offlineShopName
:
""
,
});
}
}
//进页面存储需要绑定的信息
//进页面存储需要绑定的信息
if
(
options
.
userId
||
options
.
spokesmanRelId
)
{
if
(
options
.
userId
||
options
.
spokesmanRelId
)
{
...
@@ -528,12 +525,11 @@ export default {
...
@@ -528,12 +525,11 @@ export default {
if
(
!
openThousandsStoresFlag
)
return
;
if
(
!
openThousandsStoresFlag
)
return
;
console
.
log
(
wx
.
getStorageSync
(
"locationObj"
),
'--locationObj'
)
console
.
log
(
wx
.
getStorageSync
(
"locationObj"
),
'--locationObj'
)
let
locationObj
=
wx
.
getStorageSync
(
"locationObj"
)
?
JSON
.
parse
(
wx
.
getStorageSync
(
"locationObj"
))
:
{};
let
locationObj
=
wx
.
getStorageSync
(
"locationObj"
)
?
JSON
.
parse
(
wx
.
getStorageSync
(
"locationObj"
))
:
{};
let
{
offlineShopCode
}
=
getStoreInfo
();
let
query
=
{
let
query
=
{
channelType
:
2
,
//设备类型(0:pc,1:app,2:小程序)
channelType
:
2
,
//设备类型(0:pc,1:app,2:小程序)
consumerLongitude
:
locationObj
.
longitude
?
locationObj
.
longitude
.
toString
()
:
""
,
//经度,小程序和app可以获取到就要传,没有不传
consumerLongitude
:
locationObj
.
longitude
?
locationObj
.
longitude
.
toString
()
:
""
,
//经度,小程序和app可以获取到就要传,没有不传
consumerLatitude
:
locationObj
.
latitude
?
locationObj
.
latitude
.
toString
()
:
""
,
//纬度,小程序和app可以获取到就要传,没有不传
consumerLatitude
:
locationObj
.
latitude
?
locationObj
.
latitude
.
toString
()
:
""
,
//纬度,小程序和app可以获取到就要传,没有不传
distributionOfficerShopCode
:
offlineShopCode
||
""
//分销员门店id,没有不传
distributionOfficerShopCode
:
this
.
h5Params
.
offlineShopCode
||
""
//分销员门店id,没有不传
}
}
let
res
=
await
shop
.
getEnterShopId
(
query
);
let
res
=
await
shop
.
getEnterShopId
(
query
);
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
...
...
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