mine.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <view>
  3. <button type="primary" @click="goDevice">设备管理</button>
  4. <button @click="activateDevice">设备激活</button>
  5. <button type="primary" @click="goWebview('product/manual')">
  6. 产品手册
  7. </button>
  8. <button type="primary" @click="goWebview('help')">帮助与反馈</button>
  9. <button type="primary" @click="goWebview('about')">关于</button>
  10. </view>
  11. </template>
  12. <script>
  13. import BleActivate from "../../Lib/BleActivateDevice.js";
  14. export default {
  15. data() {
  16. return {};
  17. },
  18. methods: {
  19. goWebview(path) {
  20. uni.navigateTo({
  21. url: `../webview/webview?path=${path}`,
  22. });
  23. },
  24. goDevice() {
  25. uni.navigateTo({
  26. url: "device/deviceManager/deviceManager",
  27. });
  28. },
  29. activateDevice() {
  30. // let data = "E2E7A1A90C89E81A62BACA5DD386F2A8ADD1192C5F3400F4D4D5B2FBF32B3B60B1209598A82C679D30C4604726D30DC09A31E241B716258CC2887FE6395D6181B9D55476A4F8F4C3D11A850BE4FE10BC42F126D74053F7A1B9FB44F76FE79B9903F48B0C5FB38746E6CDCA35121C785F46FC66460C56A8382D7656FBE4D0DB3A363149E0BCF94C05C69D2120241A98C83C8D05BA409C6F981F3491226AFBB7ACF987BD8E72E7B53AE77CFFE51E8CDE6F787BA7641B4F601BC5744FB99C50E7AC"
  31. // BleActivate.sendLongData("sdf",data)
  32. uni.navigateTo({
  33. url:"../demo/ble/activateDevice/activateDevice?model=MW-M3&name=猫王·MW-M3"
  34. })
  35. },
  36. },
  37. };
  38. </script>
  39. <style>
  40. </style>