From 1b0f71b9dbbf1d347a55e17b6ad8186b2d383ecc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B5=B5=E5=A4=AA=E9=98=B3?=
<5388403+zhaotaiyang@user.noreply.gitee.com>
Date: Wed, 8 Apr 2026 22:24:20 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=BA=97=E9=93=BA=E8=AE=BE?=
=?UTF-8?q?=E5=A4=87=E9=A1=B5=E9=9D=A2=E4=BB=A5=E5=8F=8A=E5=AF=B9=E6=8E=A5?=
=?UTF-8?q?=E6=8E=A5=E5=8F=A3=EF=BC=88=E6=96=B0=E5=A2=9E=E5=92=8C=E5=88=97?=
=?UTF-8?q?=E8=A1=A8=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/device.js | 24 +++
manifest.json | 2 +-
package_a/device/device.vue | 406 ++++++++++++++++++++++++++++++++++++
pages.json | 1 +
pages/index.vue | 6 +
5 files changed, 438 insertions(+), 1 deletion(-)
create mode 100644 api/device.js
create mode 100644 package_a/device/device.vue
diff --git a/api/device.js b/api/device.js
new file mode 100644
index 0000000..3dfb29f
--- /dev/null
+++ b/api/device.js
@@ -0,0 +1,24 @@
+import request from '@/utils/request'
+import config from '@/config'
+
+const baseUrl = 'http://193.112.94.36:8081'
+
+// 添加设备
+export function addDevice(data) {
+ return request({
+ baseUrl: baseUrl,
+ url: '/mall/device/add',
+ method: 'post',
+ data: data
+ })
+}
+
+// 获取设备列表
+export function getDeviceList(storeId) {
+ return request({
+ baseUrl: baseUrl,
+ url: `/mall/device/getDevice/${storeId}`,
+ method: 'get'
+ })
+}
+
diff --git a/manifest.json b/manifest.json
index afd0a1b..1729a0c 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,6 +1,6 @@
{
"name" : "海驰24",
- "appid" : "__UNI__F8B45C3",
+ "appid" : "__UNI__C30329B",
"description" : "111",
"versionName" : "1.2.6",
"versionCode" : 106,
diff --git a/package_a/device/device.vue b/package_a/device/device.vue
new file mode 100644
index 0000000..3d9eb0a
--- /dev/null
+++ b/package_a/device/device.vue
@@ -0,0 +1,406 @@
+
+
+
+
+
+ 暂无设备
+
+
+
+
+
+ 设备品牌:
+ {{ item.deviceBrand || '-' }}
+
+
+ 设备型号:
+ {{ item.deviceModel || '-' }}
+
+
+
+
+ 加载中...
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增设备
+
+
+
+ *设备编号
+
+
+
+
+ *设备名称
+
+
+
+
+ *设备类型
+
+ {{ typeIndex !== -1 ? deviceTypes[typeIndex].label : '请选择设备类型' }}
+
+
+
+
+ 设备品牌
+
+
+
+
+ 设备型号
+
+
+
+
+ 备注
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages.json b/pages.json
index ef163c4..f71c299 100644
--- a/pages.json
+++ b/pages.json
@@ -30,6 +30,7 @@
{
"root": "package_a",
"pages": [
+ { "path": "device/device", "style": { "navigationBarTitleText": "店铺设备" } },
{ "path": "product/product", "style": { "navigationBarTitleText": "" } },
{ "path": "translation/translation", "style": { "navigationBarTitleText": "录入清单" } },
{ "path": "addProduct/addProduct", "style": { "navigationBarTitleText": "" } },
diff --git a/pages/index.vue b/pages/index.vue
index 6851ba8..82d5d6c 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -320,6 +320,12 @@ export default {
this.selectedShop = type;
},
navigateTo(page) {
+ if (page === '店铺设备') {
+ uni.navigateTo({
+ url: '/package_a/device/device'
+ });
+ return;
+ }
uni.showToast({
title: `跳转到${page}`,
icon: 'none'