🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
[TOC] ## 首页区域平台 首页接口中 union 返回数据为 0,不显示 1,显示申请加入 2,显示进入平台 ## 轮询消息数量 ~~~[api] post:/messagecenter/notread <<< success { "code": 0, "info": "成功", "data": 2 } <<< error ~~~ ## 首页统一接口 ~~~[api] post:/home/index <<< success { "code": 0, "info": "成功", "data": { "my_info": { "id": 1000, "name": "_ADMIN_NAME", "phone": "13068685200", "shop_name": "ww4", "headimgurl": "", "score": "5.00" }, "my_menu": [], "all_menu": [{ "id": 1, "title": "基础信息管理", "menu_id": 0, "sort": 0, "url": "", "icon": "", "competence_id": 0, "child": [{ "id": 2, "title": "门店管理", "menu_id": 1, "sort": 0, "url": "shoplist", "icon": "basic_mdgl.svg", "competence_id": 0 }, { "id": 3, "title": "员工管理", "menu_id": 1, "sort": 0, "url": "staffList", "icon": "people_add.svg", "competence_id": 0 }, { "id": 4, "title": "商品管理", "menu_id": 1, "sort": 0, "url": "goodstypelist", "icon": "basic_spgl.svg", "competence_id": 0 }] }, { "id": 18, "title": "订单管理", "menu_id": 0, "sort": 0, "url": null, "icon": null, "competence_id": 0, "child": [{ "id": 19, "title": "销售下单", "menu_id": 18, "sort": 0, "url": "order_sale", "icon": "order_xd.svg", "competence_id": 0 }, { "id": 20, "title": "订单记录", "menu_id": 18, "sort": 0, "url": "order_list", "icon": "order_record.svg", "competence_id": 0 }, { "id": 21, "title": "核销兑换券", "menu_id": 18, "sort": 0, "url": "order_coupon", "icon": "order_hxdhq.svg", "competence_id": 0 }, { "id": 22, "title": "核销会员权益", "menu_id": 18, "sort": 0, "url": "order_customer", "icon": "order_hxhyqy.svg", "competence_id": 0 }] }, { "id": 23, "title": "个人中心", "menu_id": 0, "sort": 0, "url": null, "icon": null, "competence_id": 0, "child": [{ "id": 24, "title": "我的信息", "menu_id": 23, "sort": 0, "url": "my_info", "icon": "center_wdxx.svg", "competence_id": 0 }, { "id": 25, "title": "推广二维码", "menu_id": 23, "sort": 0, "url": "my_qrcode", "icon": "center_ewm.svg", "competence_id": 0 }, { "id": 26, "title": "我的会员", "menu_id": 23, "sort": 0, "url": "my_customer", "icon": "center_wdhy.svg", "competence_id": 0 }, { "id": 27, "title": "我的代办", "menu_id": 23, "sort": 0, "url": "my_agent", "icon": "center_wddb.svg", "competence_id": 0 }] }, { "id": 5, "title": "会员管理", "menu_id": 0, "sort": 0, "url": "", "icon": "", "competence_id": 0, "child": [{ "id": 16, "title": "客服消息设置", "menu_id": 5, "sort": 0, "url": "", "icon": "vip_kfxxsz.svg", "competence_id": 0 }, { "id": 17, "title": "自定义菜单", "menu_id": 5, "sort": 0, "url": "customMenu", "icon": "vip_zdycd.svg", "competence_id": 0 }, { "id": 15, "title": "关键字回复", "menu_id": 5, "sort": 0, "url": "replyList", "icon": "vip_gjzhf.svg", "competence_id": 0 }, { "id": 14, "title": "电子券", "menu_id": 5, "sort": 0, "url": "", "icon": "vip_dzq.svg", "competence_id": 0 }, { "id": 13, "title": "客服经理", "menu_id": 5, "sort": 0, "url": "", "icon": "vip_kfjl.svg", "competence_id": 0 }, { "id": 6, "title": "标签管理", "menu_id": 5, "sort": 0, "url": "label", "icon": "vip_bqgl.svg", "competence_id": 0 }, { "id": 7, "title": "积分规则", "menu_id": 5, "sort": 0, "url": "integral", "icon": "vip_jfgz.svg", "competence_id": 0 }, { "id": 8, "title": "会员等级", "menu_id": 5, "sort": 0, "url": "gradeList", "icon": "vip_hydj.svg", "competence_id": 0 }, { "id": 9, "title": "生日提醒", "menu_id": 5, "sort": 0, "url": "birthday", "icon": "vip_srtx.svg", "competence_id": 0 }, { "id": 10, "title": "售后代办", "menu_id": 5, "sort": 0, "url": "afterSaleList", "icon": "vip_shdb.svg", "competence_id": 0 }, { "id": 11, "title": "会员代办", "menu_id": 5, "sort": 0, "url": "backLog", "icon": "vip_hydb.svg", "competence_id": 0 }, { "id": 12, "title": "群发消息", "menu_id": 5, "sort": 0, "url": "msgList", "icon": "vip_qfxx.svg", "competence_id": 0 }] }] } } <<< error ~~~ ## 我的快捷菜单 (取消使用) ~~~[api] post:/home/mymenu <<< success { "code": 0, "info": "成功", "data": [{ "user_id": 1000, "menu_id": 1, "id": 2, "title": "添加门店", "sort": 0, "url": "shop\/add", "icon": "shopadd", "competence_id": 0 }, { "user_id": 1000, "menu_id": 4, "id": 5, "title": "添加员工", "sort": 0, "url": "user\/add", "icon": "useradd", "competence_id": 0 }] } <<< error ~~~ ## 我的全部菜单(取消使用) ~~~[api] post:/home/myallmenu <<< success { "code": 0, "info": "成功", "data": [{ "id": 1, "title": "门店管理", "menu_id": 0, "sort": 0, "url": "shop\/list", "icon": "shoplist", "competence_id": 0, "child": [{ "id": 2, "title": "添加门店", "menu_id": 1, "sort": 0, "url": "shop\/add", "icon": "shopadd", "competence_id": 0 }, { "id": 3, "title": "编辑门店", "menu_id": 1, "sort": 0, "url": "shop\/edit", "icon": "shopedit", "competence_id": 0 }] }, { "id": 4, "title": "员工管理", "menu_id": 0, "sort": 0, "url": "user\/list", "icon": "userlist", "competence_id": 0, "child": [{ "id": 5, "title": "添加员工", "menu_id": 4, "sort": 0, "url": "user\/add", "icon": "useradd", "competence_id": 0 }] }] } <<< error ~~~ ## 设置我的快捷菜单 ~~~[api] post:/home/setmymenu *array:menu_id#菜单id (数组) <<< success { "code": 0, "info": "成功", "data": 2 } <<< error ~~~ ## 上传至微信永久素材图片 ~~~[api] post:/home/upload *string:image= 图片#图片 *string:type= vip#图片类型:vip为会员卡图,没有传空 string:width= 宽度#图片宽度 string:height= 高度#图片高度 <<< success { "code": 0, "info": "成功", "data":{ "media_id":"3R1egyJUGT5t4NY2dfoxAp6hq5VgT24aeDYjml47Zi8", "url":"http://mmbiz.qpic.cn/mmbiz_jpg/icP3an7bibaAvmSH1rrkP8YLLHJluFFTQerjHBRr5MGWFlKbCMR8FuBnicSLicZHiaGtuianMhmaF13Zp0uFwRYtUfAg\/0?wx_fmt=jpeg" } } <<< error ~~~ ## 获取微信永久素材 ~~~[api] post:/home/getnews *string:page=默认值#分页,首页为1 <<< success { "code": 0, "info": "成功", "data": [{ "media_id": "4xRP4CRWoy-9tksTe7_D-dzJJO6t731gftxwhM8Ld_4", "title": "这是一个测试", "update_time": "2018-10-29" }, { "media_id": "4xRP4CRWoy-9tksTe7_D-aJX76KzQjdwJ_3Jf46qgww", "title": "这是一个测试", "update_time": "2018-10-29" }] } <<< error ~~~