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/sharpGoods/index.wxml
2021-07-16 16:37:55 +08:00

64 lines
2.8 KiB
Plaintext

<!-- 商品组 -->
<view wx:if="{{ data.goodsList.data.length }}" class="diy-sharpGoods" style="background: {{ itemStyle.background }};">
<view class="sharp-top dis-flex flex-y-center">
<view class="sharp-top--left flex-box dis-flex flex-y-center">
<view class="sharp-modular dis-flex flex-y-center">
<text class="iconfont icon-miaosha-b"></text>
<text class="modular-name">限时秒杀</text>
</view>
<view class="sharp-active-status">
<text>{{ data.active.sharp_modular_text }}</text>
</view>
<!-- 倒计时 -->
<view wx:if="{{ data.active.status == ActiveStatusEnum.STATE_BEGIN.value }}" class="active-count-down">
<countdown wx:if="{{ countDownTime }}" date="{{ countDownTime }}" style="custom" />
</view>
</view>
<view class="sharp-top--right">
<form bindsubmit="_onTargetSharpIndex" report-submit="true">
<button formType="submit" class="btn-normal dis-flex">
<view class="sharp-more dis-flex flex-y-center">
<text class="sharp-more-text">更多</text>
<text class="sharp-more-arrow iconfont icon-xiangyoujiantou"></text>
</view>
</button>
</form>
</view>
</view>
<view class="goods-list display__list clear column__{{ itemStyle.column }}">
<view class="goods-item" wx:for="{{ data.goodsList.data }}" wx:key="this" wx:for-item="dataItem">
<form bindsubmit="_onTargetGoods" report-submit="true">
<button formType="submit" class="btn-normal" data-id="{{ dataItem.sharp_goods_id }}">
<view class="goods-item--container">
<!-- 单列商品 -->
<block wx:if="{{ itemStyle.column == 1 }}">
</block>
<!-- 两列三列 -->
<block v-else>
<!-- 商品图片 -->
<view class="goods-image">
<image class="image" mode="aspectFill" src="{{ dataItem.goods_image }}"></image>
</view>
<view class="detail">
<!-- 商品标题 -->
<view wx:if="{{ itemStyle.show.goodsName }}" class="goods-name twolist-hidden">
{{ dataItem.goods_name }}
</view>
<!-- 商品价格 -->
<view class="detail-price onelist-hidden">
<text wx:if="{{ itemStyle.show.seckillPrice }}"
class="goods-price f-30 col-m">¥{{ dataItem.goods_sku.seckill_price }}</text>
<text wx:if="{{ itemStyle.show.originalPrice && dataItem.goods_sku.original_price > 0 }}"
class="line-price col-9 f-24">¥{{ dataItem.goods_sku.original_price }}</text>
</view>
</view>
</block>
</view>
</button>
</form>
</view>
</view>
</view>