diff --git a/src/components/mycomponents/addImg.vue b/src/components/mycomponents/addImg.vue index ec01139..d027f2e 100644 --- a/src/components/mycomponents/addImg.vue +++ b/src/components/mycomponents/addImg.vue @@ -2,7 +2,7 @@ - 新增分类 + 新增分类
  • @@ -32,15 +32,12 @@ - - \ No newline at end of file diff --git a/src/views/application/marketing/points/pointsconfig/Memberpointsconfig/Content.vue b/src/views/application/marketing/points/pointsconfig/Memberpointsconfig/Content.vue new file mode 100644 index 0000000..d2e013e --- /dev/null +++ b/src/views/application/marketing/points/pointsconfig/Memberpointsconfig/Content.vue @@ -0,0 +1,125 @@ + + + \ No newline at end of file diff --git a/src/views/application/marketing/points/pointsconfig/Memberpointsconfig/Search.vue b/src/views/application/marketing/points/pointsconfig/Memberpointsconfig/Search.vue new file mode 100644 index 0000000..cd08772 --- /dev/null +++ b/src/views/application/marketing/points/pointsconfig/Memberpointsconfig/Search.vue @@ -0,0 +1,54 @@ + + + + + diff --git a/src/views/application/marketing/points/pointsconfig/Memberpointsconfig/api.ts b/src/views/application/marketing/points/pointsconfig/Memberpointsconfig/api.ts new file mode 100644 index 0000000..10f5d88 --- /dev/null +++ b/src/views/application/marketing/points/pointsconfig/Memberpointsconfig/api.ts @@ -0,0 +1,60 @@ +import request from "@/utils/request"; +const baseURL = "/account/admin/points/member-points"; +// 会员积分-配置 +const AuthAPI = { + // 列表 + getList(params: any) { + return request({ + url: `${baseURL}/list`, + method: "get", + params, + }); + }, + /** 分页*/ + getPage(params: any) { + return request({ + url: `${baseURL}/page`, + method: "get", + params, + }); + }, + // 新增 + add(data: any) { + return request({ + url: `${baseURL}`, + method: "post", + data: { ...data }, + }); + }, + // 详情 + getinfo(id: number) { + return request({ + url: `${baseURL}/${id}`, + method: "get", + }); + }, + // 编辑 + update(data: Object) { + return request({ + url: `${baseURL}`, + method: "put", + data, + }); + }, + // 删除 + deleteByIds(id: number | String) { + return request({ + url: `${baseURL}/${id}`, + method: "delete", + }); + }, + +}; +export interface Responseres { + code?: number | null; + data?: any; + msg?: null | string; + [property: string]: any; +} + +export default AuthAPI; \ No newline at end of file diff --git a/src/views/application/marketing/points/pointsconfig/Memberpointsconfig/component/Paging.vue b/src/views/application/marketing/points/pointsconfig/Memberpointsconfig/component/Paging.vue new file mode 100644 index 0000000..ee9b056 --- /dev/null +++ b/src/views/application/marketing/points/pointsconfig/Memberpointsconfig/component/Paging.vue @@ -0,0 +1,24 @@ + + \ No newline at end of file diff --git a/src/views/application/marketing/points/pointsconfig/Memberpointsconfig/component/Table.vue b/src/views/application/marketing/points/pointsconfig/Memberpointsconfig/component/Table.vue new file mode 100644 index 0000000..f83e62e --- /dev/null +++ b/src/views/application/marketing/points/pointsconfig/Memberpointsconfig/component/Table.vue @@ -0,0 +1,44 @@ + + + diff --git a/src/views/application/marketing/points/pointsconfig/ProductSettings.vue b/src/views/application/marketing/points/pointsconfig/ProductSettings.vue new file mode 100644 index 0000000..b3633b2 --- /dev/null +++ b/src/views/application/marketing/points/pointsconfig/ProductSettings.vue @@ -0,0 +1,10 @@ + + \ No newline at end of file diff --git a/src/views/application/marketing/points/pointsconfig/ProductSettingsconfig/Content.vue b/src/views/application/marketing/points/pointsconfig/ProductSettingsconfig/Content.vue new file mode 100644 index 0000000..16c921c --- /dev/null +++ b/src/views/application/marketing/points/pointsconfig/ProductSettingsconfig/Content.vue @@ -0,0 +1,237 @@ + + + \ No newline at end of file diff --git a/src/views/application/marketing/points/pointsconfig/ProductSettingsconfig/api.ts b/src/views/application/marketing/points/pointsconfig/ProductSettingsconfig/api.ts new file mode 100644 index 0000000..7769406 --- /dev/null +++ b/src/views/application/marketing/points/pointsconfig/ProductSettingsconfig/api.ts @@ -0,0 +1,60 @@ +import request from "@/utils/request"; +const baseURL = "/account/admin/points/goods-setting"; +// 商品设置-配置 +const AuthAPI = { + // 列表 + getList(params: any) { + return request({ + url: `${baseURL}/list`, + method: "get", + params, + }); + }, + /** 分页*/ + getPage(params: any) { + return request({ + url: `${baseURL}/page`, + method: "get", + params, + }); + }, + // 新增 + add(data: any) { + return request({ + url: `${baseURL}`, + method: "post", + data: { ...data }, + }); + }, + // 详情 + getinfo(id: number) { + return request({ + url: `${baseURL}/${id}`, + method: "get", + }); + }, + // 编辑 + update(data: Object) { + return request({ + url: `${baseURL}`, + method: "put", + data, + }); + }, + // 删除 + deleteByIds(id: number | String) { + return request({ + url: `${baseURL}/${id}`, + method: "delete", + }); + }, + +}; +export interface Responseres { + code?: number | null; + data?: any; + msg?: null | string; + [property: string]: any; +} + +export default AuthAPI; \ No newline at end of file diff --git a/src/views/application/marketing/points/pointsconfig/ProductSettingsconfig/component/AddButton.vue b/src/views/application/marketing/points/pointsconfig/ProductSettingsconfig/component/AddButton.vue new file mode 100644 index 0000000..1070f35 --- /dev/null +++ b/src/views/application/marketing/points/pointsconfig/ProductSettingsconfig/component/AddButton.vue @@ -0,0 +1,9 @@ + + \ No newline at end of file diff --git a/src/views/application/marketing/points/pointsconfig/ProductSettingsconfig/component/Paging.vue b/src/views/application/marketing/points/pointsconfig/ProductSettingsconfig/component/Paging.vue new file mode 100644 index 0000000..ee9b056 --- /dev/null +++ b/src/views/application/marketing/points/pointsconfig/ProductSettingsconfig/component/Paging.vue @@ -0,0 +1,24 @@ + + \ No newline at end of file diff --git a/src/views/application/marketing/points/pointsconfig/ProductSettingsconfig/component/Table.vue b/src/views/application/marketing/points/pointsconfig/ProductSettingsconfig/component/Table.vue new file mode 100644 index 0000000..aee0510 --- /dev/null +++ b/src/views/application/marketing/points/pointsconfig/ProductSettingsconfig/component/Table.vue @@ -0,0 +1,49 @@ + + + diff --git a/src/views/application/marketing/points/pointsconfig/exchangerecordsconfig/Content.vue b/src/views/application/marketing/points/pointsconfig/exchangerecordsconfig/Content.vue index 5f6527e..080bb71 100644 --- a/src/views/application/marketing/points/pointsconfig/exchangerecordsconfig/Content.vue +++ b/src/views/application/marketing/points/pointsconfig/exchangerecordsconfig/Content.vue @@ -100,16 +100,16 @@ function rest() { datas.DialogForm = { sort: "1" } } async function handleDelete(id) { - ElMessageBox.confirm("是否删除数据项?", "提示", { + ElMessageBox.confirm("是否核销?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning", }).then( async () => { - let res = await API.deleteByIds(id) + let res = await API.isCheckout(id) if (res.code == 200) { ElMessage({ - message: '删除成功', + message: '成功', type: 'success', }) getList() diff --git a/src/views/application/marketing/points/pointsconfig/exchangerecordsconfig/DataStatistics.vue b/src/views/application/marketing/points/pointsconfig/exchangerecordsconfig/DataStatistics.vue index f6eccbc..3c03cef 100644 --- a/src/views/application/marketing/points/pointsconfig/exchangerecordsconfig/DataStatistics.vue +++ b/src/views/application/marketing/points/pointsconfig/exchangerecordsconfig/DataStatistics.vue @@ -5,14 +5,14 @@ 总订单数 - {{ datas.totalRow }} + {{ datas.count }}
    已支付金额 - {{ datas.totalRow }} + {{ datas.totalAmount }}
    @@ -23,11 +23,14 @@ onMounted(() => { getPage(); }) let datas = reactive({ - totalRow: 0 + count: 0, + totalAmount: 0, }) async function getPage() { let res = await API.gettotal(); - datas.totalRow = res.totalRow + for (let i in res) { + datas[i] = res[i] + } } diff --git a/src/views/application/marketing/points/pointsconfig/exchangerecordsconfig/Search.vue b/src/views/application/marketing/points/pointsconfig/exchangerecordsconfig/Search.vue index 912ea99..22cffcb 100644 --- a/src/views/application/marketing/points/pointsconfig/exchangerecordsconfig/Search.vue +++ b/src/views/application/marketing/points/pointsconfig/exchangerecordsconfig/Search.vue @@ -1,26 +1,26 @@