From 899f36a45f5f0b7e6a1676354247a9ec37780341 Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Mon, 25 Dec 2023 18:14:03 +0800 Subject: [PATCH] bug优化 --- components/diy_user_info/diy_user_info.js | 4 ++++ components/diy_user_info/diy_user_info.wxss | 3 +++ components/diy_user_info/style3.wxml | 67 +++++++++++++++++++++++++++++++++++++------------------------------ components/diy_user_my_rights/diy_user_my_rights.wxml | 2 +- pages/user/index/index.js | 8 +++++--- 5 files changed, 50 insertions(+), 34 deletions(-) diff --git a/components/diy_user_info/diy_user_info.js b/components/diy_user_info/diy_user_info.js index 431ea7c..d85bdec 100644 --- a/components/diy_user_info/diy_user_info.js +++ b/components/diy_user_info/diy_user_info.js @@ -188,6 +188,10 @@ Component({ }, + go_info:function (){ + getApp().goto("/packageG/pages/user/userinfo/userinfo"); + } + } }) \ No newline at end of file diff --git a/components/diy_user_info/diy_user_info.wxss b/components/diy_user_info/diy_user_info.wxss index df7caed..d12f368 100644 --- a/components/diy_user_info/diy_user_info.wxss +++ b/components/diy_user_info/diy_user_info.wxss @@ -237,3 +237,6 @@ justify-content: center; /* margin-top: 20rpx; */ } +.numfont { + font-size: 28rpx; +} \ No newline at end of file diff --git a/components/diy_user_info/style3.wxml b/components/diy_user_info/style3.wxml index 769e373..6ed3f7b 100644 --- a/components/diy_user_info/style3.wxml +++ b/components/diy_user_info/style3.wxml @@ -1,28 +1,46 @@ - - - - {{userInfo.nickname}} - - - - {{qy_data.GradeName}} + + + + + {{userInfo.nickname}} - - - - - - 距{{qy_data.nextGradeName}}还有{{qy_data.need_money-qy_data.cz_val}} - - + + + {{qy_data.GradeName}} + + - + + + 距{{qy_data.nextGradeName}}还有{{qy_data.need_money-qy_data.cz_val}} + + + + + + - + + + + + + + {{pulscardname}} + + + + + + + + + + @@ -34,17 +52,6 @@ - - - - - - - {{pulscardname}} - - - - diff --git a/pages/user/index/index.js b/pages/user/index/index.js index c2388ad..14eca51 100644 --- a/pages/user/index/index.js +++ b/pages/user/index/index.js @@ -537,7 +537,7 @@ Page({ //自定义组件一定要等到页面加载完了,才来调用selectComponnent setTimeout(function () { - th.setData({ is_show_recommend:true,pshow:1 }) + th.setData({ is_show_recommend:true }) if (getApp().globalData.user_id) getApp().requestCardNum(th); var goods_list = th.selectComponent("#goods_recommend"); //组件的id @@ -548,10 +548,12 @@ Page({ }, 1200) - - } + setTimeout(()=>{ + th.setData({ pshow:1 }) + },500) + }, //获取会员权益等级是否升级 -- libgit2 0.21.4