diff --git a/pages/user/index/index.js b/pages/user/index/index.js index 53f1eb9..d849800 100644 --- a/pages/user/index/index.js +++ b/pages/user/index/index.js @@ -199,6 +199,9 @@ Page({ if (e != undefined && e != null && e.mobile) { + this.puls_user(); + + if(this.data.has_rj==0){ var portrait_req = { @@ -1137,6 +1140,27 @@ Page({ }); }, + //-----Plus会员获取----------- + puls_user: function() { + var th = this; + getApp().request.get("/api/weshop/plus/vip/mem/list", { + data: { + storeId: os.stoid, + userId: getApp().globalData.user_id, + }, + success: function(su) { + + if (su.data.code == 0) { + var cardname = su.data.data[0].MemCardName; + if(cardname.length>5) cardname=cardname.substring(0,5); //保留5个字 + th.setData({ + pulscardname: cardname + }); + } + } + }); + }, + diff --git a/pages/user/index/index.wxml b/pages/user/index/index.wxml index 28aa2b6..8c6f061 100644 --- a/pages/user/index/index.wxml +++ b/pages/user/index/index.wxml @@ -9,7 +9,16 @@ - + + + + + + {{pulscardname}} + + + + {{userInfo.nickname}} @@ -18,6 +27,9 @@ + + + {{" "}} diff --git a/pages/user/index/index.wxss b/pages/user/index/index.wxss index a04870c..6d8193f 100644 --- a/pages/user/index/index.wxss +++ b/pages/user/index/index.wxss @@ -752,8 +752,30 @@ button::after { } - .action .icon-guan { left: auto !important; right: 20rpx !important; +} + +.plusMax { + background: linear-gradient(to bottom, #4c3217, #010100); + height: 40rpx; + border-radius: 20rpx; + line-height: 40rpx; + padding-left: 15rpx; + padding-right: 15rpx; + font-size: 20rpx; + position: absolute; + left: 50%; + bottom: -20rpx; + white-space: nowrap; + transform: translate(-50%, 0); + color: #fff; + +} + +.fuls { + width: 25rpx; + height: 25rpx; + margin-right: 5rpx; } \ No newline at end of file