diff --git a/src/pages/cabinet/buy.vue b/src/pages/cabinet/buy.vue
index 3c235ef..ca08653 100644
--- a/src/pages/cabinet/buy.vue
+++ b/src/pages/cabinet/buy.vue
@@ -1,6 +1,6 @@
-
+
-
+
- 钱包余额不足100元
+ {{ state.isUseDoorTip }}
去充值
@@ -69,30 +69,73 @@
- 开 门
+ 开 门
+
+
+ {{ state.authDesc }}
+
diff --git a/src/pages/tabbar/my.vue b/src/pages/tabbar/my.vue
index 6e6202d..c547484 100644
--- a/src/pages/tabbar/my.vue
+++ b/src/pages/tabbar/my.vue
@@ -249,8 +249,6 @@ const scanCode = {
usePayStore().setPayData({})
try {
const decodedString = await scanCode.getScanResult()
- console.log("二维码解码结果:", decodedString)
-
if (decodedString) {
scanCode.processScanResult(decodedString)
}
@@ -314,7 +312,9 @@ const scanCode = {
}
const decoder = new TextDecoder("utf-8")
const decodedString = decoder.decode(uint8Array)
- console.log("解码结果", decodedString)
+
+ // console.log("解码结果", decodedString)
+
return decodedString
} catch (error) {
console.error("Base64 解码失败:", error)
diff --git a/src/sheep/api/hard.ts b/src/sheep/api/hard.ts
new file mode 100644
index 0000000..93f8000
--- /dev/null
+++ b/src/sheep/api/hard.ts
@@ -0,0 +1,28 @@
+import request from "@/sheep/utils/request"
+
+export default {
+ appGetAuthHardDoor: (data: { doorHardId: any; cabinetNo: any }): Promise =>
+ request({
+ url: "hard/hard-auth/app/get-auth-hard-door",
+ method: "POST",
+ data,
+ custom: {
+ showLoading: false,
+ },
+ }),
+ /**
+ * app获取智能柜授权信息
+ * @param authId 授权id
+ * @param authStatus 是否授权
+ * @returns
+ */
+ appAuthHardDoor: (data: { authId: any; authStatus: any }): Promise =>
+ request({
+ url: "hard/hard-auth/app/auth-hard-door",
+ method: "POST",
+ data,
+ custom: {
+ showLoading: false,
+ },
+ }),
+}
diff --git a/src/sheep/api/index.ts b/src/sheep/api/index.ts
index 583e2d2..2332a54 100644
--- a/src/sheep/api/index.ts
+++ b/src/sheep/api/index.ts
@@ -27,3 +27,5 @@ export { default as shopApi } from "./shop"
export { default as flowStatisticsApi } from "./flowStatistics"
export { default as individualOrderApi } from "./individualOrder"
+
+export { default as hardApi } from "./hard"
diff --git a/src/sheep/api/wallet.ts b/src/sheep/api/wallet.ts
index 5b92043..187ba66 100644
--- a/src/sheep/api/wallet.ts
+++ b/src/sheep/api/wallet.ts
@@ -90,4 +90,16 @@ export default {
showLoading: false,
},
}),
+ /**
+ * 是够能够使用智能柜
+ */
+ isUseDoor: (): Promise =>
+ request({
+ url: "wallet/wallet-manage/app/is-use-door",
+ method: "GET",
+ data: {},
+ custom: {
+ showLoading: false,
+ },
+ }),
}