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 @@ + + + + + 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'