history.wxml 8.7 KB
<view class="pinglunlist">
  <view class='top_tab'>
    <scroll-view class='tab_box' scroll-left="{{navScrollLeft}}" scroll-x='true' scroll-with-animation='true'>
      <block wx:for="{{tabList}}" wx:key=''>
        <view class="tab_item {{selectindex == index?'active':''}}" data-current='{{item.url}}' bindtap='tabCharge' data-index='{{index}}' data-beau="0">{{item.name}}</view>
      </block>
    </scroll-view>
  </view>
  <view class='comment_list'>
    <!-- <view class="pinglunitem" wx:for='{{list}}' wx:key=''>
      <view class="pinglunitemleft">
        <view class="leftimg">
          <image src="{{item.avatar}}"></image>
        </view>
        <view class="pinglunright">
          <view class="righttop">{{item.user_nickname}}</view>
          <view class="rightbottom">{{item.create_time}}</view>
        </view>
        <view class='eidt {{item.checked?"choose":""}}' bindtap='choose' id='{{index}}' data-chooseId='{{item.id}}' wx:if='{{edit}}'>
          <image src='/img/pinglun_xz.png'></image>
        </view>
      </view>
      <view class="pinglunmiddle">
        {{item.content}}
      </view>
      <view class="pinglunbottom">
        <view class="pingbottomleft">
          <image src="{{item.article.thumb}}"></image>
        </view>
        <view class='pingbottomright'>
          <view class='xinxi'>{{item.article.title}}</view>
          <view class="biangjiubottom">
            <view class='rightbottomimg'>
              <image src='{{item.article.avatar}}'></image>
            </view>
            <text class="niangjiutext">{{item.article.name}}</text>
          </view>
        </view>
      </view>
    </view> -->
    <view class="zhinengbox" wx:if='{{selectindex==0}}'>
      <view class="searchitem" wx:for='{{list}}' wx:key=''>
        <view class="searchitemleft">
          <view class="itemleftimg">
            <image src="{{item.logo}}" mode='widthFix'></image>
          </view>
          <view class="itemiddle">
            <view class="itemidelename">{{item.name}}</view>
            <view class="nambottom">
              <text class="namebottomitem">{{item.sort_name}}</text>
              <text class="namebottomitem">{{item.country}}</text>
              <text class="namebottomitem">{{item.city}}</text>
              <text class="namebottomitem">{{item.odor_name}}</text>
            </view>
          </view>
        </view>

        <view class="starimg">
          <!-- aicon_010x.png -->
          <image src="{{item.is_favorite==0?'/img/aicon_09.png':'/img/aicon_10.png'}}"></image>
        </view>

      </view>
    </view>
    <view class="zhinengbox winebrand" wx:if='{{selectindex==1}}'>
      <view class="searchitem" wx:for='{{list}}' wx:key=''>
        <view class="searchitemleft">
          <view class="itemleftimg">
            <image src="{{item.logo}}"></image>
          </view>
          <view class="itemiddle">
            <view class="itemidelename">{{item.name}}</view>
            <view class="nambottom">
              <text class="namebottomitem">{{item.degree_name}}</text>
              <text class="namebottomitem">{{item.odor_name}}</text>
              <text class="namebottomitem">{{item.price}}</text>
              <text class="namebottomitem">{{item.ml}}</text>
            </view>
          </view>
        </view>
        <view class="starimg">
          <!-- aicon_010x.png -->
          <image src="{{item.is_favorite==0?'/img/aicon_09.png':'/img/aicon_10.png'}}"></image>
        </view>
      </view>
    </view>
    <!-- 酒企 -->
    <view class="zhinengbox winebrand" wx:if='{{selectindex==2}}'>
      <view class="searchitem" wx:for='{{list}}' wx:key=''>
        <view class="searchitemleft">
          <view class="itemleftimg">
            <image src="{{item.logo}}"></image>
          </view>
          <view class="itemiddle">
            <view class="itemidelename">{{item.name}}</view>
            <view class="nambottom">
              <text class="namebottomitem">{{item.country}}</text>
              <text class="namebottomitem">{{item.city}}</text>
              <text class="namebottomitem">{{item.sort_name}}</text>
              <text class="namebottomitem">{{item.concern_count}}</text>
            </view>
          </view>
        </view>
        <!-- <view class="starimg"> -->
        <!-- aicon_010x.png -->
        <!-- <image src="{{item.is_favorite==0?'/img/aicon_09.png':'/img/aicon_10.png'}}"></image> -->
        <view class='focus_btn {{item.is_concern==0?"":"active"}}'>
          已关注
        </view>
        <!-- </view> -->
      </view>
    </view>

    <view class='wine_list' wx:if='{{selectindex==3}}' bindtap='closeShareAction'>
      <view class='list_item' wx:for='{{list}}' wx:key=''>
        <view class='img_box'>
          <image src='{{item.avatar}}' mode='widthFix'></image>
        </view>
        <view class='wine_title'>{{item.title}}</view>
        <view class='wine_name'>{{item.user_nickname}}</view>
        <view class='wine_leavel'>lv{{item.level}}</view>
        <view class='action_box'>
          <view class='single_action'>
            <view class='zan_icon'>
              <image src='{{!item.is_good?"/img/aicon_47.png":"/img/aicon_46.png"}}' mode='widthFix'></image>
            </view>
            {{item.good_count}}
          </view>
          <view class='single_action'>
            <view class='zan_icon'>
              <image src='/img/aicon_67.png' mode='widthFix'></image>
            </view>
            {{item.comment_count}}
          </view>
          <view class='single_action {{item.show?"active":""}}' catchtap='shareAction' id='{{index}}'>
            <image src='/img/gengduo.png' mode='widthFix' class='moreIcon'></image>
            <view class='min_action_box'>
              <view class='action_btn {{item.is_favorite?"active":""}}'>{{!item.is_favorite?"收藏":"已收藏"}}</view>
              <view class='action_btn'>分享
                <button open-type='share'></button>
              </view>
            </view>
          </view>
        </view>
      </view>
    </view>
    <!-- 专家品酒 -->
    <view class='wine_list' wx:if='{{selectindex==4}}'>
      <view class="wineblock" wx:for='{{list}}' wx:key=''>
        <view class="winetitle">{{item.title}}</view>
        <view class="wineimg">
          <image src="{{item.video_image}}"></image>
          <image src='/img/aicon_70.png' class='video_play'></image>
        </view>
        <view class="winebottom">
          <view class="winebottomleft">
            <view class="winebottomleftimg">
              <image src="{{item.avatar}}"></image>
            </view>
            <view class="wineeng">{{item.name}}</view>
          </view>
          <view class="winebottonright">
            <view class="winerighttou">
              <view class="winerighttouimg">
                <image src='{{!item.is_good?"/img/aicon_47.png":"/img/aicon_46.png"}}' mode='widthFix'></image>
              </view>
              <view class="winezan">{{item.good_count}}</view>
            </view>
            <view class="winerighttou">
              <view class="winerighttouimg">
                <image src='/img/aicon_67.png' mode='widthFix'></image>
              </view>
              <view class="winezan">{{item.comment_count}}</view>
            </view>
            <view class="winerighttou">
              <view class="winerighttouimg">
                <image src="/img/aicon_74.png"></image>
              </view>
            </view>
          </view>
        </view>
      </view>
    </view>
    <view class="niangjiulist"  wx:if='{{selectindex==5}}'>
      <view class="niangjiuitem" wx:for='{{list}}' wx:key=''>
        <view class="teachimg">
          <image src="{{item.avatar}}"></image>
        </view>
        <view class="jiuname">{{item.name}}</view>
        <view class="atten">{{item.is_concern==0?'关注':'已关注'}}</view>
        <view class="jiubottom">
          <view class="jiuleft">
            <view class="jiuleftimg">
               <image src='{{!item.is_good?"/img/aicon_47.png":"/img/aicon_46.png"}}' mode='widthFix'></image>
            </view>
            <view class="jiuzan">{{item.good_count}}</view>
          </view>

          <view class="jiumiddle">
            <view class="middleimg">
              <image src='/img/aicon_67.png' mode='widthFix'></image>
            </view>
            <view class="tiao">{{item.comment_count}}</view>
          </view>
          <view class="jiuright">
            <image src="/img/aicon_68.png"></image>
          </view>
        </view>
      </view>
    </view>
    <view class='showall' wx:if='{{noMore&&noData}}'>已显示全部内容</view>
  </view>
</view>
<view class='showall' wx:if='{{noMore&&noData}}'>已显示全部内容</view>
<view class='noData' wx:if='{{!noData}}'>
  暂无相关数据
</view>