Files
doodle-mini/miniprogram/supportPages/debug/debug.wxml
T
2026-10-19 17:49:19 +08:00

51 lines
2.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<view class="debug-page">
<view wx:if="{{isDevEnv}}" class="debug-page__environment">
<text class="debug-page__section-title"
>接口环境 · {{currentEnvironment}}</text
>
<text class="debug-page__environment-url">{{currentBaseUrl}}</text>
<view class="debug-page__environment-options">
<button
wx:for="{{environments}}"
wx:key="environment"
class="debug-environment-option {{currentEnvironment === item.environment ? 'debug-environment-option--selected' : ''}}"
data-environment="{{item.environment}}"
disabled="{{!item.available || isSwitchingEnvironment}}"
bindtap="onSelectEnvironment">
{{item.environment}}
<text wx:if="{{!item.available}}">(未配置)</text>
</button>
</view>
<text class="debug-page__environment-note"
>切换后自动返回首页;下次打开开发版继续使用所选环境。</text
>
</view>
<view class="debug-page__section">
<text class="debug-page__section-title">入口列表</text>
<view class="debug-page__rows">
<view
wx:for="{{entries}}"
wx:key="id"
class="debug-row"
data-path="{{item.path}}"
bindtap="onTapEntry">
<view class="debug-row__left">
<view class="debug-row__icon-bg">
<text class="debug-row__icon">{{item.icon}}</text>
</view>
<view class="debug-row__content">
<text class="debug-row__label">{{item.title}}</text>
<text class="debug-row__desc">{{item.subtitle}}</text>
</view>
</view>
<text class="debug-row__chevron">›</text>
</view>
</view>
</view>
<view wx:if="{{!isDevEnv}}" class="debug-page__notice">
当前不是开发环境,此页仅供调试使用。
</view>
</view>