简要描述:
- 供应商店铺首页
请求域名:
- http://xx.com
请求URL:
POST:plugin.supplier.frontend.shop.index.index
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
sid | 是 | int | 供应商id |
返回示例:
正确时返回:样式一
{"result":1,"msg":"\u6210\u529f",
"data":{"
list_is_hot":[{"id":182,"uniacid":5,"brand_id":0,"type":1,"status":0,"display_order":0,"title":"\u732b\u732b\u732b\u732b","thumb":"https:\/\/dev2.yunzshop.com\/attachment\/images\/5\/2018\/10\/k99Z9tDaFwjP7WP9w5wp94W4444j5p.jpg","thumb_url":null,"sku":"\u4e2a","description":"","content":"","goods_sn":"","product_sn":"","market_price":"111.00","price":"111.00","cost_price":"111.00","stock":1,"reduce_stock_method":2,"show_sales":0,"real_sales":0,"weight":"0.00","has_option":0,"is_new":0,"is_hot":1,"is_discount":0,"is_recommand":0,"is_comment":0,"is_deleted":0,"created_at":"2018-10-10 17:05:38","deleted_at":null,"updated_at":"2018-10-10 17:05:38","comment_num":0,"is_plugin":1,"buy_way":0,"plugin_id":0,"virtual_sales":1,"goods_video":"","goods_id":182}],
"list_is_recommand":[{"id":183,"uniacid":5,"brand_id":0,"type":1,"status":0,"display_order":0,"title":"\u732b\u732b\u732b","thumb":"https:\/\/dev2.yunzshop.com\/attachment\/images\/5\/2018\/10\/xr59u99GdNADaR5UatzD7Ac5t3z5aA.jpg","thumb_url":null,"sku":"\u4e2a","description":"","content":"","goods_sn":"","product_sn":"","market_price":"1.00","price":"1.00","cost_price":"1.00","stock":1,"reduce_stock_method":2,"show_sales":0,"real_sales":0,"weight":"0.00","has_option":0,"is_new":0,"is_hot":0,"is_discount":0,"is_recommand":1,"is_comment":0,"is_deleted":0,"created_at":"2018-10-10 17:06:08","deleted_at":null,"updated_at":"2018-10-10 17:06:08","comment_num":0,"is_plugin":1,"buy_way":0,"plugin_id":0,"virtual_sales":1,"goods_video":"","goods_id":183}],
"supplier":{"id":25,"member_id":98,"username":"1","password":"123456","realname":"1","mobile":"17817836856","status":1,"apply_time":1537499720,"created_at":"2018-09-07 11:59:06","updated_at":"2018-09-21 11:15:20","deleted_at":0,"uniacid":5,"salt":"PdGO6GHS","product":"1","remark":"1","uid":24,"logo":"https:\/\/dev2.yunzshop.com\/attachment\/image\/ee98aba0c946ac0cca5a13770bfbf4c6.jpg","company_bank":"8374882293308502833","company_ali":"15219025049","ali":"15219025049","wechat":"a123456","diyform_data_id":0,"bank_username":"aa","bank_of_accounts":"\u6c11\u751f\u94f6\u884c","opening_branch":"\u767d\u4e91\u652f\u884c","company_ali_username":"as2","ali_username":"as","store_name":"45","province_name":"","city_name":"","district_name":"","grade":0,"has_one_member":{"uid":98,"uniacid":5,"mobile":"18026357601","email":"","password":"df45b94111ab6c188067ddd9d6b21b38","salt":"7pUlFX0y","groupid":5,"credit1":"471.34","credit2":"9343785.00","credit3":"0.00","credit4":"0.00","credit5":"0.00","credit6":"0.00","createtime":1526893683,"realname":"","nickname":"Lily","avatar":"http:\/\/thirdwx.qlogo.cn\/mmopen\/McYMgia19V0UAGyV7rqyVB44qkx8pdaOmQ1pJo95CJl9THYBpLwSqkL8ZQR3rmMLZ4XzbcpKgHl0mFxicZ1xF0vzGSBiavM1S8cdpV4h14k1Qk\/132","qq":"","vip":0,"gender":0,"birthyear":0,"birthmonth":0,"birthday":0,"constellation":"","zodiac":"","telephone":"","idcard":"","studentid":"","grade":"","address":"","zipcode":"","nationality":"","resideprovince":"\u7701","residecity":"\u5e02","residedist":"","graduateschool":"","company":"","education":"","occupation":"","position":"","revenue":"","affectivestatus":"","lookingfor":"","bloodtype":"","height":"","weight":"","alipay":"","msn":"","taobao":"","site":"","bio":"","interest":"","pay_password":"0","avatar_image":"http:\/\/thirdwx.qlogo.cn\/mmopen\/McYMgia19V0UAGyV7rqyVB44qkx8pdaOmQ1pJo95CJl9THYBpLwSqkL8ZQR3rmMLZ4XzbcpKgHl0mFxicZ1xF0vzGSBiavM1S8cdpV4h14k1Qk\/132"},"has_one_wq_user":{"uid":24,"username":"1"}},
"slide":[{"id":3,"uniacid":5,"slide_name":"\u54b3\u54b3\u54b3","link":"www.sina.com.cn","thumb":"images\/5\/2018\/10\/ME3YPwLmwGWZKGcllRgcspRlzZlwe0.jpg","created_at":"2018-10-09 14:29:16","updated_at":"2018-10-09 14:33:56","deleted_at":null,"display_order":1,"enabled":1},{"id":1,"uniacid":5,"slide_name":"\u55b5\u55b5\u55b5","link":"www.sina.com.cn","thumb":"images\/5\/2018\/10\/plMbsLIIb8K68cq8U3C00mk6lICini.jpg","created_at":"2018-10-08 10:35:26","updated_at":"2018-10-09 14:34:07","deleted_at":null,"display_order":0,"enabled":1},{"id":2,"uniacid":5,"slide_name":"\u8df3\u8df3\u7cd6","link":"www.baidu.com","thumb":"images\/5\/2018\/10\/BaBOOboBa6adOaz9W8DkAd6dvOb9sC.jpg","created_at":"2018-10-08 11:26:31","updated_at":"2018-10-08 11:26:31","deleted_at":null,"display_order":0,"enabled":1}],
"advs":{"id":1,"uniacid":5,"advs":{"1":{"img":"images\/5\/2018\/10\/jXL11wLEY3119d11D5fq2TFLFHhT5q.jpg","link":"www.sina.com.cn"},"2":{"img":"images\/5\/2018\/10\/ZOFOgNWONERSKwA7Or7aoAKqOkHANv.jpg","link":"www.baidu.com"}},"created_at":"2018-10-09 15:24:36","updated_at":"2018-10-09 15:24:36","deleted_at":null}}}
正确时返回:样式二
{
"result": 1,
"msg": "成功",
"data": {
"supplier": {
"id": 3,
"member_id": 17,
"username": "碳酸果汁",
"password": "123456",
"realname": "123",
"mobile": "13111223344",
"status": 1,
"apply_time": 0,
"created_at": "2017-08-15 16:40:54",
"updated_at": "2017-10-19 14:46:37",
"deleted_at": 0,
"uniacid": 3,
"salt": "uFB2FTN4",
"product": "0",
"remark": "0",
"uid": 6,
"logo": "",
"company_bank": "",
"company_ali": "",
"ali": "",
"wechat": "",
"diyform_data_id": 0,
"bank_username": "",
"bank_of_accounts": "",
"opening_branch": "",
"company_ali_username": "",
"ali_username": "",
"province_name": "",
"city_name": "",
"district_name": "",
"grade": 0,
"store_name": "null",
"order_price": "0.00",
"shop_commission": "0.00",
"lng": "",
"lat": "",
"province_id": 0,
"city_id": 0,
"district_id": 0,
"street_id": 0,
"street_name": "",
"address": "",
"supplier_id": 3,
"has_one_member": {
"uid": 17,
"uniacid": 3,
"mobile": "13263635963",
"email": "",
"groupid": 3,
"credit1": "1538.07",
"credit2": "7443.99",
"credit3": "0.00",
"credit4": "0.00",
"credit5": "0.00",
"credit6": "0.00",
"createtime": 1497516644,
"realname": "cc",
"nickname": "cc",
"signature": null,
"avatar": "",
"qq": "",
"vip": 0,
"gender": 0,
"birthyear": 0,
"birthmonth": 0,
"birthday": 0,
"constellation": "",
"zodiac": "",
"telephone": "",
"idcard": "440281199306263826",
"studentid": "",
"grade": "",
"address": "",
"zipcode": "",
"nationality": "",
"resideprovince": "省",
"residecity": "市",
"residedist": "",
"graduateschool": "",
"company": "",
"education": "",
"occupation": "",
"position": "",
"revenue": "",
"affectivestatus": "",
"lookingfor": "",
"bloodtype": "",
"height": "",
"weight": "",
"alipay": "",
"msn": "",
"taobao": "",
"site": "",
"bio": "",
"interest": "",
"avatar_image": "http://test-1251768088.cosgz.myqcloud.com/images/3/2018/01/u1TuWe8TE9G8ubSxBecU38E9WP8pbG.jpg",
"username": "cc"
},
"has_one_wq_user": {
"uid": 6,
"username": "碳酸果汁"
}
},
"slide": [],
"supplier_link": "http://q.url.cn/s/cy2KHXm",
"is_room": 0,
"aggregate": 1,
"category": [
{
"id": 63,
"name": "测试32",
"thumb": "http://test-1251768088.cosgz.myqcloud.com/image/b0b75ebf4d88c2597c37d8ebfde03608.png"
},
{
"id": 60,
"name": "分类23211",
"thumb": ""
},
{
"id": 23,
"name": "2.2",
"thumb": "http://test-1251768088.cosgz.myqcloud.com/images/3/2017/11/g8sJ98sSB4YMJ4pBd4SMbVYyBBdSdS.jpg"
}
],
"goods": {
"total": 2,
"per_page": 10,
"current_page": 1,
"last_page": 1,
"next_page_url": null,
"prev_page_url": null,
"from": 1,
"to": 2,
"data": [
{
"goods_id": 18,
"title": "1",
"thumb": "http://wq2.com/attachment/images/3/2017/05/hvY2fy99d22c9c2do19v1Reocohhyx.png",
"price": "100.00",
"market_price": "1.00",
"status_name": null
},
{
"goods_id": 32,
"title": "2",
"thumb": "http://wq2.com/attachment/images/3/2017/08/GRSI9Jj8Hgf42i2g64l568iIgOiGwW.jpg",
"price": "100.00",
"market_price": "0.00",
"status_name": null
}
]
}
}
}
错误时返回:
result: 0,
msg: "你不是供应商!",
data: [ ]
返回参数说明:
参数名 | 类型 | 说明 | |
---|---|---|---|
uid | 是 | int | 会员ID |
list_is_hot | 是 | array | 热卖 |
list_is_recommand | 是 | array | 推荐 |
supplier | 是 | array | 供应商信息 |
slide | 是 | array | 幻灯片 |
advs | 是 | array | 广告位 |
supplier_link | 是 | text | 客服链接 |
aggregate | 是 | text | 0-现有样式 1-样式二 |
备注:
- 更多返回错误代码请看首页的错误代码描述