yuminge-app/yun-min-program-plugin-master/packageH/deposit_group/component/goodsDetail/goodsDetail.wxml

92 lines
3.0 KiB
Plaintext

<!--packageH/deposit_group/component/goodsDetail/goodsDetail.wxml-->
<van-popup show="{{show}}" closeable custom-style="height: 80%;overflow:scroll;" position="bottom" bind:close="popupSpecsbtn">
<view style="height:100%;overflow:scroll;">
<view class="ithumb">
<swiper indicator-dots="{{true}}" autoplay="{{false}}" circular="{{true}}" indicator-active-color="#007aff">
<swiper-item wx:if="{{goodsInfo.goods_video}}">
<video style="width: 100%;height:100%;" src="{{goodsInfo.goods_video}}" poster="{{goodsInfo.video_image}}"></video>
</swiper-item>
<block wx:for="{{goodsInfo.thumb_url}}" wx:key="index" wx:for-item="ithumb" wx:for-index="index">
<swiper-item>
<image src="{{ithumb}}" mode='widthFix' />
</swiper-item>
</block>
<block wx:if="{{!goodsInfo.thumb_url}}">
<swiper-item>
<image src="{{goodsInfo.thumb}}" mode='widthFix' />
</swiper-item>
</block>
</swiper>
</view>
<!-- 活动倒计时 -->
<view class="rob-time">
<view class="rt-text">截止倒计时:</view>
{{goodsInfo.end_time}}
<van-count-down use-slot time="{{ goodsInfo.end_time ? goodsInfo.end_time : 01 }}" bind:change="onChangeTime">
<view class="bottom_time">
<text class="radius-box">{{ timeData.days }}</text>
<text class="text">天</text>
<text class="radius-box">{{ timeData.hours }}</text>
<text class="text">:</text>
<text class="radius-box">{{ timeData.minutes }}</text>
<text class="text">:</text>
<text class="radius-box">{{ timeData.seconds }}</text>
</view>
</van-count-down>
</view>
<!-- 商品信息 -->
<view class="yz-gp-goods-info">
<view class="yz-g-price">
<view class="big-font">{{language['money']}}{{ goodsInfo.price }}</view>
<view style="text-decoration:line-through;color:#999;">
<text wx:if="{{getMarketPrice}}">{{getMarketPrice}}:</text>
{{ goodsInfo.market_price }}</view>
</view>
<view class="yz-g-title">
{{ goodsInfo.title }}
</view>
<view class="yz-g-other">
<view class="other-info">库存:{{ goodsInfo.stock }}</view>
<view class="other-info">销量:{{ goodsInfo.show_sales + goodsInfo.virtual_sales }}</view>
</view>
<view class="yz-g-addCar">
<view class="add-goods" catchtap="addCart" data-num="1">+</view>
<view class="good-num" >{{OrderNum}}</view>
<view class="reduce-goods" catchtap="addCart" data-num="-1">-</view>
</view>
</view>
<view style="height: 10px;background: #f8f8f8;" wx:if="{{goodsInfo.has_one_brand}}"></view>
<!-- 供应商、品牌信息 -->
<view class="yz-gp-brand" wx:if="{{goodsInfo.has_one_brand}}">
<image src="{{goodsInfo.has_one_brand.logo}}"
class="logo_img"
></image>
{{ goodsInfo.has_one_brand.name }}
</view>
<view style="height: 10px;background: #f8f8f8;"></view>
<!-- 商品描述 -->
<view class="yz-g-detail">
<view class="yz-g-d-title">— 商品详情 —</view>
<view class="yz-content">
<rich-text nodes="{{goodsInfo.content}}"></rich-text>
</view>
</view>
</view>
</van-popup>