Browse Source

修改蓝信用户

aaa 3 years ago
parent
commit
05fd33f701
3 changed files with 7 additions and 3 deletions
  1. 1 1
      .env.production
  2. 5 1
      src/views/home/index.vue
  3. 1 1
      src/views/home/person/rank.vue

+ 1 - 1
.env.production

@@ -1,3 +1,3 @@
 VUE_APP_ENV = "pro"
-VUE_APP_JTXT_URL = "http://120.77.221.199:7000"
+VUE_APP_JTXT_URL = "http://172.16.194.193:7000"
 VUE_APP_LANXIN_APPID = "557824-1114112"

+ 5 - 1
src/views/home/index.vue

@@ -103,7 +103,7 @@ export default {
     // 初始化
     async initFun() {
       // 获取所有用户
-      if (this.env === "test") {
+      if (this.env === "pro") {
         // 从蓝信获取用户信息
         // this.getLanXinSignature();
         console.log("-从蓝信获取用户信息-");
@@ -260,6 +260,10 @@ export default {
       this.$_http
         .get(this.$_API.JTXT_GET_LAN_XIN_USER_INFO, { params })
         .then(res => {
+          this.$store.commit("updateUserItemStore", {
+            field: "userInfo",
+            value: res.data
+          });
           console.log("蓝信用户信息---" + JSON.stringify(res));
         })
         .catch(() => {

+ 1 - 1
src/views/home/person/rank.vue

@@ -34,7 +34,7 @@
                     height="100%"
                     fit="cover"
                     round
-                    :src="item.src || maleAvatar"
+                    :src="item.avatarPath || maleAvatar"
                     :show-error="true"
                     :error-icon="maleAvatar"
                   />