You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
6.9 KiB

1 year ago
<view class="wanlshop-container"><block wx:if="{{common.modulesData.homeModules.page}}"><view class="wanlshop-container__head" style="{{'height:'+(headHeight+'px')+';'+('color:'+(common.modulesData.homeModules.page?common.modulesData.homeModules.page.style.navigationBarTextStyle=='#ffffff'?'#ffffff':'#333333':'')+';')+('background-color:'+(common.modulesData.homeModules.page?common.modulesData.homeModules.page.style.navigationBarBackgroundColor:'#f7f7f7')+';')+('background-image:'+('url('+$root.g0+')')+';')}}"><view style="{{'height:'+(headHeight+'px')+';'+('padding-top:'+(headTop+'px')+';')}}"><view class="navigater flex align-center justify-between"><view data-event-opts="{{[['tap',[['scanCode',['$event']]]]]}}" class="flex" bindtap="__e"><view class="text-xxl"><text class="wlIcon-saoyisao"></text></view></view><view class="search flex align-center margin-lr-sm round"><view class="icon text-df text-bold wanl-gray-dark"><text class="wlIcon-sousuo1"></text></view><swiper vertical="{{true}}" autoplay="{{true}}" circular="{{true}}" interval="3000"><swiper-item data-event-opts="{{[['tap',[['handleSearch',['']]]]]}}" bindtap="__e"><text class="wanl-gray-dark text-cut">搜索 商品、类目</text></swiper-item><block wx:for="{{common.modulesData.searchModules}}" wx:for-item="item" wx:for-index="index" wx:key="keywords"><swiper-item data-event-opts="{{[['tap',[['handleSearch',['$0'],[[['common.modulesData.searchModules','keywords',item.keywords,'keywords']]]]]]]}}" bindtap="__e"><text class="wanl-gray-dark text-cut">{{item.keywords}}</text></swiper-item></block></swiper></view><view class="flex"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="margin-right-bj text-xxl position-relative" bindtap="__e"><text class="wlIcon-coupon"></text><view class="cu-tag badge">减</view></view><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="text-xxl" bindtap="__e"><text class="wlIcon-xiaoxizhongxin"></text></view></view></view><view class="toolbar flex padding-lr-bj align-center"><scroll-view class="scroll" scroll-x="{{true}}" scroll-with-animation="{{true}}" scroll-left="{{scrollLeft}}"><view data-event-opts="{{[['tap',[['handleSelect',['follow',0]]]]]}}" class="{{['scroll__item',(currentItemId==='follow')?'action':'']}}" bindtap="__e">关注</view><view data-event-opts="{{[['tap',[['handleSelect',['home',1]]]]]}}" class="{{['scroll__item',(currentItemId==='home')?'action':'']}}" bindtap="__e">推荐</view><block wx:for="{{common.modulesData.categoryModules}}" wx:for-item="item" wx:for-index="index" wx:key="id"><view data-event-opts="{{[['tap',[['handleSelect',['cid'+item.id,index+2]]]]]}}" class="{{['scroll__item',(currentItemId==='cid'+item.id)?'action':'']}}" bindtap="__e">{{''+item.name+''}}</view></block></scroll-view><view data-event-opts="{{[['tap',[['handleModal',['$event']]]]]}}" class="category flex align-center" bindtap="__e"><block wx:if="{{isModal}}"><text class="wlIcon-fanhui3"></text></block><block wx:else><text class="wlIcon-fanhui4"></text></block></view></view></view></view></block><swiper class="wanlshop-container__main" style="{{'height:'+(windowHeight+'px')+';'}}" current-item-id="{{currentItemId}}" data-event-opts="{{[['change',[['changeCurrent',['$event']]]],['animationfinish',[['animationFinish',['$event']]]]]}}" bindchange="__e" bindanimationfinish="__e"><swiper-item item-id="follow"><wanl-shop-find vue-id="18efaafd-1" windowHeight="{{windowHeight}}" headHeight="{{headHeight}}" currentItemId="{{currentItemId}}" homeModules="{{common.modulesData.homeModules}}" appConfig="{{common.appConfig}}" user="{{user}}" bind:__l="__l"></wanl-shop-find></swiper-item><swiper-item item-id="home"><wanl-shop-page vue-id="18efaafd-2" windowHeight="{{windowHeight}}" headHeight="{{headHeight}}" headTop="{{headTop}}" pageModules="{{common.modulesData.homeModules}}" adData="{{common.adData}}" bind:__l="__l"></wanl-shop-page></swiper-item><block wx:for="{{common.modulesData.categoryModules}}" wx:for-item="item" wx:for-index="index" wx:key="id"><swiper-item item-id="{{'cid'+item.id}}"><wanl-shop-category vu