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 lines
6.9 KiB

<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 vue-id="{{'18efaafd-3-'+index}}" cid="{{item.id}}" headHeight="{{headHeight}}" windowHeight="{{windowHeight}}" currentItemId="{{currentItemId}}" homeModules="{{common.modulesData.homeModules}}" childlist="{{item.childlist}}" bind:__l="__l"></wanl-shop-category></swiper-item></block></swiper><view data-event-opts="{{[['touchmove',[['moveHandle',['$event']]]]]}}" class="WANL-MODAL" catchtouchmove="__e"><view data-event-opts="{{[['tap',[['handleModal',['$event']]]]]}}" class="{{['cu-modal','top-modal',(isModal)?'show':'']}}" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="cu-dialog padding-lr-bj padding-bottom-bj" style="{{'padding-top:'+(headHeight+12+'px')+';'}}" catchtap="__e"><view class="category text-min"><view data-event-opts="{{[['tap',[['handleSelect',['follow',0]]]]]}}" class="{{['item','round','bg-gray',(currentItemId==='follow')?'action':'']}}" bindtap="__e">我的关注</view><view data-event-opts="{{[['tap',[['handleSelect',['home',1]]]]]}}" class="{{['item','round','bg-gray',(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="{{['item','round','bg-gray',(currentItemId==='cid'+item.id)?'action':'']}}" bindtap="__e">{{''+item.name+''}}</view></block></view></view></view><view class="{{['cu-modal',(update.update)?'show':'']}}"><view class="cu-dialog"><view class="hade"><image src="{{$root.g1}}" mode="aspectFit"></image><view class="title"><view class="text-white text-bold5">{{update.data.title}}</view><text class="text-white text-bold5">{{'最新版本:'+update.data.versionName+''}}</text></view></view><view class="info"><view class="text-lg text-bold5"><text>更新内容:</text></view><rich-text class="wanl-gray-dark" nodes="{{update.data.content}}"></rich-text><block wx:if="{{update.download.start}}"><view class="margin-top-xl"><view class="flex margin-bottom-sm"><view class="cu-progress round striped active"><view class="bg-orange" style="{{'width:'+(update.download.progress+'%')+';'}}"></view></view><text class="margin-left-sm">{{update.download.progress+"%"}}</text></view><view class="wanl-gray-dark text-sm text-center"><text>{{'下载中,请稍等('+$root.g2+"/"+$root.g3+')'}}</text></view></view></block><block wx:else><block wx:if="{{update.download.install}}"><view class="margin-top-xl text-center">安装中...</view></block><block wx:else><view class="flex justify-around margin-top-xl"><button data-event-opts="{{[['tap',[['ignore',['$event']]]]]}}" class="cu-btn radius-bock bg-gray lg" bindtap="__e">忽略升级</button><button data-event-opts="{{[['tap',[['download',['$event']]]]]}}" class="cu-btn radius-bock bg-blue lg" bindtap="__e">立刻升级</button></view></block></block></view></view></view></view></view>