From 173e7051f1c0a5e167f1447e6d1794526d28ea46 Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Wed, 12 Jun 2024 15:26:14 +0800 Subject: [PATCH] add --- pageQuota/Balance/index.vue | 20 +++++++++++---- pages/my/my.vue | 50 +------------------------------------ 2 files changed, 16 insertions(+), 54 deletions(-) diff --git a/pageQuota/Balance/index.vue b/pageQuota/Balance/index.vue index de27058..7dd72d5 100644 --- a/pageQuota/Balance/index.vue +++ b/pageQuota/Balance/index.vue @@ -31,7 +31,7 @@ - + {{item.title}} - +{{item.amount}} + +{{item.amount}} -{{item.amount}} - {{item.create_time}} @@ -71,6 +71,9 @@ chargeListApi, capitalCountAPi } from "@/api/user.js" + import { + onPullDownRefresh + } from "@dcloudio/uni-app" import { ref } from "vue" @@ -79,8 +82,6 @@ const mobile = ref('') const order = ref(0) const recharge = ref(0) - // https://lihai001.oss-cn-chengdu.aliyuncs.com/attach/b6932202406082138255928.png - const getUser = () => { userInfoApi().then(res => { now_money.value = res.data.now_money @@ -110,6 +111,15 @@ }) } + onPullDownRefresh(() => { + getUser() + getLists() + getShop() + setTimeout(() => { + uni.stopPullDownRefresh() + }, 2000) + }) + getUser() getLists() getShop() diff --git a/pages/my/my.vue b/pages/my/my.vue index 24bcd4f..d539d02 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -6,55 +6,15 @@ - + {{userInfo.nickname}} ID: {{userInfo.id}} - - - - 供销经营礼包 @@ -64,10 +24,6 @@ - - - - 我的订单 @@ -191,10 +147,7 @@ overflow: hidden; position: relative; width: 750rpx; - height: 436rpx; - /* #ifdef H5 */ height: 350rpx; - /* #endif */ .bg { width: 100%; @@ -221,7 +174,6 @@ .u-phone { font-size: 32rpx; - margin-bottom: 16rpx; } .u-id {