From bb4c2676e763154736b8ea660ee8d38f0bd2cd72 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Thu, 20 Nov 2025 15:55:50 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=82=B9=E5=8D=95=E6=99=BA=E8=83=BD=E6=8E=A8?= =?UTF-8?q?=E8=8D=90=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http/api/market/suggest.js | 41 +++++++++ .../components/fenxiao-user-list.vue | 12 ++- .../distribution/components/open-list.vue | 4 +- pageMarket/distribution/index.vue | 54 +++++++++--- pageMarket/distribution/level-list.vue | 86 ++++++++++++++++--- pageMarket/distribution/money-recoders.vue | 2 +- pageMarket/newUserDiscount/index.vue | 19 +++- pageMarket/orderRecommendation/index.vue | 3 + pages.json | 7 ++ pages/appliccation/marketing.vue | 2 +- store/market.js | 11 ++- 11 files changed, 201 insertions(+), 40 deletions(-) create mode 100644 http/api/market/suggest.js create mode 100644 pageMarket/orderRecommendation/index.vue diff --git a/http/api/market/suggest.js b/http/api/market/suggest.js new file mode 100644 index 0000000..6068458 --- /dev/null +++ b/http/api/market/suggest.js @@ -0,0 +1,41 @@ +import http from "@/http/http.js"; +const request = http.request; +const urlType = "market"; + +export function suggestPage(params) { + return request({ + url: urlType + `/admin/suggest/page`, + method: "get", + params: { + ...params, + }, + }); +} +export function addSuggest(params) { + return request({ + url: urlType + `/admin/suggest`, + method: "POST", + params: { + ...params, + }, + }); +} +export function editSuggest(params) { + return request({ + url: urlType + `/admin/suggest`, + method: "PUT", + params: { + ...params, + }, + }); +} +export function deleteSuggest(params) { + return request({ + url: urlType + `/admin/suggest`, + method: "DELETE", + params: { + ...params, + }, + }); +} + diff --git a/pageMarket/distribution/components/fenxiao-user-list.vue b/pageMarket/distribution/components/fenxiao-user-list.vue index 4a20196..f3906d5 100644 --- a/pageMarket/distribution/components/fenxiao-user-list.vue +++ b/pageMarket/distribution/components/fenxiao-user-list.vue @@ -3,9 +3,9 @@ - 用户昵称 + {{ item.shopUserName }} - {{ item.shopUserName }} + {{ item.shopUserPhone }} @@ -82,7 +82,7 @@ >是否确认重置分销组 重置后将会按照用户的实际数据匹配分销组 - + 是否确认取消分销员 @@ -179,6 +179,8 @@ async function handleConfirm() { id: modalData.data.id, shopId: uni.getSystemInfoSync("shopInfo").id || "", }); + emits("refresh"); + } if (modalData.key == "change-group") { const level=distributionStore.config.levelConfigList.find((item) => item.id == group.value) @@ -204,6 +206,10 @@ async function handleConfirm() { }); emits("refresh"); } + uni.showToast({ + title:'操作成功', + icon:'none' + }) group.value = ""; modalData.show = false; } diff --git a/pageMarket/distribution/components/open-list.vue b/pageMarket/distribution/components/open-list.vue index 4aef715..8719104 100644 --- a/pageMarket/distribution/components/open-list.vue +++ b/pageMarket/distribution/components/open-list.vue @@ -12,9 +12,9 @@ - 用户昵称 + {{item.nickName}} - {{ item.nickName }} + {{ item.phone }} {{ item.changeAmount }} diff --git a/pageMarket/distribution/index.vue b/pageMarket/distribution/index.vue index d674c54..862e804 100644 --- a/pageMarket/distribution/index.vue +++ b/pageMarket/distribution/index.vue @@ -11,7 +11,7 @@ 分销 允许客户充值并使用余额支付 + >用户成为业务员,可促进消费 + + + +