diff --git a/App.vue b/App.vue index f6e8c3c..ca2a1fb 100644 --- a/App.vue +++ b/App.vue @@ -1,62 +1,62 @@ diff --git a/pages/goods/recording/recording.vue b/pages/goods/recording/recording.vue index e620591..cb669cd 100644 --- a/pages/goods/recording/recording.vue +++ b/pages/goods/recording/recording.vue @@ -5,24 +5,43 @@ - - - - 积分充值 - - - +{{recod.gold}} + + + 积分收支明细 + 7天即将过期积分 + + + + - - -{{recod.gold}} + + - - {{recod.createTime | formatDate('-')}} + + + + + + 积分充值 + + + {{recod.createTime | formatDate('-')}} + + + + + +{{recod.gold}} + + + -{{recod.gold}} + + + + - - {{ loadingText }} + @@ -34,27 +53,26 @@ export default { data() { return { - typeId: '', + typeId: 1, recordInfo: [], imagewxUrl: app.globalData.imageWxImg, - imgadres:'noorder.png', + imgadres: 'noorder.png', pageNum: 1, pageSize: 10, isNoMoreData: false, - loadingText: '' } }, onLoad(option) { - this.typeId = option.id; - if (this.typeId == 1) { - uni.setNavigationBarTitle({ - title: '充值记录' - }) - } else { - uni.setNavigationBarTitle({ - title: '消费记录' - }) - } + // this.typeId = option.id; + // if (this.typeId == 1) { + uni.setNavigationBarTitle({ + title: '积分记录' + }) + // } else { + // uni.setNavigationBarTitle({ + // title: '消费记录' + // }) + // } this.getUserGoldRecLists(); }, filters: { @@ -79,13 +97,16 @@ this.getUserGoldRecLists(); }, methods: { + //切换状态 + changestu(item) { + this.typeId = item; + }, getUserGoldRecLists() { uni.showLoading({ title: '加载中...' }) if (this.isNoMoreData) { uni.hideLoading() - this.loadingText = '到底了'; return false; } let pagenum = this.pageNum; @@ -98,7 +119,7 @@ if (res.return_code == '000000') { uni.hideLoading(); this.isNoMoreData = res.return_data.list.length == this.pageSize ? false : true; - if(res.return_data.total == (this.pageNum * this.pageSize)){ + if (res.return_data.total == (this.pageNum * this.pageSize)) { this.isNoMoreData = true; } this.pageNum = res.return_data.list.length == this.pageSize ? ++pagenum : pagenum; @@ -115,28 +136,13 @@