pull/1/head
liudan 1 year ago
parent 2916348dbb
commit bd8ad86685
  1. 5
      pages/home/sign.vue

@ -65,10 +65,10 @@ export default{
formData: { formData: {
}, },
success: (res) => { success: (res) => {
console.log(JSON.parse(res.data),"00")
if(JSON.parse(res.data).code==1){ if(JSON.parse(res.data).code==1){
setTimeout(() => { setTimeout(() => {
this.saveSignPic(res.data.url) this.saveSignPic(JSON.parse(res.data).data.url)
}, 1000) }, 1000)
}else{ }else{
@ -89,6 +89,7 @@ export default{
}, },
saveSignPic(picurl){ saveSignPic(picurl){
console.log(picurl)
updateUserInfo({sign_image:picurl}).then(res=>{ updateUserInfo({sign_image:picurl}).then(res=>{
console.log(res,"ooooo") console.log(res,"ooooo")
if(res.code==1){ if(res.code==1){

Loading…
Cancel
Save