mycomment.wxml 5.6 KB
<view class="commenttop flexone">
  <view class="commenttopitem {{coment==index?'comactive':''}}" wx:for="{{comentarr}}" wx:key="" bindtap="selitem" data-index="{{index}}">{{item}}</view>
</view>

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



<view class="bodybox" wx:else>
  <view class="photo" wx:for="{{commentlist}}" wx:key=""  wx:for-index="cellindex">
    <view class="jianintro commentitem commentk" bindtap="comentdetail" data-id="{{item.id}}" data-shopid="{{item.shop_id}}">
      <view class="comtop flextwo">
        <view class="comleft">
          <image src="{{item.avatar}}"></image>
        </view>
        <view class="comright">
          <view class="comrtop flextwo">
            <view class="usertop flexone">
              <view class="comrname">{{item.nickname}}</view>
              <view class="userlevel">Lv {{item.user_level}}</view>
            </view>

            <view class="flexone">
            <!-- <view class="shenstatus" wx:if="{{item.status==1}}">审核中</view>
            <view class="shenstatus" wx:if="{{item.status==3}}">审核未通过</view> -->
             <view class="delimg" catchtap="delcomment" data-id="{{item.id}}">
              <image src="/img/delimg.png"></image>
            </view>
            </view>
          </view>
          <view class="comdate">{{item.createtime}}</view>

        </view>
      </view>
      <view class="comtext flexone">
        <view class="comleft"></view>

        <view class="comright">
          <view class="flexone starbox">
            <view class="star flexone">
              <view class="staritem">
                <image src="/img/pingfenshi.png" wx:if="{{item.score1>=1}}"></image>
                <image src="/img/noxing.png" wx:if="{{item.score1<0.5}}"></image>
                <image src="/img/banke.png" wx:if="{{item.score1>=0.5&&item.score1<1}}"></image>
              </view>
              <view class="staritem">
                <image src="/img/pingfenshi.png" wx:if="{{item.score1>=2}}"></image>
                <image src="/img/noxing.png" wx:if="{{item.score1<1.5}}"></image>
                <image src="/img/banke.png" wx:if="{{item.score1>=1.5&&item.score1<2}}"></image>
              </view>
              <view class="staritem">
                <image src="/img/pingfenshi.png" wx:if="{{item.score1>=3}}"></image>
                <image src="/img/noxing.png" wx:if="{{item.score1<2.5}}"></image>
                <image src="/img/banke.png" wx:if="{{item.score1>=2.5&&item.score1<3}}"></image>
              </view>
              <view class="staritem">
                <image src="/img/pingfenshi.png" wx:if="{{item.score1>=4}}"></image>
                <image src="/img/noxing.png" wx:if="{{item.score1<3.5}}"></image>
                <image src="/img/banke.png" wx:if="{{item.score1>=3.5&&item.score1<4}}"></image>
              </view>
              <view class="staritem">
                <image src="/img/pingfenshi.png" wx:if="{{item.score1>=5}}"></image>
                <image src="/img/noxing.png" wx:if="{{item.score1<4.5}}"></image>
                <image src="/img/banke.png" wx:if="{{item.score1>=4.5&&item.score1<5}}"></image>
              </view>
            </view>
            <view class="shouprice">¥{{item.price}}/人</view>
          </view>
          <!-- <view class="fuwu flexone">
            <view class="fuwuitem">服务:{{item.score2}}</view>
            <view class="fuwuitem">口味:{{item.score3}}</view>
            <view class="fuwuitem">环境:{{item.score4}}</view>
            <view class="fuwuitem">食材:{{itme.score5}}</view>
          </view> -->
          <text class="text">
            {{item.content}}
          </text>
          <!-- <view class="all">全部</view> -->
          <view class="textboximg flexone" wx:if="{{item.images.length!=0}}">
            <view class="boxitem" wx:for="{{item.images}}" wx:key="">
              <image src="{{item}}"  catchtap="previewimgk" data-index="{{index}}" data-pindex="{{cellindex}}"  mode="aspectFill"></image>
            </view>

          </view>
        </view>


      </view>
    </view>
    <view class="jianbot flextwo" bindtap="goodtail"  data-id="{{item.shop_id}}">
      <view class="jianleft flex">
        <view class="collectbitemleft">
          <image src="{{item.image}}"></image>
        </view>
        <view class="collectbtitemr">


          <view class='goodname goodtext'>{{item.shop_name}}</view>
          <view class="addressbox flexone">
            <view class='asddressitem'>{{item.business_name}}</view>
            <view class='asddressitem'>{{item.series_name}}</view>
            <!-- <view class='asddressitem'>东京街</view> -->
          </view>
        </view>
      </view>

      <view class="jianright" catchtap="collect" data-id="{{item.shop_id}}" data-index="{{index}}">
        <image src="/img/graycollect.png" wx:if="{{item.is_collect==0}}"></image>
        <image src="/img/yellowcollect.png" wx:if="{{item.is_collect==1}}"></image>
      </view>

    </view>
    <view class="combotright flexone">
      <view class="combotitem flexone itemleft">
        <view class="combotitemleft ">
          <image src="/img/pingtiao.png"></image>
        </view>
        <view class="combotzannumber">23</view>
      </view>
      <view class="combotitem flexone">
        <view class="combotitemleft">
          <image src="/img/smallzan.png"></image>
        </view>
        <view class="combotzannumber">{{item.praise_num}}</view>
      </view>
    </view>
  </view>
</view>

<!-- <view class="nomoer">没有更多了哦~</view> -->