collectlist.wxml 4.3 KB
<view class="colecttop flextwo">
  <view class="collectitem {{nav==1?'collectactive':''}}" bindtap="sel" data-id="1">商户</view>
  <view class="collectitem {{nav==2?'collectactive':''}}" bindtap="sel" data-id="2">点评</view>
</view>
<view class="collectbox" wx:if="{{nav==1}}">

  <view class="noimg" wx:if="{{colectlist.length==0}}">
    <view class="nodataimg" >
      <image src="/img/nodataimg.png"></image>
    </view>
    <view class="nomoer nomoredata">没有更多了哦~</view>
  </view>


  <view wx:else>
    <view class="colectbitem flex" wx:for="{{colectlist}}" wx:key="" bindtap="goodtail" data-id="{{item.id}}">
      <view class="collectbitemleft">
        <image src="{{item.image}}"></image>
      </view>
      <view class="collectbtitemr">
        <view class='goodname'>{{item.name}}</view>

        <view class="flexone starbox">
          <view class="star flexone">
            <view class="staritem">
              <image src="/img/pingfenshi.png" wx:if="{{item.level>=1}}"></image>
              <image src="/img/noxing.png" wx:if="{{item.level<0.5}}"></image>
              <image src="/img/banke.png" wx:if="{{item.level>=0.5&&item.level<1}}"></image>
            </view>
            <view class="staritem">
              <image src="/img/pingfenshi.png" wx:if="{{item.level>=2}}"></image>
              <image src="/img/noxing.png" wx:if="{{item.level<1.5}}"></image>
              <image src="/img/banke.png" wx:if="{{item.level>=1.5&&item.level<2}}"></image>
            </view>
            <view class="staritem">
              <image src="/img/pingfenshi.png" wx:if="{{item.level>=3}}"></image>
              <image src="/img/noxing.png" wx:if="{{item.level<2.5}}"></image>
              <image src="/img/banke.png" wx:if="{{item.level>=2.5&&item.level<3}}"></image>
            </view>
            <view class="staritem">
              <image src="/img/pingfenshi.png" wx:if="{{item.level>=4}}"></image>
              <image src="/img/noxing.png" wx:if="{{item.level<3.5}}"></image>
              <image src="/img/banke.png" wx:if="{{item.level>=3.5&&item.level<4}}"></image>
            </view>
            <view class="staritem">
              <image src="/img/pingfenshi.png" wx:if="{{item.level>=5}}"></image>
              <image src="/img/noxing.png" wx:if="{{item.level<4.5}}"></image>
              <image src="/img/banke.png" wx:if="{{item.level>=4.5&&item.level<5}}"></image>
            </view>
          </view>
          <view class="shouprice">¥{{item.price}}</view>
        </view>
        <view class="addressbox flexone">
          <view class='asddressitem'>{{item.business_name}}</view>

        </view>
      </view>

    </view>
  </view>


</view>

<view wx:else>
 <view class="noimg" wx:if="{{data.length==0}}">
    <view class="nodataimg" >
      <image src="/img/nodataimg.png"></image>
    </view>
    <view class="nomoer nomoredata">没有更多了哦~</view>
  </view>


  <scroll-view scroll-y="{{isScroll}}" style='height:{{windowHeight}}px' wx:else>


    <block wx:key="item" wx:for="{{data}}">
      <view data-index='{{index}}' class="order-item" bindtouchstart="drawStart" bindtouchmove="drawMove" bindtouchend="drawEnd" style="right:{{item.right}}rpx">
        <view class="colectbitem flex">
          <view class="collectbitemleft">
            <image src="{{item.image}}"></image>
          </view>
          <view class="collectbtitemr">

            <view class="userbox flexone">
              <view class="userimg">
                <image src="{{item.avatar}}"></image>
              </view>
              <view class="username">{{item.nickname}}</view>
              <view class="userlevel">Lv {{item.user_level}}</view>
            </view>
            <view class='goodname goodtext'>{{item.content}}</view>
            <view class="addressbox flexone">
              <view class='asddressitem'>{{item.shop_name}}</view>
              <!-- <view class='asddressitem'>东京街</view>
            <view class='asddressitem'>东京街</view> -->
            </view>
          </view>

        </view>
        <view class="remove" bindtap="delItem" data-id="{{item.id}}">

          <view class="delimg">
            <image src="/img/delimg.png"></image>
          </view>
        </view>
      </view>
    </block>
  </scroll-view>
</view>



<!-- <view class="nomoer" wx:if="{{nomore}}">没有更多了哦~</view> -->