(10)商品管理

新增商品

  1. 初始化数据
    1. 根据cid查询品牌
    2. 根据cid查询规格参数
  2. 新增spu
  3. 新增spuDetail
  4. sku
  5. stock

更新商品

  1. 回显
    1. 根据spuId查询spuDetail
    2. 根据spuId查询skus
  2. 先删除stock
  3. 然后删除sku
  4. 新增sku和stock
  5. 更新spu和spuDetail

搭建前台系统

  1. live-server  --port=9002
  2. 配置host文件
  3. 配置nginx
  4. commonjs:getUrlParam、formatprice、formatDate、stringify、parse

猜你喜欢

转载自www.cnblogs.com/Tunan-Ki/p/11944494.html