1004749546@qq.com 4 年之前
父节点
当前提交
710a704b89
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      pages/index/userInfo.vue

+ 3 - 3
pages/index/userInfo.vue

@@ -56,7 +56,7 @@
 			return {
 				title:'',
 				loading:false, // 提交按钮加载圈
-				photograph:[],
+				photograph: [],
 				imageHeader:'', //  图片路径
 				// userDetailInfo:{}, // 用户信息
 				form: {
@@ -100,7 +100,7 @@
 						if(res.data){
 							this.form=res.data
 							this.$refs.addressType.setVal(res.data.addressType)
-							this.photograph=[res.data.imageHeader] ?res.data.imageHeader.split() :''
+							this.photograph = res.data.imageHeader ? [res.data.imageHeader] : []
 							this.form.lat=res.data.latitude
 							this.form.lng=res.data.longitude
 						}
@@ -161,7 +161,7 @@
 							mask: true
 						})
 						saveImgToAliOss(res.tempFilePaths[0],(ret)=>{
-							this.photograph=res.tempFilePaths
+							this.photograph.push(ret.data)
 							uni.hideLoading()
 						})
 				    }