homepage.wxml 3.3 KB

1
  1. <view class="page data-v-2372f4ba"><view class="shadow data-v-2372f4ba"></view><view class="content data-v-2372f4ba"><view class="top-information data-v-2372f4ba"><image class="user-header data-v-2372f4ba" src="{{userInfo.image}}" mode></image><view class="btn-list data-v-2372f4ba"><button data-event-opts="{{[['tap',[['tochat',['$event']]]]]}}" class="btn-1 data-v-2372f4ba" bindtap="__e"><u-icon vue-id="54358c8f-1" color="#f83224" size="14" name="kefu-ermai" class="data-v-2372f4ba" bind:__l="__l"></u-icon>客服</button><block wx:if="{{isShow!='1'&&userInfo.is_interest==1}}"><button data-event-opts="{{[['tap',[['followTeam',[0]]]]]}}" class="btn-1 data-v-2372f4ba" bindtap="__e"><u-icon vue-id="54358c8f-2" color="#f83224" size="14" name="plus" class="data-v-2372f4ba" bind:__l="__l"></u-icon>关注</button></block><block wx:if="{{userInfo.is_interest==0}}"><button data-event-opts="{{[['tap',[['followTeam',[1]]]]]}}" class="btn-1 data-v-2372f4ba" bindtap="__e">已关注</button></block></view><view class="name data-v-2372f4ba">{{''+userInfo.merchant_name+''}}</view><view class="score data-v-2372f4ba"><u-rate bind:input="__e" vue-id="54358c8f-3" count="5" disabled="{{true}}" allowHalf="{{true}}" gutter="{{1}}" inactiveColor="#ffacab" activeColor="#FF1515" size="{{12}}" value="{{userInfo.score}}" data-event-opts="{{[['^input',[['__set_model',['$0','score','$event',[]],['userInfo']]]]]}}" class="data-v-2372f4ba" bind:__l="__l"></u-rate><text class="num data-v-2372f4ba">{{userInfo.score}}</text></view><view class="sale data-v-2372f4ba"><view class="data-v-2372f4ba">销售量<text space="nbsp" class="data-v-2372f4ba">{{''+" "+userInfo.sales_num}}</text></view><text class="shu data-v-2372f4ba" space="nbsp">{{''+" | "+''}}</text><view class="data-v-2372f4ba">评价总数<text space="nbsp" class="data-v-2372f4ba">{{''+" "+userInfo.comment_num}}</text></view></view></view><view class="goods-list data-v-2372f4ba"><view class="tab-list data-v-2372f4ba"><view data-event-opts="{{[['tap',[['switchTab',[1]]]]]}}" class="{{['data-v-2372f4ba',(selectTab==1)?'tab':'']}}" bindtap="__e">默认</view><view data-event-opts="{{[['tap',[['switchTab',[2]]]]]}}" class="{{['data-v-2372f4ba',(selectTab==2)?'tab':'']}}" bindtap="__e">新品</view><view data-event-opts="{{[['tap',[['switchTab',[3]]]]]}}" class="{{['data-v-2372f4ba',(selectTab==3)?'tab':'']}}" bindtap="__e">销量</view><view data-event-opts="{{[['tap',[['switchTab',[4]]]]]}}" class="{{['price','data-v-2372f4ba',(selectTab==4)?'tab':'']}}" bindtap="__e">价格<view style="display:flex;flex-direction:column;justify-content:center;margin-left:6rpx;margin-top:4rpx;" class="data-v-2372f4ba"><u-icon vue-id="54358c8f-4" name="arrow-up-fill" size="6" color="{{iconUp==1?'#f83224':'#303133'}}" class="data-v-2372f4ba" bind:__l="__l"></u-icon><u-icon vue-id="54358c8f-5" color="{{iconUp==2?'#f83224':'#303133'}}" size="6" name="arrow-down-fill" class="data-v-2372f4ba" bind:__l="__l"></u-icon></view></view></view><view class="goods data-v-2372f4ba"><block wx:for="{{goodsList}}" wx:for-item="item" wx:for-index="__i0__" wx:key="id"><goods-card vue-id="{{'54358c8f-6-'+__i0__}}" itemInfo="{{item}}" data-event-opts="{{[['^toDetail',[['toDetail']]]]}}" bind:toDetail="__e" class="data-v-2372f4ba" bind:__l="__l"></goods-card></block></view></view></view></view>