<!--pages/shop/shop.wxml-->
<import src="../../module/header.wxml"/>
<import src="../../module/caritem/caritem.wxml"/>
<template 
	is="header"
	data="{{title:'店铺主页',headerheight:headerheight,hasback:true}}"
/>
<page-scroll 
  className="conent"
  styleSheet="height:{{windowh-headerheight}}rpx;"
  scroll-y
  bind:scrolltolower="{{hasloadall?'':'loadCars'}}"
>
	<view class="shop_info">
		<view 
			class="shop_img"
			style="background-image: url({{info.img}})"
		>			
		</view>
		<view class="shop_detail">
			<view class="shop_detail_title">
				{{info.store_name}}
			</view>
			<view class="shop_detail_address">
				<image src="../../img/address.png"/>{{info.address}}
			</view>
			<view 
				class="shop_detail_phone"
				data-phonenumber="{{info.phone}}"
				bindtap="makeCall"
			>
				<image src="../../img/phone.png"/>{{info.phone}}
			</view>
		</view>
	</view>
	<view class="shop_cart_c">
	    <block wx:for="{{list}}" wx:key="id">
      		<template is="caritem" data="{{car:item}}"/>
	    </block>
  	</view>
  	<!-- <view 
  		style="display:none"
  		class="loading"
  		></view> -->
</page-scroll>