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

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

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

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

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

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

16
 				{{defalutVal.applicantName}}
16
 				{{defalutVal.applicantName}}
17
 			</view>
17
 			</view>
18
 		</view>
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
 			</view>
22
 			</view>
23
 			<view class="main">
23
 			<view class="main">
102
 			width: 100%;
102
 			width: 100%;
103
 			display: flex;
103
 			display: flex;
104
 			height: 50rpx;
104
 			height: 50rpx;
105
-
106
 			.lable {
105
 			.lable {
107
 				width: 30%;
106
 				width: 30%;
108
 			}
107
 			}
109
 
108
 
110
 			.main {
109
 			.main {
111
 				width: 60%;
110
 				width: 60%;
112
-			}
111
+			}
112
+			
113
 		}
113
 		}
114
 		.btn{
114
 		.btn{
115
 			margin-top: 20rpx;
115
 			margin-top: 20rpx;

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

444
 						title: '提交成功',
444
 						title: '提交成功',
445
 						icon: 'none',
445
 						icon: 'none',
446
 						duration: 1000
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
 			submitImg() {
460
 			submitImg() {

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

25
 				pageSize: 10,
25
 				pageSize: 10,
26
 				
26
 				
27
 			}
27
 			}
28
-		},
29
-		
28
+		},
30
 		methods: {
29
 		methods: {
31
 			getList(parms) {
30
 			getList(parms) {
32
 				respondentList(parms).then(res => {
31
 				respondentList(parms).then(res => {
33
 					// this.caseList = res.rows;
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
 					this.caseList.forEach(item => {
39
 					this.caseList.forEach(item => {
36
 						switch (item.caseStatus) {
40
 						switch (item.caseStatus) {
37
 							case 0:
41
 							case 0:
102
 				obj.pageNum = obj.pageNum + 1
106
 				obj.pageNum = obj.pageNum + 1
103
 				this.getList(obj)
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
 				pageSize: this.pageSize,
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
 </script>
128
 </script>
116
 
129
 

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

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