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
8ff65369
Commit
8ff65369
authored
Aug 03, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定金预售
parent
22039b51
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletions
+13
-1
static/nativeComponents/GoodsList/GoodsItem/index.wxml
+8
-1
static/nativeComponents/GoodsList/index.js
+5
-0
No files found.
static/nativeComponents/GoodsList/GoodsItem/index.wxml
View file @
8ff65369
...
...
@@ -149,8 +149,15 @@
<view class="bottom" wx:if="{{datas.componentData['goodsType'] !=1}}">
<!-- 价格 -->
<view class="priceItem flex" style="flex-wrap:{{items && items.secondKillActivityInfoGoodsList ? 'wrap' : 'nowrap'}};justify-content:{{priceTextStyle}}">
<!-- 定金膨胀 -->
<block wx:if="{{items && items.depositInflationInfoList && items.depositInflationInfoList.length != 0 && items.depositInflationInfoList[0].status == 1}}">
<view class="flex cut-price__wrapper">
<view class="cut-price__min" style="color:{{datas.componentData['priceColor']}};font-size:{{datas.componentData['priceFontSize']}}em;">¥{{ items.depositInflationInfoList[0].goodsInfo[0].depositPrice }}</view>
<view class="cut-price__tag">火热预定中</view>
</view>
</block>
<!-- 砍价展示 -->
<block wx:if="{{items && items.cutActivityGoodsList && items.cutActivityGoodsList.length != 0 && items.cutActivityGoodsList[0].status == 2}}">
<block wx:
el
if="{{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>
...
...
static/nativeComponents/GoodsList/index.js
View file @
8ff65369
...
...
@@ -449,6 +449,11 @@ const componentOptions = {
item
.
getSaleTime
=
0
;
item
.
getSaleTime
=
this
.
getSaleTime
(
item
.
saleTime
);
}
if
(
item
.
depositInflationInfoList
&&
item
.
depositInflationInfoList
.
length
>
0
)
{
item
.
depositInflationInfoList
[
0
].
goodsInfo
[
0
].
depositPrice
=
item
.
depositInflationInfoList
[
0
].
goodsInfo
[
0
].
depositPrice
?
Number
(
item
.
depositInflationInfoList
[
0
].
goodsInfo
[
0
].
depositPrice
).
toFixed
(
2
)
:
0
;
}
item
.
attributeValueList
=
[];
if
(
attributeValueList
.
length
>
0
)
{
// 过滤商品属性
...
...
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