Răsfoiți Sursa

结账列表

shish 4 ani în urmă
părinte
comite
a3e7861135
2 a modificat fișierele cu 9 adăugiri și 15 ștergeri
  1. 8 14
      hdApp/src/admin/clear/list.vue
  2. 1 1
      hdApp/src/api/clear/index.js

+ 8 - 14
hdApp/src/admin/clear/list.vue

@@ -26,13 +26,13 @@ export default {
 	},
 	onPullDownRefresh() {
 		this.resetList();
-		this._list().then(res => {
+		this.getList().then(res => {
 			uni.stopPullDownRefresh();
 		});
 	},
 	onReachBottom () {
 		if (!this.list.finished) {
-			this._list().then(res => {
+			this.getList().then(res => {
 				uni.stopPullDownRefresh()
 			})
 		} else {
@@ -41,25 +41,20 @@ export default {
 	},
 	methods: {
 		async init() {
-			this._list();
+			this.getList();
 		},
-		_list() {
+		getList() {
 			let options = {
 				page: this.list.page,
 				pageSize: this.list.pageSize,
 				ghsId:this.option.ghsId
 			};
-			return getClearList(options).then(res => {
-					this.completes(res);
-				}).catch(err => {});
+			getClearList(options).then(res => {
+				this.completes(res);
+			})
 		},
 		gotoDetail(item) {
-			uni.navigateTo({
-				url: `/admin/clear/info?id=${item.id}`,
-				success: result => {},
-				fail: () => {},
-				complete: () => {}
-			});
+			uni.navigateTo({ url: `/admin/clear/info?id=${item.id}` })
 		}
 	}
 };
@@ -74,7 +69,6 @@ export default {
 		padding-top: 20upx;
 		padding-bottom: 80upx;
 		flex: 1;
-		// padding-bottom: 50upx;
 		.allot-item {
 			margin-bottom: 1px;
 			padding: 30upx;

+ 1 - 1
hdApp/src/api/clear/index.js

@@ -4,7 +4,7 @@ export const getDetail = data => {
 	return https.get("/clear/get-full-info", data);
 };
 
-export const getClearList = async data => {
+export const getClearList = data => {
 	return https.get("/clear/list", data);
 };