From ea9e6ae292190b359a4865bb39f4f3b38567a545 Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Mon, 24 Jun 2024 16:51:25 +0800 Subject: [PATCH] add --- pageQuota/balanceDetail/index.vue | 75 ++- pages/my/my.vue | 10 - utils/push.js | 751 ++++++++++++++++++++++++++++++ 3 files changed, 809 insertions(+), 27 deletions(-) create mode 100644 utils/push.js diff --git a/pageQuota/balanceDetail/index.vue b/pageQuota/balanceDetail/index.vue index 8a098ad..a38036c 100644 --- a/pageQuota/balanceDetail/index.vue +++ b/pageQuota/balanceDetail/index.vue @@ -3,17 +3,49 @@ - - - - {{item.title}} - {{item.amount}} - - - {{item.create_time}} - 余额 {{item.before_balance}} + + + + + {{item.title}} + {{ item.type=='in'?'+':'-' }}{{item.amount}} + + + {{item.create_time}} + 余额 {{item.before_balance}} + + + + + {{item.title}} + {{ item.financial_pm?'+':'-' }}{{item.number}} + + + {{item.create_time}} + + + + + + + {{item.order_sn}} + {{ item.status?'+':'-' }}{{item.number}} + + + {{item.create_time}} + + + + + + + + @@ -24,13 +56,14 @@ reactive } from "vue" import { - onLoad + onLoad, + onPullDownRefresh } from "@dcloudio/uni-app" import { getFundList } from "@/api/address.js" - + const navLists = ['', '采购款明细', '余额明细', '礼品券明细', '返还金明细'] const tabsLst = reactive([{ name: '全部' }, @@ -50,20 +83,28 @@ const lists = ref([]) - let type = '' - const getLists = async () => { + let type = ref('') + const getLists = async (isPullDown = false) => { let res = await getFundList({ - type, + type: type.value, mark: mark.value || '' }) lists.value = res.data.lists + if (isPullDown) uni.stopPullDownRefresh() + } - onLoad((opt) => { - type = opt.type + type.value = opt.type + uni.setNavigationBarTitle({ + title: navLists[type.value] + }) getLists() }) + + onPullDownRefresh(() => { + getLists(true) + })