{{_object}}_lists: [], {{_object}}_param: { limit: 10, page: 1, keyword: '' }, {{_object}}_count: 0, {{_object}}_isloading: false,
this.get_{{_object}}_lists(true) // onShow()
get_{{_object}}_lists(reload = false) { this.{{_object}}_isloading = true; if(reload){ this.{{_object}}_lists = [] } uni.request({ url: `${this.__API__}????????`, method: 'post', data: this.{{_object}}_param, header: {'content-type': 'application/x-www-form-urlencoded'}, success: (res) => { this.{{_object}}_isloading = false; this.{{_object}}_count = res.data.count this.{{_object}}_lists = res.data.data } }) }, {{_object}}_current_change(val) { this.{{_object}}_param.page = val this.get_{{_object}}_lists(true) }
...