<!--pages/shopinfo/shopinfo.wxml-->

<view class="container">
   <!-- 门店照片 -->
   <view class="shop-img">
      <image src="{{shopInfo.logo}}"></image>
   </view>
   <!-- 门店信息 -->
   <view class="shop-info card">
      <view class="shop-name f18">
         {{shopInfo.storeName}}
      </view>
      <view class="stars">

         <mp-icon icon="star" color="#E15F3D" size="18" type="{{parseInt(storeInfo.storeScore)>0?'filled':'outline'}}"></mp-icon>
         <mp-icon icon="star" color="#E15F3D" size="18" type="{{parseInt(storeInfo.storeScore)>1?'filled':'outline'}}"></mp-icon>
         <mp-icon icon="star" color="#E15F3D" size="18" type="{{parseInt(storeInfo.storeScore)>2?'filled':'outline'}}"></mp-icon>
         <mp-icon icon="star" color="#E15F3D" size="18" type="{{parseInt(storeInfo.storeScore)>3?'filled':'outline'}}"></mp-icon>
         <mp-icon icon="star" color="#E15F3D" size="18" type="{{parseInt(storeInfo.storeScore)>4?'filled':'outline'}}"></mp-icon>
      </view>
      <view class="tel f13 fw300 padding40">
         <mp-icon icon="cellphone" size="18" class="icon"></mp-icon>
         {{shopInfo.mobile}}
      </view>
      <view class="address f13 fw300 padding40">
         <view class="">

            <mp-icon icon="location" size="18" class="icon"></mp-icon>
            {{shopInfo.address}}
         </view>
         <view class="way f13 fw300">
            <view class="checkway">

               查看路线
            </view>

            <image class="next" src="../../images/icons/next-gray.png" >
               
            </image>
         </view>
      </view>
   </view>
   <!-- 门店产品 -->
   <view class="products card">
      <view class="shop-title f17 fw600">
         门店项目
      </view>
      <view url="../product/product" >
         <view class="product" wx:for="{{productList.list}}" wx:key="id" data-productid = "{{item.id}}" bindtap = "showProduct">
         <view class="product-img">
            <image src="{{item.productImg}}"></image>
         </view>
         <view class="product-info">
            <view class="product-title ">{{item.productName}}</view>
            <view class="price">
               <view class="new-price">¥{{item.currentPrice}}</view>
               <view class="old-price f13 fw300">¥{{item.oldPrice}}</view>
            </view>
         </view>
      </view>
      </view>
      

   </view>
   <!-- 门店描述 -->
   <view class="shop-desc card">
      <view class="shop-title f17 fw600">
         店铺介绍
      </view>
      <view class="desc f14">
         {{shopInfo.shopDesc}}
      </view>
   </view>
   <view class="comments card">
      <view class="shop-title f17 fw600">
         全部评论（{{commentsNum}}）
      </view>
      <comments commentsList="{{commentsList}}"></comments>
      <view class="comments-end c-707070 f14" wx:if="{{loadingEnd}}">
         已经到底啦
      </view>
   </view>

</view>