|
|
- <view><block wx:if="{{!connected}}"><view class="content"><u-icon class="logo" vue-id="8dd740cc-1" size="300" color="#808080" name="scan" data-event-opts="{{[['^click',[['scanDevice']]]]}}" bind:click="__e" bind:__l="__l"></u-icon><view class="text-area"><text class="title">{{title}}</text></view></view></block><block wx:else><view style="margin-top:300rpx;padding-left:10px;"><u-row vue-id="8dd740cc-2" gutter="16" bind:__l="__l" vue-slots="{{['default']}}"><u-col vue-id="{{('8dd740cc-3')+','+('8dd740cc-2')}}" span="7" bind:__l="__l" vue-slots="{{['default']}}"><view><u-slider vue-id="{{('8dd740cc-4')+','+('8dd740cc-3')}}" height="{{20}}" step="10" value="{{valueki}}" data-event-opts="{{[['^end',[['kiTovalue']]],['^input',[['__set_model',['','valueki','$event',[]]]]]]}}" bind:end="__e" bind:input="__e" bind:__l="__l"></u-slider></view></u-col><u-col vue-id="{{('8dd740cc-5')+','+('8dd740cc-2')}}" span="4" offset="1" bind:__l="__l" vue-slots="{{['default']}}"><u-number-box vue-id="{{('8dd740cc-6')+','+('8dd740cc-5')}}" min="{{0}}" max="{{10}}" value="{{value}}" data-event-opts="{{[['^change',[['valueToki']]],['^input',[['__set_model',['','value','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l"></u-number-box></u-col></u-row><u-row vue-id="8dd740cc-7" gutter="16" bind:__l="__l" vue-slots="{{['default']}}"><u-col vue-id="{{('8dd740cc-8')+','+('8dd740cc-7')}}" span="3" bind:__l="__l" vue-slots="{{['default']}}"><u-button vue-id="{{('8dd740cc-9')+','+('8dd740cc-8')}}" plain="{{true}}" size="mini" type="success" data-event-opts="{{[['^click',[['sendValue']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">确认发送</u-button></u-col><u-col vue-id="{{('8dd740cc-10')+','+('8dd740cc-7')}}" span="3" bind:__l="__l" vue-slots="{{['default']}}"><u-button vue-id="{{('8dd740cc-11')+','+('8dd740cc-10')}}" plain="{{true}}" size="mini" type="error" data-event-opts="{{[['^click',[['closeBLEConnection']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">断开连接</u-button></u-col><u-col vue-id="{{('8dd740cc-12')+','+('8dd740cc-7')}}" span="3" bind:__l="__l" vue-slots="{{['default']}}"><u-button vue-id="{{('8dd740cc-13')+','+('8dd740cc-12')}}" plain="{{true}}" size="mini" type="warning" data-event-opts="{{[['^click',[['writeBLECharacteristicValueString',['getd']]]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">获取开合度</u-button></u-col></u-row></view></block><u-modal vue-id="8dd740cc-14" title="提示" content="未搜索到设备,是否继续搜索" show-cancel-button="{{true}}" value="{{searchLoad}}" data-event-opts="{{[['^cancel',[['e0']]],['^confirm',[['continueSearch']]],['^input',[['__set_model',['','searchLoad','$event',[]]]]]]}}" bind:cancel="__e" bind:confirm="__e" bind:input="__e" bind:__l="__l"></u-modal><u-toast class="vue-ref" vue-id="8dd740cc-15" data-ref="uToast" bind:__l="__l"></u-toast></view>
|