From d8b0f277b282496bae8b0cd077c53547b60c2778 Mon Sep 17 00:00:00 2001 From: zmt Date: Tue, 6 Jul 2021 18:10:40 +0800 Subject: [PATCH] todo listenVoice --- src/pages.json | 6 + src/subpackage/device/js/device_api.js | 4 + .../device/pages/audio_manage/audio_manage.vue | 849 +++++++++++++++++++++ src/subpackage/device/pages/index/index.vue | 3 +- src/subpackage/device/static/images/i_txt.png | Bin 0 -> 11208 bytes src/subpackage/device/static/images/i_voice_1.png | Bin 0 -> 10120 bytes src/subpackage/device/static/images/i_voice_2.png | Bin 0 -> 2981 bytes src/subpackage/device/static/images/i_voice_3.png | Bin 0 -> 2413 bytes 8 files changed, 861 insertions(+), 1 deletion(-) create mode 100644 src/subpackage/device/pages/audio_manage/audio_manage.vue create mode 100644 src/subpackage/device/static/images/i_txt.png create mode 100644 src/subpackage/device/static/images/i_voice_1.png create mode 100644 src/subpackage/device/static/images/i_voice_2.png create mode 100644 src/subpackage/device/static/images/i_voice_3.png 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 @@ +