From c6f57b6c8ae7e6d2bc04e6c680ef8b3f25aa665a Mon Sep 17 00:00:00 2001
From: Wik-T <812952667@qq.com>
Date: Thu, 4 Aug 2022 18:03:20 +0800
Subject: [PATCH] =?UTF-8?q?1.=E4=B8=8A=E4=BC=A0=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 98 ++++++++--------
pages/goods/recording/recording.vue | 94 ++++++++-------
pages/goods/refuel-confirm/refuel-confirm.vue | 2 +-
pages/goods/refuel-details/refuel-details.vue | 9 +-
pages/goods/refuel/refuel.vue | 3 +-
pages/order/confirmation.vue | 6 +-
pages/tabBar/category/category.vue | 109 +++++++++---------
pages/tabBar/home/home.vue | 4 +-
pages/tabBar/user/user.vue | 18 +--
pages/welcome/welcome.vue | 8 +-
qianzhu-KFC/buffet-order/buffet-order.vue | 4 +-
qianzhu-Starbucks/changeRegin/changeRegin.vue | 6 +-
subPages/recharge-centre/recharge-centre.vue | 6 +-
13 files changed, 191 insertions(+), 176 deletions(-)
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 @@