| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522 |
- <view class="page">
- <view
- class="app-edge-glow app-edge-glow--{{panelTelemetryTone}}"
- wx:if="{{panelTelemetryTone === 'orange' || panelTelemetryTone === 'red'}}"
- ></view>
- <view
- class="map-stage"
- catchtouchstart="handleTouchStart"
- catchtouchmove="handleTouchMove"
- catchtouchend="handleTouchEnd"
- catchtouchcancel="handleTouchCancel"
- >
- <view class="map-content">
- <canvas
- id="mapCanvas"
- type="webgl"
- canvas-id="mapCanvas"
- class="map-canvas map-canvas--base"
- ></canvas>
- <canvas
- id="routeLabelCanvas"
- type="2d"
- canvas-id="routeLabelCanvas"
- class="map-canvas map-canvas--labels"
- ></canvas>
- </view>
- <view class="map-stage__crosshair"></view>
- <view class="map-stage__map-pulse {{mapPulseFxClass}}" wx:if="{{mapPulseVisible}}" style="left: {{mapPulseLeftPx}}px; top: {{mapPulseTopPx}}px;"></view>
- <view class="map-stage__stage-fx {{stageFxClass}}" wx:if="{{stageFxVisible}}"></view>
- <view class="game-punch-hint" wx:if="{{punchHintText}}">{{punchHintText}}</view>
- <view class="game-punch-feedback game-punch-feedback--{{punchFeedbackTone}} {{punchFeedbackFxClass}}" wx:if="{{punchFeedbackVisible}}">{{punchFeedbackText}}</view>
- <view class="game-content-card {{contentCardFxClass}}" wx:if="{{contentCardVisible}}" bindtap="handleCloseContentCard">
- <view class="game-content-card__title">{{contentCardTitle}}</view>
- <view class="game-content-card__body">{{contentCardBody}}</view>
- <view class="game-content-card__hint">点击关闭</view>
- </view>
- <view class="map-stage__overlay">
- <view class="map-stage__bottom">
- <view class="compass-widget">
- <view class="compass-widget__heading">{{sensorHeadingText}}</view>
- <view class="compass-widget__edge-arrow"></view>
- <view class="compass-widget__dial {{orientationMode === 'heading-up' ? 'compass-widget__dial--active' : ''}}">
- <view class="compass-widget__glass"></view>
- <view class="compass-widget__inner-shadow"></view>
- <view class="compass-widget__card" style="transform: rotate({{rotationDeg}}deg);">
- <image class="compass-widget__north-arrow" src="../../assets/compass-north-arrow.svg" mode="aspectFit"></image>
- <view wx:for="{{compassTicks}}" wx:key="angle" class="compass-widget__tick-anchor" style="transform: translate(-50%, -50%) rotate({{item.angle}}deg);">
- <view class="compass-widget__tick {{item.long ? 'compass-widget__tick--long' : 'compass-widget__tick--short'}} {{item.major ? 'compass-widget__tick--major' : ''}}"></view>
- </view>
- <view wx:for="{{compassLabels}}" wx:key="text" class="compass-widget__mark-anchor" style="transform: translate(-50%, -50%) rotate({{item.angle}}deg);">
- <view class="compass-widget__mark {{item.className}}" style="transform: translate(-50%, -50%) translateY(-{{item.radius}}rpx) rotate({{item.rotateBack}}deg);">{{item.text}}</view>
- </view>
- </view>
- <view class="compass-widget__needle-anchor" style="transform: translate(-50%, -50%) rotate({{compassNeedleDeg}}deg);">
- <view class="compass-widget__needle-north"></view>
- <view class="compass-widget__needle-south"></view>
- </view>
- <view class="compass-widget__hub"></view>
- <view class="compass-widget__hub-core"></view>
- </view>
- <view class="compass-widget__hint" wx:if="{{compassDeclinationText}}">{{compassDeclinationText}}</view>
- </view>
- </view>
- </view>
- </view>
- <cover-view class="map-side-toggle" wx:if="{{!showDebugPanel}}" style="top: {{topInsetHeight}}px;" bindtap="handleCycleSideButtons">
- <cover-view class="map-side-button map-side-button--icon">
- <cover-image wx:if="{{sideButtonMode === 'left'}}" class="map-side-button__image" src="../../assets/btn_more2.png"></cover-image>
- <cover-image wx:elif="{{sideButtonMode === 'hidden'}}" class="map-side-button__image" src="../../assets/btn_more1.png"></cover-image>
- <cover-image wx:else class="map-side-button__image" src="../../assets/btn_more3.png"></cover-image>
- </cover-view>
- </cover-view>
- <cover-view class="map-side-column map-side-column--left map-side-column--left-group" wx:if="{{!showDebugPanel && showLeftButtonGroup}}" style="top: {{topInsetHeight}}px;">
- <cover-view class="map-side-button map-side-button--icon" bindtap="handleToggleMapRotateMode"><cover-image class="map-side-button__rotate-image {{orientationMode === 'heading-up' ? 'map-side-button__rotate-image--active' : ''}}" src="../../assets/btn_map_rotate_cropped.png"></cover-image></cover-view>
- <cover-view class="map-side-button map-side-button--muted"><cover-view class="map-side-button__text">LOC</cover-view></cover-view>
- <cover-view class="map-side-button"><cover-view class="map-side-button__text">LOCK</cover-view></cover-view>
- <cover-view class="map-side-button map-side-button--active"><cover-view class="map-side-button__text">SUN</cover-view></cover-view>
- <cover-view class="map-side-button"><cover-view class="map-side-button__text">EXIT</cover-view></cover-view>
- </cover-view>
- <cover-view class="map-side-column map-side-column--right-main" wx:if="{{!showDebugPanel && showRightButtonGroups}}" style="top: {{topInsetHeight}}px;">
- <cover-view class="map-side-button"><cover-view class="map-side-button__text">N</cover-view></cover-view>
- <cover-view class="map-side-button map-side-button--active"><cover-view class="map-side-button__text">DIR</cover-view></cover-view>
- <cover-view class="map-side-button"><cover-view class="map-side-button__text">COMP</cover-view></cover-view>
- <cover-view class="map-side-button map-side-button--active"><cover-view class="map-side-button__text">GUIDE</cover-view></cover-view>
- <cover-view class="map-side-button map-side-button--muted"><cover-view class="map-side-button__text">NET</cover-view></cover-view>
- <cover-view class="map-side-button map-side-button--active"><cover-view class="map-side-button__text">GO</cover-view></cover-view>
- </cover-view>
- <cover-view class="map-side-column map-side-column--right-sub" wx:if="{{!showDebugPanel && showRightButtonGroups}}" style="top: {{topInsetHeight}}px;">
- <cover-view class="map-side-button"><cover-view class="map-side-button__text">INFO</cover-view></cover-view>
- <cover-view class="map-side-button"><cover-view class="map-side-button__text">SET</cover-view></cover-view>
- <cover-view class="map-side-button"><cover-view class="map-side-button__text">m</cover-view></cover-view>
- <cover-view class="map-side-button"><cover-view class="map-side-button__text">PIN</cover-view></cover-view>
- <cover-view class="map-side-button"><cover-view class="map-side-button__text">LIST</cover-view></cover-view>
- <cover-view class="map-side-button"><cover-view class="map-side-button__text">USER</cover-view></cover-view>
- </cover-view>
- <cover-view class="map-punch-button {{punchButtonEnabled ? 'map-punch-button--active' : ''}} {{punchButtonFxClass}}" wx:if="{{!showDebugPanel}}" bindtap="handlePunchAction">
- <cover-view class="map-punch-button__text">{{punchButtonText}}</cover-view>
- </cover-view>
- <cover-view class="screen-button-layer screen-button-layer--start-left" wx:if="{{!showDebugPanel && showBottomDebugButton && gameSessionStatus === 'idle'}}" bindtap="handleStartGame">
- <cover-view class="screen-button-layer__text screen-button-layer__text--start">开始</cover-view>
- </cover-view>
- <cover-view class="screen-button-layer screen-button-layer--bottom-left" wx:if="{{!showDebugPanel && showBottomDebugButton}}" bindtap="handleToggleDebugPanel">
- <cover-view class="screen-button-layer__icon">
- <cover-view class="screen-button-layer__line"></cover-view>
- <cover-view class="screen-button-layer__stand"></cover-view>
- </cover-view>
- <cover-view class="screen-button-layer__text">调试</cover-view>
- </cover-view>
- <swiper class="race-panel-swiper" current="{{hudPanelIndex}}" bindchange="handleHudPanelChange" duration="220" easing-function="easeOutCubic">
- <swiper-item>
- <view class="race-panel race-panel--tone-{{panelTelemetryTone}}">
- <view class="race-panel__tag race-panel__tag--top-left">{{panelActionTagText}}</view>
- <view class="race-panel__tag race-panel__tag--top-right">里程</view>
- <view class="race-panel__tag race-panel__tag--bottom-left">{{panelDistanceTagText}}</view>
- <view class="race-panel__tag race-panel__tag--bottom-right">速度</view>
- <view class="race-panel__line race-panel__line--center"></view>
- <view class="race-panel__line race-panel__line--left-mid"></view>
- <view class="race-panel__line race-panel__line--right-mid"></view>
- <view class="race-panel__line race-panel__line--left-top"></view>
- <view class="race-panel__line race-panel__line--left-bottom"></view>
- <view class="race-panel__line race-panel__line--right-top"></view>
- <view class="race-panel__line race-panel__line--right-bottom"></view>
- <view class="race-panel__grid">
- <view class="race-panel__cell race-panel__cell--action">
- <view class="race-panel__action-button"><!-- status only -->
- <view class="race-panel__action-button-text">{{punchButtonText}}</view>
- </view>
- </view>
- <view class="race-panel__cell race-panel__cell--timer">
- <text class="race-panel__timer">{{panelTimerText}}</text>
- </view>
- <view class="race-panel__cell race-panel__cell--mileage">
- <view class="race-panel__mileage-wrap">
- <text class="race-panel__mileage">{{panelMileageText}}</text>
- <view class="race-panel__chevrons">
- <view class="race-panel__chevron"></view>
- <view class="race-panel__chevron race-panel__chevron--offset"></view>
- </view>
- </view>
- </view>
- <view class="race-panel__cell race-panel__cell--distance">
- <view class="race-panel__metric-group race-panel__metric-group--left">
- <text class="race-panel__metric-value race-panel__metric-value--distance">{{panelDistanceValueText}}</text>
- <text class="race-panel__metric-unit race-panel__metric-unit--distance">{{panelDistanceUnitText}}</text>
- </view>
- </view>
- <view class="race-panel__cell race-panel__cell--progress">
- <text class="race-panel__progress">{{panelProgressText}}</text>
- </view>
- <view class="race-panel__cell race-panel__cell--speed">
- <view class="race-panel__metric-group race-panel__metric-group--right">
- <text class="race-panel__metric-value race-panel__metric-value--speed">{{panelSpeedValueText}}</text>
- <text class="race-panel__metric-unit race-panel__metric-unit--speed">km/h</text>
- </view>
- </view>
- </view>
- </view>
- </swiper-item>
- <swiper-item>
- <view class="race-panel race-panel--tone-{{panelTelemetryTone}}">
- <view class="race-panel__tag race-panel__tag--top-left">心率</view>
- <view class="race-panel__tag race-panel__tag--top-right">卡路里</view>
- <view class="race-panel__tag race-panel__tag--bottom-left">均速</view>
- <view class="race-panel__tag race-panel__tag--bottom-right">精度</view>
- <view class="race-panel__line race-panel__line--center"></view>
- <view class="race-panel__line race-panel__line--left-mid"></view>
- <view class="race-panel__line race-panel__line--right-mid"></view>
- <view class="race-panel__line race-panel__line--left-top"></view>
- <view class="race-panel__line race-panel__line--left-bottom"></view>
- <view class="race-panel__line race-panel__line--right-top"></view>
- <view class="race-panel__line race-panel__line--right-bottom"></view>
- <view class="race-panel__grid">
- <view class="race-panel__cell race-panel__cell--action">
- <view class="race-panel__metric-group race-panel__metric-group--left race-panel__metric-group--panel">
- <text class="race-panel__metric-value race-panel__metric-value--telemetry">{{panelHeartRateValueText}}</text>
- <text class="race-panel__metric-unit race-panel__metric-unit--telemetry">{{panelHeartRateUnitText}}</text>
- </view>
- </view>
- <view class="race-panel__cell race-panel__cell--timer">
- <text class="race-panel__timer">{{panelTimerText}}</text>
- </view>
- <view class="race-panel__cell race-panel__cell--mileage">
- <view class="race-panel__metric-group race-panel__metric-group--right race-panel__metric-group--panel">
- <text class="race-panel__metric-value race-panel__metric-value--telemetry">{{panelCaloriesValueText}}</text>
- <text class="race-panel__metric-unit race-panel__metric-unit--telemetry">{{panelCaloriesUnitText}}</text>
- </view>
- </view>
- <view class="race-panel__cell race-panel__cell--distance">
- <view class="race-panel__metric-group race-panel__metric-group--left race-panel__metric-group--panel">
- <text class="race-panel__metric-value race-panel__metric-value--telemetry-secondary">{{panelAverageSpeedValueText}}</text>
- <text class="race-panel__metric-unit race-panel__metric-unit--telemetry">{{panelAverageSpeedUnitText}}</text>
- </view>
- </view>
- <view class="race-panel__cell race-panel__cell--progress">
- <view class="race-panel__zone">
- <text class="race-panel__zone-name">{{panelHeartRateZoneNameText}}</text>
- <text class="race-panel__zone-range">{{panelHeartRateZoneRangeText}}</text>
- </view>
- </view>
- <view class="race-panel__cell race-panel__cell--speed">
- <view class="race-panel__metric-group race-panel__metric-group--right race-panel__metric-group--panel">
- <text class="race-panel__metric-value race-panel__metric-value--telemetry-secondary">{{panelAccuracyValueText}}</text>
- <text class="race-panel__metric-unit race-panel__metric-unit--telemetry">{{panelAccuracyUnitText}}</text>
- </view>
- </view>
- </view>
- </view>
- </swiper-item>
- </swiper>
- <view class="race-panel-pager" wx:if="{{!showDebugPanel}}">
- <view class="race-panel-pager__dot {{hudPanelIndex === 0 ? 'race-panel-pager__dot--active' : ''}}"></view>
- <view class="race-panel-pager__dot {{hudPanelIndex === 1 ? 'race-panel-pager__dot--active' : ''}}"></view>
- </view>
- <view class="debug-modal" wx:if="{{showDebugPanel}}" bindtap="handleCloseDebugPanel">
- <view class="debug-modal__dialog" catchtap="handleDebugPanelTap">
- <view class="debug-modal__header">
- <view class="debug-modal__header-main">
- <view class="debug-modal__eyebrow">DEBUG PANEL</view>
- <view class="debug-modal__build">{{buildVersion}}</view>
- </view>
- <view class="debug-modal__header-actions">
- <view class="debug-modal__close" bindtap="handleCloseDebugPanel">关闭</view>
- </view>
- </view>
- <scroll-view class="debug-modal__content" scroll-y enhanced show-scrollbar="true">
- <view class="debug-section">
- <view class="debug-section__header">
- <view class="debug-section__title">Session</view>
- <view class="debug-section__desc">当前局状态与主流程控制</view>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Mode</text>
- <text class="info-panel__value">{{gameModeText}}</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Game</text>
- <text class="info-panel__value">{{gameSessionStatus}}</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Progress</text>
- <text class="info-panel__value">{{panelProgressText}}</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Timer</text>
- <text class="info-panel__value">{{panelTimerText}}</text>
- </view>
- <view class="info-panel__row info-panel__row--stack">
- <text class="info-panel__label">Punch Hint</text>
- <text class="info-panel__value">{{punchHintText}}</text>
- </view>
- <view class="control-row">
- <view class="control-chip {{gameModeText === '顺序赛' ? 'control-chip--active' : 'control-chip--secondary'}}" bindtap="handleSetClassicMode">顺序赛</view>
- <view class="control-chip {{gameModeText === '积分赛' ? 'control-chip--active' : 'control-chip--secondary'}}" bindtap="handleSetScoreOMode">积分赛</view>
- </view>
- <view class="control-row">
- <view class="control-chip control-chip--primary" bindtap="handleRecenter">回到首屏</view>
- <view class="control-chip control-chip--secondary" bindtap="handleRotationReset">旋转归零</view>
- </view>
- </view>
- <view class="debug-section">
- <view class="debug-section__header">
- <view class="debug-section__title">Sensors</view>
- <view class="debug-section__desc">定位、罗盘与心率带连接状态</view>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">GPS</text>
- <text class="info-panel__value">{{gpsTrackingText}}</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Location Source</text>
- <text class="info-panel__value">{{locationSourceText}}</text>
- </view>
- <view class="info-panel__row info-panel__row--stack">
- <text class="info-panel__label">GPS Coord</text>
- <text class="info-panel__value">{{gpsCoordText}}</text>
- </view>
- <view class="info-panel__row info-panel__row--stack">
- <text class="info-panel__label">Mock Bridge</text>
- <text class="info-panel__value">{{mockBridgeStatusText}}</text>
- </view>
- <view class="info-panel__row info-panel__row--stack">
- <text class="info-panel__label">Mock URL</text>
- <view class="debug-inline-stack">
- <input
- class="debug-input"
- value="{{mockBridgeUrlDraft}}"
- placeholder="ws://192.168.x.x:17865/mock-gps"
- bindinput="handleMockBridgeUrlInput"
- />
- <view class="control-row control-row--compact">
- <view class="control-chip control-chip--secondary" bindtap="handleSaveMockBridgeUrl">保存地址</view>
- <view class="control-chip {{mockBridgeConnected ? 'control-chip--active' : 'control-chip--secondary'}}" bindtap="handleConnectMockLocationBridge">连接模拟源</view>
- <view class="control-chip control-chip--secondary" bindtap="handleDisconnectMockLocationBridge">断开模拟源</view>
- </view>
- </view>
- </view>
- <view class="info-panel__row info-panel__row--stack">
- <text class="info-panel__label">Mock Coord</text>
- <text class="info-panel__value">{{mockCoordText}}</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Mock Speed</text>
- <text class="info-panel__value">{{mockSpeedText}}</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Heart Rate</text>
- <text class="info-panel__value">{{heartRateStatusText}}</text>
- </view>
- <view class="info-panel__row info-panel__row--stack">
- <text class="info-panel__label">HR Device</text>
- <text class="info-panel__value">{{heartRateDeviceText}}</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Heading Mode</text>
- <text class="info-panel__value">{{orientationModeText}}</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Sensor Heading</text>
- <text class="info-panel__value">{{sensorHeadingText}}</text>
- </view>
- <view class="info-panel__row info-panel__row--stack">
- <text class="info-panel__label">North Ref</text>
- <text class="info-panel__value">{{northReferenceText}}</text>
- </view>
- <view class="control-row">
- <view class="control-chip {{gpsTracking ? 'control-chip--active' : 'control-chip--secondary'}}" bindtap="handleToggleGpsTracking">{{gpsTracking ? '停止定位' : '开启定位'}}</view>
- <view class="control-chip {{heartRateConnected ? 'control-chip--active' : 'control-chip--secondary'}}" bindtap="handleConnectHeartRate">{{heartRateConnected ? '心率带已连接' : '连接心率带'}}</view>
- </view>
- <view class="control-row">
- <view class="control-chip {{locationSourceMode === 'real' ? 'control-chip--active' : 'control-chip--secondary'}}" bindtap="handleSetRealLocationMode">真实定位</view>
- <view class="control-chip {{locationSourceMode === 'mock' ? 'control-chip--active' : 'control-chip--secondary'}}" bindtap="handleSetMockLocationMode">模拟定位</view>
- </view>
- <view class="control-row">
- <view class="control-chip control-chip--secondary" bindtap="handleDisconnectHeartRate">断开心率带</view>
- <view class="control-chip control-chip--secondary" bindtap="handleCycleNorthReferenceMode">{{northReferenceButtonText}}</view>
- </view>
- </view>
- <view class="debug-section">
- <view class="debug-section__header">
- <view class="debug-section__title">Telemetry</view>
- <view class="debug-section__desc">HUD 派生数据与心率颜色测试</view>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">HR</text>
- <text class="info-panel__value">{{panelHeartRateValueText}} {{panelHeartRateUnitText}}</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">HR Zone</text>
- <text class="info-panel__value">{{panelHeartRateZoneNameText}} {{panelHeartRateZoneRangeText}}</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Calories</text>
- <text class="info-panel__value">{{panelCaloriesValueText}} {{panelCaloriesUnitText}}</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Speed</text>
- <text class="info-panel__value">{{panelSpeedValueText}} km/h</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Avg Speed</text>
- <text class="info-panel__value">{{panelAverageSpeedValueText}} {{panelAverageSpeedUnitText}}</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Target Dist</text>
- <text class="info-panel__value">{{panelDistanceValueText}} {{panelDistanceUnitText}}</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Accuracy</text>
- <text class="info-panel__value">{{panelAccuracyValueText}} {{panelAccuracyUnitText}}</text>
- </view>
- <view class="control-row control-row--triple">
- <view class="control-chip control-chip--secondary" bindtap="handleDebugHeartRateBlue">蓝</view>
- <view class="control-chip control-chip--secondary" bindtap="handleDebugHeartRatePurple">紫</view>
- <view class="control-chip control-chip--secondary" bindtap="handleDebugHeartRateGreen">绿</view>
- </view>
- <view class="control-row control-row--triple">
- <view class="control-chip control-chip--secondary" bindtap="handleDebugHeartRateYellow">黄</view>
- <view class="control-chip control-chip--secondary" bindtap="handleDebugHeartRateOrange">橙</view>
- <view class="control-chip control-chip--secondary" bindtap="handleDebugHeartRateRed">红</view>
- </view>
- <view class="control-row">
- <view class="control-chip control-chip--secondary" bindtap="handleClearDebugHeartRate">清除</view>
- </view>
- </view>
- <view class="debug-section">
- <view class="debug-section__header">
- <view class="debug-section__title">Rendering</view>
- <view class="debug-section__desc">地图渲染、视角与参考图层</view>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Renderer</text>
- <text class="info-panel__value">{{renderMode}}</text>
- </view>
- <view class="info-panel__row info-panel__row--stack">
- <text class="info-panel__label">Projection</text>
- <text class="info-panel__value">{{projectionMode}}</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Zoom</text>
- <text class="info-panel__value">{{zoom}}</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Rotation</text>
- <text class="info-panel__value">{{rotationText}}</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Auto Source</text>
- <text class="info-panel__value">{{autoRotateSourceText}}</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Calibration</text>
- <text class="info-panel__value">{{autoRotateCalibrationText}}</text>
- </view>
- <view class="control-row">
- <view class="control-chip {{osmReferenceEnabled ? 'control-chip--active' : 'control-chip--secondary'}}" bindtap="handleToggleOsmReference">{{osmReferenceText}}</view>
- <view class="control-chip" wx:if="{{orientationMode === 'manual'}}" bindtap="handleRotateStep">旋转 +15°</view>
- </view>
- <view class="control-row control-row--triple">
- <view class="control-chip {{orientationMode === 'manual' ? 'control-chip--active' : ''}}" bindtap="handleSetManualMode">手动</view>
- <view class="control-chip {{orientationMode === 'north-up' ? 'control-chip--active' : ''}}" bindtap="handleSetNorthUpMode">北朝上</view>
- <view class="control-chip {{orientationMode === 'heading-up' ? 'control-chip--active' : ''}}" bindtap="handleSetHeadingUpMode">朝向朝上</view>
- </view>
- <view class="control-row" wx:if="{{orientationMode === 'heading-up'}}">
- <view class="control-chip" bindtap="handleAutoRotateCalibrate">按当前方向校准</view>
- </view>
- </view>
- <view class="debug-section">
- <view class="debug-section__header">
- <view class="debug-section__title">Diagnostics</view>
- <view class="debug-section__desc">配置、瓦片缓存与运行状态</view>
- </view>
- <view class="info-panel__row info-panel__row--stack">
- <text class="info-panel__label">Config</text>
- <text class="info-panel__value">{{configStatusText}}</text>
- </view>
- <view class="info-panel__row info-panel__row--stack">
- <text class="info-panel__label">Status</text>
- <text class="info-panel__value">{{statusText}}</text>
- </view>
- <view class="info-panel__row info-panel__row--stack">
- <text class="info-panel__label">Tile URL</text>
- <text class="info-panel__value">{{tileSource}}</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Center Tile</text>
- <text class="info-panel__value">{{centerText}}</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Tile Size</text>
- <text class="info-panel__value">{{tileSizePx}}px</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Visible Tiles</text>
- <text class="info-panel__value">{{visibleTileCount}}</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Ready Tiles</text>
- <text class="info-panel__value">{{readyTileCount}}</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Memory Tiles</text>
- <text class="info-panel__value">{{memoryTileCount}}</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Disk Tiles</text>
- <text class="info-panel__value">{{diskTileCount}}</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Cache Hit</text>
- <text class="info-panel__value">{{cacheHitRateText}}</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Disk Hits</text>
- <text class="info-panel__value">{{diskHitCount}}</text>
- </view>
- <view class="info-panel__row">
- <text class="info-panel__label">Net Fetches</text>
- <text class="info-panel__value">{{networkFetchCount}}</text>
- </view>
- </view>
- </scroll-view>
- </view>
- </view>
- </view>
|