diff --git a/src/api/login.js b/src/api/login.js
index 7b7388f..0260a79 100644
--- a/src/api/login.js
+++ b/src/api/login.js
@@ -6,7 +6,8 @@ export function login(username, password, code, uuid) {
username,
password,
code,
- uuid
+ uuid,
+ platform: '2'
}
return request({
url: '/login',
@@ -57,4 +58,4 @@ export function getCodeImg() {
method: 'get',
timeout: 20000
})
-}
\ No newline at end of file
+}
diff --git a/src/api/system/app.js b/src/api/system/app.js
new file mode 100644
index 0000000..f249d77
--- /dev/null
+++ b/src/api/system/app.js
@@ -0,0 +1,64 @@
+import request from '@/utils/request'
+
+// 查询APP信息列表
+export function listApp(query) {
+ return request({
+ url: '/ss/app/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 所有APP列表
+export function listAllApp() {
+ return request({
+ url: '/ss/app/all',
+ method: 'get'
+ })
+}
+
+// 查询APP信息列表
+export function listAppByIds(ids) {
+ return request({
+ url: '/ss/app/listByIds',
+ method: 'post',
+ headers: {
+ repeatSubmit: true,
+ },
+ data: ids
+ })
+}
+
+// 查询APP信息详细
+export function getApp(id) {
+ return request({
+ url: '/ss/app/' + id,
+ method: 'get'
+ })
+}
+
+// 新增APP信息
+export function addApp(data) {
+ return request({
+ url: '/ss/app',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改APP信息
+export function updateApp(data) {
+ return request({
+ url: '/ss/app',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除APP信息
+export function delApp(id) {
+ return request({
+ url: '/ss/app/' + id,
+ method: 'delete'
+ })
+}
diff --git a/src/api/system/channel.js b/src/api/system/channel.js
index edefddf..12cf7ef 100644
--- a/src/api/system/channel.js
+++ b/src/api/system/channel.js
@@ -34,7 +34,10 @@ export function addChannel(data) {
return request({
url: '/system/channel',
method: 'post',
- data: data
+ data: {
+ ...data,
+ appIds: Array.isArray(data.appIds) ? data.appIds : []
+ }
})
}
@@ -43,7 +46,10 @@ export function updateChannel(data) {
return request({
url: '/system/channel',
method: 'put',
- data: data
+ data: {
+ ...data,
+ appIds: Array.isArray(data.appIds) ? data.appIds : []
+ }
})
}
@@ -54,3 +60,12 @@ export function delChannel(channelId) {
method: 'delete'
})
}
+
+// 导出充值渠道
+export function exportChannel(query) {
+ return request({
+ url: '/system/channel/export',
+ method: 'get',
+ params: query
+ })
+}
diff --git a/src/utils/constants.js b/src/utils/constants.js
index 906a896..61d68ac 100644
--- a/src/utils/constants.js
+++ b/src/utils/constants.js
@@ -9,6 +9,11 @@ export const views = {
withdraw: 'withdraw', // 提现
recharge: 'recharge', // 充值订单
}
+// 应用类型
+export const AppType = {
+ WECHAT: "1", // 微信
+ ALI_PAY: "2", // 支付宝
+}
// 收款账户类型
export const AccountType = {
diff --git a/src/views/system/app/index.vue b/src/views/system/app/index.vue
new file mode 100644
index 0000000..29cb902
--- /dev/null
+++ b/src/views/system/app/index.vue
@@ -0,0 +1,369 @@
+
+