searchresult.wxml 9.9 KB
<!-- 头部搜索 -->
<view class="tou">
	<view class="head">
		<view class="headmiddle">
			<view class="headmiddleleft">
				<image src="/img/search.png" mode=""></image>
			</view>
			<view class="headmiddleright">
				<input type="text" placeholder="请输入搜索内容" placeholder-class="shuru" bindinput="enterword" />
			</view>
		</view>
		<view class="search" bindtap="searchtextk">搜索</view>
	</view>
</view>
<view wx:if="{{search}}">
	<!-- 店推推荐 -->
	<view class="city">
		<view class="citytop">店铺推荐</view>

    <view class="nodata" wx:if="{{recommend.length==0}}"></view>
		<view class="citybox flexone" wx:else>
			<view class="tuiitem flexone" wx:for="{{recommend}}" wx:key="" bindtap="goodtail" data-id="{{item.id}}">
				<view class="tuimg" wx:if="{{index<=2}}">
					<image src="/img/huori.png"></image>
				</view>
				{{item.name}}
			</view>
		</view>
	</view>

	<!-- 店推推荐 -->
	<view class="city">
  <view class="flextwo">
  	<view class="citytop">历史搜索</view>
    <view class="deleteimg" bindtap="delete">
        <image src="/img/delete.png"></image>
    </view>
  </view>
  <view class="nodata" wx:if="{{historylist.length==0}}">暂无数据</view>
		<view class="citybox flexone" wx:else>
			<view class="tuiitem flexone" wx:for='{{historylist}}' wx:key="" bindtap="searchtext" data-name="{{item.content}}">
				{{item.content}}
			</view>
		</view>
	</view>
</view>
<!--搜索结果 -->
<view class="search" wx:else>
	<view class="nodata" wx:if="{{goodlist.length==0}}">暂无数据</view>

	<view class='case-page' wx:else>
		<view class='list-masonry'>
			<view class='item-masonry' bindtap="goodtail" data-id="{{item.id}}" wx:for="{{goodlist}}" wx:key="">
				<view class="goodimg">
					<image src='{{item.image}}' mode='widthFix'></image>
				</view>
				<view class="goodbot">
					<view class="goodname">{{item.name}}</view>
          <view class="goodname riname" wx:if="{{item.name_jap!=null}}">{{item.name_jap}}</view>
					<view class="intro flextwo">
						<view class="introleft">
							{{item.series_name}}
						</view>
						<view class="introright">
							<view class="hualist flexone" wx:if="{{item.score!=false}}">
             <view  class="flowername">米其林</view>
              <view class="pingfen" wx:if="{{item.score!=false}}">{{item.score}}星</view>
             <!--  wx:if="{{item.score>=1}}" -->
							<!-- <view class="huaitem">
								<image src="/img/flower.png"></image>
							</view> -->
              <!--  wx:if="{{item.score>=2}}" -->
							<!-- <view class="huaitem" >
								<image src="/img/flower.png"></image>
							</view> -->
              <!-- wx:if="{{item.score>=3}}" -->
							<!-- <view class="huaitem"  >
								<image src="/img/flower.png"></image>
							</view> -->
           
             
						</view>
						<view class="ping flexone">
            <view class="kuaizifen">Tabelog</view>
							<!-- <view class="pingleft">
								<image src='/img/kuaizi.png'></image>
							</view> -->
							<view class="pingfen">{{item.tabelog}}分</view>
						</view>
						</view>
					</view>

          <view class="flextwo pricetwo">
          	<view class="shou">
						<text class="shoumoney">¥{{item.price}}</text>
						<text class="shouren">/人</text>
					</view>

          	<view class="addname flexone">
						<view class="addimg">
							<image src="/img/huangweizhi.png"></image>
						</view>
						<view class="dizhi commnameone">{{item.business_name}}</view>
					</view>
          </view>
				
				
				</view>


			</view>
			<!-- <view class='item-masonry'>
      <image src='/img/deng.png' mode='widthFix'></image>
      <view class="goodname">基值支义们京候么眼革下使叫南石很少去构。</view>
      <view class="intro flexone">
        <view class="introleft">
          魚介?海鮮料理
        </view>
        <view class="introright">
          <view class="ping flexone">
            <view class="pingleft">
              <image src='/img/kuaizi.png'></image>
            </view>
            <view class="pingfen">4.7</view>
          </view>
          <view class="hualist flexone">
            <view class="huaitem">
              <image src="/img/flower.png"></image>
            </view>
            <view class="huaitem">
              <image src="/img/flower.png"></image>
            </view>
            <view class="huaitem">
              <image src="/img/flower.png"></image>
            </view>
          </view>
        </view>
      </view>
      <view class="shou">
        <text class="shoumoney">¥50</text>
        <text class="shouren">/人</text>
      </view>
      <view class="addname flexone">
        <view class="addimg">
          <image src="/img/huangweizhi.png"></image>
        </view>
        <view class="dizhi commnameone">银厦</view>
      </view>
    </view>
    <view class='item-masonry'>
      <image src='/img/juxia.png' mode='widthFix'></image>
      <view class="goodname">基值支义们京候么眼革下使叫南石很少去构。</view>
      <view class="intro flexone">
        <view class="introleft">
          魚介?海鮮料理
        </view>
        <view class="introright">
          <view class="ping flexone">
            <view class="pingleft">
              <image src='/img/kuaizi.png'></image>
            </view>
            <view class="pingfen">4.7</view>
          </view>
          <view class="hualist flexone">
            <view class="huaitem">
              <image src="/img/flower.png"></image>
            </view>
            <view class="huaitem">
              <image src="/img/flower.png"></image>
            </view>
            <view class="huaitem">
              <image src="/img/flower.png"></image>
            </view>
          </view>
        </view>
      </view>
      <view class="shou">
        <text class="shoumoney">¥50</text>
        <text class="shouren">/人</text>
      </view>
      <view class="addname flexone">
        <view class="addimg">
          <image src="/img/huangweizhi.png"></image>
        </view>
        <view class="dizhi commnameone">银厦</view>
      </view>
    </view>
    <view class='item-masonry'>
      <image src='/img/fenxia.png' mode='widthFix'></image>
      <view class="goodname">基值支义们京候么眼革下使叫南石很少去构。</view>
      <view class="intro flexone">
        <view class="introleft">
          魚介?海鮮料理
        </view>
        <view class="introright">
          <view class="ping flexone">
            <view class="pingleft">
              <image src='/img/kuaizi.png'></image>
            </view>
            <view class="pingfen">4.7</view>
          </view>
          <view class="hualist flexone">
            <view class="huaitem">
              <image src="/img/flower.png"></image>
            </view>
            <view class="huaitem">
              <image src="/img/flower.png"></image>
            </view>
            <view class="huaitem">
              <image src="/img/flower.png"></image>
            </view>
          </view>
        </view>
      </view>
      <view class="shou">
        <text class="shoumoney">¥50</text>
        <text class="shouren">/人</text>
      </view>
      <view class="addname flexone">
        <view class="addimg">
          <image src="/img/huangweizhi.png"></image>
        </view>
        <view class="dizhi commnameone">银厦</view>
      </view>
    </view>
    <view class='item-masonry'>
      <image src='/img/juxia.png' mode='widthFix'></image>
      <view class="goodname">基值支义们京候么眼革下使叫南石很少去构。</view>
      <view class="intro flexone">
        <view class="introleft">
          魚介?海鮮料理
        </view>
        <view class="introright">
          <view class="ping flexone">
            <view class="pingleft">
              <image src='/img/kuaizi.png'></image>
            </view>
            <view class="pingfen">4.7</view>
          </view>
          <view class="hualist flexone">
            <view class="huaitem">
              <image src="/img/flower.png"></image>
            </view>
            <view class="huaitem">
              <image src="/img/flower.png"></image>
            </view>
            <view class="huaitem">
              <image src="/img/flower.png"></image>
            </view>
          </view>
        </view>
      </view>
      <view class="shou">
        <text class="shoumoney">¥50</text>
        <text class="shouren">/人</text>
      </view>
      <view class="addname flexone">
        <view class="addimg">
          <image src="/img/huangweizhi.png"></image>
        </view>
        <view class="dizhi commnameone">银厦</view>
      </view>
    </view>
    <view class='item-masonry'>
      <image src='/img/deng.png' mode='widthFix'></image>
      <view class="goodname">基值支义们京候么眼革下使叫南石很少去构。</view>
      <view class="intro flexone">
        <view class="introleft">
          魚介?海鮮料理
        </view>
        <view class="introright">
          <view class="ping flexone">
            <view class="pingleft">
              <image src='/img/kuaizi.png'></image>
            </view>
            <view class="pingfen">4.7</view>
          </view>
          <view class="hualist flexone">
            <view class="huaitem">
              <image src="/img/flower.png"></image>
            </view>
            <view class="huaitem">
              <image src="/img/flower.png"></image>
            </view>
            <view class="huaitem">
              <image src="/img/flower.png"></image>
            </view>
          </view>
        </view>
      </view>
      <view class="shou">
        <text class="shoumoney">¥50</text>
        <text class="shouren">/人</text>
      </view>
      <view class="addname flexone">
        <view class="addimg">
          <image src="/img/huangweizhi.png"></image>
        </view>
        <view class="dizhi commnameone">银厦</view>
      </view>
    </view> -->

		</view>
	</view>
</view>