Bladeren bron

bug修复

chenrui 4 jaren geleden
bovenliggende
commit
3961181096
4 gewijzigde bestanden met toevoegingen van 17 en 15 verwijderingen
  1. 2 2
      App.vue
  2. 2 2
      pages/cleared/chooseNetwork.vue
  3. 12 10
      pages/cleared/searchModal.vue
  4. 1 1
      pages/index/index.vue

+ 2 - 2
App.vue

@@ -1,6 +1,6 @@
 <script>
-	// const uat_URL = 'https://lese.test.sxzxyj.net/gc-driver/' // 预发布
-	const uat_URL = 'http://192.168.16.152:8304/gc-driver/' // 本地
+	const uat_URL = 'https://driver.test.sxzxyj.net/gc-driver/' // 预发布
+	// const uat_URL = 'http://192.168.16.152:8304/gc-driver/' // 本地
 	// const pro_URL = 'https://lese.sxzxyj.net/gc-driver/'  // 生产
 	const buildType = 0 // 打包环境对应类型,1 生产 0 预发布
 	const buildURL = buildType ? pro_URL : uat_URL // 打包后实际对应的url

+ 2 - 2
pages/cleared/chooseNetwork.vue

@@ -119,7 +119,7 @@
 						}
 					})
 				}else{
-					uni.showToast({ icon:'none', title: '暂无需加入待清运清单的网点' })
+					uni.showToast({ icon:'none', title: '请勾选需清运的网点' })
 				}
 			},
 			// 选中某个复选框时,由checkbox时触发
@@ -267,7 +267,7 @@
 				box-shadow: 3rpx 3rpx 5rpx #eee;
 				display: flex;
 				align-items: center;
-				padding: 30rpx 20rpx;
+				padding: 40rpx 20rpx;
 				// 多选框
 				.cell-item-checkbox{
 					flex-shrink: 0;

+ 12 - 10
pages/cleared/searchModal.vue

@@ -77,24 +77,26 @@ export default {
 			getLookUpDatas({ type: 'WAIT_CLEAN_SORT_RULE' }).then(res => {
 				if(res.status == 200){
 					this.list = res.data || []
+					this.form.orderType = this.defaultParams.orderType ? this.defaultParams.orderType : ''
+					if(this.defaultParams.orderType){
+						this.list.map((item, index) => {
+							if(item.code == this.form.orderType){
+								this.orderTypeName = this.list[index].dispName
+								this.selectDefault[0] = index
+							}
+						})
+					}
 				}else{
 					this.list = []
+					this.form.orderType = ''
+					this.orderTypeName = '请选择'
+					this.selectDefault = [0]
 				}
 			})
 		},
 		//  初始化数据
 		init(){
 			this.form.stationName = this.defaultParams.stationName ? this.defaultParams.stationName : ''
-			this.form.orderType = this.defaultParams.orderType ? this.defaultParams.orderType : ''
-			if(this.defaultParams.orderType){
-				this.list.map((item, index) => {
-					if(item.code == this.form.orderType){
-						this.orderTypeName = this.list[index].dispName
-						this.selectDefault[0] = index
-					}
-				})
-				
-			}
 		},
 		// 关闭弹窗
 		handleClose() {

+ 1 - 1
pages/index/index.vue

@@ -264,7 +264,7 @@
 				color: $uni-text-color;
 				font-size: $uni-font-size-base;
 				box-shadow: 3rpx 3rpx 5rpx #eee;
-				padding: 30rpx 20rpx;
+				padding: 40rpx 20rpx;
 				position: relative;
 				.cell-item-c{
 					display: flex;