<!--packageA/mycomponent/goodsComponent/plugin/supplierModel/supplierModel.wxml-->
<view class="supplier-box panel" wx:if="{{supplierData && supplierData.is_open==1}}">
  <view class="store">
    <view class="store-head">
      <view class="store-head-left">
        <view class="left-img">
          <image src="{{supplierData.logo?supplierData.logo:'https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/loading.jpg'}}" />
        </view>
        <view class="left-title">
          <view class="title-name">
            {{supplierData.store_name?supplierData.store_name:supplierData.username}}
          </view>
          <view class="title-hot">
            热销<text class="red-text">{{goodsInfo.supplier_goods_count}}</text>件
          </view>
        </view>
      </view>
      <view class="store-head-right" catchtap="gotoSupplier">
        <view class="right-enter">进入店铺</view>
      </view>
    </view>
    <scroll-view scroll-x="{{true}}" class="store-main" enable-flex="{{true}}" style="height: 330rpx" wx:if="{{supplierData.hot_sale_goods.length > 0}}">
      <view class="store-main-item" wx:for="{{supplierData.hot_sale_goods}}" wx:key="index" catchtap="pushGoodGoto" data-itemdata="{{item}}">
        <image src="{{item.thumb}}" alt=""></image>
        <view class="store-main-title">{{item.title}}</view>
        <view class="store-main-price" wx:if="{{item.has_option == 0}}">¥{{item.vip_level_status && item.vip_level_status.status == 1
          ? item.vip_level_status.word
          : item.price}}</view>
          <view class="store-main-price" wx:if="{{item.has_option == 1}}">¥{{item.max_price == item.min_price ? item.min_price : item.min_price + '-' +item.max_price }}</view>
      </view>
      <view class="more-goods" catchtap="gotoSupplier">
        <icon class="iconfont icon-fontclass-yingyongshichang1"></icon>
        <view class="more-goods-text">更多商品</view>
      </view>
    </scroll-view>
  </view>
</view>
