diff --git a/ext.json b/ext.json
index 44564c6..4f5099c 100644
--- a/ext.json
+++ b/ext.json
@@ -45,9 +45,9 @@
},
"window": {
"backgroundTextStyle": "dark",
- "navigationBarBackgroundColor": "#FFFFFF",
+ "navigationBarBackgroundColor": "#02C0FF",
"navigationBarTitleText": "WeChat",
- "navigationBarTextStyle": "black"
+ "navigationBarTextStyle": "white"
},
"networkTimeout": {
"request": 30000,
diff --git a/pages/main/index.js b/pages/main/index.js
index f4f8f41..19ae6ef 100644
--- a/pages/main/index.js
+++ b/pages/main/index.js
@@ -36,6 +36,7 @@ Page({
display: 'none',
display1:'none',
optionsData:null,
+ score: '0',
page: 1 // 刷新进入页面时已经加载了第一页数据,onReachBottom时 page++,从第2页开始加载
},
close:function(){
@@ -104,8 +105,8 @@ Page({
},
//跳往个人中心
gotouser:function(){
- wx.navigateTo({
- url: '/pages/user/czdetail',
+ wx.switchTab({
+ url: '/pages/user/index',
})
},
//搜索门店
@@ -272,7 +273,8 @@ Page({
}).then(res => {
console.log(res)
that.setData({
- levelName: res.data.levelName
+ levelName: res.data.levelName,
+ score: res.data.score
})
if (res.data.nickName) {
that.setData({
diff --git a/pages/main/index.wxml b/pages/main/index.wxml
index 8fc6139..0d5e77d 100644
--- a/pages/main/index.wxml
+++ b/pages/main/index.wxml
@@ -23,6 +23,16 @@
+
+
+
+
+
+ {{levelName}}
+ 成长值{{score}}
+ 优惠劵{{score}}
+
+
diff --git a/pages/main/index.wxss b/pages/main/index.wxss
index 77f9bb0..4cd7c37 100644
--- a/pages/main/index.wxss
+++ b/pages/main/index.wxss
@@ -56,7 +56,8 @@ page {
height: 161rpx;
}
.userinfo{
- margin: 0 auto;
+ position:relative;
+ margin: 0 auto 38rpx;
width: 690rpx;
height: 120rpx;
background:rgba(255,255,255,1);
@@ -174,4 +175,46 @@ border-radius:50rpx;
line-height: 50rpx;
color: #fff;
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;
}
\ No newline at end of file
diff --git a/project.config.json b/project.config.json
index 94b0632..b11f49c 100644
--- a/project.config.json
+++ b/project.config.json
@@ -13,7 +13,7 @@
},
"compileType": "miniprogram",
"libVersion": "2.2.0",
- "appid": "wx7413eea5344a1554",
+ "appid": "wxb11603577a84a86d",
"projectname": "C%E7%AB%AF%E5%B0%8F%E7%A8%8B%E5%BA%8F",
"isGameTourist": false,
"condition": {