This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop-wechat/components/diy/bargainGoods/index.wxml

47 lines
1.9 KiB
Plaintext
Raw Permalink Normal View History

2020-04-25 22:59:04 +08:00
<!-- 商品组 -->
<view class="diy-bargainGoods" style="background: {{ itemStyle.background }};">
<view class="goods-item dis-flex" wx:for="{{ dataList }}" wx:key="this" wx:for-item="dataItem">
<form bindsubmit="_onTargetGoods" report-submit="true">
<button formType="submit" class="btn-normal dis-flex" data-id="{{ dataItem.active_id }}">
<view class="goods-item--container dis-flex">
<!-- 商品图片 -->
<view class="goods-image">
<image class="image" src="{{ dataItem.goods_image }}"></image>
</view>
<view class="goods-info">
<!-- 商品名称 -->
<view class="goods-name">
<text class="twolist-hidden">{{ dataItem.goods_name }}</text>
</view>
<!-- 参与的用户头像 -->
<view wx:if="{{ dataItem.helps_count > 0 }}" class="peoples dis-flex">
<view class="user-list dis-flex">
<view wx:for="{{ dataItem.helps }}" wx:for-item="help" wx:key="this" class="user-item-avatar">
<image class="image" src="{{ help.user.avatarUrl }}"></image>
</view>
</view>
<view class="people__text">
<text>{{ dataItem.helps_count }}人正在砍价</text>
</view>
</view>
<!-- 商品原价 -->
<view class="goods-price">
<text>¥{{ dataItem.original_price }}</text>
</view>
<!-- 砍价低价 -->
<view class="floor-price">
<text class="small">最低¥</text>
<text class="big">{{ dataItem.floor_price }}</text>
</view>
<!-- 操作按钮 -->
<view class="opt-touch">
<view class="touch-btn">
<text>立即参加</text>
</view>
</view>
</view>
</view>
</button>
</form>
</view>
</view>