From 155f2b80f2a9b6f900c73f6e4461e9cebb7cd028 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期二, 10 十月 2023 17:12:20 +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