diff --git a/pages/user/userqy/userqy.js b/pages/user/userqy/userqy.js index f44aee0..9927f1d 100644 --- a/pages/user/userqy/userqy.js +++ b/pages/user/userqy/userqy.js @@ -27,6 +27,7 @@ Page({ is_full:0, //是否满级 cur_g_num:0,//当前级需要多少钱 + userqy_color:null,//颜色值 }, swiperChange: function (e) { @@ -57,6 +58,14 @@ Page({ var gl_data=getApp().globalData; var sw_cur_id=0; var th=this; + //颜色值 + getApp().getConfig2(function(e) { + var getuserqy_color=e.userqy_color; + if (getuserqy_color) getuserqy_color = JSON.parse(getuserqy_color) + if(getuserqy_color){ + th.setData({userqy_color:getuserqy_color}) + } + }) //获取成长值 await getApp().request.promiseGet("/api/weshop/users/grade/aftervipinfo/get",{ data:{ storeId:os.stoid,userId:gl_data.user_id } diff --git a/pages/user/userqy/userqy.wxml b/pages/user/userqy/userqy.wxml index 78ca589..28f1f24 100644 --- a/pages/user/userqy/userqy.wxml +++ b/pages/user/userqy/userqy.wxml @@ -2,22 +2,22 @@ - + - + {{userinfo.nickname}} {{GradeName}} - 成长值 - - - + 成长值 + + + - {{filter.pInt(cz_val)}} / {{need_money}} - {{filter.pInt(cz_val)}} + {{filter.pInt(cz_val)}} / {{need_money}} + {{filter.pInt(cz_val)}} diff --git a/pages/user/userqy/userqy.wxss b/pages/user/userqy/userqy.wxss index ac250b8..9e039aa 100644 --- a/pages/user/userqy/userqy.wxss +++ b/pages/user/userqy/userqy.wxss @@ -9,7 +9,13 @@ } .xc-userqy-frame .user-frame .arc{ width: 750rpx; - height: 444rpx; + height: 444rpx; + left: -20%; + top: 0; + z-index: -1; + content: ''; + border-radius: 0 0 20% 20%; + background: #ff7295; } .xc-userqy-frame .user-frame .user-img{