fei.wang
8 天以前 645834e1c3efb3a8c50dcbda98d87caba04bd421
pages/index/login.vue
@@ -157,10 +157,8 @@
               username:this.username,
               password:this.password
            }
            console.log(data);
            // 登录成功后跳转首页 - 正式
            loginApi(data).then((res)=>{ 
               console.log(res);
               uni.hideLoading();
               if (res.code==0) {
                  uni.setStorageSync('access_token', res.data.tokentype + ' ' + res.data.token);
@@ -168,10 +166,10 @@
                     name: 'vuex_user',
                     value: this.username
                  })
                  if (parseFloat(res.data.baoliu4)>0) {
                  if (res.data.baoliu4!='-1') {
                     store.commit('$tStore', {
                        name: 'companylogo',
                        value: res.data.baoliu4
                        value: 'http://123.117.152.120:8088/IAFService/Icon/'+ res.data.baoliu4
                     })
                  }else{
                     store.commit('$tStore', {
@@ -214,7 +212,6 @@
                  uni.reLaunch({
                     url: '/pages/index/index'
                  });
                  console.log(this.companylogo);
               } else {
                     this.$refs.refSuccess.showBox({
                        type: 'error',
@@ -463,7 +460,7 @@
   }
   /deep/.input-placeholder {
   ::v-deep.input-placeholder {
      font-size: 24rpx;
      color: #999;
   }