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 @@ 分销 允许客户充值并使用余额支付 + >用户成为业务员,可促进消费 + + + +