history.wxml 11.8 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='' bindtap="pinpaijump" data-id="{{item.id}}">
        <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" catchtap='brandcang' data-id="{{item.id}}">
          <!-- 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='' bindtap="pinjumpbrand" data-id="{{item.id}}">
        <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" catchtap='pincang' data-id="{{item.id}}">
          <!-- 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='' bindtap="jumpcompany" data-id="{{item.id}}">
        <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 active' wx:if="{{item.is_concern==0}}" catchtap='qiguan' data-id="{{item.id}}">
          关注
        </view>
        <view class='focus_btn active' wx:else catchtap='qiguan' data-id="{{item.id}}">
          取消关注
        </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="dandetail" bindtap="jiudandetail" data-id="{{item.id}}">
      <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>
        


        <view class='action_box'>
          <view class='single_action'>
            <view class='zan_icon' catchtap='danzan' data-id="{{item.id}}">
              <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' bindtap="danpinglun" data-id="{{item.id}}">
            <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":""}}' catchtap="dancollect" data-id="{{item.user_id}}">{{!item.is_favorite?"收藏":"已收藏"}}</view>
              <view class='action_btn'>分享
                <button class="lj_share" catchtap="buildshare" open-type='share' data-id="{{item.id}}" data-type="1"></button>
                <!-- <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='' bindtap="jiudetail" data-id="{{item.id}}">
        <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" catchtap="jiadianzan" data-id="{{item.id}}">
                <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" catchtap="jiaping" data-id="{{item.id}}">
              <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>

                <button class="lj_share" catchtap="buildshare" open-type='share' data-id="{{item.id}}" data-type="2"></button>
              </view>
            </view>
          </view>
        </view>
      </view>
    </view>

    <!-- 酿酒大师 -->
    <view class="niangjiulist" wx:if='{{selectindex==5}}'>
      <view class="niangjiuitem" wx:for='{{list}}' wx:key='' bindtap="niangjiuteacherdetail" data-id="{{item.id}}">
        <view class="teachimg">
          <image src="{{item.avatar}}"></image>
        </view>
        <view class="jiuname">{{item.name}}</view>
        <view class="atten" catchtap="jiuatten" data-id="{{item.id}}">{{item.is_concern==0?'关注':'已关注'}}</view>
        <view class="jiubottom">
          <view class="jiuleft">
            <view class="jiuleftimg" catchtap="jiuzan" data-id="{{item.id}}">
              <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" catchtap="jiuping" data-id="{{item.id}}">
              <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>
            <button class="lj_share" bindtap="buildshare" open-type='share' data-id="{{item.id}}" data-type="3"></button>
          </view>
        </view>
      </view>
    </view>

    <!-- 其他文章 -->

    <view class="otherarticle" wx:if='{{selectindex==6}}'>
      <view class="wineblock" wx:for="{{list}}" wx:key='' bindtap="wendetail" data-id="{{item.id}}">

        <view class="winetitle">{{item.title}}</view>

        <view class="wineimg">
          <image src="{{item.thumb}}"></image>
        </view>

        <view class="winebottom" style="padding:0 33rpx;box-sizing:border-box;">
          <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" catchtap="zhangdianzan" data-id="{{item.id}}">
                <image src="{{url}}aicon_47x.png" wx:if="{{item.is_good==0}}"></image>
                <image src="{{url}}aicon_46x.png" wx:else></image>
              </view>
              <view class="winezan">{{item.good_count}}</view>
            </view>
            <view class="winerighttou" catchtap='zhangping' data-id="{{item.id}}">
              <view class="winerighttouimg">
                <image src="{{url}}aicon_67x.png"></image>
              </view>
              <view class="winezan">{{item.comment_count}}</view>
            </view>

            <view class="winerighttou">
              <view class="winerighttouimg">
                <image src="{{url}}aicon_68x.png"></image>
                <button class="lj_share" catchtap="buildshare" open-type='share' data-id="{{item.id}}" data-type="4"></button>
              </view>

            </view>
          </view>

        </view>

      </view>
    </view>


    <!-- <view class='showall' wx:if='{{noMore&&noData}}'>已显示全部内容</view> -->
  </view>
</view>
<view class='showall' wx:if='{{noMore&&noData}}'>已显示全部内容</view>


<view class="nodataimg" wx:if='{{!noData}}'>
  <image src="/img/wushuju.png"></image>
</view>
<!-- <view class='noData' wx:if='{{!noData}}'>
  暂无相关数据
</view> -->