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
8.4 KiB

<scroll-view class="wanlshop-find-container" style="{{'padding-top:'+(headHeight+'px')+';'+('height:'+(windowHeight+'px')+';')+('background-color:'+('')+';')}}" scroll-y="{{true}}" enable-back-to-top="{{true}}" enable-flex="true" data-event-opts="{{[['scrolltoupper',[['handleUpper',['$event']]]],['scrolltolower',[['handleLower',['$event']]]]]}}" bindscrolltoupper="__e" bindscrolltolower="__e"><block wx:if="{{!user.isLogin&&!userNo}}"><block><view class="bg-white margin-bj radius-bock flex align-center justify-center padding-lr padding-tb-xl"><view class="text-center"><text class="wanl-gray">登录后才能看到您关注店铺的动态哦</text><view class="margin-top-sm"><button data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="cu-btn bg-orange" bindtap="__e">马上登陆</button></view></view></view></block></block><block wx:else><block><block wx:for="{{$root.l2}}" wx:for-item="find" wx:for-index="index" wx:key="id"><view class="wanlshop-find-container__list wanl-find margin-top-sm"><view class="margin-lr-bj bg-white radius-bock padding-lr-bj padding-top-bj"><view class="userinfo"><block wx:if="{{find.$orig.shop}}"><block><view data-event-opts="{{[['tap',[['handleUser',['$0'],[[['dataList','id',find.$orig.id,'user_no']]]]]]]}}" class="avatar" bindtap="__e"><view class="cu-avatar round margin-right-bj" style="{{'background-image:'+('url('+find.g0+')')+';'}}"></view><view class="content"><view class="wanl-find-head text-cut"><text class="wanl-black margin-right-bj shopname">{{''+find.$orig.shop.shopname+''}}</text></view><view class="wanl-gray text-min">{{''+find.g1+''}}</view></view></view><view class="menu"><button data-event-opts="{{[['tap',[['handleFollow',[index,'$0'],[[['dataList','id',find.$orig.id,'shop']]]]]]]}}" class="cu-btn radius-bock text-sm" catchtap="__e"><block wx:if="{{find.$orig.isFollow===0}}"><view><text class="wlIcon-31xuanze margin-right-xs text-bold"></text>关注</view></block><block wx:else><view><text class="wlIcon-31guanbi margin-right-xs text-bold"></text>取关</view></block></button><button data-event-opts="{{[['tap',[['onShop',['$0'],[[['dataList','id',find.$orig.id,'shop.id']]]]]]]}}" class="cu-btn wlIcon margin-left-sm" catchtap="__e"><text class="wlIcon-31dianpu"></text></button></view></block></block><block wx:else><block><view data-event-opts="{{[['tap',[['handleUser',['$0'],[[['dataList','id',find.$orig.id,'user_no']]]]]]]}}" class="avatar" bindtap="__e"><view class="cu-avatar round margin-right-bj" style="{{'background-image:'+('url('+find.g2+')')+';'}}"></view><view class="content"><view class="wanl-find-head text-cut"><text class="wanl-black margin-right-bj shopname">{{''+find.$orig.user.nickname+''}}</text></view><view class="wanl-gray text-min">{{''+find.g3+''}}</view></view></view><view class="menu"><button data-event-opts="{{[['tap',[['handleFollow',[index]]]]]}}" class="cu-btn radius-bock text-sm" catchtap="__e"><block wx:if="{{find.$orig.isFollow===0}}"><view><text class="wlIcon-31xuanze margin-right-xs text-bold"></text>关注</view></block><block wx:else><view><text class="wlIcon-31guanbi margin-right-xs text-bold"></text>取关</view></block></button></view></block></block></view><view data-event-opts="{{[['tap',[['onFind',['$0'],[[['dataList','id',find.$orig.id]]]]]]]}}" class="content margin-tb-bj wanl-gray-dark text-cut-2" bindtap="__e"><view class="{{['cu-tag','sm','radius','margin-right-xs',typeList[find.$orig.type]]}}">{{''+find.$orig.type_text+''}}</view>{{''+find.m0+''}}</view><view class="container radius-bock"><block wx:for="{{find.l0}}" wx:for-item="img" wx:for-index="kes" wx:key="kes"><block><block wx:if="{{find.$orig.type==='live'}}"><block><view data-event-opts="{{[['tap',[['onFind',['$0'],[[['dataList','id',find.$orig.id]]]]]]]}}" class="{{['item',kes==0?'item-live':'']}}" style="{{'background-image:'+('url('+img.g4+')')+';'}}" bindtap="__e"><block wx:if="{{kes==0}}"><block><view class="play"><text class="{{[find.$orig.live.state==1?'wlIcon-icon_zhibo-mian':'wlIcon-guijihuifang']}}"></text></view><block wx:if="{{find.$orig.live.state==1}}"><view class="state text-white"><view class="tags wanl-bg-orange"><text class="wlIcon-zhibo"></text><text class="text-min">直播</text></view><view class="text-sm">{{find.$orig.live.views+" 在看"}}</view></view></block><block wx:else><view class="state text-white"><view class="tags bg-grey"><text class="text-min">回放</text></view><view class="text-sm">{{find.$orig.live.views+" 看过"}}</view></view></block><block wx:if="{{find.$orig.live.state==1}}"><view class="like text-center text-white"><view class="likebut"><text class="wlIcon-yiguanzhu1"></text></view><text class="text-min">{{find.$orig.live.like}}</text></view></block></block></block></view></block></block><block wx:else><block wx:if="{{find.$orig.type==='video'}}"><block><view data-event-opts="{{[['tap',[['onFind',['$0'],[[['dataList','id',find.$orig.id]]]]]]]}}" class="item item-1 text-sl radius-bock" style="{{'background-image:'+('url('+img.g5+')')+';'}}" bindtap="__e"><text class="wlIcon-video text-white"></text></view></block></block><block wx:else><block><block wx:if="{{find.g6==1}}"><block><view data-event-opts="{{[['tap',[['previewImage',['$0',kes],[[['dataList','id',find.$orig.id,'images']]]]]]]}}" class="item item-1 radius-bock" style="{{'background-image:'+('url('+img.g7+')')+';'}}" bindtap="__e"></view></block></block><block wx:else><block wx:if="{{find.g8==3}}"><block><view data-event-opts="{{[['tap',[['previewImage',['$0',kes],[[['dataList','id',find.$orig.id,'images']]]]]]]}}" class="{{['item',kes==0?'item-3':'']}}" style="{{'background-image:'+('url('+img.g9+')')+';'}}" bindtap="__e"></view></block></block><block wx:else><block><view data-event-opts="{{[['tap',[['previewImage',['$0',kes],[[['dataList','id',find.$orig.id,'images']]]]]]]}}" class="item" style="{{'background-image:'+('url('+img.g10+')')+';'}}" bindtap="__e"></view></block></block></block></block></block></block></block></block></view><scroll-view class="scroll-view margin-top-sm" scroll-x="true"><block wx:for="{{find.l1}}" wx:for-item="goods" wx:for-index="sub" wx:key="id"><view data-event-opts="{{[['tap',[['onGoods',['$0'],[[['dataList','id',find.$orig.id],['goods','id',goods.$orig.id,'id']]]]]]]}}" class="{{['scroll-view-item','radius-bock',find.g11==1?'col-1':'']}}" bindtap="__e"><view class="img"><image lazy-load="{{true}}" src="{{goods.g12}}"></image></view><view class="content padding-left-bj text-cut text-df">{{''+goods.$orig.title+''}}<view class="flex align-center"><text class="text-price text-orange">{{goods.$orig.price}}</text></view></view><view class="icon text-lg wanl-gray-light"><text class="wlIcon-fanhui6"></text></view></view></block></scroll-view><view class="flex justify-between padding-tb-bj align-center"><block wx:if="{{find.$orig.type=='live'}}"><view data-event-opts="{{[['tap',[['onFind',['$0'],[[['dataList','id',find.$orig.id]]]]]]]}}" class="wanl-gray-light text-sm" bindtap="__e">{{''+find.$orig.live.views+' 阅读'}}</view></block><block wx:else><view data-event-opts="{{[['tap',[['onFind',['$0'],[[['dataList','id',find.$orig.id]]]]]]]}}" class="wanl-gray-light text-sm" bindtap="__e">{{''+find.$orig.views+' 阅读'}}</view></block><view class="flex"><view data-event-opts="{{[['tap',[['handleLike',[index]]]]]}}" class="{{[find.$orig.isLike===1?'wanl-orange':'']}}" bindtap="__e"><text class="{{[find.$orig.isLike===1?'wlIcon-dianzan1':'wlIcon-dianzan11']}}"></text><text class="margin-left-xs">{{find.$orig.likes}}</text></view><block wx:if="{{appConfig.comment_switch=='Y'}}"><view data-event-opts="{{[['tap',[['onFind',['$0','comments'],[[['dataList','id',find.$orig.id]]]]]]]}}" class="margin-left" bindtap="__e"><text class="wlIcon-pinglun"></text><text class="margin-left-xs">{{find.$orig.comments}}</text></view></block></view></view><block wx:if="{{find.$orig.newGoods>0}}"><view data-event-opts="{{[['tap',[['onShop',['$0'],[[['dataList','id',find.$orig.id,'shop_id']]]]]]]}}" class="padding-tb-bj solid-top text-center text-orange" bindtap="__e">{{'进店查看 '+find.$orig.newGoods+' 件新品'}}<text class="wlIcon-fanhui6 margin-left-xs"></text></view></block></view></view></block><block wx:if="{{$root.g13}}"><wanl-empty vue-id="2053b6de-1" src="collect_default3x" text="没有找到任何发现动态" bind:__l="__l"></wanl-empty></block><block wx:if="{{$root.g14>0}}"><uni-load-more vue-id="2053b6de-2" status="{{status}}" content-text="{{contentText}}" bind:__l="__l"></uni-load-more></block></block></block></scroll-view>