Commit 96b7805b78f2efa71830f58c2fc89832bef6b03c

Authored by fengtao
1 parent e9d7f0f3

fix:修改命令下发 method

... ... @@ -62,7 +62,7 @@
62 62 <u-radio activeColor="#3388FF" label="双向" name="TwoWay"></u-radio>
63 63 </u-radio-group>
64 64 </view>
65   - <view style="margin-top: 28rpx;width: 100%;"><u--textarea placeholder="请输入命令内容" v-model="commandValue" /></view>
  65 + <view style="margin-top: 28rpx;width: 100%;"><u--textarea placeholder="请输入详情" v-model="commandValue" /></view>
66 66
67 67 <view class="button-group">
68 68 <view><u-button :customStyle="{ color: '#333' }" color="#e3e3e5" shape="circle" text="取消" @click="cancelCommand"></u-button></view>
... ... @@ -90,8 +90,8 @@ export default {
90 90 commandValue: JSON.stringify({
91 91 method: 'methodThingskit',
92 92 params: {
93   - pin: 7,
94   - value: 1
  93 + method: 'methodThingskit',
  94 + params: { pin: 7, value: 1 }
95 95 }
96 96 })
97 97 };
... ...