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
d32949b4
Commit
d32949b4
authored
Mar 15, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂存
parent
bee2533c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
10 deletions
+19
-10
src/components/common/StoreAddr.vue
+1
-1
src/pages/home/index.vue
+3
-1
src/pages/index/index.vue
+2
-1
src/pages/userInfo/index.vue
+13
-7
No files found.
src/components/common/StoreAddr.vue
View file @
d32949b4
...
...
@@ -70,7 +70,7 @@ export default {
res
.
longitude
=
res
.
longitude
.
toFixed
(
3
)
// latitude longitude speed accuracy
log
.
info
(
"~~~~~~~~~1~~~~~~~"
,
res
);
console
.
log
(
"~~~~~~~~~1~~~~~~~"
,
res
);
console
.
log
(
`%c获取定位
${
JSON
.
stringify
(
res
)}
`
,
'color:yellow;font-size:20px;'
);
_this
.
offlineStoreReq
.
latitude
=
res
.
latitude
;
_this
.
offlineStoreReq
.
longitude
=
res
.
longitude
;
// 存缓存
...
...
src/pages/home/index.vue
View file @
d32949b4
...
...
@@ -336,7 +336,7 @@ export default {
let
h5Params
=
options
&&
options
.
params
?
JSON
.
parse
(
decodeURIComponent
(
options
.
params
))
:
{};
this
.
h5Params
=
h5Params
;
console
.
log
(
h5Params
,
'--h5Params'
)
if
(
Object
.
keys
(
h5Params
).
length
>
0
)
{
if
(
Object
.
keys
(
h5Params
).
length
>
0
&&
h5Params
.
offlineShopCode
)
{
// 存储h5url门店信息
setStoreInfo
({
offlineShopCode
:
h5Params
.
offlineShopCode
,
...
...
@@ -532,7 +532,9 @@ export default {
consumerLatitude
:
locationObj
.
latitude
?
locationObj
.
latitude
.
toString
()
:
""
,
//纬度,小程序和app可以获取到就要传,没有不传
distributionOfficerShopCode
:
this
.
h5Params
.
offlineShopCode
||
""
//分销员门店id,没有不传
}
console
.
log
(
`%cgetEnterShopId---query
${
JSON
.
stringify
(
query
)}
`
,
'color:yellow;font-size:20px;'
)
let
res
=
await
shop
.
getEnterShopId
(
query
);
console
.
log
(
`%cgetEnterShopId
${
JSON
.
stringify
(
res
)}
`
,
'color:yellow;font-size:20px;'
)
if
(
res
.
data
.
code
==
200
)
{
let
enterShopId
=
res
.
data
.
data
;
console
.
log
(
enterShopId
,
'--enterShopId'
)
...
...
src/pages/index/index.vue
View file @
d32949b4
...
...
@@ -70,6 +70,7 @@ export default {
}
// url添加门店信息参数
let
{
offlineShopCode
,
offlineShopName
}
=
getStoreInfo
();
console
.
log
(
offlineShopCode
,
'----index-offlineShopCode'
)
if
(
offlineShopCode
)
{
this
.
params
+=
`&offlineShopCode=
${
offlineShopCode
}
&offlineShopName=
${
offlineShopName
}
`
}
...
...
@@ -155,7 +156,7 @@ export default {
Object
.
assign
(
this
.
$data
,
this
.
$options
.
data
());
try
{
const
h5Params
=
options
&&
options
.
params
?
JSON
.
parse
(
decodeURIComponent
(
options
.
params
))
:
""
;
if
(
h5Params
)
{
if
(
h5Params
&&
h5Params
.
offlineShopCode
)
{
// 存储h5url门店信息
setStoreInfo
({
offlineShopCode
:
h5Params
.
offlineShopCode
,
...
...
src/pages/userInfo/index.vue
View file @
d32949b4
...
...
@@ -445,9 +445,9 @@ i {
}
.van-cell__title
{
flex
:
1
;
font-size
:
1
5
px
;
font-size
:
1
4
px
;
font-weight
:
bold
;
color
:
#
191919
;
color
:
#
333
;
}
.van-cell__value
{
}
...
...
@@ -460,13 +460,19 @@ i {
.updateInfo
{
position
:
relative
;
width
:
100%
;
.van-cell
{
/deep/
.van-cell
{
width
:
100%
;
height
:
55px
;
//
border-bottom
:
1px
solid
#f0f2f5
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
.van-cell__title{
span{
font-size
:
14px
;
color
:
#333
;
}
}
}
.covername
{
width
:
45px
;
...
...
@@ -474,10 +480,10 @@ i {
position
:
absolute
;
right
:
18px
;
top
:
20px
;
font-size
:
1
5
px
;
font-size
:
1
4
px
;
font-family
:
MicrosoftYaHei
;
font-weight
:
400
;
color
:
rgba
(
146
,
146
,
146
,
1
)
;
color
:
#333
;
}
.sex
{
top
:
70px
;
...
...
@@ -490,7 +496,7 @@ i {
.tel
{
height
:
55px
;
padding
:
0
15px
0
15px
;
font-size
:
1
5
px
;
font-size
:
1
4
px
;
i
{
vertical-align
:
text-top
;
}
...
...
@@ -512,6 +518,6 @@ i {
}
/
deep
/
.van-cell__title
,
.van-cell__value
{
font-size
:
1
5
px
;
font-size
:
1
4
px
;
}
</
style
>
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