<!--packageE/solitaire/components/yz_goodsPopup/yz_goodsPopup.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.goods_video}}">
					<video style="width: 100%;height:100%;" src="{{goodsInfo.godds.goods_video}}" poster="{{goodsInfo.video_image}}"></video>
				</swiper-item>
				<block wx:if="{{!goodsInfo.goods.thumb_url || goodsInfo.goods.thumb_url == null}}" >
					<swiper-item>
						<image src="{{goodsInfo.goods.thumb_src}}" mode='widthFix' />
					</swiper-item>
				</block>
				<block wx:else>
					<swiper-item>
						<image src="{{goodsInfo.godds.thumb}}" mode='widthFix' />
					</swiper-item>
				</block>
			</swiper>
		</view>
		<!-- 商品信息 -->
		<view class="yz-gp-goods-info">
			<view class="yz-g-title">{{ goodsInfo.goods.title }}</view>
			<view class="yz-g-price">
				<view class="big-font">{{language['money']}}{{goodsInfo.goods.price}}</view>
				<view style="text-decoration:line-through;color:#999;">
					<text wx:if="{{Number(goodsInfo.goods.market_price) != Number(goodsInfo.goods.price) && Number(goodsInfo.goods.market_price) > 0}}">{{getMarketPrice}}:</text>
					{{ goodsInfo.goods.market_price }}</view>
			</view>
			<view class="yz-g-title">
				{{ goodsInfo.title }}
			</view>
			<view class="yz-g-other">
				<view class="other-info">库存：{{ goodsInfo.goods.stock }}</view>
				<!-- <view class="other-info">销量：{{ goodsInfo.show_sales + goodsInfo.virtual_sales }}</view> -->
			</view>
			<!-- <view class="yz-g-addCar">
				<icon class="iconfont icon-life-game-plus" bindtap="addCart"></icon>
			</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.goods.content}}"></rich-text>
			</view>
		</view>


</view>


</van-popup>



