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
a452bd6a
Commit
a452bd6a
authored
Oct 29, 2023
by
侯体倬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
价格展示处理
parent
408b5600
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
static/nativeComponents/GoodsList/GoodsItem/index.js
+6
-6
No files found.
static/nativeComponents/GoodsList/GoodsItem/index.js
View file @
a452bd6a
...
...
@@ -45,12 +45,12 @@ const componentOptions = {
this
.
getSecKillInfo
(
val
);
}
}
if
(
this
.
data
.
datas
.
componentData
[
'columnNum'
]
==
3
)
{
this
.
setData
({
minPrice
:
this
.
keepSelfNum
(
val
.
minPrice
||
0
),
minGoodsSuggestedRetailPrice
:
this
.
keepSelfNum
(
val
.
minGoodsSuggestedRetailPrice
||
0
)
})
}
// 判断当前商品行数是否为 3,如果为 3 进行格式化
const
columnNumFlag
=
this
.
data
.
datas
.
componentData
[
'columnNum'
]
==
3
;
this
.
setData
({
minPrice
:
columnNumFlag
?
this
.
keepSelfNum
(
val
.
minPrice
||
0
)
:
val
.
minPrice
,
minGoodsSuggestedRetailPrice
:
columnNumFlag
?
this
.
keepSelfNum
(
val
.
minGoodsSuggestedRetailPrice
||
0
)
:
val
.
minGoodsSuggestedRetailPrice
}
)
}
},
// 组件方法
...
...
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