From 01f76101a4d0842e45026877b91b81944c4e45b4 Mon Sep 17 00:00:00 2001 From: xlolic <1315381101@qq.com> Date: Mon, 20 Jan 2025 10:56:19 +0800 Subject: [PATCH] one --- App.vue | 2 - components/privacy/index.vue | 108 +++++ env/dev.js | 2 +- manifest.json | 8 +- pages.json | 38 +- pages/bluetooth/connect.vue | 501 +++++++++++++++++++++ pages/bluetooth/detail.vue | 345 ++++++++++++++ pages/bluetooth/wdetail.vue | 123 +++++ pages/bluetooth/wifi.vue | 544 +++++++++++++++++++++++ pages/center/RuleEditing/RuleEditing.vue | 2 +- pages/index/customer.vue | 87 +++- pages/index/index.vue | 283 +++++++++++- pages/index/personal.vue | 18 +- pages/mine/reception/addreception.vue | 55 ++- static/images/bluetooth-con.png | Bin 0 -> 1749 bytes static/images/bluetooth-del.png | Bin 0 -> 2311 bytes static/images/bluetooth-empty.png | Bin 0 -> 20934 bytes static/images/bluetooth-ghh-ac.png | Bin 0 -> 1601 bytes static/images/bluetooth-ghh.png | Bin 0 -> 1504 bytes static/images/bluetooth-scan.png | Bin 0 -> 926 bytes static/images/bluetooth-search.png | Bin 0 -> 2620 bytes static/images/bluetooth-sx.png | Bin 0 -> 2128 bytes static/images/bluetooth-wifi.png | Bin 0 -> 2248 bytes static/images/bluetooth.png | Bin 0 -> 1376 bytes static/images/ly-ac.png | Bin 0 -> 2168 bytes static/images/ly.png | Bin 0 -> 2360 bytes store/index.js | 11 + utils/blue.js | 345 ++++++++++++++ 28 files changed, 2443 insertions(+), 29 deletions(-) create mode 100644 components/privacy/index.vue create mode 100644 pages/bluetooth/connect.vue create mode 100644 pages/bluetooth/detail.vue create mode 100644 pages/bluetooth/wdetail.vue create mode 100644 pages/bluetooth/wifi.vue create mode 100644 static/images/bluetooth-con.png create mode 100644 static/images/bluetooth-del.png create mode 100644 static/images/bluetooth-empty.png create mode 100644 static/images/bluetooth-ghh-ac.png create mode 100644 static/images/bluetooth-ghh.png create mode 100644 static/images/bluetooth-scan.png create mode 100644 static/images/bluetooth-search.png create mode 100644 static/images/bluetooth-sx.png create mode 100644 static/images/bluetooth-wifi.png create mode 100644 static/images/bluetooth.png create mode 100644 static/images/ly-ac.png create mode 100644 static/images/ly.png create mode 100644 utils/blue.js diff --git a/App.vue b/App.vue index 63c0fe3..765ba75 100644 --- a/App.vue +++ b/App.vue @@ -13,7 +13,6 @@ // 获取用户信息 uni.getSystemInfo({ success: function(e) { - console.log(e, 'phoneInfo') // #ifdef MP-WEIXIN Vue.prototype.StatusBar = e.statusBarHeight; let custom = wx.getMenuButtonBoundingClientRect(); @@ -314,7 +313,6 @@ } }) - this.$u.get(config.service.notReadNum, { id: uni.getStorageSync('weapp_session_userInfo_data').accountId, projectId: uni.getStorageSync('buildingID').id diff --git a/components/privacy/index.vue b/components/privacy/index.vue new file mode 100644 index 0000000..15d46ee --- /dev/null +++ b/components/privacy/index.vue @@ -0,0 +1,108 @@ + + + + + diff --git a/env/dev.js b/env/dev.js index 7be4025..a9828a1 100644 --- a/env/dev.js +++ b/env/dev.js @@ -1,5 +1,5 @@ const ENV_PATH = { - baseUrl: 'http://39.97.244.65:9999', // 微信的测试环境 + baseUrl: 'https://test.quhouse.com', // 微信的测试环境39.97.244.65 http://120.92.19.130:9999 } module.exports = ENV_PATH \ No newline at end of file diff --git a/manifest.json b/manifest.json index f6017e1..42fe407 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name" : "AI销讲助手", - "appid" : "__UNI__7A1611D", + "appid" : "__UNI__725D632", "description" : "AI销讲助手", "versionName" : "1.1.0", "versionCode" : "100", @@ -80,7 +80,11 @@ "minified" : true }, "usingComponents" : true, - "permission" : {}, + "permission" : { + "scope.bluetooth" : { + "desc" : "需要使用蓝牙功能,请允许访问您的蓝牙设备" + } + }, "requiredBackgroundModes" : [ "audio" ], "lazyCodeLoading" : "requiredComponents", "plugins" : { diff --git a/pages.json b/pages.json index ec70079..1f38e9d 100644 --- a/pages.json +++ b/pages.json @@ -643,6 +643,42 @@ } ] + }, + { + "root": "pages/bluetooth", //中心逻辑的模块都放到这里 + "name": "bluetooth", + "pages": [{ + "path" : "connect", + "style" : + { + "navigationBarTitleText" : "蓝牙连接", + "enablePullDownRefresh" : false + } + }, + { + "path" : "detail", + "style" : + { + "navigationBarTitleText" : "蓝牙详情", + "enablePullDownRefresh" : false + } + }, + { + "path" : "wifi", + "style" : + { + "navigationBarTitleText" : "wifi列表", + "enablePullDownRefresh" : false + } + }, + { + "path" : "wdetail", + "style" : + { + "navigationBarTitleText" : "wifi资料", + "enablePullDownRefresh" : false + } + }] } ], @@ -700,4 +736,4 @@ "navigationBarTitleText": "AI销讲助手", "navigationBarTextStyle": "black" } -} +} diff --git a/pages/bluetooth/connect.vue b/pages/bluetooth/connect.vue new file mode 100644 index 0000000..5331d4f --- /dev/null +++ b/pages/bluetooth/connect.vue @@ -0,0 +1,501 @@ + + + + + \ No newline at end of file diff --git a/pages/bluetooth/detail.vue b/pages/bluetooth/detail.vue new file mode 100644 index 0000000..78d5013 --- /dev/null +++ b/pages/bluetooth/detail.vue @@ -0,0 +1,345 @@ + + + + + diff --git a/pages/bluetooth/wdetail.vue b/pages/bluetooth/wdetail.vue new file mode 100644 index 0000000..f2e3bde --- /dev/null +++ b/pages/bluetooth/wdetail.vue @@ -0,0 +1,123 @@ + + + + + diff --git a/pages/bluetooth/wifi.vue b/pages/bluetooth/wifi.vue new file mode 100644 index 0000000..63efb21 --- /dev/null +++ b/pages/bluetooth/wifi.vue @@ -0,0 +1,544 @@ + + + + + diff --git a/pages/center/RuleEditing/RuleEditing.vue b/pages/center/RuleEditing/RuleEditing.vue index ad1a54f..ef618cd 100644 --- a/pages/center/RuleEditing/RuleEditing.vue +++ b/pages/center/RuleEditing/RuleEditing.vue @@ -173,7 +173,7 @@ }) params['index' + (index + 1)] = arr.join((',')) || '' }) - console.log(params) + // this.stayPendingProcessingArr this.$u.post('/customer/bisave', params).then(res => { console.log(res) diff --git a/pages/index/customer.vue b/pages/index/customer.vue index 56ec65d..3c546cd 100644 --- a/pages/index/customer.vue +++ b/pages/index/customer.vue @@ -10,7 +10,7 @@ 暂无数据 - + @@ -94,10 +94,14 @@ +