<template>
  <view class="box" v-if="iftj" v-on:click="off">
    <view class="item">推荐排序</view>
    <view class="line"></view>
    <view class="item">销量由低到高</view>
     <view class="line"></view>
    <view class="item">价格由低到高</view>
     <view class="line"></view>
    <view class="item">价格由高到低</view>
  </view>
</template>

<script>
export default {
  name: "shaixuantj",
  props:{
      iftj:{
          type:Boolean,
      }
  },
  methods:{
      off(){
          this.iftj=this.iftj==false?true:false
          this.$emit("tuijian",this.iftj)
      }
  }
};
</script>

<style lang="scss">
.box {
  width: 100%;
  height: 82vh;
//   position: absolute;
//   top: 0;
  background-color: rgba(119, 119, 119, 0.3);

}
  .item {
    width: 100%;
    height: 85upx;
    background-color: white;
    color: #333333;
    font-size:24upx; 
    line-height: 85upx;
    text-indent: 34upx;
  }
  .line {
    width: 696upx;
    height: 1upx;
    margin:auto 0;
    background: rgba(238, 238, 238, 1);
  }
</style>