diff --git a/pages/oaMy/oaMy.vue b/pages/oaMy/oaMy.vue
index 15dd80f..1cc60bd 100644
--- a/pages/oaMy/oaMy.vue
+++ b/pages/oaMy/oaMy.vue
@@ -6,20 +6,28 @@
-
+
+
-
+
-
+
- {{ oaUserInfo.nickname }}
+ 立即登录
+
+
+ 登录后可查看更多
+
+
+
+
+ {{ oaUserInfo.nickname }}
{{ oaUserInfo.mobile }}
@@ -27,7 +35,7 @@
-
+
编辑
@@ -36,7 +44,8 @@
- {{oaUserInfo.user_money||'0.00'}}
+ *
+ {{oaUserInfo.user_money||'0.00'}}
****
账户余额(元)
@@ -46,7 +55,8 @@
-->
- {{oaUserInfo.income||'0.00'}}
+ *
+ {{oaUserInfo.income||'0.00'}}
****
收益金额(元)
@@ -66,7 +76,7 @@
退出登录
- 去登录
+ 登录账号
@@ -95,10 +105,10 @@
backgroundColor: '#3175f9'
})
},
- onLoad() {
- this.getOaUserInfo()
+ onLoad() {},
+ onShow() {
+ this.getOaUserInfo();
},
- onShow() {},
computed:{
eyeType(){
return this.$store.state.config.eyeType;
@@ -126,7 +136,7 @@
})
},
async getOaUserInfo() {
- const res = await userInfo()
+ const res = await userInfo();
this.oaUserInfo = res.data;
this.$store.commit('setUserInfo', this.oaUserInfo);
},
@@ -202,7 +212,13 @@
.name_work {
margin-left: 31.58rpx;
font-size: 28.07rpx;
-
+ .name{
+ .nickname{
+ font-size: 32rpx;
+ font-weight: 500;
+ margin-right: 30rpx;
+ }
+ }
.work {
margin-top: 14.04rpx;
}
diff --git a/static/img/public/avatar.png b/static/img/public/avatar.png
new file mode 100644
index 0000000..2f531da
Binary files /dev/null and b/static/img/public/avatar.png differ
diff --git a/utils/oahttp.js b/utils/oahttp.js
index f3b6e69..2aa993a 100644
--- a/utils/oahttp.js
+++ b/utils/oahttp.js
@@ -51,8 +51,10 @@ function baseRequestTwo(url, method, data, {
if (noVerify)
// reslove(res.data, res);
reslove(res.data);
- // else if (res.data.code == 0)
- // reject(res.data);
+ else if (res.data.code == -1){
+ store.commit("LOGOUT");
+ reject(res.data);
+ }
else if (res.data.code == 1)
reslove(res.data);
else if (res.data.code == 200)