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
c70c5d55
Commit
c70c5d55
authored
Apr 09, 2024
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
es接口
parent
a3580570
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
12 deletions
+6
-12
src/App.vue
+2
-1
src/api/goods.js
+1
-1
static/nativeComponents/GoodsList/index.js
+1
-5
static/nativeComponents/RankingList/index.js
+2
-5
No files found.
src/App.vue
View file @
c70c5d55
...
...
@@ -28,7 +28,8 @@ export default {
// development: { mixid: "ytVVdX", "shopid": 3812}, // 驿联科技uat
// production: { "mixid":"xhyxshop", "shopid": 1095 }, // 小工蚁新零售
// production: { "mixid":"AntTechnology", "shopid": 1095 }, // 小工蚁新零售
production
:
{
"mixid"
:
"ZJRH"
,
"shopid"
:
1706
},
//
// production: { "mixid":"ZJRH", "shopid": 1706 }, //
production
:
{
"mixid"
:
"LFX"
,
"shopid"
:
1710
},
// 老凤祥
// production: { "mixid":"SWQ", "shopid": 1641 }, // 麦贝思
// production: { "mixid":"metasense_doctors", "shopid": 1238 }, // 册为医护端
// production: { "mixid":"3QqsFT", "shopid": 1337 },
...
...
src/api/goods.js
View file @
c70c5d55
...
...
@@ -10,7 +10,7 @@ export default {
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/product/query_popular_words_shop`
,
data
);
},
queryProductInfo
(
data
)
{
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/product/
query_product_info
`
,
data
);
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/product/
select_product_info_on_es
`
,
data
);
},
// 扫码查询商品
selectProductInfoOnEs
(
data
)
{
...
...
static/nativeComponents/GoodsList/index.js
View file @
c70c5d55
...
...
@@ -326,13 +326,9 @@ const componentOptions = {
query
.
productAttributeIds
=
this
.
data
.
submitFliterVal
.
productAttributeIds
;
query
.
minPrice
=
this
.
data
.
submitFliterVal
.
minPrice
;
query
.
maxPrice
=
this
.
data
.
submitFliterVal
.
maxPrice
;
}
const
envList
=
[
'xhyx_prod'
,
'xhyx_beta'
];
if
(
envList
.
includes
(
processEnv
.
NODE_ENV
))
{
// 隔离门店搜索
query
.
searchScopeFlag
=
1
;
}
goodsApi
[
envList
.
includes
(
processEnv
.
NODE_ENV
)?
'selectProductInfoOnEs'
:
'queryProductInfo'
]
(
query
).
then
(
res
=>
{
goodsApi
.
queryProductInfo
(
query
).
then
(
res
=>
{
this
.
setData
({
loading
:
false
,
queryProductInfoLoading
:
false
});
if
(
res
.
data
.
code
==
200
)
{
let
goodsLists
=
res
.
data
.
data
.
list
;
...
...
static/nativeComponents/RankingList/index.js
View file @
c70c5d55
...
...
@@ -83,12 +83,9 @@ Component({
categoryIdList
:
[],
whetherQueryGoodsAttributeFlag
:
0
,
whetherToEnableQuickPurchase
:
0
,
searchScopeFlag
:
1
,
}
if
(
processEnv
.
NODE_ENV
==
'xhyx_prod'
)
{
// 隔离门店搜索
data
.
searchScopeFlag
=
1
;
}
const
res
=
await
goodsApi
[
processEnv
.
NODE_ENV
==
'xhyx_prod'
?
'selectProductInfoOnEs'
:
'queryProductInfo'
](
data
);
const
res
=
await
goodsApi
.
queryProductInfo
(
data
);
if
(
res
.
data
.
code
==
200
)
{
res
.
data
.
data
.
list
&&
res
.
data
.
data
.
list
.
forEach
(
item
=>
{
item
.
productImgUrl
=
DFSImg
(
item
.
productImgUrl
);
...
...
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