1 Star 0 Fork 1K

chinarefers / 微信电商小程序

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
product_tree_list.md 9.00 KB
一键复制 编辑 原始数据 按行查看 历史
赵同学 提交于 2018-06-07 12:01 .

商品列表页-第二种样式 pages/product_tree_list/index

使用接口

获取商品列表 Client.Get.ProductListMore ( /more_product_list.html )

改变购物车商品数量,加入购物车 Client.User.ChangeCarItemCount(/change_shopping_car_item.html  )

链接地址

 获取商品列表 https://mini.sansancloud.com/chainalliance/xianhua/more_product_list.html
 改变购物车商品数量  https://mini.sansancloud.com/chainalliance/xianhua/change_shopping_car_item.html

获取商品列表 Client.Get.ProductListMore ( /more_product_list.html )

Client.Get.ProductListMore 请求参数

名称 说明 是否必要 备注
categoryId 类型id -
belongShop 所属店铺 -
typeBelongShop 所属店铺类别 -
page 第几页 -
showType 显示方式 -
showColumn 显示几列 -
categoryId 类型id -
productName 商品名称 -
startPrice 最低价格 -
endPrice 最高价格 -
orderType 排序方式 -

Client.Get.ProductListMore 返回字段说明

名称 说明 备注
imagePath 产品缩略图 -
name 产品名 -
tagPrice 产品标价 -
price 产品售价 -
saleCount 销售数量 -
category 产品分类 -
description 描述 -
minSaleCount 最少购买数 -
pingfen 评分 -
saleStrategyDetails 销售策略详情 -
stock 库存 -
measureItem 是否多规格商品 -
measureTypes 分配规格类型 -
brandId 归属品牌id -
promotionBean 参与活动Bean -
attrs 属性列表 -

Client.Get.ProductListMore 请求结果:

{
  "pageSize": 20,
  "curPage": 1,
  "totalSize": 4,
  "result": [
    {
      "id": 8229,
      "imagePath": "http://image1.sansancloud.com/shuiguofenxiao/2017_12/26/12/03/29_458.jpg",
      "name": "新疆阿克苏糖心苹果",
      "tagPrice": 100,
      "price": 100,
      "price2": 0,
      "saleCount": 1,
      "category": 1225,
      "saleTime": "2017-12-12 21:57:30",
      "hotSale": 0,
      "disable": 0,
      "description": "",
      "orderNumber": "20171212215730",
      "readCount": 0,
      "stock": 1,
      "price3": 0,
      "productCode": "",
      "belongAreaId": 0,
      "belongShangquanId": 0,
      "belongShopId": 259,
      "belongAreaName": "",
      "belongShangquanName": "",
      "belongShopName": "水果分销",
      "tags": "",
      "promotion": "0",
      "platformNo": "shuiguofenxiao",
      "addTime": "2017-12-12 21:57:30",
      "minSaleCount": 1,
      "bigSmallUnitScale": 1,
      "tip": "",
      "unitShow": "个",
      "inCarCount": 0,
      "hgZhekou": 100,
      "lgZhekou": 100,
      "hzZhekou": 100,
      "lzZhekou": 100,
      "fxyZhekou": 100,
      "bdZhekou": 100,
      "categoryParent": 0,
      "categoryGradparent": 0,
      "newSale": 0,
      "brandId": 0,
      "commentCount": 0,
      "yunfei": 0,
      "yunfeiTemplate": 0,
      "productType": 0,
      "presalePrice": 0,
      "distributeProfit": 20,
      "daidingPlatformUserId": 0,
      "remark": "",
      "pingfen": 0,
      "pingfenCount": 0,
      "leaseUnitTypeStr": "小时",
      "productYear": "2017",
      "attributesCombind": "",
      "leaseUnitType": 0,
      "leaseUnitAmount": 0,
      "leaseUnitExpireAmount": 0,
      "leaseNeedBackUnitCount": 1,
      "measureItem": 0,
      "saleStrategyDetails": [

      ]
    },
  ]
}

改变购物车商品数量,加入购物车 Client.User.ChangeCarItemCount(/change_shopping_car_item.html )

Client.User.ChangeCarItemCount 请求参数

名称 说明 是否必要 备注
productId 商品ID -
shopId 所属店铺 -
count 数量 -
cartesionId 规格集ID 默认无规格
type 类型(add dec change) -

Client.User.ChangeCarItemCount 返回字段说明

名称 说明 备注
productId 商品id -
count 数量 -
belongShop 店铺id -
carItemPrice 价格 -
totalCarItemCount 购物车总数量 -
totalCarItemPrice 购物车总价格 -
item 商品的信息 -

Client.User.ChangeCarItemCount 请求结果:

{
    addDate:"2018-01-16 10:03:57"
    belongShop:257
    belongUserId:"60176"
    carItemPrice:278
    carItemYunfei:0
    count:2
    id:33777
    item:{
        addTime:"2017-12-11 15:16:21"
        attributesCombind:""
        bdZhekou:100
        belongAreaId:0
        belongAreaName:""
        belongShangquanId:0
        belongShangquanName:""
        belongShopId:257
        belongShopName:"福州鲜花批发"
        bigSmallUnitScale:1
        brandId:0
        category:1172
        categoryGradparent:0
        categoryParent:0
        commentCount:0
        daidingPlatformUserId:0
        description:""
        disable:0
        distributeProfit:0
        fxyZhekou:100
        hgZhekou:100
        hotSale:0
        hzZhekou:100
        id:8221
        imagePath:"http://image1.sansancloud.com/xianhua/2017_12/18/11/59/30_891.jpg"
        inCarCount:0
        jsonRemark:"{beanRemark:'产品Bean',imagePath:'产品缩略图',name:'产品名',tagPrice:'产品标价',price:'产品售价',price2:'价格2(弃用)',price3:'价格3(弃用)',saleCount:'销售数量',category:'产品分类',saleTime:'开售日期',hotSale:'热销(弃用)',saleStrategy:'销售策略号',disable:'是否上架 0上架    1 下架',linkUrl:'弃用',productCode:'产品编码',description:'描述',orderNumber:'编码',readCount:'访问次数',stock:'库存',belongAreaId:'弃用',belongShangquanId:'弃用',belongShopId:'上传店铺ID',belongAreaName:'弃用',belongShangquanName:'弃用',belongShopName:'上传店铺名',tags:'商品标签',promotion:'参与主活动',shopProductType:'店铺分类(与主分类不同 店铺自己对产品的分类)',phoneImg:'弃用',addTime:'添加时间',minSaleCount:'最少购买数',bigSmallUnitScale:'大小单位比例(弃用)',tip:'tip说明 弃用',unitShow:'单位名称(弃用)',remarkNumber:'备注号(后端使用 前端忽略)',categoryParent:'产品归类父类id',categoryGradparent:'产品归类祖先分类ID',newSale:'新品 (弃用)',brandId:'归属品牌id',brandName:'品牌名',brandNameEn:'品牌英文名',brandNameShort:'品牌缩写',commentCount:'评论次数',yunfei:'运费(弃用 现在使用平台设定的运费模板)',yunfeiTemplate:'运费模板id(弃用 使用平台默认设置的运费模板)',productType:'产品类型 0普通产品  1到店服务类产品 2展示类产品 3预收类产品 5租赁类产品',presalePrice:'预售价格(预售类产品可用)',distributeProfit:'产品分配利润(在二级分润系统使用)',daidingPlatformUserId:'待定平台用户id(忽略)',daidingTime:'待定时间',daidingUserLoginName:'待定用户登录名',daidingUserNickName:'待定用户昵称',remark:'备注(前端忽略 后端使用)',pingfen:'产品评分',pingfenCount:'产品参与评分数量',leaseUnitTypeStr:'租赁单位类型字符表示',leaseUnitType:'租赁单位类型 0小时 1天 2周 3月 4年 (周单位弃用)',productYear:'产品年份',attributesCombind:'属性归集 ',leaseUnitAmount:'租赁单位金额 ',leaseUnitExpireAmount:'租赁逾期单位金额 ',leaseNeedBackUnitCount:'租赁应还单位时长  如值为 10表示10个单位内应归还 单位参考  leaseUnitType ',measureItem:'是否多规格商品 0否 1是 表示有规格 如 红色 L码',saleStrategyDetails:'销售策略详情',measureTypes:'分配规格类型',promotionBean:'参与活动Bean',attrs:'属性列表',platformNo:'平台号' }"
        leaseNeedBackUnitCount:1
        leaseUnitAmount:0
        leaseUnitExpireAmount:0
        leaseUnitType:0
        leaseUnitTypeStr:"小时"
        lgZhekou:100
        lzZhekou:100
        measureItem:0
        minSaleCount:1
        name:"手提花篮玫瑰绣球混搭花篮鲜花速递同城贵阳合肥金华济南生日花店"
        newSale:0
        orderNumber:"20171211152614"
        pingfen:0
        pingfenCount:0
        platformNo:"xianhua"
        presalePrice:0
        price:278
        price2:0
        price3:0
        productCode:""
        productType:0
        productYear:"2017"
        promotion:"0"
        readCount:0
        remark:""
        saleCount:0
        saleStrategyDetails:[]
        saleTime:"2017-12-11 15:16:21"
        stock:10
        tagPrice:278
        tags:""
        tip:""
        unitShow:"件"
        yunfei:0
        yunfeiTemplate:0
    }
    measureCartesianId:0
    platformNo:"xianhua"
    productId:"8221"
    stock:10
    totalCarItemCount:16
    totalCarItemPrice:2708
    zhekou:100
}
微信
1
https://gitee.com/chinarefers/wechatApp.git
git@gitee.com:chinarefers/wechatApp.git
chinarefers
wechatApp
微信电商小程序
master

搜索帮助