You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.3 KiB

<page-wrapper>
<view class="container" wx:if="{{isReady}}">
<view class="page-title" wx:if="{{step !== -1 && step !== -2}}">
{{title}}
</view>
<block wx:if="{{step === 0}}">
<guide bind:complete="onGuideComplete" />
</block>
<block wx:elif="{{step === 1}}">
<input-wifi-info
title="{{needDeviceAp ? '选择目标WiFi' : '连接目标WiFi'}}"
bind:complete="onTargetWifiInputComplete"
autoConnect="{{!needDeviceAp}}"
/>
</block>
<block wx:elif="{{step === 2}}">
<bluetooth-finder
wx:if="{{pluginName === 'wifiConfBleCombo'}}"
adapterType="BLE_COMBO_LLSYNC"
bind:connected="onBluetoothConnected"
bind:nextStep="onNextStep"
/>
<input-wifi-info
wx:else
title="连接设备WiFi"
bind:complete="onDeviceWifiInputComplete"
/>
</block>
<block wx:elif="{{step === 3}}">
<do-config curStep="{{curConnStep}}" />
</block>
<block wx:elif="{{step === -1}}">
<success-view bind:complete="onBack" />
</block>
<block wx:elif="{{step === -2}}">
<error-view bind:complete="onBack" errorTips="{{errorTips}}" logs="{{logs}}"/>
</block>
</view>
<mp-loading type="dot-gray" wx:else></mp-loading>
</page-wrapper>