浏览代码

网约车修改

twt 1 月之前
父节点
当前提交
50127efe9f
共有 1 个文件被更改,包括 26 次插入8 次删除
  1. 26 8
      pages/wyCar/index.vue

+ 26 - 8
pages/wyCar/index.vue

@@ -189,14 +189,22 @@
 								sheetId: sheetId,
 								state: num
 							}, 'POST').then(res => {
-								uni.showToast({
-									title: '操作成功',
-									icon: 'none',
-									duration: 3000
-								});
-				
-								that.page = 1;
-								that.getList()
+								if(res.code==0){
+									uni.showToast({
+										title: '操作成功',
+										icon: 'none',
+										duration: 3000
+									});
+									that.page = 1;
+									that.getList()
+								}else{
+									uni.showToast({
+										title: res.msg,
+										icon: 'none',
+										duration: 4000
+									});
+								}
+							
 							})
 						} else if (res.cancel) {
 				
@@ -232,6 +240,15 @@
 					} else {
 						this.items = this.items.concat(list)
 					}
+					if(res.code==0){
+						
+					}else{
+						uni.showToast({
+							title: res.msg,
+							icon: 'none',
+							duration: 3000
+						});
+					}
 				
 				})
 			},
@@ -450,6 +467,7 @@ line-height: 50rpx;
 .searchInput{
 	line-height: 36rpx;height: 36rpx;font-size: 26rpx;
 	padding-left: 16rpx;
+	width: 600rpx;
 }
 	.content{
 		min-height: 100vh;