Git Product home page Git Product logo

secmarket-1's Introduction

接口文档

getIndex


 url:apiBase+"getIndex.php"
 method:GET
 data:{
    openid
  }
  return:{
    {
      cNo
      commodityName
      intro
      price
      commodityImage
    },....
  }

getClassification //获取分类的商品列表页面

url:apiBase+"getClassification.php"
method:GET
data:{
  openid:
  classification: //123456789
  index:   //分页

 }
 returndata:{
  { cNo
   commodityName
   commodityImage},.....
 }
 //1书籍报刊 2化妆护肤 3衣物鞋子 4电子数码 5我要求购 6食品饮品
 //7文具用品 8游戏动漫 9乐器类 10体育用品 11珠宝首饰 12其他

upLoadCommodity //卖货

url:apiBase+"upLoadCommodity.php"
method:POST 
data:{

  commodityName
  numChoices
  commodityImage :[]
  intro
  classification
  price
  place

}

getCommodityDetail //看货

url:apiBase+"getCommodityDetail.php"
method:POST
data:{
  openid
  cNo

}
return {
  all
}

buyCommodity //购买

url:apiBase+"buyCommodity.php"
method:POST
data:{
  openid?
  CId:[xxx:1]

}

addShoppingcart/removeShoppingcart 购物车操作

url:apiBase+"addShoppingcart.php" /"removeShoppingcart.php"
method:POST
data:{
  openid?
  CId:[xx:1]
}

getOrder //获取我的订单

url:apiBase+"getOrder.php'
method:POST
data:{
  openid?
}
return{

  all
}

register

url:apiBase+"register.php'
method:POST
data:{
  realName
  place
  intro
  place
  schoolDepartment
  schoolId
  phone

}

secmarket-1's People

Contributors

eggwardhan avatar yjw1268 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.