zhinengselect.wxml 6.4 KB
<!-- 筛选内容 -->

<view class="register" wx:if="{{zhinengwrap}}" bindtap="hidezhineng" catchtouchmove='true'>
  <view class="registerwrap" catchtap="">
    <view class="registeritem {{item.sel==true?'choseactive':''}}" wx:if="{{type==1}}" wx:for="{{zhinengarr}}" wx:key="" catchtap="shosekind" data-id="{{item.id}}">{{item.use_name}}</view>

    <view class="registeritem {{item.sel==true?'choseactive':''}}" wx:if="{{type==3}}" wx:for="{{zhinengarr}}" wx:key="" catchtap="shosekind" data-id="{{item.id}}">{{item.package_name}}</view>

    <view class="registeritem {{item.sel==true?'choseactive':''}}" wx:if="{{type==5}}" wx:for="{{zhinengarr}}" wx:key="" catchtap="shosekind" data-id="{{item.id}}">{{item.odor_name}}</view>


  </view>
</view>
<!-- 城市筛选 -->
<view class="register" wx:if="{{citychose}}" bindtap="hide" catchtouchmove='true'>
  <view class="registerwrap">
    <view class="citylist" catchtap="shosekind" data-id="{{item.id}}" wx:for="{{zhinengarr}}" wx:key="" data-name="{{item.city}}">
      <view class="cityitem">{{item.city}}</view>
      <view class="gouimg" wx:if="{{item.sel==true}}">
        <image src="{{url}}/aicon_18x.png"></image>
      </view>
    </view>

  </view>
</view>
<!-- 价格 -->
<view class="register" wx:if="{{pricechose}}" bindtap="hideprice" catchtouchmove='true'>
  <view class="pregisterwrap">
    <view class="pyuan">{{priceyuan}}</view>
    <view class="zy-slider" catchtap='pingbi'>
      <zy-slider id="zy-slider1" minValue="{{leftMin}}" maxValue="{{rightMax}}" min="{{min}}" max="{{max}}" blockColor="#0099FF" backgroundColor="#B0C4DE" selectedColor="#FF1493" bind:lowValueChange="lowValueChangeAction" bind:heighValueChange="heighValueChangeAction"
      />
<!-- style="left:{{ppleft}}rpx; width:{{ppvalue-ppleft}}rpx" -->
      <view class="pp" style="height:10rpx;margin:50rpx 0 0 5px">
      <block wx:for='{{during}}' wx:key=''>
        <view style="width: {{per_val}}%" class="single_item">
          <view class="detail_num">{{item*number}}</view>
        </view>
      </block>
      </view> -->
    </view>
  </view>
</view>

<!-- 评分 -->
<view class="register" wx:if="{{fenchose}}" bindtap="hidefen" catchtouchmove='true'>
  <view class="pregisterwrap">
    <view class="pyuan">{{score}}</view>
    <view class="zy-slider">
      <zy-slider id="zy-slider1" minValue="{{fenleftMin}}" maxValue="{{fenrightMax}}" min="{{fenmin}}" max="{{fenmax}}" blockColor="#0099FF" backgroundColor="#B0C4DE" selectedColor="#FF1493" bind:lowValueChange="fenlowValueChangeAction" bind:heighValueChange="fenheighValueChangeAction"
      />
    </view>
  </view>
</view>

<!-- 更多筛选 -->
<view class="register" wx:if="{{morechose}}" bindtap="hidemorechose">
  <view class="moreregisterwrap">
    <view wx:for="{{morelist}}" wx:key="" wx:for-index="par">
      <view class="selectbox" wx:if="{{item.basic_sort==1}}">
        <view class="selecttop">
          <view class="selectopname {{item.sel==true?'selactive':''}}">{{item.name}}</view>
          <view class="selectrow">
            <image src="{{url}}/aicon_16@2x.png" wx:if="{{item.sel==true}}"></image>
            <image src="{{url}}/aicon_14x.png" wx:else></image>
          </view>
        </view>
        <view class="valuebox">
          <view class="registeritem {{itema.twsel==true?'actitem':''}}" wx:for="{{item.value_list}}" wx:for-item="itema" wx:key="" catchtap='selectmoreitem' data-childindex="{{child}}" wx:for-index="child" data-parindex="{{par}}" data-id="{{item.id}}" data-basic_sort="{{item.basic_sort}}"
            data-content="{{itema.content}}">{{itema.content}}</view>
        </view>

      </view>

      <view class='sliderHCon' wx:if="{{item.basic_sort==2}}">
        <view class='tiaohead'>
          <view class="tiaoleft">{{item.name}}</view>
          <view class="tiaoright">{{item.between}}</view>
        </view>
        <!-- <view class='twoSlider'>
          <slider min='{{leftMin}}' max='{{leftMax}}' value='{{leftValue}}' activeColor='#cecacb' backgroundColor='#E81825' block-size='8' step='1' style='width:{{leftWidth}}%;margin-right:0rpx;' bindchange="leftChange" />
          <slider min='{{rightMin}}' max='{{rightMax}}' value='{{rightValue}}' activeColor='#E81825' backgroundColor='#cecacb' block-size='8' step='1' style='width:{{rightWidth}}%;margin-left:0rpx;' bindchange="rightChange" />
        </view> -->

        <view class="zy-slider">
          <zy-slider id="zy-slider1" minValue="{{item.realmin}}" maxValue="{{item.realmax}}" min="{{item.zmin}}" max="{{item.zmax}}" blockColor="#0099FF" backgroundColor="#B0C4DE" selectedColor="#FF1493" bind:lowValueChange="lowValueChangeAction1" data-id="{{item.id}}"
            data-basic_sort="{{item.basic_sort}}" bind:heighValueChange="heighValueChangeAction1" data-parindex="{{par}}" />
        </view>
      </view>
    </view>
  </view>
</view>
<view class="shaisel">
  <view class="kind">
    <view class="shaikind" wx:for="{{navarr}}" wx:key='' bindtap="select" data-idx="{{index}}" data-type="{{item.type}}">
      <view class="shaikindname {{item.sel==true?'selactive':''}}">{{item.name}}</view>
      <view class="shaikindimg">
        <image src="{{item.sel==true?'http://winesbook.cn/static/images_mini/aicon_16@2x.png':'http://winesbook.cn/static/images_mini/aicon_14x.png'}}"></image>
      </view>
    </view>

  </view>
  <view class="more" bindtap="mores">
    <image src="{{url}}aicon_15x.png"></image>
  </view>

</view>

<view class="zhinengbox">
  <view class="nodataimg" wx:if="{{zhinenglist.length==0}}">
    <image src="/img/wushuju.png"></image>
  </view>
  <block wx:else>
    <view class="searchitem" wx:for="{{zhinenglist}}" wx:key="" bindtap="jumpbrand" 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" bindtap="collect" data-id="{{item.id}}">
        <image src="{{url}}aicon_10x.png" wx:if="{{item.is_favorite==1}}"></image>
        <image src="{{url}}aicon_09x.png" wx:else></image>
      </view>

    </view>
  </block>



</view>