Loading…

Banner carousel chart

Table of contents on this page
# Get all Banner types ```javascript WXAPI.bannerTypes() ``` ```json { code: 0, msg: 'success', data: ['a', 'b', 'c'] } ``` # Get the Banner list ["Online Walkthrough"](https://bi.cool/project/m5vDU78/embed?bi-active-file=Banner.vue) ```javascript WXAPI.banners({ type: '' }) ``` + type This parameter does not need to be passed. Multiple types are separated by English commas. If this parameter is passed, only banner data of this type will be returned. ```json { "code": 0, "data": [ { "businessId": 0, "dateAdd": "2019-12-29 09:58:08", "dateUpdate": "2020-02-20 09:54:27", "id": 49755, "linkUrl": "", "paixu": 0, "picUrl": "https://dcdn.it120.cc/2019/12/29/8396f65d-d615-46d8-b2e5-aa41820b9fe5.png", "status": 0, "statusStr": "display", "title": "Home page carousel", "type": "index", "userId": 951 } ], "msg": "success" } ``` + businessId business number filled in in the background + linkUrl jump link filled in in the background + picUrl carousel image address + title carousel title + type type data filled in in the background + linkType 0 normal link; 1 jump applet + appid Mini program appID