From 68026a0204b73b6f8cc3391eb758d4728694c07e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A2=A8=E5=A4=A7=E5=8F=94?= <494979559@qq.com>
Date: Sat, 12 Oct 2024 12:21:14 +0800
Subject: [PATCH] =?UTF-8?q?10-12=E6=9B=B4=E6=96=B0=EF=BC=9A=201.=E8=AE=BE?=
=?UTF-8?q?=E5=A4=87=E5=85=85=E5=80=BCdebug=202.=E6=96=B0=E5=A2=9E?=
=?UTF-8?q?=E7=99=BB=E5=BD=95=E6=89=8B=E6=9C=BA=E5=8F=B7=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/agent/device.js | 13 +++++++++++++
src/utils/constants.js | 1 +
src/views/agent/device/index.vue | 4 ++--
src/views/system/config/group.vue | 1 +
src/views/system/recharge/detail.vue | 23 +++++++++++++----------
5 files changed, 30 insertions(+), 12 deletions(-)
diff --git a/src/api/agent/device.js b/src/api/agent/device.js
index ad0c365..ec54f6b 100644
--- a/src/api/agent/device.js
+++ b/src/api/agent/device.js
@@ -24,3 +24,16 @@ export function agentUnbindDeviceMch(deviceId) {
}
})
}
+
+/**
+ * 代理商更新设备信息
+ * @param data
+ * @returns {AxiosPromise}
+ */
+export function agentUpdateDevice(data) {
+ return request({
+ url: "/agent/device",
+ method: "put",
+ data
+ })
+}
diff --git a/src/utils/constants.js b/src/utils/constants.js
index 98169d9..c06ed34 100644
--- a/src/utils/constants.js
+++ b/src/utils/constants.js
@@ -173,6 +173,7 @@ export const ConfigKey = {
RISK_WITHDRAW_ENABLED: "risk.withdraw.enabled", // 是否开启提现风控
RISK_WITHDRAW_TIME: "risk.withdraw.time", // 风控订单和提现相隔时长(分钟)
RISK_WITHDRAW_COUNT: "risk.withdraw.count", // 提现风控累计风险次数
+ LOGIN_WITH_PHONE: "login.with.phone", // 登录获取手机号
}
// 用户类型
diff --git a/src/views/agent/device/index.vue b/src/views/agent/device/index.vue
index 91f8ec2..9be7dca 100644
--- a/src/views/agent/device/index.vue
+++ b/src/views/agent/device/index.vue
@@ -151,7 +151,7 @@ import DeviceLink from '@/components/Business/Device/DeviceLink.vue'
import { $serviceType } from '@/utils/mixins'
import { mchGetDevice, mchUpdateDevice } from '@/api/mch/device'
import DeviceTable from '@/views/system/device/components/DeviceTable.vue'
-import { agentListDevice, agentUnbindDeviceMch } from '@/api/agent/device'
+import { agentListDevice, agentUnbindDeviceMch, agentUpdateDevice } from '@/api/agent/device'
import { agentViews, views } from '@/utils/constants'
export default {
@@ -378,7 +378,7 @@ export default {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.deviceId != null) {
- mchUpdateDevice(this.form).then(response => {
+ agentUpdateDevice(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
diff --git a/src/views/system/config/group.vue b/src/views/system/config/group.vue
index bd33e52..3f9785e 100644
--- a/src/views/system/config/group.vue
+++ b/src/views/system/config/group.vue
@@ -35,6 +35,7 @@
+
diff --git a/src/views/system/recharge/detail.vue b/src/views/system/recharge/detail.vue
index c50c780..4ee6f1a 100644
--- a/src/views/system/recharge/detail.vue
+++ b/src/views/system/recharge/detail.vue
@@ -48,27 +48,30 @@
-
- {{detail.deviceProductId | defaultValue}}
-
-
-
-
使用中
已结束
未开始
+
+
+
+
+
+
+
+ {{detail.openMsg | defaultValue}}
+
-
+
-
+
{{detail.closeResult | defaultValue}}