From 7c339bc6179fd32e94ac9f91c1eb674d3f628fdd Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Mon, 23 Dec 2024 09:41:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=BD=E8=B1=A1=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- me/gift/gift.vue | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) 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() } }