brandStore.ttml 3.64 KB

<import src="categoryProductListFilter.ttml"/>
<!-- <import src="../../vendors/zanui/actionsheet/index.wxml"/> -->
<form bindsubmit="formSubmit" report-submit='true'>

<scroll-view class="scroll-view" scroll-y style="height: {{screenHeight - 50}}px" bindscrolltolower="loadMore" bindscroll="scroll" scroll-top="{{scrollTop}}" enable-back-to-top="true">
  <!-- 顶部店铺信息 -->
  <view class="store-info" style="height: {{bannerHeight}}px">
    <image class="store-info-bg" src="{{bannerUrl}}"></image>
    <view class="store-logo-mask" style="height: {{bannerHeight}}px; margin-top: {{-bannerHeight}}px"></view>
    <view class="store-info-content">
      <view class="store-info-left">
        <image class="store-logo" mode="aspectFit" src="{{info.data.shop_logo}}" bindtap="jumpToShopIntro"></image>
        <text class="store-title">{{info.data.shop_name}}</text>
      </view>
      <!-- <image class="store-share" mode="aspectFit" src="./images/share-ic@2x.png" ></image>
      <button bindtap="shareShop" formType="submit" class="shareButton"></button>  -->
    </view> 
  </view>

  <!--优惠券  -->
  <view class='coupon-container' tt:if="{{couponList.length > 0}}">
    <scroll-view class='coupon-scroll' scroll-x>
      <block tt:for="{{couponList}}" tt:key="coupon">
        <view class='coupon-content' style="margin-left: {{index == 0 ? 15*scale : 0}}px; margin-right: {{index == couponList.length-1 ? 15*scale : 20*scale}}px" data-item="{{item}}" data-index="{{index}}" bindtap='getShopCoupon'>
        <image class='coupon-bg-icon' src="{{item.status == 1 ? './images/coupon_bg_normal@2x.png' : './images/coupon_bg_disable@2x.png'}}">
        </image>
        <view class='coupon-info-content'>
          <view class='coupon-info'>
            <view class='coupon-price'>
              <text class='coupon-rmb'>¥</text>
              <text class='coupon-price-text'>{{item.money}}</text>
            </view>
            <view class='coupon-name-content'>
              <text class='coupon-name-text'>{{item.coupon_name}}</text>
            </view>
          </view>
          <view class='coupon-status'>
            <text class='coupon-status-text'>{{item.statusStr}}</text>
          </view>
        </view>
        </view>
      </block>
    </scroll-view>
  </view>

  <!-- 筛选框 -->
  <view class="{{fixedFilter ? 'store-fixedFilter' : ''}}">
      <template is="categoryProductListFilter" data="{{filter, filterGenderItem, genderFilter}}"/>
  </view>
  <!-- 店铺列表 -->
  <view class="store-list" style="margin-top:{{fixedFilter ? '90' : '0'}}rpx;">
    <block tt:for="{{list.data}}" tt:key="{{index}}">
        <productCell item="{{item}}" page-name="{{current_page_name}}"></productListCell>
    </block>
</view>
<!--上拉加载信息  -->
  <view class="store-loadMore" tt:if="{{list.data.length > 0 && list.isLoading && !list.endReached}}">
      <text class="store-loadText">加载中...</text>
  </view>
    <view class="store-loadMore" tt:if="{{list.endReached}}">
      <text class="store-loadText">没有更多了</text>
  </view>
  <loading tt:if="{{(list.currentPage == 0 && list.isLoading) || isGettingCoupon}}">加载中</loading>
</scroll-view>
</form>
 <!-- <quickNavigation id="quickNavigation" isShowIndicator="{{isShowIndicator}}" appParameter="{{appParameter}}" isGoApp="{{isGoApp}}" bind:backToTop="backToTop"></quickNavigation>
<template is="zan-actionsheet" data="{{...actionsheet}}" />
 <snapshootShare id="snapshootShare" isShow="{{isShowSnapshoot}}" sourceType="shop" shareData="{{snapshootShareData}}" bind:hiddenSheet="hiddenSheet"></snapshootShare>   
<import src="../../vendors/toast/wetoast.wxml" />
<template is="wetoast" data="{{...__wetoast__}}" /> -->