| | |
| | | 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); |
| | |
| | | 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', { |
| | |
| | | uni.reLaunch({ |
| | | url: '/pages/index/index' |
| | | }); |
| | | console.log(this.companylogo); |
| | | } else { |
| | | this.$refs.refSuccess.showBox({ |
| | | type: 'error', |
| | |
| | | |
| | | } |
| | | |
| | | /deep/.input-placeholder { |
| | | ::v-deep.input-placeholder { |
| | | font-size: 24rpx; |
| | | color: #999; |
| | | } |