diff --git a/src/pages.json b/src/pages.json
index 48ed0e8..13b4833 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -242,6 +242,12 @@
"style" : {
"navigationBarTitleText": "咖啡机管理"
}
+ },
+ {
+ "path": "pages/audio_manage/audio_manage",
+ "style" : {
+ "navigationBarTitleText": "音响管理"
+ }
},
{
"path": "pages/coffee_test/coffee_test",
diff --git a/src/subpackage/device/js/device_api.js b/src/subpackage/device/js/device_api.js
index d3e9e33..5f76bef 100644
--- a/src/subpackage/device/js/device_api.js
+++ b/src/subpackage/device/js/device_api.js
@@ -1,6 +1,7 @@
import { ORIGIN } from '../../../js/api';
export const DEVICE_API = {
+ ORIGIN:ORIGIN,
stadiumList:`${ORIGIN}/stadium/list`, // 店铺列表
vendingGoodsList:`${ORIGIN}/stadium/vending/goods/list`, // 售货柜-商品列表
vendingGoodsRestock:`${ORIGIN}/admin/stadium/vending/goods/restock`, // 售货柜-库存修改保存
@@ -41,6 +42,9 @@ export const DEVICE_API = {
//2021/0507
organizeOrderDetail:`${ORIGIN}/assistant/gaPlayTogetherOrder/get`, //助手约玩订单详情
+ //2021/0705 音响
+ uploadAudio:`${ORIGIN}/upload/file/audio`, // 上传录音
+ sendAudio:`${ORIGIN}/ouxuanac/sendPacket`, // 发送上传录音并播放
}
export default DEVICE_API;
\ No newline at end of file
diff --git a/src/subpackage/device/pages/audio_manage/audio_manage.vue b/src/subpackage/device/pages/audio_manage/audio_manage.vue
new file mode 100644
index 0000000..f66a782
--- /dev/null
+++ b/src/subpackage/device/pages/audio_manage/audio_manage.vue
@@ -0,0 +1,849 @@
+
+
+
+
+ {{pageInfo.name || '-'}}
+ {{pageInfo.tips || ''}}
+
+
+
+
+
+
+ {{e.hardware_name || '-'}}
+
+
+
+
+ {{ e.defineStatusCode == 1 ? '设备在线' : e.defineStatusCode == 0?'设备离线' : '-' }}
+
+
+
+
+
+
+
+
+
+
+ {{pageInfo.openName || '-'}}
+
+
+
+ {{pageInfo.closeName || '-'}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 发送
+ 试听
+
+
+
+
+ 请说话
+
+ 按住说话
+
+
+
+ 发送
+ 听取录音
+
+
+
+
+
+
+
+
+
+
diff --git a/src/subpackage/device/pages/index/index.vue b/src/subpackage/device/pages/index/index.vue
index c9aedc2..2a6ef51 100644
--- a/src/subpackage/device/pages/index/index.vue
+++ b/src/subpackage/device/pages/index/index.vue
@@ -33,7 +33,7 @@ const tabArr = [
{id: 11, name: '水阀', path: `/pages/switch_manage/switch_manage`},
{id: 12, name: '互动设备', path: `/pages/switch_manage/switch_manage`},
{id: 13, name: '监控', path: ``},
- {id: 14, name: '音响', path: ``},
+ {id: 14, name: '音响', path: `/pages/audio_manage/audio_manage`},
{id: 15, name: '机器人', path: ``},
];
export default {
@@ -74,6 +74,7 @@ export default {
e.id == 9 || // 储物柜
e.id == 10 || // 咖啡机
e.id == 11 || // 水阀
+ e.id == 14 || // 音响
e.id == 7 // 售货柜
)return util.routeTo(`${rootPage}${e.path}?sid=${e.id}`, 'nT');
util.showNone(`开发中!`);
diff --git a/src/subpackage/device/static/images/i_txt.png b/src/subpackage/device/static/images/i_txt.png
new file mode 100644
index 0000000..4ce25a2
Binary files /dev/null and b/src/subpackage/device/static/images/i_txt.png differ
diff --git a/src/subpackage/device/static/images/i_voice_1.png b/src/subpackage/device/static/images/i_voice_1.png
new file mode 100644
index 0000000..70bed67
Binary files /dev/null and b/src/subpackage/device/static/images/i_voice_1.png differ
diff --git a/src/subpackage/device/static/images/i_voice_2.png b/src/subpackage/device/static/images/i_voice_2.png
new file mode 100644
index 0000000..fce66a6
Binary files /dev/null and b/src/subpackage/device/static/images/i_voice_2.png differ
diff --git a/src/subpackage/device/static/images/i_voice_3.png b/src/subpackage/device/static/images/i_voice_3.png
new file mode 100644
index 0000000..0b603ee
Binary files /dev/null and b/src/subpackage/device/static/images/i_voice_3.png differ