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

1 year ago
<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