|  | @@ -53,6 +53,11 @@ export default new Vuex.Store({
 | 
	
		
			
				|  |  |  		 * 退出登录,传入false只更新缓存不跳转
 | 
	
		
			
				|  |  |  		 */
 | 
	
		
			
				|  |  |  		logout(state, v = true) {
 | 
	
		
			
				|  |  | +			const token = uni.getStorageSync(sysTokenKey);			
 | 
	
		
			
				|  |  | +			let thetoken = 'Bearer ' + token.accessToken;
 | 
	
		
			
				|  |  | +			http.get(config.apiBaseurl + '/carbon-h5/wap/customer/logout',{header: {Authorization:thetoken}}).then(res =>{
 | 
	
		
			
				|  |  | +				console.log('res',res)
 | 
	
		
			
				|  |  | +			});
 | 
	
		
			
				|  |  |  			state.hasLogin = false;
 | 
	
		
			
				|  |  |  			state.userInfo = {};
 | 
	
		
			
				|  |  |  			state.token = '';
 | 
	
	
		
			
				|  | @@ -79,8 +84,10 @@ export default new Vuex.Store({
 | 
	
		
			
				|  |  |  		// },
 | 
	
		
			
				|  |  |  		
 | 
	
		
			
				|  |  |  		async upInfo(state, provider = {}) {
 | 
	
		
			
				|  |  | -			const token = uni.getStorageSync(sysTokenKey);
 | 
	
		
			
				|  |  | -			let thetoken = 'Bearer ' + token.accessToken;
 | 
	
		
			
				|  |  | +			// const token = uni.getStorageSync(sysTokenKey);
 | 
	
		
			
				|  |  | +			// let thetoken = 'Bearer ' + token.accessToken;
 | 
	
		
			
				|  |  | +			const token = state.token;
 | 
	
		
			
				|  |  | +			let thetoken = 'Bearer ' + token;
 | 
	
		
			
				|  |  |  			//用户信息结构
 | 
	
		
			
				|  |  |  			const infoObj = {
 | 
	
		
			
				|  |  |  				"page": 0,
 | 
	
	
		
			
				|  | @@ -151,7 +158,7 @@ export default new Vuex.Store({
 | 
	
		
			
				|  |  |  			//在线更新取得用户信息
 | 
	
		
			
				|  |  |  			then(await(
 | 
	
		
			
				|  |  |  					http.get(config.apiBaseurl + '/carbon-h5/wap/customer/getCustomerByToken',{header: {Authorization:thetoken}}).then(res => {
 | 
	
		
			
				|  |  | -						// console.log('getCustomerByToken', res.data);
 | 
	
		
			
				|  |  | +						console.log('getCustomerByToken', res);
 | 
	
		
			
				|  |  |  						if(res.data.retHead.errCode == 0){res.data.code = 0;}
 | 
	
		
			
				|  |  |  						// 处理非微信头像
 | 
	
		
			
				|  |  |  						let headImage = res.data.retBody.headImage;
 |