提交 | 用户 | age
|
492b82
|
1 |
<!--pages/posterList/posterList.wxml--> |
S |
2 |
<!-- <text>pages/posterList/posterList.wxml</text> --> |
245dd6
|
3 |
<!-- <van-nav-bar |
92f679
|
4 |
placeholder |
S |
5 |
class="van-nav-bar" |
|
6 |
bind:click-left="onClickNavBarLeft" |
|
7 |
bind:click-right="onClickNavBarRight" |
|
8 |
> |
|
9 |
<view slot="left" class="user-center flex_row"> |
|
10 |
<image class="avatar" wx:if="{{avatarUrl||userInfo.avatarUrl}}" src="{{avatarUrl||userInfo.avatarUrl}}"></image> |
|
11 |
<text wx:else class="iconfont icon-morentouxiang avatar-icon"></text> |
|
12 |
<text class="avatar-text">个人中心</text> |
|
13 |
</view> |
245dd6
|
14 |
<view slot="left" class="user-center flex_row"> |
S |
15 |
<text class="iconfont icon-morentouxiang avatar-icon"></text> |
|
16 |
<text class="avatar-text">点我登录</text> |
|
17 |
</view> |
92f679
|
18 |
<navigator slot="title" class="van-nav-title" url="../search/search"> |
S |
19 |
<text class="nav-title">{{navTitle||'首页'}}</text> |
|
20 |
<text class="iconfont icon-sousuo1 search-icon"></text> |
|
21 |
</navigator> |
245dd6
|
22 |
</van-nav-bar> --> |
S |
23 |
<view class="search-bar"> |
|
24 |
<navigator class="search-box" url="../search/search"> |
|
25 |
<view class="search-input"> |
|
26 |
<icon type="search" size="12" /> |
|
27 |
<text>请输入搜索内容</text> |
|
28 |
</view> |
|
29 |
</navigator> |
|
30 |
</view> |
492b82
|
31 |
<view class="container"> |
92f679
|
32 |
<scroll-view class="nav-left has-footer" scroll-y="true" style="height:{{windowHeight}}px;"> |
S |
33 |
<van-sidebar class="van-sidebar" active-key="{{ activeKey }}"> |
|
34 |
<block wx:for="{{menuList}}" wx:key="key" wx:for-item="item"> |
|
35 |
<van-sidebar-item bind:click="goCurrentMenu" data-index="{{index}}" data-id="{{item.MatGroup}}">{{item.MatGroupName}}> |
492b82
|
36 |
<view slot="title"> |
92f679
|
37 |
<view class="h1-item-title no-wrap" title="{{item.MatGroupName}}">{{item.MatGroupName}}</view> |
492b82
|
38 |
</view> |
S |
39 |
</van-sidebar-item> |
92f679
|
40 |
<block wx:for="{{item.list}}" wx:key="key"> |
S |
41 |
<van-sidebar-item bind:click="goCurrentMenu" data-index="{{index}}" data-id="{{item.SubMatGroup}}">{{item.SubMatGroupName}}> |
|
42 |
<view slot="title"> |
|
43 |
<view class="item-title no-wrap" title="{{item.SubMatGroupName}}">{{item.SubMatGroupName}}</view> |
|
44 |
</view> |
|
45 |
</van-sidebar-item> |
|
46 |
</block> |
492b82
|
47 |
</block> |
S |
48 |
|
|
49 |
</van-sidebar> |
|
50 |
|
|
51 |
</scroll-view> |
|
52 |
|
|
53 |
|
|
54 |
<!-- 内容 --> |
92f679
|
55 |
<scroll-view scroll-top="{{scrollTop}}" class="nav-right has-footer" scroll-y="true" style="height:{{windowHeight}}px;"> |
492b82
|
56 |
|
S |
57 |
<!-- <van-button bind:click="getPosterByTag" color="#7232dd">全部</van-button> |
|
58 |
<block wx:for="{{TagList}}" wx:key="key"> |
|
59 |
<van-button bind:click="getPosterByTag" color="#7232dd">{{item}}</van-button> |
|
60 |
</block> --> |
e26080
|
61 |
<!-- price="{{item.isShowPrice?item.Price:''}}"--> |
S |
62 |
<!-- origin-price="{{item.isShowPrice?item.SalesPrice:''}}"--> |
|
63 |
<!-- currency="{{item.isShowPrice?item.CurrencySign:''}}"--> |
92f679
|
64 |
<view class="card-container"> |
S |
65 |
<block wx:for="{{goodsList}}" wx:for-item="item" wx:key="key"> |
|
66 |
<van-card |
e26080
|
67 |
class="goods-card" |
92f679
|
68 |
custom-class="van-card" |
S |
69 |
thumb-mode="aspectFill" |
|
70 |
desc="{{item.isShowMatCode?item.MatCode:''}}" |
|
71 |
desc-class="desc-class" |
|
72 |
title="{{item.isShowMatName?item.MatName:''}}" |
|
73 |
thumb="{{item.PhotoPath||'/imgs/img.png'}}" |
245dd6
|
74 |
tag="{{(item.isRestrictQuantity&&item.RestrictBuyingQuantity<=0)?'已抢光':((item.isStartupPanicBuying&&item.PanicBuyingEndTimeBalance<=0)?'已结束':'')}}" |
92f679
|
75 |
> |
e26080
|
76 |
<view slot="price-top" class="goods-desc"> |
245dd6
|
77 |
<view>单位:{{item.Uom}}</view> |
S |
78 |
<view wx:if="{{item.PreSendMinutesDesc}}">{{item.PreSendMinutesDesc}}送达</view> |
92f679
|
79 |
</view> |
245dd6
|
80 |
<!-- <view slot="price-top">交货分钟:{{item.PreSendMinutes}}</view> --> |
e26080
|
81 |
<view slot="footer" class="card-footer flex_row"> |
S |
82 |
<view class="price" wx:if="{{item.isShowPrice}}"> |
|
83 |
<text class="now-price">{{item.CurrencySign}}{{item.Price}}</text> |
0da8db
|
84 |
<text class="origin-price" wx:if="{{item.isShowPrice&&item.Price&&item.Price!=item.SalesPrice&&item.SalesPrice!=0}}">{{item.CurrencySign}}{{item.SalesPrice}}</text> |
e26080
|
85 |
</view> |
245dd6
|
86 |
<view hidden="{{(item.isStartupPanicBuying&&item.PanicBuyingEndTimeBalance<=0)||(item.isRestrictQuantity&&item.RestrictBuyingQuantity<=0)}}"> |
S |
87 |
<van-stepper |
|
88 |
input-width="45" |
|
89 |
button-size="25" |
|
90 |
min="0" |
|
91 |
value="{{ item.selectedQuantity }}" |
|
92 |
async-change |
|
93 |
bind:plus="onCartItemPlus" |
|
94 |
bind:minus="onCartItemMinus" |
|
95 |
bind:blur="onCartItemInputBlur" |
|
96 |
data-id="{{item.CartId}}" |
|
97 |
data-quantity="{{item.selectedQuantity}}" |
|
98 |
data-matcode="{{item.MatCode}}" |
|
99 |
show-minus="{{item.selectedQuantity}}" |
|
100 |
class="van-stepper" |
|
101 |
input-class="stepper-input {{item.selectedQuantity?'stepper-input-show':'stepper-input-hide'}}" |
|
102 |
plus-class="stepper-plus" |
|
103 |
minus-class="stepper-minus" |
|
104 |
/> |
|
105 |
</view> |
|
106 |
|
92f679
|
107 |
<!-- wx:if="{{item.selectedQuantity}}"--> |
S |
108 |
<!-- <view wx:else data-matcode="{{item.MatCode}}" bind:tap="addCartItem">--> |
|
109 |
<!-- <text class="iconfont icon-jia add-btn"></text>--> |
|
110 |
<!-- </view>--> |
|
111 |
</view> |
|
112 |
</van-card> |
|
113 |
<!-- <van-tag class="van-tags" mark type="{{tagTypes[item.LiveStatus]}}">{{liveStatus[item.LiveStatus]}}</van-tag>--> |
|
114 |
</block> |
|
115 |
<c-empty wx:if="{{goodsList.length<1}}" desc="该分类下没有商品"></c-empty> |
492b82
|
116 |
</view> |
S |
117 |
|
92f679
|
118 |
|
S |
119 |
<!-- <template is="noMoreTemplate" />--> |
492b82
|
120 |
<!-- <van-grid column-num="2" border="{{ false }}" gutter="{{ 10 }}"> |
S |
121 |
<block wx:for="{{posterList}}" wx:key="key" wx:for-item="item"> |
|
122 |
<van-grid-item use-slot content-class="poster-container" wx:for="{{item.Images}}" wx:key="key" wx:for-item="childItem"> |
|
123 |
<image mode="aspectFill" style="width: 100%;" src="{{childItem.url}}" /> |
|
124 |
</van-grid-item> |
|
125 |
</block> |
|
126 |
</van-grid> --> |
|
127 |
</scroll-view> |
|
128 |
|
92f679
|
129 |
</view> |
492b82
|
130 |
|
92f679
|
131 |
<view class="cart-footer"> |
S |
132 |
<!-- <van-row class="cart-bar">--> |
|
133 |
<!-- <van-col span="6">--> |
|
134 |
<!-- <image src="../../imgs/cart.png"></image>--> |
|
135 |
<!-- </van-col>--> |
|
136 |
<!-- <van-col span="12">span: 8</van-col>--> |
|
137 |
<!-- <van-col span="6">span: 8</van-col>--> |
|
138 |
<!-- </van-row>--> |
|
139 |
<view class="cart-bar" bind:tap="openHideLayer"> |
|
140 |
<view class="cart-icon-container"> |
|
141 |
<image mode="widthFix" class="cart-icon" src="../../imgs/cart.png"> |
|
142 |
<text class="dot">{{cartItems}}</text> |
|
143 |
</image> |
|
144 |
</view> |
|
145 |
<view class="cart-info"> |
|
146 |
<text>已选{{cartItems}}项</text> |
|
147 |
<view class="price">¥{{selectTotalAmount}}</view> |
|
148 |
</view> |
|
149 |
<view> |
|
150 |
<!-- <c-authorize-phone bind:authorize="submitCart" class="clear-btn">--> |
|
151 |
<!-- <view slot="content" class="cart-btn">提交</view>--> |
|
152 |
<!-- </c-authorize-phone>--> |
0da8db
|
153 |
<view catch:tap="submitCart" class="cart-btn">去结算</view> |
92f679
|
154 |
</view> |
S |
155 |
</view> |
|
156 |
</view> |
|
157 |
|
245dd6
|
158 |
<c-slideIn wx:if="{{showHideLayer}}" bind:maskTap="maskTap" layer-height="800"> |
92f679
|
159 |
<view class="dialog" slot="content"> |
S |
160 |
<view class="dialog-title"> |
|
161 |
<view class="clear-cart" bind:tap="clearCart"> |
|
162 |
<text class="iconfont icon-lajixiang"></text>清空购物车 |
|
163 |
</view> |
|
164 |
</view> |
|
165 |
<view class="card-container"> |
|
166 |
<block wx:for="{{cartList}}" wx:for-item="item" wx:key="key"> |
|
167 |
<van-swipe-cell right-width="{{ 65 }}" async-close data-id="{{item.CartId}}" bind:close="onDeleteCartItem"> |
|
168 |
<van-card |
|
169 |
custom-class="van-card" |
|
170 |
thumb-mode="aspectFill" |
|
171 |
desc="{{item.isShowMatCode?item.MatCode:''}}" |
|
172 |
desc-class="desc-class" |
|
173 |
title="{{item.isShowMatName?item.MatName:''}}" |
|
174 |
thumb="{{item.PhotoPath||'/imgs/img.png'}}" |
|
175 |
price="{{item.isShowPrice?item.Price:''}}" |
|
176 |
origin-price="{{item.isShowPrice?item.SalesPrice:''}}" |
|
177 |
currency="{{item.isShowPrice?item.CurrencySign:''}}" |
|
178 |
> |
|
179 |
<view slot="price-top" class=""> |
|
180 |
<view wx:if="{{isShowSpecial}}">{{item.Special}}</view> |
|
181 |
</view> |
|
182 |
<view slot="footer" class="cart-card-footer"> |
|
183 |
<van-stepper |
|
184 |
input-width="50" |
|
185 |
button-size="25" |
|
186 |
min="0" |
|
187 |
value="{{ item.Quantity }}" |
|
188 |
async-change |
|
189 |
bind:plus="onCartItemPlus" |
|
190 |
bind:minus="onCartItemMinus" |
|
191 |
bind:blur="onCartItemInputBlur" |
|
192 |
data-id="{{item.CartId}}" |
|
193 |
data-quantity="{{item.Quantity}}" |
|
194 |
class="van-stepper" |
|
195 |
input-class="stepper-input}}" |
|
196 |
plus-class="stepper-plus" |
|
197 |
minus-class="stepper-minus" |
|
198 |
/> |
|
199 |
</view> |
|
200 |
</van-card> |
|
201 |
<view slot="right" class="delete-item-btn"> |
|
202 |
<view>删除</view> |
|
203 |
</view> |
|
204 |
</van-swipe-cell> |
|
205 |
|
|
206 |
</block> |
|
207 |
<c-empty wx:if="{{cartList.length<1}}" desc="购物车里空空如也"></c-empty> |
|
208 |
</view> |
|
209 |
<view class="dialog-footer"></view> |
|
210 |
</view> |
|
211 |
|
|
212 |
</c-slideIn> |
|
213 |
<!--<van-dialog id="van-dialog" />--> |