From 7a586c75cde86f2e645e5daf129ed2bdeae84f0d Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期一, 04 九月 2023 09:36:27 +0800
Subject: [PATCH] #
---
pages/business/cstmr/cstmrDetails.vue | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/pages/business/cstmr/cstmrDetails.vue b/pages/business/cstmr/cstmrDetails.vue
index 1bf8a5d..18c3a20 100644
--- a/pages/business/cstmr/cstmrDetails.vue
+++ b/pages/business/cstmr/cstmrDetails.vue
@@ -101,16 +101,17 @@
}
})
},
- del(id) {
+ del(e) {
let that = this
- var ids = [];
- ids.push(id)
+ e = Number(e)
uni.request({
- url: that.baseUrl + '/cstmr/delete/json',
- header: {'token' : uni.getStorageSync('token'),},
- data: {ids: ids},
- method: 'POST',
+ url: that.baseUrl + '/cstmr/delete/one/' + e,
+ header: {'token' : uni.getStorageSync('token'),
+ },
+ method: 'GET',
+
success(res) {
+ console.log(res);
res = res.data
if (res.code === 200) {
uni.navigateBack()
--
Gitblit v1.9.1