Skip to content

Commit

Permalink
商品列表增加原价
Browse files Browse the repository at this point in the history
  • Loading branch information
gooking committed Jan 12, 2018
1 parent 9c15b1d commit ec3a641
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion pages/index/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@
<image src="{{item.pic}}_m" class="image" mode="aspectFill" lazy-load="true"/>
</view>
<view class="goods-title">{{item.name}}</view>
<view class="goods-price">¥ {{item.minPrice}}</view>
<view style='display:flex;'>
<view class="goods-price">¥ {{item.minPrice}}</view>
<view wx:if="{{item.originalPrice && item.originalPrice > 0}}" class="goods-price" style='color:#aaa;text-decoration:line-through'>¥ {{item.originalPrice}}</view>
</view>
</view>
</view>
<view hidden="{{loadingMoreHidden ? true : false}}" class="no-more-goods">没有更多啦</view>
Expand Down
2 changes: 1 addition & 1 deletion pages/start/start.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<view class="confirm-btn" bindtap='goToIndex'>
<text >进入店铺</text>
</view>
<text class="copyright">感谢 @_干将~ 贡献本页代码</text>
<text class="copyright">感谢 @qindiandadudu 贡献本页代码</text>
</view>
</view>
</block>
Expand Down

0 comments on commit ec3a641

Please sign in to comment.