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
d7c671e8
Commit
d7c671e8
authored
Mar 09, 2024
by
李嘉林
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
横向标签切换商品列表导致价格错误
parent
926c5c48
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
static/nativeComponents/GoodsList/GoodsItem/index.js
+1
-0
static/nativeComponents/GoodsList/GoodsItem/index.wxml
+1
-1
static/nativeComponents/GoodsList/index.wxml
+1
-1
No files found.
static/nativeComponents/GoodsList/GoodsItem/index.js
View file @
d7c671e8
...
...
@@ -38,6 +38,7 @@ const componentOptions = {
// 数据监听器
observers
:
{
items
(
val
)
{
if
(
val
==
null
)
return
;
if
(
val
&&
val
.
cutActivityGoodsList
&&
val
.
cutActivityGoodsList
.
length
!=
0
)
{
this
.
setData
({
cutPrice
:
Number
(
val
.
cutActivityGoodsList
[
0
].
minPrice
).
toFixed
(
2
)
})
}
...
...
static/nativeComponents/GoodsList/GoodsItem/index.wxml
View file @
d7c671e8
...
...
@@ -163,7 +163,7 @@
<block wx:elif="{{items && items.cutActivityGoodsList && items.cutActivityGoodsList.length != 0 && items.cutActivityGoodsList[0].status == 2}}">
<view class="flex cut-price__wrapper">
<view class="cut-price__min" style="color:{{datas.componentData['priceColor']}};font-size:{{datas.componentData['priceFontSize']}}em;">¥{{ cutPrice }}</view>
<text style="font-size:24rpx;color:#999;text-decoration:line-through;margin-left:12rpx;">¥{{
items.
minPrice}}</text>
<text style="font-size:24rpx;color:#999;text-decoration:line-through;margin-left:12rpx;">¥{{minPrice}}</text>
<view class="cut-price__tag">砍价享</view>
</view>
</block>
...
...
static/nativeComponents/GoodsList/index.wxml
View file @
d7c671e8
...
...
@@ -75,7 +75,7 @@
indexs="{{index}}"
></goods-item> -->
<goods-item
items="{{
item
}}"
items="{{
datas.componentData.goodsList[index]
}}"
datas="{{datas}}"
indexs="{{index}}"
style="height: 100%;"
...
...
李嘉林
@lijialin
mentioned in commit
e396639c
Mar 11, 2024
mentioned in commit
e396639c
mentioned in commit e396639c8d371be6b8a0cd35eb5f02c163af3b40
Toggle commit list
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