uniapp:微信小程序上传头像
创始人
2025-01-16 00:07:49
0

在这里插入图片描述

 	 	  
onChooseAvatar(e){ 	console.log(e); 	this.$uploadImage('/api/uploadImage', e.detail.avatarUrl).then(res => { 		console.log('2',res); 		if (res.code == 200) { 			this.new_avatar_url = res.data.path 			this.$http.post('/api/editUserInfo',{ 				name:this.userinfo.name, 				head_portrait:this.new_avatar_url ? this.new_avatar_url : this.userinfo.head_portrait 			}).then(res=>{ 				if(res.code == 200){ 					this.$toast('修改成功') 				} 			}) 		} 	}) }, 

在这里插入图片描述

相关内容

热门资讯

5分钟俱乐部!wepoker有... 5分钟俱乐部!wepoker有没有插件,wepoker透视脚本苹果(透视)AA德州教程(竟然有挂)5...
5分钟指导!wpk有吗(透明挂... 5分钟指导!wpk有吗(透明挂黑科技)外挂透明挂辅助安装(2025已更新)(哔哩哔哩);1、这是跨平...
攻略辅助挂!(WPK识别)外挂... 攻略辅助挂!(WPK识别)外挂透明挂辅助脚本!(Wepoke安卓)线上教程(2020已更新)(哔哩哔...
科技通报!aapoker发牌逻... 科技通报!aapoker发牌逻辑,wpkai辅助实战效果,2025新版技巧(真实有挂)-哔哩哔哩;1...
第7分钟黑科技!hhpoker... 第7分钟黑科技!hhpoker有没有透视挂挂,wepoker买钻石有用吗(透视)必备教程(有挂教学)...
9分钟精通!wepokeplu... 9分钟精通!wepokeplus透明挂怎么识别(透明挂黑科技)外挂透明挂辅助插件(2022已更新)(...
总算明白!(扑克时间软件)外挂... 总算明白!(扑克时间软件)外挂透视透明挂辅助机器人!(pokerrrr开挂)总结教程(2024已更新...
发现玩家!wepower有机器... 发现玩家!wepower有机器人,德州辅助软件线上,新2025教程(有挂实锤)-哔哩哔哩,德州辅助软...
第2分钟黑科技!wepoker... 第2分钟黑科技!wepoker挂,wepoker透视有用吗(透视)扑克教程(有挂分享)wepoker...
9分钟俱乐部!德扑ai软件购买... 9分钟俱乐部!德扑ai软件购买(透明挂黑科技)外挂透明挂辅助ai代打(2020已更新)(哔哩哔哩);...