zhangdan 4 年 前
コミット
05509a3824
1 ファイル変更4 行追加3 行削除
  1. 4 3
      pages/index/userInfo.vue

+ 4 - 3
pages/index/userInfo.vue

@@ -58,7 +58,7 @@
 				loading:false, // 提交按钮加载圈
 				photograph:[],
 				imageHeader:'', //  图片路径
-				userDetailInfo:{}, // 用户信息
+				// userDetailInfo:{}, // 用户信息
 				form: {
 					addressType:'', // 用户类型
 					contactMobile: '', //联系人手机
@@ -83,9 +83,10 @@
 		onLoad(option) {
 			console.log(option,option.id,'ppppppppp')
 			// this.userDetailInfo={}
-			this.getDetailData()
+			// this.getDetailData()
 		},
 		onShow() {
+			this.getDetailData()
 		},
 		onUnload() {
 		},
@@ -94,7 +95,7 @@
 			getDetailData(){
 				userDetail().then(res=>{
 					if(res.status==200){
-						this.userDetailInfo=res.data
+						// this.userDetailInfo=res.data
 						this.$refs.addressType.setVal(res.data.addressType)
 						this.form.addressType=res.data.addressType
 						this.form.contactMobile=res.data.contactMobile