ソースを参照

修改车辆添加

xuanyan 4 年 前
コミット
7eb81c0caf
1 ファイル変更4 行追加2 行削除
  1. 4 2
      pages/myCar/add.vue

+ 4 - 2
pages/myCar/add.vue

@@ -160,7 +160,10 @@
 		onLoad(options) {
 			that = this;
 			this.model.residentialId = uni.getStorageSync('residentialId')
-			this.model.personId = app.globalData.userId;
+			this.model.personPhone = this.vuex_member.tel;
+			this.model.memberId = this.vuex_member.id;
+			this.model.idCard = this.vuex_member.idcard;
+			this.model.personName = this.vuex_member.name;
 			//获取字典
 			this.getDict()
 			this.parseParams(options)
@@ -229,7 +232,6 @@
 				}
 				let that = this;
 				this.model.residentialId = uni.getStorageSync('residentialId')
-				this.model.personId = app.globalData.userId;
 				// let operation = 'car/saveOrUpdate';
 				that.$http.saveOrUpdateCar(this.model).then (res=>{
 					console.log(res);