diff --git a/src/api/channel.js b/src/api/channel.js
new file mode 100644
index 0000000..ca97190
--- /dev/null
+++ b/src/api/channel.js
@@ -0,0 +1,93 @@
+import request from '@/utils/request';
+
+/**
+ * 删除渠道表
+ * @param id
+ * @constructor
+ */
+export function DelChannel(id) {
+ const data = {
+ id: id,
+ };
+ return request({
+ url: '/admin/channel/delete',
+ method: 'GET',
+ params: data,
+ });
+}
+
+/**
+ * 渠道表详情
+ * @param id
+ * @constructor
+ */
+export function InfoChannel(id) {
+ const data = {
+ id: id,
+ };
+ return request({
+ url: '/admin/channel/info',
+ method: 'get',
+ params: data,
+ });
+}
+
+/**
+ * 渠道表列表
+ * @param pram
+ * @constructor
+ */
+export function ListChannel(pram) {
+ const data = {
+ productName: pram.productName,
+ productId: pram.productId,
+ page: pram.page,
+ limit: pram.limit,
+ };
+ return request({
+ url: '/admin/channel/list',
+ method: 'GET',
+ params: data,
+ });
+}
+
+/**
+ * 新增渠道表
+ * @param pram
+ * @constructor
+ */
+export function AddChannel(pram) {
+ const data = {
+ name: pram.name,
+ url: pram.url,
+ price: pram.price,
+ status: pram.status,
+ remark: pram.remark,
+ };
+ return request({
+ url: '/admin/channel/save',
+ method: 'post',
+ data: data,
+ });
+}
+
+/**
+ * 更新渠道表
+ * @param pram
+ * @constructor
+ */
+export function UpdateChannel(pram) {
+ const data = {
+ name: pram.name,
+ url: pram.url,
+ price: pram.price,
+ status: pram.status,
+ remark: pram.remark,
+ };
+ return request({
+ url: '/admin/channel/update',
+ method: 'post',
+ params: { id: pram.id },
+ data: data,
+ });
+}
diff --git a/src/router/index.js b/src/router/index.js
index 585e4a8..016ce0a 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -12,6 +12,7 @@ import Layout from '@/layout';
// import componentsRouter from './modules/components'
import storeRouter from './modules/store';
import orderRouter from './modules/order';
+import channelRouter from './modules/channel';
import userRouter from './modules/user';
import distributionRouter from './modules/distribution';
import marketingRouter from './modules/marketing';
@@ -56,6 +57,8 @@ export const constantRoutes = [
storeRouter,
// 订单
orderRouter,
+ //渠道
+ channelRouter,
// 会员
userRouter,
// 分销
diff --git a/src/router/modules/channel.js b/src/router/modules/channel.js
new file mode 100644
index 0000000..32081cb
--- /dev/null
+++ b/src/router/modules/channel.js
@@ -0,0 +1,23 @@
+import Layout from '@/layout';
+
+const channelRouter = {
+ path: '/channel',
+ component: Layout,
+ redirect: '/channel/index',
+ name: 'Channel',
+ alwaysShow: true,
+ meta: {
+ title: '渠道',
+ icon: 'clipboard',
+ },
+ children: [
+ {
+ path: 'index',
+ component: () => import('@/views/channel/index'),
+ name: 'ChannelIndex',
+ meta: { title: '渠道' },
+ },
+ ],
+};
+
+export default channelRouter;
diff --git a/src/views/channel/creatChannel.vue b/src/views/channel/creatChannel.vue
new file mode 100644
index 0000000..e8b780e
--- /dev/null
+++ b/src/views/channel/creatChannel.vue
@@ -0,0 +1,167 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/channel/index.vue b/src/views/channel/index.vue
new file mode 100644
index 0000000..f3d2d36
--- /dev/null
+++ b/src/views/channel/index.vue
@@ -0,0 +1,194 @@
+
+
+
+
+ 添加渠道
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/order/index.vue b/src/views/order/index.vue
index 6fe6b7f..91a76b5 100644
--- a/src/views/order/index.vue
+++ b/src/views/order/index.vue
@@ -719,7 +719,7 @@ export default {
// 发送
sendOrder(row) {
this.orderDetail = null;
- if (row.type === 0) {
+ if (row.type === 0 || row.type === 2) {
this.$refs.send.modals = true;
//默认加载Normal物流公司
this.$refs.send.express = this.expressListNormal;
diff --git a/src/views/store/setting/index.vue b/src/views/store/setting/index.vue
index 48f2026..6b2c982 100644
--- a/src/views/store/setting/index.vue
+++ b/src/views/store/setting/index.vue
@@ -142,7 +142,7 @@ export default {
},
// 删除
handleDelete(id, idx) {
- this.$modalSure('删除吗?删除会导致对应用户等级数据清空,请谨慎操作!').then(() => {
+ this.$modalSure('删除吗?删除会导致对应分期套餐配置数据清空,请谨慎操作!').then(() => {
DelInstallments(id).then(() => {
this.$message.success('删除成功');
this.getList();