# 接口列表

  • 例:以下是接口完整请求例子
  • 接口描述:注册接口

接下来的api编写中,请求地址将不包含https://a3-mall.com/api/

  • 请求地址:https://a3-mall.com/api/register

  • 请求方式:POST

接下来的api编写中,调用的应用方法将不包含app/

  • 应用方法:app/api/wap.users/register

  • 需要授权:是

# 首页

  • 请求地址:index

  • 请求方式:GET

  • 应用方法:api/wap.index/index

  • 需要授权:否

请求参数

参数 类型 描述
type string h5,app,mini
code array 页面ID

返回结果

返回的数据以后台布局组件为基准

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":[
        {"id":3125,"pid":1,"widget_name":"header","position_id":0,"params":{"title":"A3Mall","titleColor":"#FFFFFF","ctitle":"素烟姿","ctitleColor":"#FFF000","background":"#b91922"}},
        {"id":3126,"pid":1,"widget_name":"search","position_id":1,"params":{"keywords":"请输入关键字搜索","border":"15","marginTop":"15","marginBottom":"15","marginLeft":"12","marginRight":"12"}},
        {"id":3127,"pid":1,"widget_name":"slider","position_id":2,"params":{"duration":"5000","height":"150","border":"6","marginTop":"0","marginBottom":"0","marginLeft":"12","marginRight":"12","list":[{"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/d372d478574663dad2611cdd7011342b.jpg","type":"2","url":"38","select":"2"},
        {"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/1ffdfb42308770ceb2997f23f1f0967c.png","type":"2","url":"36","select":"2"},{"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/a10247dd09ac4c0893e35cbe2a83b0f8.jpg","type":"2","url":"33","select":"2"}]}},
        {"id":3128,"pid":1,"widget_name":"notice","position_id":3,"params":{"color":"#B91922","type":"auto","list":[{"id":"7","pid":"71","title":"A3Mall 分销商城 发布 v1.2.8 正式版","hits":"45","status":"0","sort":"0","photo":"https://m.a3-mall.com/static/images/default.jpg","intro":"","content":"<p>A3Mall 分销商城 发布 v1.2.8 正式版</p>","create_time":"2020-08-22 08:21:04","update_time":"1616031239","cat_name":"平台公告","profile":{"id":"71","pid":"0","title":"平台公告","photo":"","content":"","module":"article","status":"0","sort":"0","hits":"0","is_menu":"0","is_hot":"1","is_recommend":"1","is_lock":"1","create_time":"2020-05-20 14:43:24","update_time":"0"}}]}},
        {"id":3129,"pid":1,"widget_name":"navbar","position_id":4,"params":{"limit":"4","list":[{"thumb_image":"https://m.a3-mall.com/uploads/images/20200803/399e5dc3a8696501e5ab0511fac2f3a4.png","text":"拼团","type":"5","url":"group"},
        {"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/81db31384d7bbc6348b5928052b339b3.png","text":"领劵","type":"5","url":"coupon"},
        {"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/5eac5f656a0f783e1b73caca12d17465.png","text":"团购","type":"5","url":"regiment"},
        {"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/082fee5a10820cf9d0e389a0c022f839.png","text":"秒杀","type":"5","url":"second"},
        {"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/251031b9191c016751c1f1ba3ebebdd3.png","type":"5","url":"special","text":"会员特价"},
        {"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/49de221bbc5e14e88a41990826aee124.png","type":"5","url":"point","text":"积分商城"},
        {"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/81bebd2e181682c02ca703ca66e31843.png","type":"5","url":"collect","text":"我的收藏"},
        {"thumb_image":"https://m.a3-mall.com/uploads/images/20201216/780e9058f72579da60aa2c5d5e132335.png","type":"5","url":"sign","text":"我要签到"}]}},
        {"id":3130,"pid":1,"widget_name":"blank","position_id":5,"params":{"height":"10","backgroundColor":""}},
        {"id":3131,"pid":1,"widget_name":"images","position_id":6,"params":{"height":"100","border":"0","marginTop":"0","marginBottom":"0","marginLeft":"0","marginRight":"0","list":[{"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/b146d32fa75b19d69f3df3f1dfff7351.jpg","type":"6","url":"9"}]}},{"id":3132,"pid":1,"widget_name":"blank","position_id":7,"params":{"height":"10","backgroundColor":""}},
        {"id":3133,"pid":1,"widget_name":"goods","position_id":8,"params":{"title":"热销排行","lookMore":"0","layout":"2","type":"auto","category_id":"","brand_id":"","limit":"3","display":"slide","column":"3","list":[{"id":68,"cat_id":1137,"title":"舒适达护齿黑科技专业修复美白护敏健龈修复敏感牙膏红蓝管","goods_number":"202012210959357341","goods_weight":300,"sell_price":119,"market_price":159,"store_nums":1221,"photo":"https://m.a3-mall.com/uploads/images/20201221/745d22c254ef1f5b69c7b055a03f8eda.jpg","briefly":"","status":0,"visit":0,"favorite":0,"sale":25},{"id":28,"cat_id":939,"title":"法国雅漾活泉恒润保湿凝露50ML","goods_number":"202006152013396390","goods_weight":989,"sell_price":957,"market_price":1914,"store_nums":3894,"photo":"https://m.a3-mall.com/uploads/images/20200615/202006152013396411.jpg","briefly":"","status":0,"visit":0,"favorite":0,"sale":15},
        {"id":18,"cat_id":939,"title":"佰草集平衡露50ml(乳液面霜)","goods_number":"202006152001045765","goods_weight":485,"sell_price":950,"market_price":1900,"store_nums":2503,"photo":"https://m.a3-mall.com/uploads/images/20200615/202006152001045840.jpg","briefly":"","status":0,"visit":0,"favorite":0,"sale":7}]}},{"id":3134,"pid":1,"widget_name":"blank","position_id":9,"params":{"height":"10","backgroundColor":""}},{"id":3135,"pid":1,"widget_name":"image-group","position_id":10,"params":{"style":"0","margin":"0","list":[{"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/1c57e0bcc8029f2e1c3dc83ba69bedce.jpg","type":"1","url":""},{"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/8f4a79a04f4c18b1abe2bd76176d84af.jpg","type":"1","url":""},{"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/a79c20fa9cd699f20f969f8001a3e7f6.jpg","type":"1","url":""},
        {"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/37b88d56969d68ea8a5643390bc897b5.jpg","type":"1","url":""}]}},{"id":3136,"pid":1,"widget_name":"blank","position_id":11,"params":{"height":"10","backgroundColor":""}},{"id":3137,"pid":1,"widget_name":"goods","position_id":12,"params":{"title":"精品推荐","lookMore":"0","layout":"1","type":"choose","category_id":"","brand_id":"","limit":"10","display":"slide","column":"3","list":[{"id":1,"cat_id":940,"title":"【玉兰油乳液】玉兰油(OLAY)白里透红嫩白乳液75ml女士面霜面部护肤品补水保湿提亮肤色改善暗黄美白修护","goods_number":"202006151615066542","goods_weight":38,"sell_price":58,"market_price":116,"store_nums":4284,"photo":"https://m.a3-mall.com/uploads/images/20200615/202006151615062100.jpg","briefly":"","status":0,"visit":0,"favorite":0,"sale":2},{"id":3,"cat_id":943,"title":"【玉兰油防晒乳】玉兰油(OLAY)三重隔离亮肤乳75ml女士护肤品隔离水嫩保湿SPF30/PA++隔离紫外线不油腻","goods_number":"202006151623332623","goods_weight":132,"sell_price":295,"market_price":590,"store_nums":2852,"photo":"https://m.a3-mall.com/uploads/images/20200615/202006151623339913.jpg","briefly":"","status":0,"visit":0,"favorite":0,"sale":2},{"id":4,"cat_id":949,"title":"【WISWIS玻尿酸面膜】WIS玻尿酸面膜24片(三重玻尿酸精华深层补水保湿面膜男女护肤品套装礼盒)","goods_number":"202006151625483216","goods_weight":157,"sell_price":953,"market_price":1906,"store_nums":695,"photo":"https://m.a3-mall.com/uploads/images/20200615/202006151625481174.jpg","briefly":"","status":0,"visit":0,"favorite":0,"sale":0},{"id":5,"cat_id":974,"title":"颐莲(RELLET)玻尿酸原液30g安瓶精华液补水保湿滋养紧致抗皱定妆修护","goods_number":"202006151628108746","goods_weight":672,"sell_price":201,"market_price":402,"store_nums":1585,"photo":"https://m.a3-mall.com/uploads/images/20200615/20200615162810918.jpg","briefly":"","status":0,"visit":0,"favorite":0,"sale":2},{"id":6,"cat_id":974,"title":"林清轩山茶花润肤油3ml面部精华修复皮肤屏障滋养保湿补水","goods_number":"202006151630009689","goods_weight":928,"sell_price":349,"market_price":698,"store_nums":996,"photo":"https://m.a3-mall.com/uploads/images/20200615/202006151630009401.jpg","briefly":"","status":0,"visit":0,"favorite":0,"sale":0},{"id":7,"cat_id":994,"title":"【女神礼物】卡姿兰bb霜美颜大咖奢护水漾bb防晒霜保湿遮瑕补水持久裸妆控油SPF25PA++水漾BB霜【防晒版】01#粉嫩浅肤色","goods_number":"202006151632145391","goods_weight":651,"sell_price":712,"market_price":1424,"store_nums":915,"photo":"https://m.a3-mall.com/uploads/images/20200615/202006151632144479.jpg","briefly":"","status":0,"visit":0,"favorite":0,"sale":0},{"id":8,"cat_id":944,"title":"自然堂(CHANDO)轻透无瑕润白亮采修颜霜SPF35PA++(BB)35g修颜遮瑕防晒隔离润泽保湿细腻光滑清透提亮","goods_number":"202006151634157365","goods_weight":260,"sell_price":733,"market_price":1466,"store_nums":3273,"photo":"https://m.a3-mall.com/uploads/images/20200615/202006151634157002.jpg","briefly":"","status":0,"visit":0,"favorite":0,"sale":0},{"id":9,"cat_id":995,"title":"【卡姿兰气垫BB】卡姿兰(Carslan)美颜大咖气垫BB霜(防晒版)SPF25/PA++02#典雅自然色13.5g*2(遮瑕保湿持久不脱妆)","goods_number":"202006151635178785","goods_weight":863,"sell_price":248,"market_price":496,"store_nums":1441,"photo":"https://m.a3-mall.com/uploads/images/20200615/202006151635179069.jpg","briefly":"","status":0,"visit":0,"favorite":0,"sale":0},{"id":10,"cat_id":987,"title":"【纽西之谜隔离霜5g】纽西之谜geoskincare水凝清润隔离霜2号色5g(保湿润泽均匀肤色)","goods_number":"202006151636450831","goods_weight":315,"sell_price":742,"market_price":1484,"store_nums":3935,"photo":"https://m.a3-mall.com/uploads/images/20200615/202006151636458144.jpg","briefly":"","status":0,"visit":0,"favorite":0,"sale":0},{"id":11,"cat_id":1006,"title":"卡姿兰口红小粉管盈彩唇膏学生口红持妆滋润保湿持久不易脱色咬唇妆唇彩唇釉专柜10#血橙色","goods_number":"202006151638224370","goods_weight":229,"sell_price":554,"market_price":1108,"store_nums":2327,"photo":"https://m.a3-mall.com/uploads/images/20200615/202006151638226262.jpg","briefly":"","status":0,"visit":0,"favorite":0,"sale":0}]}},{"id":3138,"pid":1,"widget_name":"body","position_id":13,"params":{"type":"2","backgroundColor":"#D32020","thumb_image":"https://m.a3-mall.com/uploads/images/20200711/10627f8fa268875e7a556663a1654206.png"}},{"id":3139,"pid":1,"widget_name":"more","position_id":14,"params":{"title":"猜你喜欢","status":"0","category_id":"","brand_id":"","limit":"10","column":"2"}}
    ]
}

// 调用失败返回
{
    "info":"",
    "status":0
}

# 专题页

  • 请求地址:custom

  • 请求方式:GET

  • 应用方法:api/wap.index/custom

  • 需要授权:否

请求参数

参数 类型 描述
type string h5,app,mini
code array 页面ID

返回结果

返回的数据以后台布局组件为基准

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":[
        {"id":3125,"pid":1,"widget_name":"header","position_id":0,"params":{"title":"A3Mall","titleColor":"#FFFFFF","ctitle":"素烟姿","ctitleColor":"#FFF000","background":"#b91922"}},
        {"id":3126,"pid":1,"widget_name":"search","position_id":1,"params":{"keywords":"请输入关键字搜索","border":"15","marginTop":"15","marginBottom":"15","marginLeft":"12","marginRight":"12"}},
        {"id":3127,"pid":1,"widget_name":"slider","position_id":2,"params":{"duration":"5000","height":"150","border":"6","marginTop":"0","marginBottom":"0","marginLeft":"12","marginRight":"12","list":[{"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/d372d478574663dad2611cdd7011342b.jpg","type":"2","url":"38","select":"2"},
        {"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/1ffdfb42308770ceb2997f23f1f0967c.png","type":"2","url":"36","select":"2"},{"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/a10247dd09ac4c0893e35cbe2a83b0f8.jpg","type":"2","url":"33","select":"2"}]}},
        {"id":3128,"pid":1,"widget_name":"notice","position_id":3,"params":{"color":"#B91922","type":"auto","list":[{"id":"7","pid":"71","title":"A3Mall 分销商城 发布 v1.2.8 正式版","hits":"45","status":"0","sort":"0","photo":"https://m.a3-mall.com/static/images/default.jpg","intro":"","content":"<p>A3Mall 分销商城 发布 v1.2.8 正式版</p>","create_time":"2020-08-22 08:21:04","update_time":"1616031239","cat_name":"平台公告","profile":{"id":"71","pid":"0","title":"平台公告","photo":"","content":"","module":"article","status":"0","sort":"0","hits":"0","is_menu":"0","is_hot":"1","is_recommend":"1","is_lock":"1","create_time":"2020-05-20 14:43:24","update_time":"0"}}]}},
        {"id":3129,"pid":1,"widget_name":"navbar","position_id":4,"params":{"limit":"4","list":[{"thumb_image":"https://m.a3-mall.com/uploads/images/20200803/399e5dc3a8696501e5ab0511fac2f3a4.png","text":"拼团","type":"5","url":"group"},
        {"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/81db31384d7bbc6348b5928052b339b3.png","text":"领劵","type":"5","url":"coupon"},
        {"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/5eac5f656a0f783e1b73caca12d17465.png","text":"团购","type":"5","url":"regiment"},
        {"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/082fee5a10820cf9d0e389a0c022f839.png","text":"秒杀","type":"5","url":"second"},
        {"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/251031b9191c016751c1f1ba3ebebdd3.png","type":"5","url":"special","text":"会员特价"},
        {"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/49de221bbc5e14e88a41990826aee124.png","type":"5","url":"point","text":"积分商城"},
        {"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/81bebd2e181682c02ca703ca66e31843.png","type":"5","url":"collect","text":"我的收藏"},
        {"thumb_image":"https://m.a3-mall.com/uploads/images/20201216/780e9058f72579da60aa2c5d5e132335.png","type":"5","url":"sign","text":"我要签到"}]}},
        {"id":3130,"pid":1,"widget_name":"blank","position_id":5,"params":{"height":"10","backgroundColor":""}},
        {"id":3131,"pid":1,"widget_name":"images","position_id":6,"params":{"height":"100","border":"0","marginTop":"0","marginBottom":"0","marginLeft":"0","marginRight":"0","list":[{"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/b146d32fa75b19d69f3df3f1dfff7351.jpg","type":"6","url":"9"}]}},{"id":3132,"pid":1,"widget_name":"blank","position_id":7,"params":{"height":"10","backgroundColor":""}},
        {"id":3133,"pid":1,"widget_name":"goods","position_id":8,"params":{"title":"热销排行","lookMore":"0","layout":"2","type":"auto","category_id":"","brand_id":"","limit":"3","display":"slide","column":"3","list":[{"id":68,"cat_id":1137,"title":"舒适达护齿黑科技专业修复美白护敏健龈修复敏感牙膏红蓝管","goods_number":"202012210959357341","goods_weight":300,"sell_price":119,"market_price":159,"store_nums":1221,"photo":"https://m.a3-mall.com/uploads/images/20201221/745d22c254ef1f5b69c7b055a03f8eda.jpg","briefly":"","status":0,"visit":0,"favorite":0,"sale":25},{"id":28,"cat_id":939,"title":"法国雅漾活泉恒润保湿凝露50ML","goods_number":"202006152013396390","goods_weight":989,"sell_price":957,"market_price":1914,"store_nums":3894,"photo":"https://m.a3-mall.com/uploads/images/20200615/202006152013396411.jpg","briefly":"","status":0,"visit":0,"favorite":0,"sale":15},
        {"id":18,"cat_id":939,"title":"佰草集平衡露50ml(乳液面霜)","goods_number":"202006152001045765","goods_weight":485,"sell_price":950,"market_price":1900,"store_nums":2503,"photo":"https://m.a3-mall.com/uploads/images/20200615/202006152001045840.jpg","briefly":"","status":0,"visit":0,"favorite":0,"sale":7}]}},{"id":3134,"pid":1,"widget_name":"blank","position_id":9,"params":{"height":"10","backgroundColor":""}},{"id":3135,"pid":1,"widget_name":"image-group","position_id":10,"params":{"style":"0","margin":"0","list":[{"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/1c57e0bcc8029f2e1c3dc83ba69bedce.jpg","type":"1","url":""},{"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/8f4a79a04f4c18b1abe2bd76176d84af.jpg","type":"1","url":""},{"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/a79c20fa9cd699f20f969f8001a3e7f6.jpg","type":"1","url":""},
        {"thumb_image":"https://m.a3-mall.com/uploads/images/20200804/37b88d56969d68ea8a5643390bc897b5.jpg","type":"1","url":""}]}},{"id":3136,"pid":1,"widget_name":"blank","position_id":11,"params":{"height":"10","backgroundColor":""}},{"id":3137,"pid":1,"widget_name":"goods","position_id":12,"params":{"title":"精品推荐","lookMore":"0","layout":"1","type":"choose","category_id":"","brand_id":"","limit":"10","display":"slide","column":"3","list":[{"id":1,"cat_id":940,"title":"【玉兰油乳液】玉兰油(OLAY)白里透红嫩白乳液75ml女士面霜面部护肤品补水保湿提亮肤色改善暗黄美白修护","goods_number":"202006151615066542","goods_weight":38,"sell_price":58,"market_price":116,"store_nums":4284,"photo":"https://m.a3-mall.com/uploads/images/20200615/202006151615062100.jpg","briefly":"","status":0,"visit":0,"favorite":0,"sale":2},{"id":3,"cat_id":943,"title":"【玉兰油防晒乳】玉兰油(OLAY)三重隔离亮肤乳75ml女士护肤品隔离水嫩保湿SPF30/PA++隔离紫外线不油腻","goods_number":"202006151623332623","goods_weight":132,"sell_price":295,"market_price":590,"store_nums":2852,"photo":"https://m.a3-mall.com/uploads/images/20200615/202006151623339913.jpg","briefly":"","status":0,"visit":0,"favorite":0,"sale":2},{"id":4,"cat_id":949,"title":"【WISWIS玻尿酸面膜】WIS玻尿酸面膜24片(三重玻尿酸精华深层补水保湿面膜男女护肤品套装礼盒)","goods_number":"202006151625483216","goods_weight":157,"sell_price":953,"market_price":1906,"store_nums":695,"photo":"https://m.a3-mall.com/uploads/images/20200615/202006151625481174.jpg","briefly":"","status":0,"visit":0,"favorite":0,"sale":0},{"id":5,"cat_id":974,"title":"颐莲(RELLET)玻尿酸原液30g安瓶精华液补水保湿滋养紧致抗皱定妆修护","goods_number":"202006151628108746","goods_weight":672,"sell_price":201,"market_price":402,"store_nums":1585,"photo":"https://m.a3-mall.com/uploads/images/20200615/20200615162810918.jpg","briefly":"","status":0,"visit":0,"favorite":0,"sale":2},{"id":6,"cat_id":974,"title":"林清轩山茶花润肤油3ml面部精华修复皮肤屏障滋养保湿补水","goods_number":"202006151630009689","goods_weight":928,"sell_price":349,"market_price":698,"store_nums":996,"photo":"https://m.a3-mall.com/uploads/images/20200615/202006151630009401.jpg","briefly":"","status":0,"visit":0,"favorite":0,"sale":0},{"id":7,"cat_id":994,"title":"【女神礼物】卡姿兰bb霜美颜大咖奢护水漾bb防晒霜保湿遮瑕补水持久裸妆控油SPF25PA++水漾BB霜【防晒版】01#粉嫩浅肤色","goods_number":"202006151632145391","goods_weight":651,"sell_price":712,"market_price":1424,"store_nums":915,"photo":"https://m.a3-mall.com/uploads/images/20200615/202006151632144479.jpg","briefly":"","status":0,"visit":0,"favorite":0,"sale":0},{"id":8,"cat_id":944,"title":"自然堂(CHANDO)轻透无瑕润白亮采修颜霜SPF35PA++(BB)35g修颜遮瑕防晒隔离润泽保湿细腻光滑清透提亮","goods_number":"202006151634157365","goods_weight":260,"sell_price":733,"market_price":1466,"store_nums":3273,"photo":"https://m.a3-mall.com/uploads/images/20200615/202006151634157002.jpg","briefly":"","status":0,"visit":0,"favorite":0,"sale":0},{"id":9,"cat_id":995,"title":"【卡姿兰气垫BB】卡姿兰(Carslan)美颜大咖气垫BB霜(防晒版)SPF25/PA++02#典雅自然色13.5g*2(遮瑕保湿持久不脱妆)","goods_number":"202006151635178785","goods_weight":863,"sell_price":248,"market_price":496,"store_nums":1441,"photo":"https://m.a3-mall.com/uploads/images/20200615/202006151635179069.jpg","briefly":"","status":0,"visit":0,"favorite":0,"sale":0},{"id":10,"cat_id":987,"title":"【纽西之谜隔离霜5g】纽西之谜geoskincare水凝清润隔离霜2号色5g(保湿润泽均匀肤色)","goods_number":"202006151636450831","goods_weight":315,"sell_price":742,"market_price":1484,"store_nums":3935,"photo":"https://m.a3-mall.com/uploads/images/20200615/202006151636458144.jpg","briefly":"","status":0,"visit":0,"favorite":0,"sale":0},{"id":11,"cat_id":1006,"title":"卡姿兰口红小粉管盈彩唇膏学生口红持妆滋润保湿持久不易脱色咬唇妆唇彩唇釉专柜10#血橙色","goods_number":"202006151638224370","goods_weight":229,"sell_price":554,"market_price":1108,"store_nums":2327,"photo":"https://m.a3-mall.com/uploads/images/20200615/202006151638226262.jpg","briefly":"","status":0,"visit":0,"favorite":0,"sale":0}]}},{"id":3138,"pid":1,"widget_name":"body","position_id":13,"params":{"type":"2","backgroundColor":"#D32020","thumb_image":"https://m.a3-mall.com/uploads/images/20200711/10627f8fa268875e7a556663a1654206.png"}},{"id":3139,"pid":1,"widget_name":"more","position_id":14,"params":{"title":"猜你喜欢","status":"0","category_id":"","brand_id":"","limit":"10","column":"2"}}
    ]
}

// 调用失败返回
{
    "info":"",
    "status":0
}

# 首页商品列表页

  • 请求地址:index/list

  • 请求方式:GET

  • 应用方法:api/wap.index/get_list

  • 需要授权:否

请求参数

参数 类型 描述
page integer 页码
code array 页面ID
type array h5,app,mini

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":[
        {
            "list":[
                {"id":68,"title":"舒适达护齿黑科技专业修复美白护敏健龈修复敏感牙膏红蓝管","photo":"https://m.a3-mall.com/uploads/images/20201221/745d22c254ef1f5b69c7b055a03f8eda.jpg","price":"119.00","sale":25},
                {"id":67,"title":"雅克菱保持器清洁片90片隐形牙套牙齿正畸假牙清洗泡腾片清洁神器","photo":"https://m.a3-mall.com/uploads/images/20201221/71a5e13718ceac1797d3cbcb1e2e5aab.jpg","price":"68.00","sale":1},
                {"id":66,"title":"3M台湾超细密双线细滑牙线棒家庭装深层剔牙清洁齿缝3盒装","photo":"https://m.a3-mall.com/uploads/images/20201221/538ef6416e9a38556294795de8fa72ed.jpg","price":"159.00","sale":0},
                {"id":65,"title":"舒客舒克牙线家庭装牙签牙线棒超细扁线家用独立包装","photo":"https://m.a3-mall.com/uploads/images/20201221/0ff4bd348cdc1c9b3af75f8f4b339374.jpg","price":"29.90","sale":0},
                {"id":64,"title":"法国Regenerate 进口强健牙釉质 高浓度慕斯漱口水便携清新","photo":"https://m.a3-mall.com/uploads/images/20201221/ff9482c7e5536d5b4a7194aa9d4eeff0.jpg","price":"98.00","sale":0},
                {"id":63,"title":"李施德林进口成人口腔清洁除口臭去牙渍冰蓝零度漱口水 500ml","photo":"https://m.a3-mall.com/uploads/images/20201221/a083a1bb6e84f7a955012b7b64b48e1c.jpg","price":"26.90","sale":0},
                {"id":62,"title":"青蛙牙刷小头进口超细软毛牙刷男女成人款口腔清洁孕妇月子家庭装","photo":"https://m.a3-mall.com/uploads/images/20201221/9828a39cd74b1aab50f704d0ee845163.jpg","price":"48.80","sale":0},
                {"id":61,"title":"日本花王牙膏去黄牙垢亮白清新口气去口臭儿童牙膏含颗粒防蛀","photo":"https://m.a3-mall.com/uploads/images/20201221/9ec83a08cbc0984673a9fb6a22f8339f.jpg","price":"15.90","sale":0},
                {"id":60,"title":"舒客防蛀固齿牙膏祛口气清新祛牙渍男女士专用家庭实惠装2支舒克","photo":"https://m.a3-mall.com/uploads/images/20201221/709135c09f8ccc4ea44d467f064d1a77.png","price":"19.90","sale":0},
                {"id":59,"title":"舒适达脱敏多效护理牙膏2支去黄牙垢亮白抗敏感护龈减出血去口臭","photo":"https://m.a3-mall.com/uploads/images/20201221/4232808a698563764ecab926d278427e.png","price":"56.00","sale":0}
            ],
            "page":1,
            "total":7,
            "size":10
        }    
    ]
}

// 调用失败返回
{
    "info":"",
    "status":0
}

# 搜索页

  • 请求地址:search

  • 请求方式:GET

  • 应用方法:api/wap.search/index

  • 需要授权:否

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":["夏装","夏季","眼影","润白","桃子"]
}

// 调用失败返回
{
    "info":"",
    "status":0
}

# 搜索结果统计

  • 请求地址:search/keywords

  • 请求方式:GET

  • 应用方法:api/wap.search/keywords

  • 需要授权:否

请求参数

参数 类型 描述
keywords string 关键字
goods_id integer 商品ID
client_type integer 0: PC 1: 手机网页 2: APP(0: android 1: ios) 3: 公众号 4: 小程序(0:微信 1:支付宝 2:百度 3:字节跳动 4:QQ)

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok"
}

# 搜索商品列表

  • 请求地址:search/keywords

  • 请求方式:GET

  • 应用方法:api/wap.search/keywords

  • 需要授权:否

请求参数

参数 类型 描述
keywords string 关键字
goods_id integer 商品ID
client_type integer 0: PC 1: 手机网页 2: APP(0: android 1: ios) 3: 公众号 4: 小程序(0:微信 1:支付宝 2:百度 3:字节跳动 4:QQ)

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok"
}

# 分类页

  • 请求地址:category

  • 请求方式:GET

  • 应用方法:api/wap.category/index

  • 需要授权:否

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":[
        {"title":"面部护肤","children":[
                {"id":938,"name":"美白","thumb_img":"https://m.a3-mall.com/static/images/default.jpg"},
                {"id":939,"name":"面霜","thumb_img":"https://m.a3-mall.com/uploads/images/20200615/e3ae3128ad8d263f82af05212031beaa.jpg"},
                {"id":940,"name":"乳液","thumb_img":"https://m.a3-mall.com/uploads/images/20200615/788d6f086ffc610b2de0bfb0ab38eb82.jpg"},
                {"id":941,"name":"啫喱/凝露","thumb_img":"https://m.a3-mall.com/uploads/images/20200615/93758b1321ecf75b2484a32f5fdcc6ff.jpg"},
                {"id":942,"name":"防晒","thumb_img":"https://m.a3-mall.com/static/images/default.jpg"},
                {"id":943,"name":"防晒霜/乳","thumb_img":"https://m.a3-mall.com/uploads/images/20200615/e82c2919490dd119ac5952db168b6864.jpg"},
                {"id":944,"name":"晒后修复","thumb_img":"https://m.a3-mall.com/uploads/images/20200615/8b8907962c58cd4623a43de23d317af5.png"},
                {"id":945,"name":"防晒喷雾","thumb_img":"https://m.a3-mall.com/uploads/images/20200615/31f6a94d2d6a7fb18afbc8724a8275d5.jpg"},
                {"id":946,"name":"防晒啫喱/露","thumb_img":"https://m.a3-mall.com/uploads/images/20200615/d040122e0b26b0b7e5cf768f24a6e5d0.jpg"},
                {"id":947,"name":"面膜","thumb_img":"https://m.a3-mall.com/static/images/default.jpg"},
                {"id":948,"name":"粉末状","thumb_img":"https://m.a3-mall.com/uploads/images/20200615/5194c3cd512bdbe4d7c6cc9dddf8d662.jpg"},
                {"id":949,"name":"贴片式","thumb_img":"https://m.a3-mall.com/uploads/images/20200615/04248d589c8e76a6dcb82e282b19be53.jpg"},
                {"id":950,"name":"水洗式","thumb_img":"https://m.a3-mall.com/uploads/images/20200615/332cabb06f1d90d86b3768ab4d50e9ff.jpg"},
                {"id":951,"name":"撕拉式","thumb_img":"https://m.a3-mall.com/uploads/images/20200615/7e19b52566c5d48426b91d4938c2b527.jpg"},
                {"id":952,"name":"睡眠面膜","thumb_img":"https://m.a3-mall.com/uploads/images/20200615/54a5a50781d3afd1cef4266883050f06.jpg"},
                {"id":953,"name":"DIY面膜","thumb_img":"https://m.a3-mall.com/uploads/images/20200615/19c6242b4a9b0210f0305108979ce1fc.jpg"},
                {"id":954,"name":"洁面","thumb_img":"https://m.a3-mall.com/static/images/default.jpg"},{"id":955,"name":"洁面乳","thumb_img":"https://m.a3-mall.com/uploads/images/20200615/d9b8e17430c715d706d3a6a744c3fc2a.jpg"},
                {"id":1239,"name":"男士香水","thumb_img":"https://m.a3-mall.com/static/images/default.jpg"}
            ]
        }
    ]
}

# 登录

  • 请求地址:public/login

  • 请求方式:POST

  • 应用方法:api/wap.users/login

  • 需要授权:否

请求参数

参数 类型 描述
username string 手机号
password string 密码

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":{
        "id": "1",
        "token": "13e31d7448f7aecef1eb133e5b927233227b0d2f",
        "username": "demo",
        "nickname": "demo",
        "group_name": "注册会员",
        "shop_count": "2",
        "coupon_count":  "1",
        "mobile":  "18089898989",
        "sex":  "1",
        "point":  "100",
        "amount":  "1000",
        "last_ip":  "127.0.0.1",
        "last_login":  "2021-5-21 15:00:00"
    }
}

// 调用失败返回
{
    "info":"",
    "status":0
}

# 注册

  • 请求地址:register

  • 请求方式:POST

  • 应用方法:api/wap.users/register

  • 需要授权:否

请求参数

参数 类型 描述
username string 手机号
password string 密码
code string 验证码
spread_id string 推广者ID

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":{
        "id": "1",
        "token": "13e31d7448f7aecef1eb133e5b927233227b0d2f",
        "username": "demo",
        "nickname": "demo",
        "group_name": "注册会员",
        "shop_count": "2",
        "coupon_count":  "1",
        "mobile":  "18089898989",
        "sex":  "1",
        "point":  "100",
        "amount":  "1000",
        "last_ip":  "127.0.0.1",
        "last_login":  "2021-5-21 15:00:00"
    }
}

// 调用失败返回
{
    "info":"",
    "status":0
}

# 找回密码

  • 请求地址:forget

  • 请求方式:POST

  • 应用方法:api/wap.users/forget

  • 需要授权:否

请求参数

参数 类型 描述
username string 手机号
password string 密码
code string 验证码

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":{
        "id": "1",
        "token": "13e31d7448f7aecef1eb133e5b927233227b0d2f",
        "username": "demo",
        "nickname": "demo",
        "group_name": "注册会员",
        "shop_count": "2",
        "coupon_count":  "1",
        "mobile":  "18089898989",
        "sex":  "1",
        "point":  "100",
        "amount":  "1000",
        "last_ip":  "127.0.0.1",
        "last_login":  "2021-5-21 15:00:00"
    }
}

// 调用失败返回
{
    "info":"",
    "status":0
}

# 热销产品

  • 请求地址:products/hot

  • 请求方式:GET

  • 应用方法:api/wap.products/hot

  • 需要授权:否

请求参数

参数 类型 描述
page integer 页码
id integer 分类ID
type integer 排序类型
sort integer 排序

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":{
        "list":[
            {"id":1,"title":"【玉兰油乳液】玉兰油(OLAY)白里透红嫩白乳液75ml女士面霜面部护肤品补水保湿提亮肤色改善暗黄美白修护","photo":"https://m.a3-mall.com/uploads/images/20200615/202006151615062100.jpg","price":"58.00","sale":2}
        ],
        "page":1,
        "total":1,
        "size":10
    }
}

// 没有数据时返回
{
    "info":"empty",
    "status":-1,
    "data": [
        "list"=>[],
        "page"=>1,
        "total"=>0,
        "size"=>10
    ]
}

# 推荐商品

  • 请求地址:products/recommend

  • 请求方式:GET

  • 应用方法:api/wap.products/recommend

  • 需要授权:否

请求参数

参数 类型 描述
page integer 页码
id integer 分类ID
type integer 排序类型
sort integer 排序

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":{
        "list":[
            {"id":1,"title":"【玉兰油乳液】玉兰油(OLAY)白里透红嫩白乳液75ml女士面霜面部护肤品补水保湿提亮肤色改善暗黄美白修护","photo":"https://m.a3-mall.com/uploads/images/20200615/202006151615062100.jpg","price":"58.00","sale":2}
        ],
        "page":1,
        "total":1,
        "size":10
    }
}

// 没有数据时返回
{
    "info":"empty",
    "status":-1,
    "data": [
        "list"=>[],
        "page"=>1,
        "total"=>0,
        "size"=>10
    ]
}

# 商品列表

  • 请求地址:goods/list

  • 请求方式:GET

  • 应用方法:api/wap.goods/index

  • 需要授权:否

请求参数

参数 类型 描述
page integer 页码
id integer 分类ID
type integer 排序类型
sort integer 排序

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":{
        "list":[
            {"id":1,"title":"【玉兰油乳液】玉兰油(OLAY)白里透红嫩白乳液75ml女士面霜面部护肤品补水保湿提亮肤色改善暗黄美白修护","photo":"https://m.a3-mall.com/uploads/images/20200615/202006151615062100.jpg","price":"58.00","sale":2}
        ],
        "page":1,
        "total":1,
        "size":10
    }
}

// 没有数据时返回
{
    "info":"empty",
    "status":-1,
    "data": [
        "list"=>[],
        "page"=>1,
        "total"=>0,
        "size"=>10
    ]
}

# 商品详情

  • 请求地址:goods/view

  • 请求方式:GET

  • 应用方法:api/wap.goods/view

  • 需要授权:否

请求参数

参数 类型 描述
id integer 商品ID
token string token

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":{
        "collect":false,
        "photo":["https://m.a3-mall.com/uploads/images/20201221/745d22c254ef1f5b69c7b055a03f8eda.jpg"],
        "attr":[
            {"id":23,"name":"选择产品","list":[{"id":150,"pid":23,"value":"牙膏","selected":false,"disable":false},
            {"id":152,"pid":23,"value":"漱口水","selected":false,"disable":false}]},
            {"id":22,"name":"净含量","list":[{"id":131,"pid":22,"value":"110g","selected":false,"disable":false},
            {"id":153,"pid":22,"value":"300g","selected":false,"disable":false}]}
        ],
        "item":{"23_150_22_131":{"key":"23:150,22:131","sell_price":"110.00","goods_weight":"66.00","store_nums":66,"goods_no":"202012210959357341-1","product_id":341},
        "23_150_22_153":{"key":"23:150,22:153","sell_price":"110.00","goods_weight":"66.00","store_nums":65,"goods_no":"202012210959357341-2","product_id":342},
        "23_152_22_131":{"key":"23:152,22:131","sell_price":"110.00","goods_weight":"66.00","store_nums":66,"goods_no":"202012210959357341-3","product_id":343},
        "23_152_22_153":{"key":"23:152,22:153","sell_price":"110.00","goods_weight":"66.00","store_nums":66,"goods_no":"202012210959357341-4","product_id":344}},
        "goods":{
            "id":68,"title":"舒适达护齿黑科技专业修复美白护敏健龈修复敏感牙膏红蓝管",
            "photo":"https://m.a3-mall.com/uploads/images/20201221/745d22c254ef1f5b69c7b055a03f8eda.jpg",
            "sell_price":"119.00",
            "market_price":"159.00",
            "store_nums":1221,
            "sale":25,
            "content":"..."
        },
        "comments":[]
    }
}
// 调用失败返回
{
    "info":"",
    "status":0
}

# 积分列表

  • 请求地址:point

  • 请求方式:GET

  • 应用方法:api/wap.point/index

  • 需要授权:否

请求参数

参数 类型 描述
page integer 页码
type integer 排序类型
sort integer 排序

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":{
        "list":[
            {
                "id":19,
                "title":"百雀羚乳液女水嫩倍现保湿精华乳液100ml",
                "photo":"https://m.a3-mall.com/uploads/images/20200615/202006152014443414.jpg",
                "price":777,
                "sale":0
            }
        ],
        "page":1,
        "total":1,
        "size":10
    }
}

// 没有数据时返回
{
    "info":"empty",
    "status":-1,
    "data": [
        "list"=>[],
        "page"=>1,
        "total"=>0,
        "size"=>10
    ]
}

# 积分商品详情

  • 请求地址:point/view

  • 请求方式:GET

  • 应用方法:api/wap.point/view

  • 需要授权:否

请求参数

参数 类型 描述
id integer 商品ID

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":{
        "photo":[
            "https://m.a3-mall.com/uploads/images/20200615/202006152014443414.jpg",
            "https://m.a3-mall.com/uploads/images/20200615/202006152014444923.jpg",
            "https://m.a3-mall.com/uploads/images/20200615/202006152014449628.jpg"
        ],
        "attr":[

        ],
        "item":[

        ],
        "goods":{
            "id":19,
            "goods_id":29,
            "title":"百雀羚乳液女水嫩倍现保湿精华乳液100ml",
            "photo":"https://m.a3-mall.com/uploads/images/20200615/202006152014443414.jpg",
            "sell_price":777,
            "market_price":"781.00",
            "store_nums":1175,
            "sale":197,
            "content":"<p><br /></p><p><br /></p><p><img src=\"https://m.a3-mall.com/uploads/images/20200615/202006152014442500.jpg\" style=\"max-width: 100%; display: block; margin:0 auto;\" alt=\"202006152014442500.jpg\" /></p><p><img src=\"https://m.a3-mall.com/uploads/images/20200615/202006152014445398.jpg\" style=\"max-width: 100%; display: block; margin:0 auto;\" alt=\"202006152014445398.jpg\" /></p><p><img src=\"https://m.a3-mall.com/uploads/images/20200615/20200615201445755.jpg\" style=\"max-width: 100%; display: block; margin:0 auto;\" alt=\"20200615201445755.jpg\" /></p><p><img src=\"https://m.a3-mall.com/uploads/images/20200615/202006152014452184.jpg\" style=\"max-width: 100%; display: block; margin:0 auto;\" alt=\"202006152014452184.jpg\" /></p><p><img src=\"https://m.a3-mall.com/uploads/images/20200615/20200615201445651.jpg\" style=\"max-width: 100%; display: block; margin:0 auto;\" alt=\"20200615201445651.jpg\" /></p><p><img src=\"https://m.a3-mall.com/uploads/images/20200615/20200615201445990.jpg\" style=\"max-width: 100%; display: block; margin:0 auto;\" alt=\"20200615201445990.jpg\" /></p>",
            "start_time":1599919172,
            "end_time":1663855172,
            "now_time":1621615285
        },
        "comments":[]
    }
}

// 调用失败返回
{
    "info":"",
    "status":0
}

# 团购列表

  • 请求地址:regiment

  • 请求方式:GET

  • 应用方法:api/wap.regiment/index

  • 需要授权:否

请求参数

参数 类型 描述
page integer 页码
type integer 排序类型
sort integer 排序

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":{
        "list":[
            {
                "id":22,
                "title":"舒适达护齿黑科技专业修复美白护敏健龈修复敏感牙膏红蓝管",
                "photo":"https://m.a3-mall.com/uploads/images/20201221/745d22c254ef1f5b69c7b055a03f8eda.jpg",
                "price":"119.00",
                "sell_price":"119.00",
                "sale":25
            }
        ],
        "page":1,
        "total":2,
        "size":10
    }
}

// 没有数据时返回
{
    "info":"empty",
    "status":-1,
    "data": [
        "list"=>[],
        "page"=>1,
        "total"=>0,
        "size"=>10
    ]
}

# 团购商品详情

  • 请求地址:regiment/view

  • 请求方式:GET

  • 应用方法:api/wap.regiment/view

  • 需要授权:否

请求参数

参数 类型 描述
id integer 商品ID

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":{
        "photo":[
            "https://m.a3-mall.com/uploads/images/20200615/202006151625481174.jpg",
            "https://m.a3-mall.com/uploads/images/20200615/202006151625485993.jpg",
            "https://m.a3-mall.com/uploads/images/20200615/202006151625482219.jpg"
        ],
        "attr":[],
        "item":[],
        "goods":{
            "id":21,
            "goods_id":4,
            "title":"【WISWIS玻尿酸面膜】WIS玻尿酸面膜24片(三重玻尿酸精华深层补水保湿面膜男女护肤品套装礼盒)",
            "photo":"https://m.a3-mall.com/uploads/images/20200615/202006151625481174.jpg",
            "sell_price":"953.00",
            "market_price":"953.00",
            "store_nums":693,
            "min_count":1,
            "max_count":3,
            "sale":309,
            "content":"<p><br /></p><p><br /></p><p><img src=\"https://m.a3-mall.com/uploads/images/20200615/202006151625497236.jpg\" style=\"max-width: 100%; display: block; margin:0 auto;\" alt=\"202006151625497236.jpg\" /></p><p><img src=\"https://m.a3-mall.com/uploads/images/20200615/202006151625494698.jpg\" style=\"max-width: 100%; display: block; margin:0 auto;\" alt=\"202006151625494698.jpg\" /></p><p><img src=\"https://m.a3-mall.com/uploads/images/20200615/202006151625491512.jpg\" style=\"max-width: 100%; display: block; margin:0 auto;\" alt=\"202006151625491512.jpg\" /></p><p><img src=\"https://m.a3-mall.com/uploads/images/20200615/202006151625499208.jpg\" style=\"max-width: 100%; display: block; margin:0 auto;\" alt=\"202006151625499208.jpg\" /></p><p><img src=\"https://m.a3-mall.com/uploads/images/20200615/202006151625497040.jpg\" style=\"max-width: 100%; display: block; margin:0 auto;\" alt=\"202006151625497040.jpg\" /></p><p><img src=\"https://m.a3-mall.com/uploads/images/20200615/202006151625494950.jpg\" style=\"max-width: 100%; display: block; margin:0 auto;\" alt=\"202006151625494950.jpg\" /></p><p><img src=\"https://m.a3-mall.com/uploads/images/20200615/202006151625497033.jpg\" style=\"max-width: 100%; display: block; margin:0 auto;\" alt=\"202006151625497033.jpg\" /></p><p><img src=\"https://m.a3-mall.com/uploads/images/20200615/202006151625509449.jpg\" style=\"max-width: 100%; display: block; margin:0 auto;\" alt=\"202006151625509449.jpg\" /></p><p><img src=\"https://m.a3-mall.com/uploads/images/20200615/202006151625506535.jpg\" style=\"max-width: 100%; display: block; margin:0 auto;\" alt=\"202006151625506535.jpg\" /></p><p><img src=\"https://m.a3-mall.com/uploads/images/20200615/202006151625506516.jpg\" style=\"max-width: 100%; display: block; margin:0 auto;\" alt=\"202006151625506516.jpg\" /></p><p><img src=\"https://m.a3-mall.com/uploads/images/20200615/202006151625509155.jpg\" style=\"max-width: 100%; display: block; margin:0 auto;\" alt=\"202006151625509155.jpg\" /></p><p><img src=\"https://m.a3-mall.com/uploads/images/20200615/20200615162550679.jpg\" style=\"max-width: 100%; display: block; margin:0 auto;\" alt=\"20200615162550679.jpg\" /></p><p><img src=\"https://m.a3-mall.com/uploads/images/20200615/202006151625501937.jpg\" style=\"max-width: 100%; display: block; margin:0 auto;\" alt=\"202006151625501937.jpg\" /></p>",
            "now_time":1621615465,
            "start_time":1599919130,
            "end_time":1632319130
        },
        "comments":[]
    }
}

// 调用失败返回
{
    "info":"",
    "status":0
}

# 秒杀列表

  • 请求地址:second

  • 请求方式:GET

  • 应用方法:api/wap.second/index

  • 需要授权:否

请求参数

参数 类型 描述
page integer 页码
type integer 排序类型
sort integer 排序

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":{
        "list":[
            {
                "id":18,
                "title":"舒适达护齿黑科技专业修复美白护敏健龈修复敏感牙膏红蓝管",
                "photo":"https://m.a3-mall.com/uploads/images/20201221/745d22c254ef1f5b69c7b055a03f8eda.jpg",
                "price":"119.00",
                "sell_price":"119.00",
                "sale":25
            }
        ],
        "page":1,
        "total":2,
        "size":10
    }
}

// 没有数据时返回
{
    "info":"empty",
    "status":-1,
    "data": [
        "list"=>[],
        "page"=>1,
        "total"=>0,
        "size"=>10
    ]
}

# 秒杀商品详情

  • 请求地址:second/view

  • 请求方式:GET

  • 应用方法:api/wap.second/view

  • 需要授权:否

请求参数

参数 类型 描述
id integer 商品ID

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":{
        "photo":[
            "https://m.a3-mall.com/uploads/images/20201221/745d22c254ef1f5b69c7b055a03f8eda.jpg"
        ],
        "attr":[
            {
                "id":23,
                "name":"选择产品",
                "list":[
                    {
                        "id":150,
                        "pid":23,
                        "value":"牙膏"
                    }
                ]
            },
            {
                "id":22,
                "name":"净含量",
                "list":[
                    {
                        "id":153,
                        "pid":22,
                        "value":"300g"
                    }
                ]
            }
        ],
        "item":{
            "23_150_22_153":{
                "key":"23:150,22:153",
                "sell_price":"39.00",
                "goods_weight":"66.00",
                "store_nums":91,
                "goods_no":"202012210959357341-2",
                "product_id":342
            }
        },
        "goods":{
            "id":18,
            "goods_id":68,
            "title":"舒适达护齿黑科技专业修复美白护敏健龈修复敏感牙膏红蓝管",
            "photo":"https://m.a3-mall.com/uploads/images/20201221/745d22c254ef1f5b69c7b055a03f8eda.jpg",
            "sell_price":"119.00",
            "market_price":"119.00",
            "store_nums":1243,
            "sale":168,
            "content":"<p><br/></p><p><img src=\"https://m.a3-mall.com/uploads/images/20201221/62f09a8d222acdd1ac32d678f313c202.jpg\" style=\"max-width: 100%; display: block; margin:0 auto;\" alt=\"62f09a8d222acdd1ac32d678f313c202.jpg\"/></p>",
            "start_time":1610420285,
            "end_time":1611284285,
            "now_time":1621617592
        },
        "comments":[

        ]
    }
}

// 调用失败返回
{
    "info":"",
    "status":0
}

# 拼团列表

  • 请求地址:group

  • 请求方式:GET

  • 应用方法:api/wap.group/index

  • 需要授权:否

请求参数

参数 类型 描述
page integer 页码
type integer 排序类型
sort integer 排序

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":{
        "list":[
            {
                "id":21,
                "goods_id":68,
                "thumb_image":"",
                "title":"舒适达护齿黑科技专业修复美白护敏健龈修复敏感牙膏红蓝管",
                "people":2,
                "info":"",
                "sell_price":"119.00",
                "sort":0,
                "sum_count":745,
                "store_nums":1234,
                "status":0,
                "content":null,
                "start_time":1610417333,
                "end_time":1642817333,
                "effective_time":24,
                "browse":0,
                "create_time":1610417343,
                "photo":"https://m.a3-mall.com/uploads/images/20201221/745d22c254ef1f5b69c7b055a03f8eda.jpg"
            }
        ],
        "page":1,
        "total":2,
        "size":10
    }
}

// 没有数据时返回
{
    "info":"empty",
    "status":-1,
    "data": [
        "list"=>[],
        "page"=>1,
        "total"=>0,
        "size"=>10
    ]
}

# 拼团商品详情

  • 请求地址:group/view

  • 请求方式:GET

  • 应用方法:api/wap.group/view

  • 需要授权:否

请求参数

参数 类型 描述
id integer 商品ID

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":{
        "photo":[
            "https://m.a3-mall.com/uploads/images/20201221/745d22c254ef1f5b69c7b055a03f8eda.jpg"
        ],
        "attr":[
            {
                "id":23,
                "name":"选择产品",
                "list":[
                    {
                        "id":150,
                        "pid":23,
                        "value":"牙膏"
                    }
                ]
            },
            {
                "id":22,
                "name":"净含量",
                "list":[
                    {
                        "id":153,
                        "pid":22,
                        "value":"300g"
                    }
                ]
            }
        ],
        "item":{
            "23_150_22_153":{
                "key":"23:150,22:153",
                "sell_price":"19.00",
                "goods_weight":"66.00",
                "store_nums":129,
                "goods_no":"202012210959357341-2",
                "product_id":342
            }
        },
        "goods":{
            "id":21,
            "goods_id":68,
            "title":"舒适达护齿黑科技专业修复美白护敏健龈修复敏感牙膏红蓝管",
            "photo":"https://m.a3-mall.com/uploads/images/20201221/745d22c254ef1f5b69c7b055a03f8eda.jpg",
            "sell_price":"119.00",
            "market_price":"119.00",
            "store_nums":1234,
            "sale":745,
            "now_time":1621617789,
            "start_time":1610417333,
            "end_time":1642817333,
            "content":"<p><br/></p><p><img src=\"https://m.a3-mall.com/uploads/images/20201221/62f09a8d222acdd1ac32d678f313c202.jpg\" style=\"max-width: 100%; display: block; margin:0 auto;\" alt=\"62f09a8d222acdd1ac32d678f313c202.jpg\"/></p>"
        },
        "comments":[

        ],
        "group":{
            "count":0,
            "list":[

            ]
        }
    }
}

// 调用失败返回
{
    "info":"",
    "status":0
}

# 是否允许加入对方拼团

  • 请求地址:group/check

  • 请求方式:POST FORM

  • 应用方法:api/wap.group/check

  • 需要授权:是

返回结果

// 调用成功返回
{
	"status": 1,
	"info": "ok"
}

// 错误时返回
{
	"status": 0,
	"info": ""
}

# 特价列表

  • 请求地址:special

  • 请求方式:GET

  • 应用方法:api/wap.special/index

  • 需要授权:否

请求参数

参数 类型 描述
page integer 页码
type integer 排序类型
sort integer 排序

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":{
        "list":[
            {
                "id":14,
                "p_id":8,
                "title":"【迪奥唇蜜】迪奥(Dior)魅惑润唇蜜001#3.5g经典粉红色(口红dior口红自营品质变色润唇膏丰唇膏)",
                "photo":"https://m.a3-mall.com/uploads/images/20200615/202006151955108174.jpg",
                "price":"793.00",
                "sale":0,
                "goods_price":"793.00"
            }
        ],
        "page":1,
        "total":1,
        "size":10
    }
}

// 没有数据时返回
{
    "info":"empty",
    "status":-1,
    "data": [
        "list"=>[],
        "page"=>1,
        "total"=>0,
        "size"=>10
    ]
}

# 特价商品详情

  • 请求地址:special/view

  • 请求方式:GET

  • 应用方法:api/wap.special/view

  • 需要授权:否

请求参数

参数 类型 描述
id integer 商品ID

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":{
        "photo":[
            "https://m.a3-mall.com/uploads/images/20200615/202006151955108174.jpg",
            "https://m.a3-mall.com/uploads/images/20200615/202006151955103597.jpg",
            "https://m.a3-mall.com/uploads/images/20200615/202006151955101010.jpg",
            "https://m.a3-mall.com/uploads/images/20200615/202006151955101600.jpg",
            "https://m.a3-mall.com/uploads/images/20200615/202006151955109121.jpg"
        ],
        "attr":[

        ],
        "item":[

        ],
        "goods":{
            "id":8,
            "goods_id":14,
            "title":"【迪奥唇蜜】迪奥(Dior)魅惑润唇蜜001#3.5g经典粉红色(口红dior口红自营品质变色润唇膏丰唇膏)",
            "photo":"https://m.a3-mall.com/uploads/images/20200615/202006151955108174.jpg",
            "sell_price":"793.00",
            "market_price":"793.00",
            "store_nums":1368,
            "sale":0,
            "content":"..."
        },
        "comments":[

        ]
    }
}

// 调用失败返回
{
    "info":"",
    "status":0
}

# 评论列表

  • 请求地址:comments/list

  • 请求方式:GET

  • 应用方法:api/wap.comments/index

  • 需要授权:否

请求参数

参数 类型 描述
page integer 页码
id integer 商品ID
type integer 请求类型(point、regiment、second、special、group、buy)

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":{
        "list":[
            {
            "time":"2021-04-26",
            "avatar":"https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132",
            "content":"商品不错",
            "reply_content":"",
            "username":"web***"
            }
        ],
        "page":1,
        "total":1,
        "size":10
    }
}

// 调用失败返回
{
    "info":"",
    "status":0
}

# 资讯中心

  • 请求地址:news

  • 请求方式:GET

  • 应用方法:api/wap.news/index

  • 需要授权:否

请求参数

参数 类型 描述
page integer 页码

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":{
        "list":[
            {
                "id":4,
                "title":"秋季养生正当时,顺季食补滋阴养肺",
                "create_time":"2020-06-02 05:30:03",
                "photo":"https://m.a3-mall.com/uploads/images/20200602/74ecfaec958bbb60e5700938ef310631.png"
            }
        ],
        "page":1,
        "total":1,
        "size":10
    }
}
// 为空时返回
{
    "info":"empty",
    "status":-1
}

# 资讯列表

  • 请求地址:news/list

  • 请求方式:GET

  • 应用方法:api/wap.news/get_list

  • 需要授权:否

请求参数

参数 类型 描述
page integer 页码
cat_id integer 分类

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":{
        "list":[
            {
                "id":4,
                "title":"秋季养生正当时,顺季食补滋阴养肺",
                "create_time":"2020-06-02 05:30:03",
                "photo":"https://m.a3-mall.com/uploads/images/20200602/74ecfaec958bbb60e5700938ef310631.png"
            }
        ],
        "page":1,
        "total":1,
        "size":10
    }
}
// 为空时返回
{
    "info":"empty",
    "status":-1
}

# 资讯详情

  • 请求地址:news/view

  • 请求方式:GET

  • 应用方法:api/wap.news/view

  • 需要授权:否

请求参数

参数 类型 描述
id integer 资讯ID

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":{
        "pid":72,
        "title":"秋季养生正当时,顺季食补滋阴养肺",
        "hits":39,
        "content":"...",
        "create_time":"2020-06-02 05:30:03",
        "cat_name":"生活资讯"
    }
}
// 为空时返回
{
    "info":"",
    "status":0
}

# 设置小程序用户信息

  • 请求地址:wx/info

  • 请求方式:POST

  • 应用方法:api/wap.Ucenter/wxmini_userinfo

  • 需要授权:是

请求参数

参数 类型 描述
nickName string 名称
language string 语言
city string
province string
country string
avatarUrl string 头像
gender string 性别

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":{}
}
// 为空时返回
{
    "info":"",
    "status":0
}

# APP分享

  • 请求地址:share/index

  • 请求方式:GET

  • 应用方法:api/wap.share/index

  • 需要授权:是

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":{
        "title": "分享标题", "url": "分享地址","content": "分享内容","qrcode": "二维码地址","images":[
           // 海报图片 ...
        ] 
    }
}
// 为空时返回
{
    "info":"",
    "status":0
}

# APP保存分享海报

  • 请求地址:share/upload

  • 请求方式:POST

  • 应用方法:api/wap.Share/upload

  • 需要授权:是

请求参数

参数 类型 描述
file post from 上传文件

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":"image url"
}
// 为空时返回
{
    "info":"",
    "status":0
}

# 签到中心

  • 请求地址:sign/index

  • 请求方式:GET

  • 应用方法:api/wap.UsersSign/index

  • 需要授权:是

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":{
        "username":"微信用户",
        "point":0,
        "time":1621533629,
        "config":{
            "list":[
                {
                    "name":"1天",
                    "point":"1",
                    "sort":0
                },
                {
                    "name":"2天",
                    "point":"2",
                    "sort":1
                },
                {
                    "name":"3天",
                    "point":"3",
                    "sort":2
                },
                {
                    "name":"4天",
                    "point":"4",
                    "sort":3
                },
                {
                    "name":"5天",
                    "point":"5",
                    "sort":4
                },
                {
                    "name":"6天",
                    "point":"6",
                    "sort":5
                },
                {
                    "name":"7天",
                    "point":"15",
                    "sort":6
                }
            ],
            "status":1
        },
        "avatar":"https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132",
        "is_day":0,
        "is_yester_day":0,
        "sign_count":0,
        "sing_total":0,
        "coupon":[]
    }
}
// 为空时返回
{
    "info":"",
    "status":0
}

# 会员签到

  • 请求地址:sign/send

  • 请求方式:GET

  • 应用方法:api/wap.UsersSign/send

  • 需要授权:是

返回结果

// 调用成功返回
{
    "status":1,
    "info":"签到成功",
    "data":{
        "sign_count":1,
        "point":1
    }
}

// 为空时返回
{
    "info":"",
    "status":0
}

# 积分兑换优惠劵

  • 请求地址:sign/receive

  • 请求方式:GET

  • 应用方法:api/wap.UsersSign/receive

  • 需要授权:是

请求参数

参数 类型 描述
id integer 优惠劵ID

返回结果

// 调用成功返回
{
    "status":1,
    "info":"领取成功",
    "data":22220223
}

// 为空时返回
{
    "info":"",
    "status":0
}

# 签到明细

  • 请求地址:sign/point

  • 请求方式:GET

  • 应用方法:api/wap.UsersSign/point

  • 需要授权:是

请求参数

参数 类型 描述
page integer 页码

返回结果

// 调用成功返回
{
    "status":1,
    "info":"ok",
    "data":{
        "list":[
            {
                "point":"+1",
                "operation":"",
                "description":"签到奖励",
                "time":"2021-05-22 02:04:43"
            }
        ],
        "page":1,
        "total":1,
        "size":10
    }
}

// 为空时返回
{
    "info":"",
    "status":0
}

# 商品收藏

  • 请求地址:goods/favorite

  • 请求方式:GET

  • 应用方法:api/wap.goods/favorite

  • 需要授权:是

请求参数

参数 类型 描述
page integer 页码

返回结果

// 调用成功返回
{
    "status":1,
    "info":"收藏成功",
    "data":1
}

// 为空时返回
{
    "info":"",
    "status":0
}

# 购物车

  • 请求地址:cart

  • 请求方式:GET

  • 应用方法:api/wap.cart/index

  • 需要授权:是

请求参数

参数 类型 描述
page integer 页码

返回结果

// 调用成功返回
{
	"status": 1,
	"info": "ok",
	"data": {
		"list": [{
			"id": 1,
			"title": "舒适达护齿黑科技专业修复美白护敏健龈修复敏感牙膏红蓝管",
			"price": 110,
			"photo": "https://m.a3-mall.com/uploads/images/20201221/745d22c254ef1f5b69c7b055a03f8eda.jpg",
			"nums": 66,
			"goods_nums": 1,
			"goods_id": 68,
			"product_id": 344,
			"attr": "选择产品:漱口水,净含量:300g"
		}],
		"page": 1,
		"total": 1,
		"size": 10
	}
}
// 为空时返回
{
    "info":"",
    "status":0,
    "data":{
        "list"=>[],
        "page"=>1,
        "total"=>0,
        "size"=>10
    }
}

# 添加商品至购物车

  • 请求地址:cart/add

  • 请求方式:POST

  • 应用方法:api/wap.cart/add

  • 需要授权:是

请求参数

参数 类型 描述
id integer 商品ID
sku_id integer 商品规格
num integer 商品件数

返回结果

// 调用成功返回
{
	"status": 1,
	"info": "商品添加至购物车成功",
	"data": {
		"count": 2
	}
}

// 错误时返回
{
    "info":"",
    "status":0
}

# 修改至购物车商品

  • 请求地址:cart/change

  • 请求方式:POST

  • 应用方法:api/wap.cart/change

  • 需要授权:是

请求参数

参数 类型 描述
id integer 商品ID
sku_id integer 商品规格
num integer 商品件数

返回结果

// 调用成功返回
{
	"status": 1,
	"info": "ok",
	"data": {
		"count": 3
	}
}

// 错误时返回
{
    "info":"",
    "status":0
}

# 删除购物车商品

  • 请求地址:cart/delete

  • 请求方式:POST

  • 应用方法:api/wap.cart/delete

  • 需要授权:是

请求参数

参数 类型 描述
id integer 购物车ID

返回结果

// 调用成功返回
{
	"status": 1,
	"info": "ok",
	"data": 2
}

// 错误时返回
{
    "info":"",
    "status":0
}

# 优惠劵列表

  • 请求地址:bonus

  • 请求方式:GET

  • 应用方法:api/wap.bonus/index

  • 需要授权:是

请求参数

参数 类型 描述
page integer 页码

返回结果

// 调用成功返回
{
	"status": 1,
	"info": "ok",
	"data": {
		"list": [{
			"id": 8,
			"name": "20优惠劵",
			"amount": "20",
			"price": 2100,
			"end_time": "2021-10-27",
			"is_receive": 0
		}],
		"page": 1,
		"total": 1,
		"size": 10
	}
}

// 错误时返回
{
    "status": 0,
    "info": ""
}

# 领取优惠劵

  • 请求地址:bonus/receive

  • 请求方式:GET

  • 应用方法:api/wap.bonus/receive

  • 需要授权:是

请求参数

参数 类型 描述
id integer 优惠劵id

返回结果

// 调用成功返回
{
	"status": 1,
	"info": "领取成功",
	"data": 1
}

// 错误时返回
{
    "status": 0,
    "info": ""
}