<view class="details">
	<!-- <view class="details_title">
		<view class="li">活动</view>
		<view class="li">商品</view>
		<view class="li">详情</view>
	</view> -->
	<view class="surface_plot">
		<image src="{{datas.cover}}" mode='widthFix' />
		<!-- 	<view class="recommend">
			<view class="left">
				<image src="https://dev4.yunzmall.com/addons/yun_shop/plugins/designer/assets/images/init-data/init-image-2.jpg"
				 mode='aspectFill' />
			</view>
			<view class="right">衣***来购买了该活动商品</view>
		</view> -->
	</view>
	<view class="details_message">
		<view class="top">
			<view class="left"> {{datas.title}}</view>
			<view class="share" style="position: relative;">
				<view class="shareleft">
					<view class="iconfont icon-fenxiang"></view>
				</view>
				<view class="shareright">分享</view>
				<button style="position:absolute;width:100%;height:100%;opacity:0;top: 0;right: 0;" open-type="share"></button>
			</view>
		</view>
		<view class="bottom">
			<view class="li partake">
				<view class="partake_left">
					<view class="iconfont icon-fx_canyu"></view>
				</view>
				<view class="partake_right">
					{{ datas.join_num ? datas.join_num : 0 }} 人参与
				</view>
			</view>
			<view class="li poster" catchtap="postShow">
				<view class="poster_left">
					<view class="iconfont icon-fx_hiabao"></view>
				</view>
				<view class="poster_right">
					海报
				</view>
			</view>
		</view>
	</view>
	<view class="select_list">
		<view class="tilte">选择商品</view>
		<van-radio-group value="{{checked}}" bind:change="onChange">
			<view class="li" wx:for="{{goods_list}}" wx:key="index">
				<view class="radioShow">
					<van-radio name="{{index}}">
					</van-radio>
				</view>
				<view class="details" catchtap="gotoGoods" data-id="{{item.id}}">
					<view class="left">
						<image src="{{item.thumb}}" mode='aspectFill' />
					</view>
					<view class="right">
						<view class="top">
							{{ item.title }}
						</view>
						<view class="bottom">
							{{language['money']}}{{ item.price }}
						</view>
					</view>
				</view>
			</view>
		</van-radio-group>
	</view>
	<view class="activity_content">
		<view class="top">活动详情</view>
		<view class="bottom">
			<rich-text nodes="{{datas.desc}}"></rich-text>
		</view>
	</view>
	<view style="height: 100rpx;"></view>
	<view class="btngroup">
		<view class="left">
			<view class="li" catchtap="goHome">
				<view class="top">
					<view class="iconfont icon-dianpu"></view>
				</view>
				<view class="bottom">店铺</view>
			</view>
			<view class="li" style="position: relative;">
				<view class="top">
					<view class="iconfont icon-wodekefu"></view>
				</view>
				<view class="bottom">客服</view>
				<button style="position:absolute;width:100%;height:100%;opacity:0;top: 0;right: 0;" open-type="contact"
				 session-from="weapp"></button>
			</view>
			<view class="li" catchtap="goMember">
				<view class="top">
					<view class="iconfont icon-verification_member"></view>
				</view>
				<view class="bottom">我的</view>
			</view>
		</view>
		<view class="right">
			<view class="buybtn active" catchtap="buyNow">立即购买</view>
		</view>
	</view>
	<van-popup show="{{posterShow}}" position="center" custom-style="width: 480rpx;max-height: 842rpx;background-color: #ffffff;border-radius: 25rpx;"
	 bind:close="posterShowCloseBtn"  catchtap='saveImg'>
		<view class="postershow">
			<image src="{{'data:' + posterImg.mime + ';base64,' + posterImg.base64Image}}" mode='widthFix' />
			<view class="close" catchtap="posterShowCloseBtn">
				<view class="iconfont icon-adsystem_icon_cancle"></view>
			</view>
		</view>
	</van-popup>
	<van-popup show="{{popupSpecs}}" position="bottom" custom-style="overflow: visible;" bind:close="popupSpecsCloseBtn">
		<view class="specifications">
			<view class="icon_close" bindtap="popupSpecsCloseBtn">
				<view class="guanbi_icon">
					<van-icon name="close" size='40rpx' />
				</view>
			</view>
			<view class="shopimg">
				<view class="chooser_img">
					<image src="{{selected_goods.thumb}}" mode='widthFix' />
				</view>
				<view class="right">
					<view class="price">
						{{language['money']}}
						<text id="option_price">{{popPrice}}</text>
					<!-- 	<text wx:if="{{isRent}}">/天</text> -->
					</view>
					<view class="option">库存{{popStock}}{{selected_goods.sku}}</view>
					<view class="option">{{goodsDescription}}</view>
				</view>
			</view>
			<view class="shopinfo" wx:key="{{specsIdex}}" wx:for="{{selected_goods.has_many_specs}}" wx:for-index="specsIdex"
			 wx:for-item="specs">
				<view class="dl">
					<view class="dt">{{specs.title}}</view>
					<view class="dd" data-descr="{{specs.description}}">
						<view wx:for="{{specs.specitem}}" wx:key="{{specitemIdex}}" wx:for-index="specitemIdex" wx:for-item="specitem"
						 class="spec {{specs.description==specitem.id?'sele':''}} {{specitem.c?'disab':''}}" data-specitem="{{specitem}}"
						 data-specsidex="{{specsIdex}}" bindtap='selectSpecs'>
							{{specitem.title}}
						</view>
					</view>
				</view>
			</view>
<!-- 			<view class="goodsnum" wx:if="{{!isRent}}">
				<view class="num">购买数量：</view>
				<view class="calculation">
					<view class="leftnav" bindtap='reduceGoods'>-</view>
					<input type="number" class="shownum" value="{{goodsCount}}" bindinput="inputGoodsNum" />
					<view class="rightnav" bindtap='addGoods'>+</view>
				</view>
			</view> -->
			<view class="subbtn" bindtap="submitAction">确认</view>
		</view>
	</van-popup>
	<van-popup show="{{popupSpecs2}}" position="bottom" custom-style="overflow: visible;" bind:close="popupSpecs2CloseBtn">
		<view class="specifications">
			<view class="icon_close" bindtap="popupSpecs2CloseBtn">
				<view class="guanbi_icon">
					<van-icon name="close" size='40rpx' />
				</view>
			</view>
			<view class="shopimg">
				<view class="chooser_img">
					<image src="{{selected_goods.thumb}}" mode='widthFix' />
				</view>
				<view class="right">
					<view class="price">
						{{language['money']}}
						<text id="option_price">{{ selected_goods.price}}</text>
					<!-- 	<text wx:if="{{isRent}}">/天</text> -->
					</view>
					<view class="option">库存{{selected_goods.stock}}{{selected_goods.sku}}</view>
					<view class="option">{{goodsDescription}}</view>
				</view>
			</view>
			<view class="goodsnum" wx:if="{{!isRent}}">
				<view class="num">购买数量：</view>
				<view class="calculation">
					<view class="leftnav" bindtap='reduceGoods'>-</view>
					<input type="number" class="shownum" value="{{goodsCount}}" bindinput="inputGoodsNum" />
					<view class="rightnav" bindtap='addGoods'>+</view>
				</view>
			</view>
			<view class="subbtn" bindtap="buyNowNew">确认</view>
		</view>
	</van-popup>
</view>
