Loading…

System Announcement

# Get the announcement list ```javascript WXAPI.noticeList({ type: '000', page: 1, pageSize: 10 }) ``` + type announcement type, if this parameter is passed, only the data with the background announcement type of this value will be obtained + page gets the data on which page + pageSize How many pieces of data are obtained per page ```json { "code": 0, "data": { "totalRow": 1, "totalPage": 1, "dataList": [ { "dateAdd": "2017-09-16 17:20:43", "dateUpdate": "2019-03-18 11:05:17", "id": 161, "isShow": true, "title": "The mall is newly opened with lots of discounts. Please click and click for details.", "userId": 951 } ] }, "msg": "success" } ``` + id announcement id + title announcement title + dateAdd announcement release time # Get the latest announcement ```javascript WXAPI.noticeLastOne(type) ``` + type announcement type, if this parameter is passed, only the data with the background announcement type of this value will be obtained ```json { "code": 0, "data": { "content": "

Dear customer:

", "dateAdd": "2017-09-16 17:20:43", "dateUpdate": "2019-03-18 11:05:17", "id": 161, "isShow": true, "title": "The mall is newly opened with lots of discounts. Please click and click for details.", "userId": 951 }, "msg": "success" } ``` + id announcement id + title announcement title + dateAdd announcement release time + content Detailed content of the announcement (html format) # Get announcement details ```javascript WXAPI.noticeDetail(id) ``` + id announcement id ```json { "code": 0, "data": { "content": "

Dear customer:

", "dateAdd": "2017-09-16 17:20:43", "dateUpdate": "2019-03-18 11:05:17", "id": 161, "isShow": true, "title": "The mall is newly opened with lots of discounts. Please click and click for details.", "userId": 951 }, "msg": "success" } ``` + id announcement id + title announcement title + dateAdd announcement release time + content Detailed content of the announcement (html format)