| | |
| | | // #ifdef APP-PLUS
|
| | | url: 'wx://' + this.$api.mqttBaseUrl + ':8083/mqtt',
|
| | | // #endif
|
| | | // #ifdef MP-WEIXIN |
| | | url: 'wss://' + this.$api.mqttBaseUrl + '/mqtt', // 必须用 wss,端口通常为443可省略 |
| | | // #endif
|
| | | clientId: this.deviceId,
|
| | | username: account.username,
|
| | | password: account.password
|
| | |
| | | }).then(res => {
|
| | | console.error(res)
|
| | | })
|
| | | |
| | |
|
| | | //订阅发送指令返回结果
|
| | | // this.$mqttTool.subscribe({
|
| | | // topic: this.$constant.SERVICE_RES_EQU_CMD,
|
| | |
| | | },
|
| | | goCharts(e) {
|
| | | uni.navigateTo({
|
| | | url: "/pages/charts/charts"
|
| | | url: "/packageA/pages/charts/charts"
|
| | | })
|
| | | },
|
| | | getOrderList(date1, date2) {
|
| | |
| | | <style lang="scss" scoped>
|
| | | .app {
|
| | | width: 100%;
|
| | | max-height: 100vh;
|
| | | overflow: hidden;
|
| | | }
|
| | |
|