Vue实现商品价格筛选

当我们遇到电商项目的时候面对不同价格的时候
就需要我把 10 块到20块的商品给单独的筛选出来

页面展示的不同的价格间的商品
在这里插入图片描述

Json数据格式

{
   
   
    "status": "0",
    "msg": "",
    "result": {
   
   
        "count": 8,
        "slider":[
            {
   
   
                "title":"All",
                "low":-1,
                "hight":999999
            },
            {
   
   
                "title":"0.00-100.00",
                "low":0,
                "hight":100
            },
            {
   
   
                "title":"100.00-500.00",
                "low":100,
                "hight":500
            },
            {
   
   
                "title":"500.00-1000.00",
                "low":500,
                "hight":1000
            },
            {
   
   
                "title":"1000.00-2000.00",
                "low":1000,
                "hight":2000
            }
        ],
        "list": [
            {
   
   
                "_id": "58e7050398dab115d336b3f2",
                "productId": "201710007",
                "productName": "自拍杆",
                "salePrice": 39,
                "productImage": "/img/zipai.jpg",
                "productUrl": ""
            },
            {
   
   
                "_id": "58e704ef98dab115d336b3f1",
                "productId": "201710002",
                "productName": "智能插线板",
                "salePrice": 59,
                "productImage": "/img/6.jpg",
                "productUrl"
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值