@@ -45,9 +45,9 @@ | |||||
}, | }, | ||||
"window": { | "window": { | ||||
"backgroundTextStyle": "dark", | "backgroundTextStyle": "dark", | ||||
"navigationBarBackgroundColor": "#FFFFFF", | |||||
"navigationBarBackgroundColor": "#02C0FF", | |||||
"navigationBarTitleText": "WeChat", | "navigationBarTitleText": "WeChat", | ||||
"navigationBarTextStyle": "black" | |||||
"navigationBarTextStyle": "white" | |||||
}, | }, | ||||
"networkTimeout": { | "networkTimeout": { | ||||
"request": 30000, | "request": 30000, | ||||
@@ -36,6 +36,7 @@ Page({ | |||||
display: 'none', | display: 'none', | ||||
display1:'none', | display1:'none', | ||||
optionsData:null, | optionsData:null, | ||||
score: '0', | |||||
page: 1 // 刷新进入页面时已经加载了第一页数据,onReachBottom时 page++,从第2页开始加载 | page: 1 // 刷新进入页面时已经加载了第一页数据,onReachBottom时 page++,从第2页开始加载 | ||||
}, | }, | ||||
close:function(){ | close:function(){ | ||||
@@ -104,8 +105,8 @@ Page({ | |||||
}, | }, | ||||
//跳往个人中心 | //跳往个人中心 | ||||
gotouser:function(){ | gotouser:function(){ | ||||
wx.navigateTo({ | |||||
url: '/pages/user/czdetail', | |||||
wx.switchTab({ | |||||
url: '/pages/user/index', | |||||
}) | }) | ||||
}, | }, | ||||
//搜索门店 | //搜索门店 | ||||
@@ -272,7 +273,8 @@ Page({ | |||||
}).then(res => { | }).then(res => { | ||||
console.log(res) | console.log(res) | ||||
that.setData({ | that.setData({ | ||||
levelName: res.data.levelName | |||||
levelName: res.data.levelName, | |||||
score: res.data.score | |||||
}) | }) | ||||
if (res.data.nickName) { | if (res.data.nickName) { | ||||
that.setData({ | that.setData({ | ||||
@@ -23,6 +23,16 @@ | |||||
</view> | </view> | ||||
<!-- 会员信息 --> | <!-- 会员信息 --> | ||||
<view class='userinfo'bindtap='gotouser'> | <view class='userinfo'bindtap='gotouser'> | ||||
<view class="user-avatar" bindtap='gotograde'> | |||||
<open-data class="open" type="userAvatarUrl"></open-data> | |||||
</view> | |||||
<view class="user-data" bindtap='gotograde'> | |||||
<open-data type="userNickName"></open-data> | |||||
<text class='chengzhang'>{{levelName}}</text> | |||||
<view class="view">成长值<text class="score">{{score}}</text> | |||||
优惠劵<text class="score">{{score}}</text> | |||||
</view> | |||||
</view> | |||||
</view> | </view> | ||||
<!-- 砍价专场 --> | <!-- 砍价专场 --> | ||||
<c-bargain id="bargain"/> | <c-bargain id="bargain"/> | ||||
@@ -56,7 +56,8 @@ page { | |||||
height: 161rpx; | height: 161rpx; | ||||
} | } | ||||
.userinfo{ | .userinfo{ | ||||
margin: 0 auto; | |||||
position:relative; | |||||
margin: 0 auto 38rpx; | |||||
width: 690rpx; | width: 690rpx; | ||||
height: 120rpx; | height: 120rpx; | ||||
background:rgba(255,255,255,1); | background:rgba(255,255,255,1); | ||||
@@ -174,4 +175,46 @@ border-radius:50rpx; | |||||
line-height: 50rpx; | line-height: 50rpx; | ||||
color: #fff; | color: #fff; | ||||
display: inline-block; | display: inline-block; | ||||
} | |||||
.user-avatar { | |||||
position: absolute; | |||||
left: 24rpx; | |||||
top:7rpx; | |||||
bottom: 0; | |||||
width: 66rpx; | |||||
height: 66rpx; | |||||
border-radius: 50%; | |||||
overflow: hidden; | |||||
margin: auto; | |||||
} | |||||
.user-avatar open-data { | |||||
display:block; | |||||
width:100%; | |||||
height:100%; | |||||
} | |||||
.user-data { | |||||
font-family: PingFangSC-Regular; | |||||
height: 120rpx; | |||||
margin-left: 116rpx; | |||||
letter-spacing: 0.64rpx; | |||||
line-height: 44rpx; | |||||
margin-top: 25rpx; | |||||
font-size: 30rpx; | |||||
color: #000; | |||||
} | |||||
.chengzhang { | |||||
font-size: 24rpx; | |||||
font-weight: 400; | |||||
color: #AF6E34; | |||||
margin-left: 10rpx; | |||||
} | |||||
.view { | |||||
font-size: 24rpx; | |||||
color: #999999; | |||||
} | |||||
.view>.score{ | |||||
margin-left:9rpx; | |||||
color:#333333; | |||||
font-size:30rpx; | |||||
margin-right:23rpx; | |||||
} | } |
@@ -13,7 +13,7 @@ | |||||
}, | }, | ||||
"compileType": "miniprogram", | "compileType": "miniprogram", | ||||
"libVersion": "2.2.0", | "libVersion": "2.2.0", | ||||
"appid": "wx7413eea5344a1554", | |||||
"appid": "wxb11603577a84a86d", | |||||
"projectname": "C%E7%AB%AF%E5%B0%8F%E7%A8%8B%E5%BA%8F", | "projectname": "C%E7%AB%AF%E5%B0%8F%E7%A8%8B%E5%BA%8F", | ||||
"isGameTourist": false, | "isGameTourist": false, | ||||
"condition": { | "condition": { | ||||