brandStore.ttml
3.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<import src="categoryProductListFilter.ttml"/>
<import src="../../vendors/zanui/actionsheet/index.ttml"/>
<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__}}" />