1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <template>
- <view>
- <button type="primary" @click="goDevice">设备管理</button>
- <button @click="activateDevice">设备激活</button>
- <button type="primary" @click="goWebview('product/manual')">
- 产品手册
- </button>
- <button type="primary" @click="goWebview('help')">帮助与反馈</button>
- <button type="primary" @click="goWebview('about')">关于</button>
- </view>
- </template>
- <script>
- import BleActivate from "../../Lib/BleActivateDevice.js";
- export default {
- data() {
- return {};
- },
- methods: {
- goWebview(path) {
- uni.navigateTo({
- url: `../webview/webview?path=${path}`,
- });
- },
- goDevice() {
- uni.navigateTo({
- url: "device/deviceManager/deviceManager",
- });
- },
- activateDevice() {
- // let data = "E2E7A1A90C89E81A62BACA5DD386F2A8ADD1192C5F3400F4D4D5B2FBF32B3B60B1209598A82C679D30C4604726D30DC09A31E241B716258CC2887FE6395D6181B9D55476A4F8F4C3D11A850BE4FE10BC42F126D74053F7A1B9FB44F76FE79B9903F48B0C5FB38746E6CDCA35121C785F46FC66460C56A8382D7656FBE4D0DB3A363149E0BCF94C05C69D2120241A98C83C8D05BA409C6F981F3491226AFBB7ACF987BD8E72E7B53AE77CFFE51E8CDE6F787BA7641B4F601BC5744FB99C50E7AC"
- // BleActivate.sendLongData("sdf",data)
- uni.navigateTo({
- url:"../demo/ble/activateDevice/activateDevice?model=MW-M3&name=猫王·MW-M3"
- })
-
- },
- },
- };
- </script>
- <style>
- </style>
|