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 | 36 ++++++++++++++---------------------- 1 files changed, 14 insertions(+), 22 deletions(-) diff --git a/pages/business/cstmr/cstmrDetails.vue b/pages/business/cstmr/cstmrDetails.vue index 60f6c3b..18c3a20 100644 --- a/pages/business/cstmr/cstmrDetails.vue +++ b/pages/business/cstmr/cstmrDetails.vue @@ -63,13 +63,12 @@ data() { return { id: 0, - baseUrl: '', cstmr: { id: '', - name: '娌冲寳鍚涢偊涔充笟鏈夐檺鍏徃', - tel: '15067665399', - addr: '娌冲寳鐪侀偗閮稿競鍚涢偊涔充笟鏈夐檺鍏徃', - cstman: '鏈辨槑蹇�' + name: '', + tel: '', + addr: '', + cstman: '' }, addFollower: { follower: '', @@ -82,14 +81,11 @@ }, onLoad(option) { this.id = option.id - this.baseUrl = uni.getStorageSync('baseUrl') this.init() this.autoLoad('follower','') setTimeout(()=>{ this.getFollowers() },500) - - }, methods: { init() { @@ -105,15 +101,15 @@ } }) }, - 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 @@ -157,7 +153,6 @@ success(result) { var res = result.data that.getFollowers() - console.log(res); } }) this.addFollower.follower = '' @@ -174,7 +169,6 @@ method: 'POST', success(result) { var res = result.data - console.log(res); if (res.code === 200) { var element; if (type == 'follower') { @@ -203,7 +197,6 @@ }, removeFollowers(userId) { let that = this - console.log(that.cstmrId); uni.request({ url: that.baseUrl + '/cstmr/followers/remove/auth', header:{ @@ -218,7 +211,6 @@ success(res) { res = res.data that.getFollowers() - console.log(res); } }) } @@ -230,7 +222,7 @@ .header { width: auto; min-height: 110rpx; - background-color: #f8f8f8; + background-color: #fff; padding: 30px 20px 10px 20px; } .cstmr-name { @@ -254,7 +246,7 @@ .container { margin-top: 10px; padding: 10rpx 20rpx 0 20rpx; - background-color: #f8f8f8; + background-color: #fff; display: grid; grid-template-columns: 1fr 3fr; } @@ -282,7 +274,7 @@ min-height: 100rpx; bottom: 0; margin-bottom: 0; - background-color: #f8f8f8; + background-color: #fff; border-top: 1px solid #efefef; display: flex; align-items: center; -- Gitblit v1.9.1