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
8051a704
Commit
8051a704
authored
Dec 21, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除没用代码
parent
72b69832
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
67 deletions
+0
-67
src/components/common/StoreAddr.vue
+0
-67
No files found.
src/components/common/StoreAddr.vue
View file @
8051a704
...
...
@@ -102,73 +102,6 @@ export default {
});
return
;
};
return
;
// 进店规则获取门店id
let
query
=
{
channelType
:
2
,
//设备类型(0:pc,1:app,2:小程序)
consumerLongitude
:
this
.
offlineStoreReq
.
longitude
,
//经度,小程序和app可以获取到就要传,没有不传
consumerLatitude
:
this
.
offlineStoreReq
.
latitude
,
//纬度,小程序和app可以获取到就要传,没有不传
distributionOfficerShopcode
:
""
//分销员门店id,没有不传
}
let
enterShopRes
=
await
shop
.
getEnterShopId
(
query
);
if
(
enterShopRes
&&
enterShopRes
.
code
==
200
)
{
this
.
enterShopId
=
enterShopRes
.
data
;
}
shop
.
changingOverShopForXinHua
(
this
.
offlineStoreReq
).
then
(
res1
=>
{
let
res
=
res1
.
data
;
if
(
res
.
code
==
200
)
{
if
(
res
.
data
&&
res
.
data
.
length
!=
0
)
{
this
.
storeList
=
res
.
data
;
let
isStore
=
false
;
let
{
offlineShopName
,
offlineShopCode
}
=
getStoreInfo
();
console
.
log
(
offlineShopName
,
offlineShopCode
,
'------------------sa114'
)
if
(
this
.
enterShopId
)
{
// 如果有进店规则门店id则直接匹配存入
let
ruleShop
=
this
.
storeList
.
filter
(
item
=>
item
.
id
==
this
.
enterShopId
);
if
(
ruleShop
&&
ruleShop
.
length
>
0
)
{
this
.
name
=
ruleShop
[
0
].
shopName
;
this
.
$store
.
dispatch
(
"setShopCode"
,
{
shopCode
:
ruleShop
[
0
].
shopCode
,
});
this
.
$store
.
dispatch
(
"setShopName"
,
{
shopName
:
ruleShop
[
0
].
shopName
,
});
this
.
$emit
(
"toUpdate"
);
return
;
}
}
this
.
storeList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
shopName
==
offlineShopName
)
{
isStore
=
true
;
}
else
if
(
offlineShopCode
==
""
)
{
isStore
=
true
;
}
});
console
.
log
(
offlineShopName
,
isStore
,
"sa97"
);
if
(
offlineShopName
&&
isStore
)
{
console
.
log
(
"判断列表中是否存在(未关闭网店)"
);
this
.
name
=
offlineShopName
;
this
.
$emit
(
"toUpdate"
);
}
else
{
console
.
log
(
"如果关闭网店,重新选择列表第一个"
);
setStoreInfo
({
offlineShopCode
:
this
.
storeList
[
0
].
shopCode
,
offlineShopName
:
this
.
storeList
[
0
].
shopName
,
});
this
.
name
=
this
.
storeList
[
0
].
shopName
;
this
.
$emit
(
"toUpdate"
);
}
}
else
{
console
.
log
(
"如果列表为空--选择商城"
);
setStoreInfo
({
offlineShopCode
:
""
,
offlineShopName
:
this
.
shopName
,
});
this
.
name
=
this
.
shopName
;
this
.
$emit
(
"toUpdate"
);
}
}
});
},
// 去切换门店页面
pushStorePage
()
{
...
...
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