Просмотр исходного кода

修改列表样式,页面跳转bug

gyj 2 лет назад
Родитель
Сommit
fec7d4626c

+ 1
- 2
pages/expressDelivery/component/list.vue Просмотреть файл

@@ -16,7 +16,7 @@
16 16
 				{{defalutVal.applicantName}}
17 17
 			</view>
18 18
 		</view>
19
-		<view class="listItem">
19
+		<view class="listItem" style="margin-top:22rpx">
20 20
 			<view class="lable">
21 21
 				被申请人姓名:
22 22
 			</view>
@@ -79,7 +79,6 @@
79 79
 			width: 100%;
80 80
 			display: flex;
81 81
 			height: 50rpx;
82
-
83 82
 			.lable {
84 83
 				width: 30%;
85 84
 			}

+ 4
- 4
pages/handlecase/component/list.vue Просмотреть файл

@@ -16,8 +16,8 @@
16 16
 				{{defalutVal.applicantName}}
17 17
 			</view>
18 18
 		</view>
19
-		<view class="listItem">
20
-			<view class="lable">
19
+		<view class="listItem" style="margin-top:22rpx">
20
+			<view class="lable" >
21 21
 				被申请人姓名:
22 22
 			</view>
23 23
 			<view class="main">
@@ -102,14 +102,14 @@
102 102
 			width: 100%;
103 103
 			display: flex;
104 104
 			height: 50rpx;
105
-
106 105
 			.lable {
107 106
 				width: 30%;
108 107
 			}
109 108
 
110 109
 			.main {
111 110
 				width: 60%;
112
-			}
111
+			}
112
+			
113 113
 		}
114 114
 		.btn{
115 115
 			margin-top: 20rpx;

+ 11
- 4
pages/handlecase/component/uploadEvidence.vue Просмотреть файл

@@ -444,10 +444,17 @@
444 444
 						title: '提交成功',
445 445
 						icon: 'none',
446 446
 						duration: 1000
447
-					})
448
-					uni.navigateTo({
449
-						url: '/pages/handlecase/index'
450
-					})
447
+					})
448
+					
449
+					uni.navigateBack({
450
+						 delta:1
451
+					})
452
+					// uni.$tab.redirectTo({
453
+					// 	url: '/pages/handlecase/index'
454
+					// })
455
+					// uni.navigateTo({
456
+					// 	url: '/pages/handlecase/index'
457
+					// })
451 458
 				})
452 459
 			},
453 460
 			submitImg() {

+ 24
- 11
pages/handlecase/index.vue Просмотреть файл

@@ -25,13 +25,17 @@
25 25
 				pageSize: 10,
26 26
 				
27 27
 			}
28
-		},
29
-		
28
+		},
30 29
 		methods: {
31 30
 			getList(parms) {
32 31
 				respondentList(parms).then(res => {
33 32
 					// this.caseList = res.rows;
34
-					this.caseList = res.data;
33
+					if(res.data){
34
+						this.caseList = res.data;
35
+					}else{
36
+						this.caseList = []
37
+					}
38
+					
35 39
 					this.caseList.forEach(item => {
36 40
 						switch (item.caseStatus) {
37 41
 							case 0:
@@ -102,15 +106,24 @@
102 106
 				obj.pageNum = obj.pageNum + 1
103 107
 				this.getList(obj)
104 108
 			}
105
-		},
106
-		onLoad() {
107
-			let obj = {
108
-				pageNum: this.pageNum,
109
+		},
110
+		onShow() {
111
+			let obj = {
112
+				pageNum: this.pageNum,
109 113
 				pageSize: this.pageSize,
110
-				caseStatus:4
111
-			}
112
-			this.getList(obj)
113
-		}
114
+				caseStatus:4
115
+			}
116
+			this.getList(obj)
117
+		},
118
+		// onLoad() {
119
+		// 	let obj = {
120
+		// 		pageNum: this.pageNum,
121
+		// 		pageSize: this.pageSize,
122
+		// 		caseStatus:4
123
+		// 	}
124
+		// 	this.getList(obj)
125
+		// }
126
+		
114 127
 	}
115 128
 </script>
116 129
 

+ 1
- 2
pages/im/component/imList.vue Просмотреть файл

@@ -16,7 +16,7 @@
16 16
 				{{defalutVal.applicantName}}
17 17
 			</view>
18 18
 		</view>
19
-		<view class="listItem">
19
+		<view class="listItem"  style="margin-top:22rpx">
20 20
 			<view class="lable">
21 21
 				被申请人姓名:
22 22
 			</view>
@@ -87,7 +87,6 @@
87 87
 			width: 100%;
88 88
 			display: flex;
89 89
 			height: 50rpx;
90
-
91 90
 			.lable {
92 91
 				width: 30%;
93 92
 			}