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
22fe9364
Commit
22fe9364
authored
Jul 01, 2024
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat: 商品列表价格
parent
0b23d765
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
static/nativeComponents/GoodsList/GoodsItem/index.wxml
+2
-2
static/nativeComponents/GoodsList/index.wxml
+1
-1
No files found.
static/nativeComponents/GoodsList/GoodsItem/index.wxml
View file @
22fe9364
...
...
@@ -184,8 +184,8 @@
style="color:{{datas.componentData['priceColor']}};font-size:{{datas.componentData['priceFontSize']}}em;display:{{datas.componentData['columnNum']<3?'flex':'block'}}"
wx:elif="{{datas.componentData['priceShow']}}"
>
<text>¥{{items!=null ? minPrice : 0}}</text>
<text style="font-size:24rpx;color:#999;text-decoration:line-through;display:{{datas.componentData['columnNum']<3?'inline-block':'block'}}" wx:if="{{items!=null&&datas.componentData['priceMarking']&&items['minGoodsSuggestedRetailPrice']&&(minPrice-0<minGoodsSuggestedRetailPrice-0)&&datas.componentData['columnNum']<4}}">¥{{minGoodsSuggestedRetailPrice}}</text>
<text>¥{{items!=null ?
items.
minPrice : 0}}</text>
<text style="font-size:24rpx;color:#999;text-decoration:line-through;display:{{datas.componentData['columnNum']<3?'inline-block':'block'}}" wx:if="{{items!=null&&datas.componentData['priceMarking']&&items['minGoodsSuggestedRetailPrice']&&(
items.
minPrice-0<minGoodsSuggestedRetailPrice-0)&&datas.componentData['columnNum']<4}}">¥{{minGoodsSuggestedRetailPrice}}</text>
</view>
<view class="vipPrice2 flex" wx:if="{{datas.componentData.vipPrice}}">
<view class="left" wx:if="{{items.showVipPrice==true}}">
...
...
static/nativeComponents/GoodsList/index.wxml
View file @
22fe9364
...
...
@@ -64,7 +64,7 @@
style="display:grid;grid-template-columns:repeat({{datas.componentData.columnNum}},minmax(0px, 1fr));gap:{{datas.componentData.proGap*2}}rpx;"
>
<view
wx:for="{{
datas.componentData.
goodsList}}"
wx:for="{{goodsList}}"
wx:key="index"
class="goods-item {{'goodsItemIndex'+index}}"
style="margin-bottom:20rpx;"
...
...
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