From a03b724abfdad275ee0e83aabd359ce07ef9e91c Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Mon, 18 Dec 2023 17:26:21 +0800 Subject: [PATCH] 自定义样式的优化 --- components/diy_user_info/diy_user_info.wxml | 16 ++++++++++++++-- components/diy_user_info/diy_user_info.wxss | 6 +++--- components/diy_user_info/style1.wxml | 2 +- components/diy_user_info/style2.wxml | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ components/diy_user_info/style3.wxml | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ components/diy_user_my_rights/diy_user_my_rights.wxss | 2 +- packageG/pages/user_template/index.js | 5 ++--- 7 files changed, 197 insertions(+), 10 deletions(-) create mode 100644 components/diy_user_info/style2.wxml create mode 100644 components/diy_user_info/style3.wxml diff --git a/components/diy_user_info/diy_user_info.wxml b/components/diy_user_info/diy_user_info.wxml index 2745e22..ea93ec3 100644 --- a/components/diy_user_info/diy_user_info.wxml +++ b/components/diy_user_info/diy_user_info.wxml @@ -2,17 +2,29 @@ - + s + + s + + + s + - + + + + + + + diff --git a/components/diy_user_info/diy_user_info.wxss b/components/diy_user_info/diy_user_info.wxss index e208501..8c81ba1 100644 --- a/components/diy_user_info/diy_user_info.wxss +++ b/components/diy_user_info/diy_user_info.wxss @@ -117,7 +117,7 @@ } .xc-assets { width: 94%; - bottom: 32rpx; + bottom: 26rpx; color: #fff; line-height: 46rpx; margin-left: 10rpx; @@ -130,8 +130,8 @@ background: #fe9db5; width: 70rpx; height: 70rpx; */ - top: 70rpx; - right: 64rpx; + top: 40rpx; + right: 40rpx; } .xc-qrcode { diff --git a/components/diy_user_info/style1.wxml b/components/diy_user_info/style1.wxml index 70b7f19..1e78e87 100644 --- a/components/diy_user_info/style1.wxml +++ b/components/diy_user_info/style1.wxml @@ -45,7 +45,7 @@ - + 会员卡 diff --git a/components/diy_user_info/style2.wxml b/components/diy_user_info/style2.wxml new file mode 100644 index 0000000..e46205b --- /dev/null +++ b/components/diy_user_info/style2.wxml @@ -0,0 +1,94 @@ + + + + + + + + + + {{pulscardname}} + + + + + + + + {{userInfo.nickname}} + + + {{qy_data.GradeName}} + + + + + {{" "}} + {{rfmName}} + {{qy_data.cz_val}} / {{qy_data.need_money}} + + + {{" "}} + {{rfmName}} {{cz_val}} + + + + + + + + + + + + 请点击注册 + + + + + + + 会员卡 + + + + + + + + + + + + {{yuer?yuer:0}} + 余额 + + + + {{udata.Balance?udata.Balance:0}} + 储值款 + + + + {{udata.Integral?udata.Integral:0}} + 积分 + + + + {{udata.CashCount+byquan?udata.CashCount+byquan:0}} + 优惠券 + + + + + + + \ No newline at end of file diff --git a/components/diy_user_info/style3.wxml b/components/diy_user_info/style3.wxml new file mode 100644 index 0000000..90e23b0 --- /dev/null +++ b/components/diy_user_info/style3.wxml @@ -0,0 +1,82 @@ + + + + + + + + {{userInfo.nickname}} + + + + + + {{" "}} + {{rfmName}} + {{qy_data.cz_val}} / {{qy_data.need_money}} + + + {{" "}} + {{rfmName}} {{cz_val}} + + + + + + + + + + + + 请点击注册 + + + + + + + 会员卡 + + + + + + + + + + + + {{yuer?yuer:0}} + 余额 + + + + {{udata.Balance?udata.Balance:0}} + 储值款 + + + + {{udata.Integral?udata.Integral:0}} + 积分 + + + + {{udata.CashCount+byquan?udata.CashCount+byquan:0}} + 优惠券 + + + + + + + \ No newline at end of file diff --git a/components/diy_user_my_rights/diy_user_my_rights.wxss b/components/diy_user_my_rights/diy_user_my_rights.wxss index 74624b4..6071e1c 100644 --- a/components/diy_user_my_rights/diy_user_my_rights.wxss +++ b/components/diy_user_my_rights/diy_user_my_rights.wxss @@ -19,7 +19,7 @@ .xc-title-img { width: 50rpx; height: 50rpx; - margin-left: 20rpx;s + margin-left: 20rpx; } .xc-title-content { diff --git a/packageG/pages/user_template/index.js b/packageG/pages/user_template/index.js index 15edd68..6c2a3c1 100644 --- a/packageG/pages/user_template/index.js +++ b/packageG/pages/user_template/index.js @@ -46,13 +46,12 @@ Page({ } }) } - //判断有没有登陆 setTimeout(() =>{ if (!getApp().globalData.userInfo) { getApp().goto('/packageE/pages/togoin/togoin'); } - },1000) + },1500) }, @@ -320,7 +319,7 @@ Page({ goods_list.get_list(); } - }, 1000) + }, 1500) }, -- libgit2 0.21.4