diff --git a/.env.development b/.env.development index 466e777..f79180a 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,7 @@ VUE_APP_TITLE = 商户管理系统 ENV = 'development' # 开发环境 - VUE_APP_BASE_API = 'http://newpay-admin.weirui0755.com/stage-api' + VUE_APP_BASE_API = 'http://192.168.31.182:8888' # 后台本地 # VUE_APP_BASE_API = 'http://newpay-admin.weirui0755.com/stage-api' diff --git a/build/[fallback].variant.js b/build/[fallback].variant.js index e26030f..c8be1d3 100644 --- a/build/[fallback].variant.js +++ b/build/[fallback].variant.js @@ -9,7 +9,7 @@ module.exports = { // 网站图标资源(图片资源) PAGE_LOGO_URI: "/favicon.ico", // 登录页面标题 - SIGN_UP_TITLE: "KAKA-PAY 后台系统", + SIGN_UP_TITLE: "7UP PAY 后台系统", // 侧边栏图片资源(图片资源) SIDEBAR_TITLE_IMAGE_URI: "file:logo/logo.png", // 侧边栏标题 diff --git a/build/absolute_logo.variant.js b/build/absolute_logo.variant.js index 7f490e5..36a1f9f 100644 --- a/build/absolute_logo.variant.js +++ b/build/absolute_logo.variant.js @@ -4,7 +4,7 @@ module.exports = { // 网站图标资源(图片资源) PAGE_LOGO_URI: "https://cdn-static.sspai.com/favicon/sspai.ico", // 登录页面标题 - SIGN_UP_TITLE: "KAKA-PAY 后台系统 来自 absolute_logo", + SIGN_UP_TITLE: "7UP PAY 后台系统 来自 absolute_logo", // 侧边栏图片资源(图片资源) SIDEBAR_TITLE_IMAGE_URI: "https://cdn.sspai.com/2023/3/21/article/8dfc0f27-9889-8665-6b65-c69e8c81aa9d.png", // 侧边栏标题 diff --git a/build/dynamic_logo.variant.js b/build/dynamic_logo.variant.js index 26f6007..b4d041a 100644 --- a/build/dynamic_logo.variant.js +++ b/build/dynamic_logo.variant.js @@ -4,7 +4,7 @@ module.exports = { // 网站图标资源(图片资源) PAGE_LOGO_URI: "file:404_images/404_cloud.png", // 登录页面标题 - SIGN_UP_TITLE: "KAKA-PAY 后台系统 来自 dynamic_logo", + SIGN_UP_TITLE: "7UP PAY 后台系统 来自 dynamic_logo", // 侧边栏图片资源(图片资源) SIDEBAR_TITLE_IMAGE_URI: "file:404_images/404_cloud.png", // 侧边栏标题 diff --git a/build/merchant_1.variant.js b/build/merchant_1.variant.js index aefe1b4..609e5f4 100644 --- a/build/merchant_1.variant.js +++ b/build/merchant_1.variant.js @@ -4,7 +4,7 @@ module.exports = { // 网站图标资源(图片资源) PAGE_LOGO_URI: "/favicon.ico", // 登录页面标题 - SIGN_UP_TITLE: "KAKA-PAY 后台系统", + SIGN_UP_TITLE: "7UP PAY 后台系统", // 侧边栏图片资源(图片资源) SIDEBAR_TITLE_IMAGE_URI: "file:logo/logo.png", // 侧边栏标题 diff --git a/build/static_logo.variant.js b/build/static_logo.variant.js index 3c97331..c44a4ab 100644 --- a/build/static_logo.variant.js +++ b/build/static_logo.variant.js @@ -4,7 +4,7 @@ module.exports = { // 网站图标资源(图片资源) PAGE_LOGO_URI: "/logo.jpeg", // 登录页面标题 - SIGN_UP_TITLE: "KAKA-PAY 后台系统 来自 static_logo", + SIGN_UP_TITLE: "7UP PAY 后台系统 来自 static_logo", // 侧边栏图片资源(图片资源) SIDEBAR_TITLE_IMAGE_URI: "/logo.jpeg", // 侧边栏标题 diff --git a/src/api/coin/coinAddress.js b/src/api/coin/coinAddress.js new file mode 100644 index 0000000..6982f48 --- /dev/null +++ b/src/api/coin/coinAddress.js @@ -0,0 +1,60 @@ +import request from '@/utils/request' + +// 查询钱包列表 +export function listCoinAddress(query) { + return request({ + url: '/coin/coinAddress/list', + method: 'get', + params: query + }) +} +// 清除钱包详细 +export function clear(query) { + return request({ + url: '/coin/coinAddress/clearCoinAddressInfo', + method: 'get', + params: query + }) +} +// 查询钱包详细 +export function getCoinAddress(id) { + return request({ + url: '/coin/coinAddress/' + id, + method: 'get' + }) +} + +// 新增钱包 +export function addCoinAddress(data) { + return request({ + url: '/coin/coinAddress', + method: 'post', + data: data + }) +} + +// 修改钱包 +export function updateCoinAddress(data) { + return request({ + url: '/coin/coinAddress', + method: 'put', + data: data + }) +} + +// 删除钱包 +export function delCoinAddress(id) { + return request({ + url: '/coin/coinAddress/' + id, + method: 'delete' + }) +} + +// 导出钱包 +export function exportCoinAddress(query) { + return request({ + url: '/coin/coinAddress/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/api/form.js b/src/api/form.js index a14e8e0..4db1d40 100644 --- a/src/api/form.js +++ b/src/api/form.js @@ -11,6 +11,13 @@ import { * */ export const common_api = { + //获取币种支付渠道列表 + getPaymentChannelsList: () => { + return request({ + url: '/coin/coinAddress/getPaymentChannelsList', + method: 'get', + }) + }, // 查询所有代理商 selectAgentListAll: () => { return request({ @@ -189,7 +196,7 @@ export const payAgentUser = { return request({ url: '/store/store/updateRate?', method: 'PUT', - data:data, + data: data, headers: { Authorization: "Bearer " + getToken(), }, @@ -505,6 +512,25 @@ export const manual_recharge_list = { * 代付流水 */ export const platform_payment_list = { + // 查询u代付流水列表 + ulistInfo: (query) => { + return request({ + url: '/record/platform_payment_coin_list', + method: 'get', + params: query, + headers: { + Authorization: "Bearer " + getToken(), + }, + }) + }, + // u代付流水导出 + uexport: (query) => { + return request({ + url: '/record/platform_payment_coin_export', + method: 'get', + params: query + }) + }, // 代付流水导出 export: (query) => { return request({ @@ -536,6 +562,16 @@ export const platform_payment_list = { }, }) }, + // 手工处理代付订单(币种 + platform_payment_coin_handle: (data) => { + return request({ + url: '/record/platform_payment_coin_handle?' + qs.stringify(data), + method: 'post', + headers: { + Authorization: "Bearer " + getToken(), + }, + }) + }, // 手工处理代付订单 platform_payment_handle: (data) => { @@ -594,6 +630,17 @@ export const payMoneyCalcu = { }, }) }, + + // 代理管理-提交单笔代付申请(币种) + agentPaymentCurrencySave: (data) => { + return request({ + url: '/order/agentPaymentCurrencySave?' + qs.stringify(data), + method: 'post', + headers: { + Authorization: "Bearer " + getToken(), + }, + }) + }, // 获取代理资金列表 agentCapitalList: (query) => { return request({ @@ -668,6 +715,16 @@ export const payMoneyCalcu = { }, }) }, + // 商户管理-提交单笔代付申请(币种) + storePaymentCurrencySave: (data) => { + return request({ + url: '/order/storePaymentCurrencySave?' + qs.stringify(data), + method: 'post', + headers: { + Authorization: "Bearer " + getToken(), + }, + }) + }, // 商户管理-提交单笔代付申请 storePaymentSave: (data) => { return request({ @@ -846,6 +903,16 @@ export const payTypeMan = { * 测试支付 */ export const payTest = { + //u代付支付 + coinpayment: (data) => { + return request({ + url: '/paytest/coinpayment?' + qs.stringify(data), + method: 'post', + headers: { + Authorization: "Bearer " + getToken(), + }, + }) + }, //代付支付 payment: (data) => { return request({ @@ -856,6 +923,16 @@ export const payTest = { }, }) }, + //U代付支付签名 + coinPaymentSign: (data) => { + return request({ + url: '/paytest/coinPaymentSign?' + qs.stringify(data), + method: 'post', + headers: { + Authorization: "Bearer " + getToken(), + }, + }) + }, //代付支付签名 paymentSign: (data) => { return request({ @@ -866,6 +943,16 @@ export const payTest = { }, }) }, + //U代扣支付 + coinPay: (data) => { + return request({ + url: '/paytest/coinPay?' + qs.stringify(data), + method: 'post', + headers: { + Authorization: "Bearer " + getToken(), + }, + }) + }, //代扣支付 payCode: (data) => { @@ -877,6 +964,18 @@ export const payTest = { }, }) }, + + //U代扣支付签名 + coinPaySign: (data) => { + return request({ + url: 'paytest/coinPaySign?' + qs.stringify(data), + method: 'post', + headers: { + Authorization: "Bearer " + getToken(), + }, + }) + }, + //代扣支付签名 paySign: (data) => { return request({ @@ -904,6 +1003,17 @@ export const payTest = { * 订单 */ export const payOrder = { + // u手工处理支付订单 + payHandleCoin: (data) => { + return request({ + url: '/order/payHandleCoin?' + qs.stringify(data), + method: 'post', + headers: { + Authorization: "Bearer " + getToken(), + }, + }) + }, + // 手工处理支付订单 payHandle: (data) => { return request({ @@ -932,6 +1042,28 @@ export const payOrder = { params: query }) }, + // 导出订单流水(币种) + exportCoin: (query) => { + return request({ + url: '/order/exportCoin', + method: 'get', + params: query + }) + }, + + + // u订单流水 + urechargeRecord: (query) => { + return request({ + url: '/order/rechargeRecord/listCoin', + method: 'get', + params: query, + headers: { + Authorization: "Bearer " + getToken(), + }, + }) + }, + // 订单流水 rechargeRecord: (query) => { return request({ diff --git a/src/api/tron/tronUsdtSync.js b/src/api/tron/tronUsdtSync.js new file mode 100644 index 0000000..5ae8de3 --- /dev/null +++ b/src/api/tron/tronUsdtSync.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询波场USDT同步列表 +export function listTronUsdtSync(query) { + return request({ + url: '/tron/tronUsdtSync/list', + method: 'get', + params: query + }) +} + +// 查询波场USDT同步详细 +export function getTronUsdtSync(txid) { + return request({ + url: '/tron/tronUsdtSync/' + txid, + method: 'get' + }) +} + +// 新增波场USDT同步 +export function addTronUsdtSync(data) { + return request({ + url: '/tron/tronUsdtSync', + method: 'post', + data: data + }) +} + +// 修改波场USDT同步 +export function updateTronUsdtSync(data) { + return request({ + url: '/tron/tronUsdtSync', + method: 'put', + data: data + }) +} + +// 删除波场USDT同步 +export function delTronUsdtSync(txid) { + return request({ + url: '/tron/tronUsdtSync/' + txid, + method: 'delete' + }) +} + +// 导出波场USDT同步 +export function exportTronUsdtSync(query) { + return request({ + url: '/tron/tronUsdtSync/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/views/coin/coinAddress/index.vue b/src/views/coin/coinAddress/index.vue new file mode 100644 index 0000000..2b723e7 --- /dev/null +++ b/src/views/coin/coinAddress/index.vue @@ -0,0 +1,403 @@ + + + diff --git a/src/views/egypt/egyptDevice/index.vue b/src/views/egypt/egyptDevice/index.vue index ebfdedc..39940ce 100644 --- a/src/views/egypt/egyptDevice/index.vue +++ b/src/views/egypt/egyptDevice/index.vue @@ -1,168 +1,98 @@