From 8362ea89fd98fd7d3740afa817fa33d2185cec60 Mon Sep 17 00:00:00 2001 From: mx <1289317512@qq.com> Date: Fri, 13 Sep 2024 10:06:26 +0800 Subject: [PATCH] fix bug --- pages/fundDetails.vue | 2 +- pages/index.vue | 5 ++++- pages/taskDetails.vue | 14 ++++++++++++-- pages/work/index.vue | 8 +++++++- static/images/fundrecord/paystatus-2.png | Bin 0 -> 1108 bytes static/images/fundrecord/paystatus-3.png | Bin 0 -> 940 bytes 6 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 static/images/fundrecord/paystatus-2.png create mode 100644 static/images/fundrecord/paystatus-3.png diff --git a/pages/fundDetails.vue b/pages/fundDetails.vue index 290fda3..90a607a 100644 --- a/pages/fundDetails.vue +++ b/pages/fundDetails.vue @@ -126,10 +126,10 @@ onLoad: function(options) { this.queryParams.id = options.id; this.getInfo(); - }, methods: { + getInfo() { var that = this; getFxDetails(this.queryParams).then(response => { diff --git a/pages/index.vue b/pages/index.vue index ff8c1a1..0dd271e 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -150,7 +150,7 @@ statusBarHeight: 0, queryParams: { pageNum: 1, - pageSize: 3, + pageSize: 10, dateStatus: 0, taskName: null, taskDate: null, @@ -197,6 +197,9 @@ this.getList(); }, methods:{ + reload(){ + this.refresh(); + }, openSelect(){ // 通过组件定义的ref调用uni-popup方法 ,如果传入参数 ,type 属性将失效 ,仅支持 ['top','left','bottom','right','center'] this.$refs.popup.open('bottom') diff --git a/pages/taskDetails.vue b/pages/taskDetails.vue index 8be2688..9e0ecfb 100644 --- a/pages/taskDetails.vue +++ b/pages/taskDetails.vue @@ -112,9 +112,19 @@ onLoad: function(options) { this.queryParams.id = options.id; this.getInfo(); - }, - + onUnload: function() { + // console.log('关闭页面'); + var pages = getCurrentPages(); + // console.log(pages.length); + var Page = pages[pages.length-1];//当前页 + // console.log(pages[pages.length-1].route);//输出当前路由 + var prevPage = pages[pages.length-2]; + // console.log(pages[pages.length-2].route);//输出上一个页面的路由 + if(pages[pages.length-2].route == 'pages/index'){ //确定要返回到相应页面,在触发 + prevPage.$vm.reload() + } + }, methods:{ getInfo() { var that = this; diff --git a/pages/work/index.vue b/pages/work/index.vue index 83251f5..fb43c78 100644 --- a/pages/work/index.vue +++ b/pages/work/index.vue @@ -910,7 +910,13 @@ height: 35rpx; } .status2{ - background-image: url("/static/images/fundrecord/wf.png"); + background-image: url("/static/images/fundrecord/paystatus-2.png"); + background-size: 100% 100%; + width: 100rpx; + height: 35rpx; + } + .status3{ + background-image: url("/static/images/fundrecord/paystatus-3.png"); background-size: 100% 100%; width: 100rpx; height: 35rpx; diff --git a/static/images/fundrecord/paystatus-2.png b/static/images/fundrecord/paystatus-2.png new file mode 100644 index 0000000000000000000000000000000000000000..7921fdbf94dcb69a44fe80346941e4024637bbd9 GIT binary patch literal 1108 zcmV-a1grarP){Y7$?)LC^yY!jN=OU2%-R}6i-RU!#_NvtGX0qx;p&l!@Da3HWyO4hI700009a7bBm001r{001r{0eGc9b^rhaf=NU{R9J<*nAw)3 zAPk1>wWilU?4Zc|Kjs`FAZXW|xoLAzZjdi4Vog;ZZ@()aZ_^;3&+qi>^6=6jKYpLb z^3*(izKBTlUYNJbh?V(xA(7}QBmex*NGa>d&yW9~`7%v!`_&>m5h;_179)B!9;ytf zCv8st5fFC~!Hm~WLna+;9s@~a4Z_+DRPcPXa3hgTI3jfsB1%Ua>2><*^(G<-HcL97 zV+v?K&izd`!Jd&4MPwb&%VU>H&#-2eE=QRy7KmDF?_uO7&C2B`WDr7#IU^O8VFJ-d zhg_jp`CP)XYON)aMiXJ%>E?6-lu{}ns7>sKRFotMNLt#27T;Tk6gZ0}@- zbyKm4F)p`}ZoO$s1KdLfh@iN&mix$bs)ZeC(#kYfZLS^P<&u-xkZGov*AUYu>xhhi zDL#hQ#1cwMsj|I!awsd2{Gr0x%&ua2DM&-I4#))vt>uDjcQcKV4tg)YmH}+NUz5=z zJ+i0zJ~ATOf>L|Rb+%nHcfovI^R~sJOV)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