<view bindtap="closeSpecModal_inte" class="cover-layer"></view> 
	 <view class="spec-model">
		  <view class="pding"> 
		            <icon bindtap="closeSpecModal_inte" class="modal-close" color="black" size="22" type="cancel"></icon>
		            <view class="spec-goods">
		              <image class="wh100 spec-img xc-distance-bottom" bindtap="previewImage" src="{{front_g.original_img}}" binderror="pop_err_img" data-errorimg="data.original_img"></image>
		              <view class="spec-goods-info">
		                <view class="spec-goods-name ellipsis-2">{{front_g.goods_name}}</view>
		                <view class="flex ai_end xc-val-money">            
		                     <view class="spec-goods-price">
		      				   <text wx:if="{{prom_integral}}">{{prom_integral}}积分</text>
		      				   <text wx:if="{{prom_integral && prom_price}}">+</text>				   
		      				   <text wx:if="{{prom_price}}">{{prom_price}}元</text>
							   <text wx:if="{{!prom_integral && !prom_price}}">0积分</text>								   
		      			     </view>
		                </view>
		             
		                  
						 <view class="flex">		
							<view class="spec-goods-stock">已售：{{prom_act.buy_num+prom_act.virtual}}</view>
							<view class="spec-goods-stock">可售：{{prom_act.limitqty-prom_act.buy_num}}</view>         
						 </view>
		                
		              </view>
		      
		              <!-- 选择门店模块 -->
		               <view  class="flex-space-between address ai_end xc-width ">
		      
		                           <view class="flex" wx:if="{{def_pick_store && def_pick_store.pickup_name}}">
		                             <text class="fs30 xc-black3 shop_name  bold  {{def_pick_store.distance!=null?'max':''}} ">{{def_pick_store.pickup_name}}</text>

		                               <view class="distance fs24 xc-ash" wx:if="{{def_pick_store.distance!=null}}">
		                                距离:{{def_pick_store.distance>1000?filters.toFix(def_pick_store.distance/1000,2)+"km":filters.toFix(def_pick_store.distance,0)+"m"}}
		                               
		                                </view>
		                           </view>
		      
		                           <!-- 没有门店的时候 -->
		                           <view  class="flex" bindtap="choice_store" wx:else>
		                                 <image class="stores-img" src="{{iurl}}/miniapp/images/stores.png"></image>
		                                 <view class="fs30" style="color:black;">选择门店</view>						  
		                            </view>
		      
		                            <view  hidden="{{has_def && sys_switch.is_pricing_open_store}}" class="red-co fs28" bindtap="choice_store">更多门店<text class="right-arrow"></text></view>
		                         </view>
		      				   <view wx:if="{{only_pk && !only_pk.length}}">(库存不足)</view>
		      				   <block wx:else>
		      				         <view wx:if="{{def_pickpu_list && !def_pickpu_list.length}}">(库存不足)</view>
		      						 <block wx:else>
										  <view class="no_store" wx:if="{{def_pick_store.is_no_dis}}">(配送不匹配)</view>
		      					     	  <view wx:elif="{{def_pick_store && sales_rules>=2 && prom_type==0}}">
											  <block wx:if="{{!def_pick_store.CanOutQty || def_pick_store.CanOutQty<1}}">(库存不足)</block>
										  </view>
		      						 </block>				       
		      				   </block>
		      				   	   
		                         <view class="fs24 xc-ash-9f xc-distance-top " wx:if="{{def_pick_store && def_pick_store.fulladdress}}">地址:{{def_pick_store.fulladdress}}</view>
		               
		      
		              <!--商品的属性项目-->
		              <view  class="xc-goods-attribute">
		                  <view hidden="{{ismend==1}}" class="spec-name">商品规格</view>
		                  <view hidden="{{ismend==1}}" style="max-height: 120rpx;overflow-y: auto;">
		                   <view class="spec_bt {{sele_g.goods_id==item.goods_id?'act':''}}" bindtap="sele_spec" data-gid='{{item.goods_id}}' wx:for="{{sku_g}}" wx:key="sku_g">
		                      {{item.gg}}
		                    </view>
		                 </view>
		              </view>
		        
		              <view class="b_num">
		                <view>购买数量</view>
		                <view class="count">
		                  <view bindtap="{{goodsInputNum <= 1 ? '':'subCartNum_inte'}}" class="sub {{goodsInputNum <= 1 ? 'active':''}}">-</view>
		                  <input bindblur="inputCartNum_inte" type="number" value="{{goodsInputNum}}"></input>
		                  <view bindtap="addCartNum_inte" class="add">+</view>
		                </view>
		              </view>		      	
		          </view>
				  
				  <!-- 按钮部分 -->
				  <view class="spec-cart-btns">					  
				     <!-- 根本就找不到门店 -->
				     <block wx:if="{{def_pick_store && def_pick_store.is_no_dis}}">
				     	   <view class="spec-cart-btn fs32" data-action="add" style="background-color: #dcdcdc;color: #999;">配送不匹配</view>		   
				     </block>	
				 
					 <block wx:else> 
				  
				  	       <!-- 根本就找不到门店 -->
				  	       <block wx:if="{{!only_pk && !def_pickpu_list}}">
				  			   <view class="spec-cart-btn fs32" data-action="add" style="background-color: #dcdcdc;color: #999;">库存不足</view>		   
				  		   </block>		 
				  		   <block wx:else>
				  		   
				  		 			  
				  			  <block wx:if="{{only_pk && !only_pk.length}}">
				  				   <view class="spec-cart-btn fs32" data-action="add" style="background-color: #dcdcdc;color: #999;">库存不足</view>
				  			  </block>  	  
				  			  <block wx:else>
				  			      <block wx:if="{{def_pickpu_list && !def_pickpu_list.length}}">
				  		  			   <view class="spec-cart-btn fs32" data-action="add" style="background-color: #dcdcdc;color: #999">库存不足</view>
				  				 </block>
				  				 <block wx:else>
				  					 <block wx:if="{{!def_pick_store}}">
				  						 <view class="spec-cart-btn fs32" data-action="add" style="background-color: #dcdcdc;color: #999">请先选择门店</view>
				  					 </block>					 
				  					 <block wx:else>	 						 						  																	
				  							 <block wx:if="{{sele_g.store_count<=0}}">
				  								  <view class="spec-cart-btn fs32" data-action="add" style="background-color: #dcdcdc;color: #999">库存不足</view>	
				  							 </block>
				  							 <block wx:else>								 
				  								 <view bindtap="addCart_inte" class="spec-cart-btn spec-buy" data-action="buy">立即兑换</view> 
				  							 </block>
				  						 					 
				  					 </block>									 
				  				 </block>
				  		  </block>  			
				  		</block>	
					</block>					   
				  </view>
		  
		  
		  </view>
	 </view>	
	 <view class="clear"></view> 