diff --git a/me/gift/gift.vue b/me/gift/gift.vue index bec9f94..e2dbbe9 100644 --- a/me/gift/gift.vue +++ b/me/gift/gift.vue @@ -37,8 +37,13 @@ background: { backgroundColor: 'transparent' }, + query: { + page: 10, + limit: 1, + }, status: 'nomore', hasAjax:true, + source:null, list:[] } }, @@ -49,11 +54,22 @@ }) }, init(){ - this.$Request.getT('app/discSpinningRecord/selectDiscSpinningRecord') + + if (this.source) { + this.query.source = this.source + } + this.$Request.getT('app/discSpinningRecord/selectDiscSpinningRecord', this.query).then(res => { + if (res.code == 0 ) { + this.list = res.data.records + } + }) } }, - onShow() { + onLoad(options) { console.log('onShow'); + if ( options.source ) { + this.source = options.source + } this.init() } }