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.
xxdj1/unpackage/dist/dev/mp-weixin/components/common-list.wxml

1 line
4.2 KiB

1 year ago
<view class="data-v-5cc96d55"><block wx:if="{{type=='brand'||type=='brand-collect'||type=='brand-tracks'}}"><view class="brand-box fill-base pt-lg pb-lg flex-warp data-v-5cc96d55"><image class="cover radius-5 data-v-5cc96d55" mode="aspectFill" src="{{info.logo||info.merchant.logo}}"></image><view class="{{['flex-1','ml-md','data-v-5cc96d55',[(type!='brand')?'flex-between':'']]}}"><view style="{{'width:'+(type=='brand'?'530rpx':'400rpx')+';'}}" class="data-v-5cc96d55"><view class="{{['brand-title','base-line','f-title','c-title','ellipsis','data-v-5cc96d55',[(type!='brand')?'mt-sm':'']]}}">{{''+(info.short_name||info.merchant.short_name)}}</view><view class="base-line f-caption c-caption ellipsis data-v-5cc96d55">{{'企业名称:'+(info.mer_name||info.merchant.mer_name)}}</view><block wx:if="{{type=='brand'}}"><block class="data-v-5cc96d55"><block wx:if="{{$root.g0>0}}"><view class="flex-warp data-v-5cc96d55"><block wx:for="{{info.categories}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block class="data-v-5cc96d55"><view class="{{['tag-text','flex-center','pl-md','pr-md','f-little','data-v-5cc96d55',[(index!=0)?'ml-md':'']]}}" style="{{'background:'+(subColor)+';'+('color:'+(primaryColor)+';')}}">{{item}}</view></block></block></view></block></block></block><block wx:else><block class="data-v-5cc96d55"><view class="brand-map flex-y-center f-caption c-caption ellipsis data-v-5cc96d55"><view class="iconfont iconchakan1 mr-sm _i data-v-5cc96d55"></view>{{(info.merchant.follows||info.merchant.views)+'人浏览'}}</view></block></block></view><block wx:if="{{type!='brand'}}"><view data-event-opts="{{[['tap',[['toClickItem',['toCollect']]]]]}}" class="{{['collect-btn','flex-center','f-caption','radius','data-v-5cc96d55',[(type=='brand-collect'||info.is_follow==1)?'c-caption':''],[(info.is_follow==0)?'c-base':'']]}}" style="{{'background:'+(type=='brand-collect'||info.is_follow==1?'#eee':primaryColor)+';'}}" catchtap="__e">{{type=='brand-collect'||info.is_follow==1?'已关注':'关注'}}</view></block></view></view></block><block wx:if="{{type=='video'}}"><view class="video-box fill-base data-v-5cc96d55"><image class="cover radius-5 data-v-5cc96d55" mode="aspectFill" src="{{info.cover}}"></image><view class="item-title pt-lg base-line f-title c-title ellipsis data-v-5cc96d55">{{info.title}}</view><view class="flex-center pt-md pb-md data-v-5cc96d55"><image class="brand-logo radius data-v-5cc96d55" mode="aspectFill" src="{{info.mer_logo}}"></image><view class="flex-1 ml-sm flex-between f-caption c-caption data-v-5cc96d55"><view class="brand-name ellipsis data-v-5cc96d55">{{info.mer_name}}</view><view class="flex-y-center f-caption c-caption data-v-5cc96d55"><view class="iconfont icondianzan mr-sm _i data-v-5cc96d55"></view>{{info.likes_people}}</view></view></view></view></block><block wx:if="{{type=='live'}}"><view class="live-box fill-base data-v-5cc96d55"><view class="item-title pt-lg pb-md base-line f-title c-title ellipsis data-v-5cc96d55">{{info.name}}</view><image class="cover radius-5 data-v-5cc96d55" mode="aspectFill" src="{{info.cover_img}}"></image><view class="flex-center pt-md pb-md data-v-5cc96d55"><image class="brand-logo radius data-v-5cc96d55" mode="aspectFill" src="{{info.merchant.logo}}"></image><view class="flex-1 ml-md flex-between f-caption c-caption data-v-5cc96d55"><view class="brand-name ellipsis data-v-5cc96d55">{{info.merchant.mer_name}}</view><view class="data-v-5cc96d55">{{info.views+"人次观看"}}</view></view></view></view></block><block wx:if="{{type=='activity'}}"><view class="activity-box fill-base data-v-5cc96d55"><image class="cover radius-5 data-v-5cc96d55" mode="aspectFill" src="{{info.cover}}"></image><view class="item-title pt-lg base-line f-title c-title ellipsis data-v-5cc96d55">{{info.title}}</view><view class="flex-center pt-md pb-md data-v-5cc96d55"><image class="brand-logo radius data-v-5cc96d55" mode="aspectFill" src="{{info.mer_logo||info.merchant.logo}}"></image><view class="flex-1 ml-md flex-between f-caption c-caption data-v-5cc96d55"><view class="brand-name el