1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- const { getCategoryAPI } = require('../../API/appraise')
- Page({
-
- data: {
- classifyList: []
- },
-
- detailClassifyTo({ currentTarget }) {
- const id = currentTarget.dataset.num;
- const title = currentTarget.dataset.title;
- wx.navigateTo({
- url: '/pages/classify_detail/classify_detail?classify_id=' + id + '&title=' + title,
- })
- },
-
- onLoad(options) {
- this.getClassifyList()
- },
- getClassifyList() {
- getCategoryAPI(this.data)
- .then((res) => {
- const { code, data, mesage } = res.data;
- this.setData({
- classifyList: data
- })
- })
- },
-
- onReady() {
- },
-
- onShow() {
- },
-
- onHide() {
- },
-
- onUnload() {
- },
-
- onPullDownRefresh() {
- },
-
- onReachBottom() {
- },
-
- onShareAppMessage() {
- }
- })
|