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
e396639c
Commit
e396639c
authored
Mar 11, 2024
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "横向标签切换商品列表导致价格错误"
This reverts commit
d7c671e8
.
parent
d7c671e8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
static/nativeComponents/GoodsList/GoodsItem/index.js
+0
-1
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 @
e396639c
...
...
@@ -38,7 +38,6 @@ 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 @
e396639c
...
...
@@ -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;">¥{{minPrice}}</text>
<text style="font-size:24rpx;color:#999;text-decoration:line-through;margin-left:12rpx;">¥{{
items.
minPrice}}</text>
<view class="cut-price__tag">砍价享</view>
</view>
</block>
...
...
static/nativeComponents/GoodsList/index.wxml
View file @
e396639c
...
...
@@ -75,7 +75,7 @@
indexs="{{index}}"
></goods-item> -->
<goods-item
items="{{
datas.componentData.goodsList[index]
}}"
items="{{
item
}}"
datas="{{datas}}"
indexs="{{index}}"
style="height: 100%;"
...
...
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