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/sharingGoods/sharingGoods.wxml

37 lines
1.8 KiB
Plaintext
Raw Permalink Normal View History

2020-04-25 22:59:04 +08:00
<!-- 商品组 -->
<view class="diy-sharingGoods" style="background: {{ itemStyle.background }};">
<view class="goods-item" 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.goods_id }}">
<!-- 商品图片 -->
<view class="goods-item_left">
<image class="image" mode="aspectFill" src="{{ dataItem.image }}"></image>
</view>
<view class="goods-item_right">
<!-- 商品名称 -->
<view wx:if="{{ itemStyle.show.goodsName }}" class="goods-item_title twolist-hidden">
<text>{{ dataItem.goods_name }}</text>
</view>
<view class="goods-item_desc">
<!-- 商品卖点 -->
<view wx:if="{{ itemStyle.show.sellingPoint }}" class="desc-selling_point onelist-hidden">
<text>{{ dataItem.selling_point }}</text>
</view>
<!-- 拼团信息 -->
<view class="desc-situation">
<text class="iconfont icon-pintuan_huaban"></text>
<text class="people">{{ dataItem.people }}人团</text>
<text class="col-9">已有{{ dataItem.goods_sales }}人进行拼团</text>
</view>
<!-- 商品价格 -->
<view class="desc_footer">
<text class="price_x" wx:if="{{ itemStyle.show.sharingPrice }}">¥{{ dataItem.sharing_price }}</text>
<text class="price_y col-9" wx:if="{{ itemStyle.show.linePrice && dataItem.line_price > 0 }}">¥{{ dataItem.line_price }}</text>
</view>
</view>
<view class="btn-settlement">去拼团</view>
</view>
</button>
</form>
</view>
</view>