diff --git a/manager/src/api/index.js b/manager/src/api/index.js index 12f36057..9e4d2492 100644 --- a/manager/src/api/index.js +++ b/manager/src/api/index.js @@ -373,6 +373,31 @@ export const getWxChannelsThirdCategory = (params) => { return getRequest(`/wxchannels/category/third`, params); }; +// 微信小店类目申请分页 +export const getWxChannelsCategoryPage = (params) => { + return getRequest(`/wxchannels/category`, params); +}; + +// 初始化微信小店类目 +export const initWxChannelsCategory = () => { + return postRequestWithNoForm(`/wxchannels/category/init`, {}); +}; + +// 申请微信小店类目 +export const applyWxChannelsCategory = (params) => { + return postRequestWithNoForm(`/wxchannels/category/apply`, params); +}; + +// 微信小店类目审核单详情 +export const getWxChannelsCategoryFlowDetail = (params) => { + return getRequest(`/wxchannels/category/flow/detail`, params); +}; + +// 微信小店类目详情 +export const getWxChannelsCategoryDetail = (params) => { + return getRequest(`/wxchannels/category/detail`, params); +}; + // 微信视频号商品分页 export const getWxChannelsGoodsPage = (params) => { return getRequest(`/wxchannels/goods`, params); @@ -388,11 +413,71 @@ export const getWxChannelsOverviewSummary = (params) => { return getRequest(`/wxchannels/overview/summary`, params); }; +// 微信视频号概况-日报 +export const getWxChannelsOverviewDaily = (params) => { + return getRequest(`/wxchannels/overview/daily`, params); +}; + +// 微信视频号概况-报表导出 +export const exportWxChannelsOverview = (params) => { + return getRequest(`/wxchannels/overview/export`, params, "blob"); +}; + // 微信视频号退单分页 export const getWxChannelsRefundPage = (params) => { return getRequest(`/wxchannels/refund`, params); }; +// 微信小店资金-账户余额 +export const getWxChannelsFundsBalance = () => { + return getRequest(`/wxchannels/funds/balance`); +}; + +// 微信小店资金-结算账户信息 +export const getWxChannelsFundsBankAcct = () => { + return getRequest(`/wxchannels/funds/bankacct`); +}; + +// 微信小店资金-流水列表 +export const getWxChannelsFundsFlows = (params) => { + return getRequest(`/wxchannels/funds/flows`, params); +}; + +// 微信小店资金-流水详情 +export const getWxChannelsFundsFlowDetail = (params) => { + return getRequest(`/wxchannels/funds/flows/detail`, params); +}; + +// 微信小店资金-订单流水列表 +export const getWxChannelsFundsOrderFlow = (params) => { + return getRequest(`/wxchannels/funds/orderflow`, params); +}; + +// 微信小店配置 +export const getWxChannelsSetting = () => { + return getRequest(`/wxchannels/setting`); +}; + +// 保存微信小店配置 +export const saveWxChannelsSetting = (params) => { + return postRequestWithNoForm(`/wxchannels/setting`, params); +}; + +// 微信小店品牌库列表 +export const getWxChannelsBrandLibrary = (params) => { + return getRequest(`/wxchannels/brand/library`, params); +}; + +// 微信小店品牌资质申请列表 +export const getWxChannelsBrandList = (params) => { + return getRequest(`/wxchannels/brand/list`, params); +}; + +// 微信小店生效中的品牌资质列表 +export const getWxChannelsValidBrandList = (params) => { + return getRequest(`/wxchannels/brand/valid/list`, params); +}; + // 分页查询敏感词 export const getSensitiveWordsPage = (params) => { diff --git a/manager/src/router/index.js b/manager/src/router/index.js index 3d4484c3..7e431e6c 100644 --- a/manager/src/router/index.js +++ b/manager/src/router/index.js @@ -48,7 +48,9 @@ router.beforeEach((to, from, next) => { }); router.afterEach((to) => { - Util.openNewPage(router.app, to.name, to.params, to.query); + if (!(to.meta && to.meta.noTag)) { + Util.openNewPage(router.app, to.name, to.params, to.query); + } ViewUI.LoadingBar.finish(); window.scrollTo(0, 0); }); diff --git a/manager/src/router/router.js b/manager/src/router/router.js index 2e2f4d8e..dac4d8fa 100644 --- a/manager/src/router/router.js +++ b/manager/src/router/router.js @@ -181,6 +181,21 @@ export const otherRouter = { component: () => import("@/views/promotions/points-goods/points-goods-edit.vue") }, + { + path: "promotions/wxchannels", + title: "微信小店", + name: "promotions-wxchannels", + component: () => + import("@/views/promotions/wxchannels/index.vue") + }, + { + path: "promotions/wxchannels/category-apply", + title: "申请类目", + name: "promotions-wxchannels-category-apply", + meta: { noTag: true }, + component: () => + import("@/views/promotions/wxchannels/category-apply.vue") + }, { path: "promotions/manager-points-goods-category", title: "积分商品分类", diff --git a/manager/src/views/promotions/wxchannels/brand.vue b/manager/src/views/promotions/wxchannels/brand.vue new file mode 100644 index 00000000..a1478530 --- /dev/null +++ b/manager/src/views/promotions/wxchannels/brand.vue @@ -0,0 +1,211 @@ + + + + + diff --git a/manager/src/views/promotions/wxchannels/category-apply.vue b/manager/src/views/promotions/wxchannels/category-apply.vue new file mode 100644 index 00000000..893ec02f --- /dev/null +++ b/manager/src/views/promotions/wxchannels/category-apply.vue @@ -0,0 +1,210 @@ + + + + + diff --git a/manager/src/views/promotions/wxchannels/category.vue b/manager/src/views/promotions/wxchannels/category.vue new file mode 100644 index 00000000..ab894005 --- /dev/null +++ b/manager/src/views/promotions/wxchannels/category.vue @@ -0,0 +1,490 @@ + + + + + diff --git a/manager/src/views/promotions/wxchannels/funds.vue b/manager/src/views/promotions/wxchannels/funds.vue new file mode 100644 index 00000000..19af95b4 --- /dev/null +++ b/manager/src/views/promotions/wxchannels/funds.vue @@ -0,0 +1,567 @@ + + + + + diff --git a/manager/src/views/promotions/wxchannels/goods.vue b/manager/src/views/promotions/wxchannels/goods.vue new file mode 100644 index 00000000..2e8384fa --- /dev/null +++ b/manager/src/views/promotions/wxchannels/goods.vue @@ -0,0 +1,138 @@ + + + diff --git a/manager/src/views/promotions/wxchannels/index.vue b/manager/src/views/promotions/wxchannels/index.vue new file mode 100644 index 00000000..a9abe52b --- /dev/null +++ b/manager/src/views/promotions/wxchannels/index.vue @@ -0,0 +1,60 @@ + + + diff --git a/manager/src/views/promotions/wxchannels/order.vue b/manager/src/views/promotions/wxchannels/order.vue new file mode 100644 index 00000000..962b6759 --- /dev/null +++ b/manager/src/views/promotions/wxchannels/order.vue @@ -0,0 +1,178 @@ + + + diff --git a/manager/src/views/promotions/wxchannels/overview.vue b/manager/src/views/promotions/wxchannels/overview.vue new file mode 100644 index 00000000..7b55334c --- /dev/null +++ b/manager/src/views/promotions/wxchannels/overview.vue @@ -0,0 +1,202 @@ + + + + + diff --git a/manager/src/views/promotions/wxchannels/refund.vue b/manager/src/views/promotions/wxchannels/refund.vue new file mode 100644 index 00000000..6c7a16c9 --- /dev/null +++ b/manager/src/views/promotions/wxchannels/refund.vue @@ -0,0 +1,186 @@ + + + diff --git a/manager/src/views/promotions/wxchannels/setting.vue b/manager/src/views/promotions/wxchannels/setting.vue new file mode 100644 index 00000000..abf4c6fd --- /dev/null +++ b/manager/src/views/promotions/wxchannels/setting.vue @@ -0,0 +1,182 @@ + + + + +