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
f9a87af4
Commit
f9a87af4
authored
Nov 24, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
榜单组件改es接口
parent
6bbaca4b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
static/nativeComponents/RankingList/index.js
+6
-2
No files found.
static/nativeComponents/RankingList/index.js
View file @
f9a87af4
const
app
=
getApp
();
const
app
=
getApp
();
const
{
goodsApi
,
DFSImg
,
$themeToLink
}
=
app
;
const
{
goodsApi
,
DFSImg
,
$themeToLink
,
processEnv
}
=
app
;
Component
({
Component
({
behaviors
:
[],
behaviors
:
[],
...
@@ -84,7 +84,11 @@ Component({
...
@@ -84,7 +84,11 @@ Component({
whetherQueryGoodsAttributeFlag
:
0
,
whetherQueryGoodsAttributeFlag
:
0
,
whetherToEnableQuickPurchase
:
0
,
whetherToEnableQuickPurchase
:
0
,
}
}
const
res
=
await
goodsApi
.
queryProductInfo
(
data
);
if
(
processEnv
.
NODE_ENV
==
'xhyx_prod'
)
{
// 隔离门店搜索
data
.
searchScopeFlag
=
1
;
}
const
res
=
await
goodsApi
[
processEnv
.
NODE_ENV
==
'xhyx_prod'
?
'selectProductInfoOnEs'
:
'queryProductInfo'
](
data
);
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
res
.
data
.
data
.
list
&&
res
.
data
.
data
.
list
.
forEach
(
item
=>
{
res
.
data
.
data
.
list
&&
res
.
data
.
data
.
list
.
forEach
(
item
=>
{
item
.
productImgUrl
=
DFSImg
(
item
.
productImgUrl
);
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