diff --git a/src/pages.json b/src/pages.json
index be1859c..a46dbbc 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -328,6 +328,27 @@
"navigationBarTitleText": "选择支付方式",
"disableScroll": true
}
+ },
+ {
+ "path": "cabinetList",
+ "style": {
+ "navigationBarTitleText": "智能柜列表",
+ "disableScroll": true
+ }
+ },
+ {
+ "path": "replenishment",
+ "style": {
+ "navigationBarTitleText": "商品补货",
+ "disableScroll": true
+ }
+ },
+ {
+ "path": "putaway",
+ "style": {
+ "navigationBarTitleText": "商品上架",
+ "disableScroll": true
+ }
}
]
},
diff --git a/src/pages/cabinet/buy.vue b/src/pages/cabinet/buy.vue
index ca08653..e9ad12e 100644
--- a/src/pages/cabinet/buy.vue
+++ b/src/pages/cabinet/buy.vue
@@ -1,68 +1,50 @@
-
+
-
+
{{ state.isUseDoorTip }}
- 去充值
+ 去充值
-
+
购买须知:
-
-
+
+
第一步
- 购买需钱包余额大于100元
+ 购买需钱包余额大于100元
-
-
+
+
第二步
- 开门之后选取商品并关门
+ 开门之后选取商品并关门
-
-
+
+
第三步
- 关门后自动结算
+ 关门后自动结算
@@ -82,7 +64,8 @@
height="800rpx"
cancelText="拒绝"
confirmText="同意"
- @confirm="appAuthHardDoorConfirm"
+ @confirm="appAuthHardDoor(1)"
+ @cancel="appAuthHardDoor(0)"
>
{{ state.authDesc }}
@@ -166,16 +149,16 @@ const openDoor = async () => {
// 支付方式tab改变
const payMethodTabChange = (e: number) => {}
-// 确认协议
-const appAuthHardDoorConfirm = async () => {
+// 确认或拒绝协议
+const appAuthHardDoor = async (type: 1 | 0) => {
try {
- uni.showLoading({ title: "授权中", mask: true })
+ uni.showLoading({ title: type ? "授权中" : "加载中", mask: true })
const res = await hardApi.appAuthHardDoor({
authId: state.authId,
- authStatus: 1,
+ authStatus: type ? 1 : 0,
})
if (res.code == 0) {
- uni.showToast({ title: "授权成功", icon: "none" })
+ if (type) uni.showToast({ title: "授权成功", icon: "none" })
state.show = false
}
} catch (error: any) {
diff --git a/src/pages/cabinet/cabinetList.vue b/src/pages/cabinet/cabinetList.vue
new file mode 100644
index 0000000..f91ecf9
--- /dev/null
+++ b/src/pages/cabinet/cabinetList.vue
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+ 地址:123
+
+
+
+ 货柜详情
+
+
+
+ 货柜补货
+
+
+
+ 商品上架
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/cabinet/putaway.vue b/src/pages/cabinet/putaway.vue
new file mode 100644
index 0000000..11d5a48
--- /dev/null
+++ b/src/pages/cabinet/putaway.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
+
+ 第 {{ index + 1 }} 层
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ 11111 }}
+
+
+
+
+
+
+
+
+
+ 取消
+
+ 上架
+
+
+
+
+
+
+
diff --git a/src/pages/cabinet/replenishment.vue b/src/pages/cabinet/replenishment.vue
new file mode 100644
index 0000000..fafa80b
--- /dev/null
+++ b/src/pages/cabinet/replenishment.vue
@@ -0,0 +1,87 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 更改圆角
+
+ 规格:
+ 规格:
+
+
+ 库存:
+
+
+
+
+
+
+
+
+
+ 一键补满
+
+ 开 门
+
+ 保 存
+
+
+
+
+
+
diff --git a/src/pages/tabbar/my.vue b/src/pages/tabbar/my.vue
index 6a5a96c..26e68f1 100644
--- a/src/pages/tabbar/my.vue
+++ b/src/pages/tabbar/my.vue
@@ -76,6 +76,7 @@ const state = reactive<{
// { text: "外来人员就餐", icon: "/static/icon/service_1.png", router: "/pages/apply/foreign-list" },
// { text: "跨单位就餐", icon: "/static/icon/service_1.png", router: "/pages/apply/stride-list" },
{ text: "人脸管理", icon: "/static/icon/service_5.png", router: "/pages/human-face/list" },
+ { text: "智能柜列表", icon: "/static/icon/service_5.png", router: "/pages/cabinet/cabinetList" },
// { text: "意见反馈", icon: "/static/icon/service_5.png", router: "/pages/integrated/feedback/index" },
],
appInfo: "",
diff --git a/src/sheep/utils/request.ts b/src/sheep/utils/request.ts
index 0b8c890..191d41b 100644
--- a/src/sheep/utils/request.ts
+++ b/src/sheep/utils/request.ts
@@ -79,8 +79,7 @@ async function handleShLogin(): Promise {
try {
uni.showLoading({ title: "登录中...", mask: true })
const userInfo = await (window as any).CP2.getUserInfo()
-
- if (userInfo.code == 0 || !userInfo.accountId || !userInfo.sessionId) {
+ if (userInfo.code == 0 || !userInfo.data.accountId || !userInfo.data.sessionId) {
uni.showToast({ title: "获取诗画用户信息失败", icon: "none" })
return false
}
diff --git a/src/static/page/加号.svg b/src/static/page/加号.svg
new file mode 100644
index 0000000..9d77dbd
--- /dev/null
+++ b/src/static/page/加号.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/uni_modules/tm-ui/components/tm-badge/tm-badge.vue b/src/uni_modules/tm-ui/components/tm-badge/tm-badge.vue
index f0c2f4b..9187cb7 100644
--- a/src/uni_modules/tm-ui/components/tm-badge/tm-badge.vue
+++ b/src/uni_modules/tm-ui/components/tm-badge/tm-badge.vue
@@ -1,8 +1,15 @@
-
-
-
-
- {{ _label}}
-
-
-
-
-
+
+
+
\ No newline at end of file
+
diff --git a/src/uni_modules/tm-ui/components/tm-collapse-item/tm-collapse-item.vue b/src/uni_modules/tm-ui/components/tm-collapse-item/tm-collapse-item.vue
index 783ac51..c740aca 100644
--- a/src/uni_modules/tm-ui/components/tm-collapse-item/tm-collapse-item.vue
+++ b/src/uni_modules/tm-ui/components/tm-collapse-item/tm-collapse-item.vue
@@ -1,5 +1,5 @@
-
-
-
-
+
+
-
\ No newline at end of file
+
diff --git a/src/uni_modules/tm-ui/components/tm-stepper/tm-stepper.vue b/src/uni_modules/tm-ui/components/tm-stepper/tm-stepper.vue
index 92dfe2a..8d8397d 100644
--- a/src/uni_modules/tm-ui/components/tm-stepper/tm-stepper.vue
+++ b/src/uni_modules/tm-ui/components/tm-stepper/tm-stepper.vue
@@ -1,8 +1,36 @@
-
-
-
-
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
\ No newline at end of file
+
diff --git a/src/uni_modules/tm-ui/components/tm-tabs/tm-tabs.vue b/src/uni_modules/tm-ui/components/tm-tabs/tm-tabs.vue
index 6ba9abe..38606f6 100644
--- a/src/uni_modules/tm-ui/components/tm-tabs/tm-tabs.vue
+++ b/src/uni_modules/tm-ui/components/tm-tabs/tm-tabs.vue
@@ -1,9 +1,9 @@
-
-
-
-
-
- {{ getValue(item) }}
-
-
-
-
-
-
-
+
+
+
+
+
+ {{ getValue(item) }}
+
+
+
+
+
+
\ No newline at end of file
+