zhongtianhaoyuan 3 năm trước cách đây
mục cha
commit
b5148403ea

+ 1 - 1
App.vue

@@ -21,7 +21,7 @@
 		},
 		onLaunch: function() {
 			let that = this
-			uni.onTabBarMidButtonTap(() => {debugger
+			uni.onTabBarMidButtonTap(() => {
 				console.log("点击发布")
 				if (!that.hasLogin) {
 					// uni.$u.route('/pages/public/login');

+ 1 - 1
pages/mine/company/addcompany.vue

@@ -620,7 +620,7 @@
 					});
 				}
 			},
-			uploadImg(type) {debugger
+			uploadImg(type) {
 				this.uploadType = type
 				this.isShowimgType = true
 				// this.index = index

+ 1 - 1
pages/mine/index.vue

@@ -152,7 +152,7 @@
 				cargoCall:"先生",
 			};
 		},
-		onShow() {debugger
+		onShow() {
 			if (this.hasLogin) {
 				uni.showLoading({
 					title: '加载中',

+ 10 - 0
pages/release/release.vue

@@ -915,6 +915,16 @@
 			},
 			submit() {
 				if (this.validate()) return
+				if(this.dataObj.cargoOwner == '个人货主'){
+					this.dataObj.compId == ""
+				}else{
+					for(let i = 0;i<this.qyList.length;i++){
+						if(this.dataObj.cargoOwner == this.qyList[i].companyName){
+							this.dataObj.compId = this.qyList[i].id
+							break
+						}
+					}
+				}
 				this.isShowAlert = true;
 
 

+ 5 - 0
pages/release/selectAddress.vue

@@ -89,6 +89,9 @@
 			console.log(options)
 			this.type = options.type
 			that = this
+			
+		},
+		onShow() {
 			this.getList()
 		},
 		methods: {
@@ -113,6 +116,7 @@
 					}).then(res => {
 						if (res.code == 200) {
 							this.dataList = res.data.records
+							this.$forceUpdate()
 							for (let i = 0; i < this.dataList.length; i++) {
 								if (this.dataList[i].defaultShipment == 1) {
 									this.dataList[i].radiovalue = '默认装货'
@@ -121,6 +125,7 @@
 									this.dataList[i].radiovalue = '默认卸货'
 								}
 							}
+							
 							uni.hideLoading()
 						}