map.wxml 78 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218
  1. <view class="page">
  2. <view
  3. class="app-edge-glow app-edge-glow--{{panelTelemetryTone}}"
  4. wx:if="{{panelTelemetryTone === 'orange' || panelTelemetryTone === 'red'}}"
  5. ></view>
  6. <view
  7. class="map-stage"
  8. catchtouchstart="handleTouchStart"
  9. catchtouchmove="handleTouchMove"
  10. catchtouchend="handleTouchEnd"
  11. catchtouchcancel="handleTouchCancel"
  12. >
  13. <view class="map-content">
  14. <canvas
  15. id="mapCanvas"
  16. type="webgl"
  17. canvas-id="mapCanvas"
  18. class="map-canvas map-canvas--base"
  19. ></canvas>
  20. <canvas
  21. id="routeLabelCanvas"
  22. type="2d"
  23. canvas-id="routeLabelCanvas"
  24. class="map-canvas map-canvas--labels"
  25. ></canvas>
  26. </view>
  27. <view class="map-stage__map-pulse {{mapPulseFxClass}}" wx:if="{{mapPulseVisible}}" style="left: {{mapPulseLeftPx}}px; top: {{mapPulseTopPx}}px;"></view>
  28. <view class="map-stage__stage-fx {{stageFxClass}}" wx:if="{{stageFxVisible}}"></view>
  29. <view class="game-punch-feedback game-punch-feedback--{{punchFeedbackTone}} {{punchFeedbackFxClass}}" wx:if="{{punchFeedbackVisible}}">{{punchFeedbackText}}</view>
  30. <view class="map-stage__overlay-center-layer" wx:if="{{!showDebugPanel && !showGameInfoPanel && !showResultScene && !showSystemSettingsPanel}}">
  31. <view class="center-scale-ruler" wx:if="{{centerScaleRulerVisible}}" style="left: {{centerScaleRulerCenterXPx}}px; top: {{centerScaleRulerZeroYPx}}px; height: {{centerScaleRulerHeightPx}}px;">
  32. <view class="center-scale-ruler__axis" style="bottom: {{centerScaleRulerAxisBottomPx}}px;"></view>
  33. <view class="center-scale-ruler__arrow"></view>
  34. <view wx:if="{{centerScaleRulerZeroVisible}}" class="center-scale-ruler__tick center-scale-ruler__tick--major center-scale-ruler__tick--zero" style="top: {{centerScaleRulerHeightPx}}px;"></view>
  35. <view wx:if="{{centerScaleRulerZeroVisible}}" class="center-scale-ruler__label center-scale-ruler__label--zero" style="top: {{centerScaleRulerHeightPx}}px;">{{centerScaleRulerZeroLabel}}</view>
  36. <view wx:for="{{centerScaleRulerMinorTicks}}" wx:key="key" class="center-scale-ruler__tick {{item.long ? 'center-scale-ruler__tick--major' : ''}}" style="top: {{item.topPx}}px;"></view>
  37. <view wx:for="{{centerScaleRulerMajorMarks}}" wx:key="key" class="center-scale-ruler__label" style="top: {{item.topPx}}px;">{{item.label}}</view>
  38. </view>
  39. </view>
  40. <view class="map-stage__overlay" wx:if="{{!showResultScene}}">
  41. <view class="map-stage__bottom">
  42. <view class="compass-widget">
  43. <view class="compass-widget__heading-wrap">
  44. <view class="compass-widget__heading">{{sensorHeadingText}}</view>
  45. <view class="compass-widget__edge-arrow-wrap">
  46. <view class="compass-widget__edge-arrow"></view>
  47. </view>
  48. </view>
  49. <view class="compass-widget__dial {{orientationMode === 'heading-up' ? 'compass-widget__dial--active' : ''}}">
  50. <view class="compass-widget__glass"></view>
  51. <view class="compass-widget__inner-shadow"></view>
  52. <view class="compass-widget__card" style="transform: rotate({{rotationDeg}}deg);">
  53. <image class="compass-widget__north-arrow" src="../../assets/compass-north-arrow.svg" mode="aspectFit"></image>
  54. <view wx:for="{{compassTicks}}" wx:key="angle" class="compass-widget__tick-anchor" style="transform: translate(-50%, -50%) rotate({{item.angle}}deg);">
  55. <view class="compass-widget__tick {{item.long ? 'compass-widget__tick--long' : 'compass-widget__tick--short'}} {{item.major ? 'compass-widget__tick--major' : ''}}"></view>
  56. </view>
  57. <view wx:for="{{compassLabels}}" wx:key="text" class="compass-widget__mark-anchor" style="transform: translate(-50%, -50%) rotate({{item.angle}}deg);">
  58. <view class="compass-widget__mark {{item.className}}" style="transform: translate(-50%, -50%) translateY(-{{item.radius}}rpx) rotate({{item.rotateBack}}deg);">{{item.text}}</view>
  59. </view>
  60. </view>
  61. <view class="compass-widget__needle-anchor" style="transform: translate(-50%, -50%) rotate({{compassNeedleDeg}}deg);">
  62. <view class="compass-widget__needle-north"></view>
  63. <view class="compass-widget__needle-south"></view>
  64. </view>
  65. <view class="compass-widget__hub"></view>
  66. <view class="compass-widget__hub-core"></view>
  67. </view>
  68. <view class="compass-widget__hint" wx:if="{{compassDeclinationText}}">{{compassDeclinationText}}</view>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. <view class="game-content-card-layer" wx:if="{{contentCardVisible}}" bindtap="handleDismissTransientContentCard">
  74. <view
  75. class="game-content-card game-content-card--{{contentCardTemplate}} {{contentCardFxClass}}"
  76. catchtap="handleContentCardTap"
  77. >
  78. <view class="game-content-card__title">{{contentCardTitle}}</view>
  79. <view class="game-content-card__body">{{contentCardBody}}</view>
  80. <view wx:if="{{contentCardActions.length}}" class="game-content-card__action-row game-content-card__action-row--split">
  81. <view class="game-content-card__cta-group" wx:if="{{contentCardActions.length}}">
  82. <view
  83. wx:for="{{contentCardActions}}"
  84. wx:key="key"
  85. class="game-content-card__action"
  86. data-type="{{item.type}}"
  87. data-key="{{item.key}}"
  88. catchtap="handleOpenContentCardAction"
  89. >{{item.label}}</view>
  90. </view>
  91. <view class="game-content-card__close" catchtap="handleCloseContentCard">关闭</view>
  92. </view>
  93. </view>
  94. </view>
  95. <view class="game-content-quiz" wx:if="{{contentQuizVisible}}">
  96. <view class="game-content-quiz__panel">
  97. <view class="game-content-quiz__header">
  98. <view class="game-content-quiz__title">答题加分</view>
  99. <view class="game-content-quiz__countdown">{{contentQuizCountdownText}}</view>
  100. </view>
  101. <view class="game-content-quiz__question">{{contentQuizQuestionText}}</view>
  102. <view class="game-content-quiz__options">
  103. <view
  104. wx:for="{{contentQuizOptions}}"
  105. wx:key="key"
  106. class="game-content-quiz__option"
  107. data-key="{{item.key}}"
  108. catchtap="handleContentQuizAnswer"
  109. >{{item.label}}</view>
  110. </view>
  111. <view
  112. wx:if="{{contentQuizFeedbackVisible}}"
  113. class="game-content-quiz__feedback game-content-quiz__feedback--{{contentQuizFeedbackTone}}"
  114. >{{contentQuizFeedbackText}}</view>
  115. </view>
  116. </view>
  117. <view class="game-punch-hint {{punchHintFxClass}}" wx:if="{{!showResultScene && !contentCardVisible && !contentQuizVisible && showPunchHintBanner && punchHintText}}" style="top: {{topInsetHeight}}px;" catchtouchstart="handlePunchHintTap" catchtouchmove="handlePunchHintTap" catchtouchend="handlePunchHintTap">
  118. <view class="game-punch-hint__text">{{punchHintText}}</view>
  119. <view class="game-punch-hint__close" catchtouchstart="handlePunchHintTap" catchtouchmove="handlePunchHintTap" catchtouchend="handlePunchHintTap" catchtap="handleClosePunchHint">×</view>
  120. </view>
  121. <cover-view class="map-side-toggle {{sideButtonPlacement === 'right' ? 'map-side-toggle--right' : 'map-side-toggle--left'}}" wx:if="{{!showDebugPanel && !showGameInfoPanel && !showResultScene && !showSystemSettingsPanel}}" style="top: {{topInsetHeight}}px;" bindtap="handleCycleSideButtons">
  122. <cover-view class="map-side-button map-side-button--icon">
  123. <cover-image class="map-side-button__image" src="{{sideToggleIconSrc}}"></cover-image>
  124. </cover-view>
  125. </cover-view>
  126. <cover-view class="map-side-column {{sideButtonPlacement === 'right' ? 'map-side-column--right-group' : 'map-side-column--left'}} map-side-column--left-group" wx:if="{{!showDebugPanel && !showGameInfoPanel && !showResultScene && !showSystemSettingsPanel && showLeftButtonGroup}}" style="top: {{topInsetHeight}}px;">
  127. <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>
  128. <cover-view class="{{sideButton2Class}}" bindtap="handleToggleGpsLock">
  129. <cover-image
  130. wx:if="{{gpsLockEnabled}}"
  131. class="map-side-button__action-image"
  132. src="../../assets/btn_locked.png"
  133. ></cover-image>
  134. <cover-image
  135. wx:else
  136. class="map-side-button__action-image"
  137. src="../../assets/btn_unlock.png"
  138. ></cover-image>
  139. </cover-view>
  140. <cover-view class="{{sideButton16Class}}" bindtap="handleSkipAction"><cover-image class="map-side-button__action-image" src="../../assets/btn_skip_cp.png"></cover-image></cover-view>
  141. <cover-view class="{{sideButton11Class}}" bindtap="handleOpenGameInfoPanel"><cover-image class="map-side-button__action-image" src="../../assets/btn_info.png"></cover-image></cover-view>
  142. <cover-view class="{{sideButton12Class}}" bindtap="handleOpenSystemSettingsPanel"><cover-image class="map-side-button__action-image" src="../../assets/btn_settings.png"></cover-image></cover-view>
  143. <cover-view class="{{sideButton4Class}}" bindtap="handleForceExitGame"><cover-image class="map-side-button__action-image" src="../../assets/btn_exit.png"></cover-image></cover-view>
  144. </cover-view>
  145. <cover-view class="map-punch-button {{punchButtonEnabled ? 'map-punch-button--active' : ''}} {{punchButtonFxClass}}" wx:if="{{!showDebugPanel && !showGameInfoPanel && !showResultScene && !showSystemSettingsPanel}}" bindtap="handlePunchAction">
  146. <cover-view class="map-punch-button__text">{{punchButtonText}}</cover-view>
  147. </cover-view>
  148. <cover-view class="map-content-entry" wx:if="{{!showDebugPanel && !showGameInfoPanel && !showResultScene && !showSystemSettingsPanel && pendingContentEntryVisible}}" bindtap="handleOpenPendingContentCard">
  149. <cover-view class="map-content-entry__text">{{pendingContentEntryText}}</cover-view>
  150. </cover-view>
  151. <cover-view class="screen-button-layer screen-button-layer--start-left" wx:if="{{!showDebugPanel && !showGameInfoPanel && !showResultScene && !showSystemSettingsPanel && showBottomDebugButton && showStartEntryButton && gameSessionStatus !== 'running'}}" bindtap="handleStartGame">
  152. <cover-view class="screen-button-layer__text screen-button-layer__text--start">开始</cover-view>
  153. </cover-view>
  154. <cover-view class="screen-button-layer screen-button-layer--bottom-left" wx:if="{{!showDebugPanel && !showGameInfoPanel && !showResultScene && !showSystemSettingsPanel && showBottomDebugButton}}" bindtap="handleToggleDebugPanel">
  155. <cover-view class="screen-button-layer__icon">
  156. <cover-view class="screen-button-layer__line"></cover-view>
  157. <cover-view class="screen-button-layer__stand"></cover-view>
  158. </cover-view>
  159. <cover-view class="screen-button-layer__text">调试</cover-view>
  160. </cover-view>
  161. <swiper wx:if="{{!showGameInfoPanel && !showResultScene && !showSystemSettingsPanel}}" class="race-panel-swiper" current="{{hudPanelIndex}}" bindchange="handleHudPanelChange" duration="220" easing-function="easeOutCubic">
  162. <swiper-item>
  163. <view class="race-panel race-panel--tone-{{panelTelemetryTone}}">
  164. <view class="race-panel__tag race-panel__tag--top-left">{{panelActionTagText}}</view>
  165. <view class="race-panel__tag race-panel__tag--top-right">里程</view>
  166. <view class="race-panel__tag race-panel__tag--bottom-left">{{panelDistanceTagText}}</view>
  167. <view class="race-panel__tag race-panel__tag--bottom-right">速度</view>
  168. <view class="race-panel__line race-panel__line--center"></view>
  169. <view class="race-panel__line race-panel__line--left-mid"></view>
  170. <view class="race-panel__line race-panel__line--right-mid"></view>
  171. <view class="race-panel__line race-panel__line--left-top"></view>
  172. <view class="race-panel__line race-panel__line--left-bottom"></view>
  173. <view class="race-panel__line race-panel__line--right-top"></view>
  174. <view class="race-panel__line race-panel__line--right-bottom"></view>
  175. <view class="race-panel__grid">
  176. <view class="race-panel__cell race-panel__cell--action">
  177. <view class="race-panel__action-stack">
  178. <view class="race-panel__action-button {{punchButtonEnabled ? 'race-panel__action-button--active' : ''}}"><!-- status only -->
  179. <view class="race-panel__action-button-text">{{punchButtonText}}</view>
  180. </view>
  181. <text class="race-panel__action-summary">{{panelTargetSummaryText}}</text>
  182. </view>
  183. </view>
  184. <view class="race-panel__cell race-panel__cell--timer">
  185. <text class="race-panel__timer {{panelTimerFxClass}} {{panelTimerMode === 'countdown' ? 'race-panel__timer--countdown' : ''}}">{{panelTimerText}}</text>
  186. </view>
  187. <view class="race-panel__cell race-panel__cell--mileage">
  188. <view class="race-panel__mileage-wrap {{panelMileageFxClass}}">
  189. <text class="race-panel__mileage">{{panelMileageText}}</text>
  190. <view class="race-panel__chevrons">
  191. <view class="race-panel__chevron"></view>
  192. <view class="race-panel__chevron race-panel__chevron--offset"></view>
  193. </view>
  194. </view>
  195. </view>
  196. <view class="race-panel__cell race-panel__cell--distance">
  197. <view class="race-panel__metric-group race-panel__metric-group--left {{panelDistanceFxClass}}">
  198. <text class="race-panel__metric-value race-panel__metric-value--distance">{{panelDistanceValueText}}</text>
  199. <text class="race-panel__metric-unit race-panel__metric-unit--distance">{{panelDistanceUnitText}}</text>
  200. </view>
  201. </view>
  202. <view class="race-panel__cell race-panel__cell--progress">
  203. <text class="race-panel__progress {{panelProgressFxClass}}">{{panelProgressText}}</text>
  204. </view>
  205. <view class="race-panel__cell race-panel__cell--speed">
  206. <view class="race-panel__metric-group race-panel__metric-group--right {{panelSpeedFxClass}}">
  207. <text class="race-panel__metric-value race-panel__metric-value--speed">{{panelSpeedValueText}}</text>
  208. <text class="race-panel__metric-unit race-panel__metric-unit--speed">km/h</text>
  209. </view>
  210. </view>
  211. </view>
  212. </view>
  213. </swiper-item>
  214. <swiper-item>
  215. <view class="race-panel race-panel--tone-{{panelTelemetryTone}}">
  216. <view class="race-panel__tag race-panel__tag--top-left">心率</view>
  217. <view class="race-panel__tag race-panel__tag--top-right">卡路里</view>
  218. <view class="race-panel__tag race-panel__tag--bottom-left">均速</view>
  219. <view class="race-panel__tag race-panel__tag--bottom-right">精度</view>
  220. <view class="race-panel__line race-panel__line--center"></view>
  221. <view class="race-panel__line race-panel__line--left-mid"></view>
  222. <view class="race-panel__line race-panel__line--right-mid"></view>
  223. <view class="race-panel__line race-panel__line--left-top"></view>
  224. <view class="race-panel__line race-panel__line--left-bottom"></view>
  225. <view class="race-panel__line race-panel__line--right-top"></view>
  226. <view class="race-panel__line race-panel__line--right-bottom"></view>
  227. <view class="race-panel__grid">
  228. <view class="race-panel__cell race-panel__cell--action">
  229. <view class="race-panel__metric-group race-panel__metric-group--left race-panel__metric-group--panel {{panelHeartRateFxClass}}">
  230. <text class="race-panel__metric-value race-panel__metric-value--telemetry">{{panelHeartRateValueText}}</text>
  231. <text class="race-panel__metric-unit race-panel__metric-unit--telemetry">{{panelHeartRateUnitText}}</text>
  232. </view>
  233. </view>
  234. <view class="race-panel__cell race-panel__cell--timer">
  235. <text class="race-panel__timer {{panelTimerFxClass}} {{panelTimerMode === 'countdown' ? 'race-panel__timer--countdown' : ''}}">{{panelTimerText}}</text>
  236. </view>
  237. <view class="race-panel__cell race-panel__cell--mileage">
  238. <view class="race-panel__metric-group race-panel__metric-group--right race-panel__metric-group--panel">
  239. <text class="race-panel__metric-value race-panel__metric-value--telemetry">{{panelCaloriesValueText}}</text>
  240. <text class="race-panel__metric-unit race-panel__metric-unit--telemetry">{{panelCaloriesUnitText}}</text>
  241. </view>
  242. </view>
  243. <view class="race-panel__cell race-panel__cell--distance">
  244. <view class="race-panel__metric-group race-panel__metric-group--left race-panel__metric-group--panel">
  245. <text class="race-panel__metric-value race-panel__metric-value--telemetry-secondary">{{panelAverageSpeedValueText}}</text>
  246. <text class="race-panel__metric-unit race-panel__metric-unit--telemetry">{{panelAverageSpeedUnitText}}</text>
  247. </view>
  248. </view>
  249. <view class="race-panel__cell race-panel__cell--progress">
  250. <view class="race-panel__zone">
  251. <text class="race-panel__zone-name">{{panelHeartRateZoneNameText}}</text>
  252. <text class="race-panel__zone-range">{{panelHeartRateZoneRangeText}}</text>
  253. </view>
  254. </view>
  255. <view class="race-panel__cell race-panel__cell--speed">
  256. <view class="race-panel__metric-group race-panel__metric-group--right race-panel__metric-group--panel">
  257. <text class="race-panel__metric-value race-panel__metric-value--telemetry-secondary">{{panelAccuracyValueText}}</text>
  258. <text class="race-panel__metric-unit race-panel__metric-unit--telemetry">{{panelAccuracyUnitText}}</text>
  259. </view>
  260. </view>
  261. </view>
  262. </view>
  263. </swiper-item>
  264. </swiper>
  265. <view class="race-panel-pager" wx:if="{{!showDebugPanel && !showGameInfoPanel && !showResultScene && !showSystemSettingsPanel}}">
  266. <view class="race-panel-pager__dot {{hudPanelIndex === 0 ? 'race-panel-pager__dot--active' : ''}}"></view>
  267. <view class="race-panel-pager__dot {{hudPanelIndex === 1 ? 'race-panel-pager__dot--active' : ''}}"></view>
  268. </view>
  269. <view class="game-info-modal" wx:if="{{showGameInfoPanel}}" bindtap="handleCloseGameInfoPanel">
  270. <view class="game-info-modal__dialog" catchtap="handleGameInfoPanelTap">
  271. <view class="game-info-modal__header">
  272. <view class="game-info-modal__header-main">
  273. <view class="game-info-modal__eyebrow">GAME INFO</view>
  274. <view class="game-info-modal__title">{{gameInfoTitle}}</view>
  275. <view class="game-info-modal__subtitle">{{gameInfoSubtitle}}</view>
  276. </view>
  277. <view class="game-info-modal__header-actions">
  278. <view class="game-info-modal__close" bindtap="handleCloseGameInfoPanel">关闭</view>
  279. </view>
  280. </view>
  281. <scroll-view class="game-info-modal__content" scroll-y enhanced show-scrollbar="true">
  282. <view class="debug-section debug-section--info">
  283. <view class="debug-section__header">
  284. <view class="debug-section__title">Local</view>
  285. <view class="debug-section__desc">当前设备、本地玩法与实时运行状态</view>
  286. </view>
  287. <view class="info-panel__row" wx:for="{{gameInfoLocalRows}}" wx:key="label">
  288. <text class="info-panel__label">{{item.label}}</text>
  289. <text class="info-panel__value">{{item.value}}</text>
  290. </view>
  291. </view>
  292. <view class="debug-section debug-section--info">
  293. <view class="debug-section__header">
  294. <view class="debug-section__title">Global</view>
  295. <view class="debug-section__desc">联网后接入全局赛事数据,这里先占位</view>
  296. </view>
  297. <view class="info-panel__row" wx:for="{{gameInfoGlobalRows}}" wx:key="label">
  298. <text class="info-panel__label">{{item.label}}</text>
  299. <text class="info-panel__value">{{item.value}}</text>
  300. </view>
  301. </view>
  302. </scroll-view>
  303. </view>
  304. </view>
  305. <view class="result-scene-modal" wx:if="{{showResultScene}}" bindtap="handleCloseResultScene">
  306. <view class="result-scene-modal__dialog" catchtap="handleResultSceneTap">
  307. <view class="result-scene-modal__eyebrow">FINISH</view>
  308. <view class="result-scene-modal__title">{{resultSceneTitle}}</view>
  309. <view class="result-scene-modal__subtitle">{{resultSceneSubtitle}}</view>
  310. <view class="result-scene-modal__hero">
  311. <view class="result-scene-modal__hero-label">{{resultSceneHeroLabel}}</view>
  312. <view class="result-scene-modal__hero-value">{{resultSceneHeroValue}}</view>
  313. </view>
  314. <view class="result-scene-modal__rows">
  315. <view class="result-scene-modal__row" wx:for="{{resultSceneRows}}" wx:key="label">
  316. <text class="result-scene-modal__row-label">{{item.label}}</text>
  317. <text class="result-scene-modal__row-value">{{item.value}}</text>
  318. </view>
  319. </view>
  320. <view class="result-scene-modal__countdown">{{resultSceneCountdownText}}</view>
  321. <view class="result-scene-modal__actions">
  322. <view class="result-scene-modal__action result-scene-modal__action--primary" bindtap="handleRestartFromResult">查看成绩</view>
  323. </view>
  324. </view>
  325. </view>
  326. <view class="game-info-modal" wx:if="{{showSystemSettingsPanel}}" bindtap="handleCloseSystemSettingsPanel">
  327. <view class="game-info-modal__dialog" catchtap="handleSystemSettingsPanelTap">
  328. <view class="game-info-modal__header">
  329. <view class="game-info-modal__header-main">
  330. <view class="game-info-modal__eyebrow">SYSTEM SETTINGS</view>
  331. <view class="game-info-modal__title">系统设置</view>
  332. <view class="game-info-modal__subtitle">用户端偏好与设备级选项</view>
  333. </view>
  334. <view class="game-info-modal__header-actions">
  335. <view class="game-info-modal__close" bindtap="handleCloseSystemSettingsPanel">关闭</view>
  336. </view>
  337. </view>
  338. <scroll-view class="game-info-modal__content" scroll-y enhanced show-scrollbar="true">
  339. <view class="debug-section debug-section--info">
  340. <view class="debug-section__header">
  341. <view class="debug-section__header-row">
  342. <view class="debug-section__header-main">
  343. <view class="debug-section__title">01. 动画性能</view>
  344. <view class="debug-section__desc">根据设备性能切换动画强度,低端机建议精简</view>
  345. </view>
  346. <view class="debug-section__lock {{lockAnimationLevel ? 'debug-section__lock--active' : ''}}">
  347. <text class="debug-section__lock-text">{{lockAnimationLevel ? '配置锁定' : '允许调整'}}</text>
  348. </view>
  349. </view>
  350. </view>
  351. <view class="info-panel__row">
  352. <text class="info-panel__label">当前级别</text>
  353. <text class="info-panel__value">{{animationLevel === 'lite' ? '精简' : '标准'}}{{lockAnimationLevel ? ' · 已锁定' : ' · 可编辑'}}</text>
  354. </view>
  355. <view class="control-row">
  356. <view class="control-chip {{animationLevel === 'standard' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockAnimationLevel ? 'control-chip--disabled' : ''}}" bindtap="handleSetAnimationLevelStandard">标准</view>
  357. <view class="control-chip {{animationLevel === 'lite' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockAnimationLevel ? 'control-chip--disabled' : ''}}" bindtap="handleSetAnimationLevelLite">精简</view>
  358. </view>
  359. </view>
  360. <view class="debug-section debug-section--info">
  361. <view class="debug-section__header">
  362. <view class="debug-section__header-row">
  363. <view class="debug-section__header-main">
  364. <view class="debug-section__title">02. 轨迹选项</view>
  365. <view class="debug-section__desc">控制不显示、彗尾拖尾、全轨迹三种显示方式</view>
  366. </view>
  367. <view class="debug-section__lock {{lockTrackMode ? 'debug-section__lock--active' : ''}}">
  368. <text class="debug-section__lock-text">{{lockTrackMode ? '配置锁定' : '允许调整'}}</text>
  369. </view>
  370. </view>
  371. </view>
  372. <view class="info-panel__row">
  373. <text class="info-panel__label">当前模式</text>
  374. <text class="info-panel__value">
  375. {{trackDisplayMode === 'none' ? '无' : (trackDisplayMode === 'tail' ? '彗尾' : '全轨迹')}}{{lockTrackMode ? ' · 已锁定' : ' · 可编辑'}}
  376. </text>
  377. </view>
  378. <view class="control-row">
  379. <view class="control-chip {{trackDisplayMode === 'none' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockTrackMode ? 'control-chip--disabled' : ''}}" bindtap="handleSetTrackModeNone">无</view>
  380. <view class="control-chip {{trackDisplayMode === 'tail' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockTrackMode ? 'control-chip--disabled' : ''}}" bindtap="handleSetTrackModeTail">彗尾</view>
  381. <view class="control-chip {{trackDisplayMode === 'full' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockTrackMode ? 'control-chip--disabled' : ''}}" bindtap="handleSetTrackModeFull">全轨迹</view>
  382. </view>
  383. </view>
  384. <view class="debug-section debug-section--info">
  385. <view class="debug-section__header">
  386. <view class="debug-section__header-row">
  387. <view class="debug-section__header-main">
  388. <view class="debug-section__title">03. 轨迹尾巴</view>
  389. <view class="debug-section__desc">拖尾模式下控制尾巴长短,跑得越快会在此基础上再拉长</view>
  390. </view>
  391. <view class="debug-section__lock {{lockTrackTailLength ? 'debug-section__lock--active' : ''}}">
  392. <text class="debug-section__lock-text">{{lockTrackTailLength ? '配置锁定' : '允许调整'}}</text>
  393. </view>
  394. </view>
  395. </view>
  396. <view class="info-panel__row">
  397. <text class="info-panel__label">当前长度</text>
  398. <text class="info-panel__value">
  399. {{trackTailLength === 'short' ? '短' : (trackTailLength === 'long' ? '长' : '中')}}{{lockTrackTailLength ? ' · 已锁定' : ' · 可编辑'}}
  400. </text>
  401. </view>
  402. <view class="control-row">
  403. <view class="control-chip {{trackTailLength === 'short' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockTrackTailLength ? 'control-chip--disabled' : ''}}" bindtap="handleSetTrackTailLengthShort">短</view>
  404. <view class="control-chip {{trackTailLength === 'medium' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockTrackTailLength ? 'control-chip--disabled' : ''}}" bindtap="handleSetTrackTailLengthMedium">中</view>
  405. <view class="control-chip {{trackTailLength === 'long' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockTrackTailLength ? 'control-chip--disabled' : ''}}" bindtap="handleSetTrackTailLengthLong">长</view>
  406. </view>
  407. </view>
  408. <view class="debug-section debug-section--info">
  409. <view class="debug-section__header">
  410. <view class="debug-section__header-row">
  411. <view class="debug-section__header-main">
  412. <view class="debug-section__title">04. 轨迹颜色</view>
  413. <view class="debug-section__desc">亮色轨迹调色盘,运行中会按速度和心率张力自动提亮</view>
  414. </view>
  415. <view class="debug-section__lock {{lockTrackColor ? 'debug-section__lock--active' : ''}}">
  416. <text class="debug-section__lock-text">{{lockTrackColor ? '配置锁定' : '允许调整'}}</text>
  417. </view>
  418. </view>
  419. </view>
  420. <view class="info-panel__row">
  421. <text class="info-panel__label">当前颜色</text>
  422. <text class="info-panel__value">
  423. {{trackColorPreset === 'mint' ? '薄荷' : (trackColorPreset === 'cyan' ? '青绿' : (trackColorPreset === 'sky' ? '天蓝' : (trackColorPreset === 'blue' ? '深蓝' : (trackColorPreset === 'violet' ? '紫罗兰' : (trackColorPreset === 'pink' ? '玫红' : (trackColorPreset === 'orange' ? '橙色' : '亮黄'))))))}}{{lockTrackColor ? ' · 已锁定' : ' · 可编辑'}}
  424. </text>
  425. </view>
  426. <view class="control-row control-row--wrap">
  427. <view class="control-chip {{trackColorPreset === 'mint' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockTrackColor ? 'control-chip--disabled' : ''}}" data-color="mint" bindtap="handleSetTrackColorPreset">薄荷</view>
  428. <view class="control-chip {{trackColorPreset === 'cyan' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockTrackColor ? 'control-chip--disabled' : ''}}" data-color="cyan" bindtap="handleSetTrackColorPreset">青绿</view>
  429. <view class="control-chip {{trackColorPreset === 'sky' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockTrackColor ? 'control-chip--disabled' : ''}}" data-color="sky" bindtap="handleSetTrackColorPreset">天蓝</view>
  430. <view class="control-chip {{trackColorPreset === 'blue' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockTrackColor ? 'control-chip--disabled' : ''}}" data-color="blue" bindtap="handleSetTrackColorPreset">深蓝</view>
  431. </view>
  432. <view class="control-row control-row--wrap">
  433. <view class="control-chip {{trackColorPreset === 'violet' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockTrackColor ? 'control-chip--disabled' : ''}}" data-color="violet" bindtap="handleSetTrackColorPreset">紫罗兰</view>
  434. <view class="control-chip {{trackColorPreset === 'pink' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockTrackColor ? 'control-chip--disabled' : ''}}" data-color="pink" bindtap="handleSetTrackColorPreset">玫红</view>
  435. <view class="control-chip {{trackColorPreset === 'orange' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockTrackColor ? 'control-chip--disabled' : ''}}" data-color="orange" bindtap="handleSetTrackColorPreset">橙色</view>
  436. <view class="control-chip {{trackColorPreset === 'yellow' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockTrackColor ? 'control-chip--disabled' : ''}}" data-color="yellow" bindtap="handleSetTrackColorPreset">亮黄</view>
  437. </view>
  438. </view>
  439. <view class="debug-section debug-section--info">
  440. <view class="debug-section__header">
  441. <view class="debug-section__header-row">
  442. <view class="debug-section__header-main">
  443. <view class="debug-section__title">05. 轨迹风格</view>
  444. <view class="debug-section__desc">切换经典线条和流光轨迹风格,默认推荐流光</view>
  445. </view>
  446. <view class="debug-section__lock {{lockTrackStyle ? 'debug-section__lock--active' : ''}}">
  447. <text class="debug-section__lock-text">{{lockTrackStyle ? '配置锁定' : '允许调整'}}</text>
  448. </view>
  449. </view>
  450. </view>
  451. <view class="info-panel__row">
  452. <text class="info-panel__label">当前风格</text>
  453. <text class="info-panel__value">{{trackStyleProfile === 'neon' ? '流光' : '经典'}}{{lockTrackStyle ? ' · 已锁定' : ' · 可编辑'}}</text>
  454. </view>
  455. <view class="control-row">
  456. <view class="control-chip {{trackStyleProfile === 'classic' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockTrackStyle ? 'control-chip--disabled' : ''}}" bindtap="handleSetTrackStyleClassic">经典</view>
  457. <view class="control-chip {{trackStyleProfile === 'neon' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockTrackStyle ? 'control-chip--disabled' : ''}}" bindtap="handleSetTrackStyleNeon">流光</view>
  458. </view>
  459. </view>
  460. <view class="debug-section debug-section--info">
  461. <view class="debug-section__header">
  462. <view class="debug-section__header-row">
  463. <view class="debug-section__header-main">
  464. <view class="debug-section__title">06. GPS点显示</view>
  465. <view class="debug-section__desc">控制地图上的 GPS 定位点显示与隐藏</view>
  466. </view>
  467. <view class="debug-section__lock {{lockGpsMarkerVisible ? 'debug-section__lock--active' : ''}}">
  468. <text class="debug-section__lock-text">{{lockGpsMarkerVisible ? '配置锁定' : '允许调整'}}</text>
  469. </view>
  470. </view>
  471. </view>
  472. <view class="info-panel__row">
  473. <text class="info-panel__label">当前状态</text>
  474. <text class="info-panel__value">{{gpsMarkerVisible ? '显示' : '隐藏'}}{{lockGpsMarkerVisible ? ' · 已锁定' : ' · 可编辑'}}</text>
  475. </view>
  476. <view class="control-row">
  477. <view class="control-chip {{gpsMarkerVisible ? 'control-chip--active' : 'control-chip--secondary'}} {{lockGpsMarkerVisible ? 'control-chip--disabled' : ''}}" bindtap="handleSetGpsMarkerVisibleOn">显示</view>
  478. <view class="control-chip {{!gpsMarkerVisible ? 'control-chip--active' : 'control-chip--secondary'}} {{lockGpsMarkerVisible ? 'control-chip--disabled' : ''}}" bindtap="handleSetGpsMarkerVisibleOff">隐藏</view>
  479. </view>
  480. </view>
  481. <view class="debug-section debug-section--info">
  482. <view class="debug-section__header">
  483. <view class="debug-section__header-row">
  484. <view class="debug-section__header-main">
  485. <view class="debug-section__title">07. GPS点大小</view>
  486. <view class="debug-section__desc">控制定位点本体和朝向小三角的整体尺寸</view>
  487. </view>
  488. <view class="debug-section__lock {{lockGpsMarkerSize ? 'debug-section__lock--active' : ''}}">
  489. <text class="debug-section__lock-text">{{lockGpsMarkerSize ? '配置锁定' : '允许调整'}}</text>
  490. </view>
  491. </view>
  492. </view>
  493. <view class="info-panel__row">
  494. <text class="info-panel__label">当前大小</text>
  495. <text class="info-panel__value">{{gpsMarkerSize === 'small' ? '小' : (gpsMarkerSize === 'large' ? '大' : '中')}}{{lockGpsMarkerSize ? ' · 已锁定' : ' · 可编辑'}}</text>
  496. </view>
  497. <view class="control-row">
  498. <view class="control-chip {{gpsMarkerSize === 'small' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockGpsMarkerSize ? 'control-chip--disabled' : ''}}" bindtap="handleSetGpsMarkerSizeSmall">小</view>
  499. <view class="control-chip {{gpsMarkerSize === 'medium' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockGpsMarkerSize ? 'control-chip--disabled' : ''}}" bindtap="handleSetGpsMarkerSizeMedium">中</view>
  500. <view class="control-chip {{gpsMarkerSize === 'large' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockGpsMarkerSize ? 'control-chip--disabled' : ''}}" bindtap="handleSetGpsMarkerSizeLarge">大</view>
  501. </view>
  502. </view>
  503. <view class="debug-section debug-section--info">
  504. <view class="debug-section__header">
  505. <view class="debug-section__header-row">
  506. <view class="debug-section__header-main">
  507. <view class="debug-section__title">08. GPS点颜色</view>
  508. <view class="debug-section__desc">切换定位点主色,默认使用青绿高亮色</view>
  509. </view>
  510. <view class="debug-section__lock {{lockGpsMarkerColor ? 'debug-section__lock--active' : ''}}">
  511. <text class="debug-section__lock-text">{{lockGpsMarkerColor ? '配置锁定' : '允许调整'}}</text>
  512. </view>
  513. </view>
  514. </view>
  515. <view class="info-panel__row">
  516. <text class="info-panel__label">当前颜色</text>
  517. <text class="info-panel__value">
  518. {{gpsMarkerColorPreset === 'mint' ? '薄荷' : (gpsMarkerColorPreset === 'cyan' ? '青绿' : (gpsMarkerColorPreset === 'sky' ? '天蓝' : (gpsMarkerColorPreset === 'blue' ? '深蓝' : (gpsMarkerColorPreset === 'violet' ? '紫罗兰' : (gpsMarkerColorPreset === 'pink' ? '玫红' : (gpsMarkerColorPreset === 'orange' ? '橙色' : '亮黄'))))))}}{{lockGpsMarkerColor ? ' · 已锁定' : ' · 可编辑'}}
  519. </text>
  520. </view>
  521. <view class="control-row control-row--wrap">
  522. <view class="control-chip {{gpsMarkerColorPreset === 'mint' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockGpsMarkerColor ? 'control-chip--disabled' : ''}}" data-color="mint" bindtap="handleSetGpsMarkerColorPreset">薄荷</view>
  523. <view class="control-chip {{gpsMarkerColorPreset === 'cyan' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockGpsMarkerColor ? 'control-chip--disabled' : ''}}" data-color="cyan" bindtap="handleSetGpsMarkerColorPreset">青绿</view>
  524. <view class="control-chip {{gpsMarkerColorPreset === 'sky' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockGpsMarkerColor ? 'control-chip--disabled' : ''}}" data-color="sky" bindtap="handleSetGpsMarkerColorPreset">天蓝</view>
  525. <view class="control-chip {{gpsMarkerColorPreset === 'blue' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockGpsMarkerColor ? 'control-chip--disabled' : ''}}" data-color="blue" bindtap="handleSetGpsMarkerColorPreset">深蓝</view>
  526. </view>
  527. <view class="control-row control-row--wrap">
  528. <view class="control-chip {{gpsMarkerColorPreset === 'violet' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockGpsMarkerColor ? 'control-chip--disabled' : ''}}" data-color="violet" bindtap="handleSetGpsMarkerColorPreset">紫罗兰</view>
  529. <view class="control-chip {{gpsMarkerColorPreset === 'pink' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockGpsMarkerColor ? 'control-chip--disabled' : ''}}" data-color="pink" bindtap="handleSetGpsMarkerColorPreset">玫红</view>
  530. <view class="control-chip {{gpsMarkerColorPreset === 'orange' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockGpsMarkerColor ? 'control-chip--disabled' : ''}}" data-color="orange" bindtap="handleSetGpsMarkerColorPreset">橙色</view>
  531. <view class="control-chip {{gpsMarkerColorPreset === 'yellow' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockGpsMarkerColor ? 'control-chip--disabled' : ''}}" data-color="yellow" bindtap="handleSetGpsMarkerColorPreset">亮黄</view>
  532. </view>
  533. </view>
  534. <view class="debug-section debug-section--info">
  535. <view class="debug-section__header">
  536. <view class="debug-section__header-row">
  537. <view class="debug-section__header-main">
  538. <view class="debug-section__title">09. GPS点风格</view>
  539. <view class="debug-section__desc">切换定位点底座风格,影响本体与外圈表现</view>
  540. </view>
  541. <view class="debug-section__lock {{lockGpsMarkerStyle ? 'debug-section__lock--active' : ''}}">
  542. <text class="debug-section__lock-text">{{lockGpsMarkerStyle ? '配置锁定' : '允许调整'}}</text>
  543. </view>
  544. </view>
  545. </view>
  546. <view class="info-panel__row">
  547. <text class="info-panel__label">当前风格</text>
  548. <text class="info-panel__value">{{gpsMarkerStyle === 'dot' ? '圆点' : (gpsMarkerStyle === 'disc' ? '圆盘' : (gpsMarkerStyle === 'badge' ? '徽章' : '信标'))}}{{lockGpsMarkerStyle ? ' · 已锁定' : ' · 可编辑'}}</text>
  549. </view>
  550. <view class="control-row control-row--wrap">
  551. <view class="control-chip {{gpsMarkerStyle === 'dot' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockGpsMarkerStyle ? 'control-chip--disabled' : ''}}" bindtap="handleSetGpsMarkerStyleDot">圆点</view>
  552. <view class="control-chip {{gpsMarkerStyle === 'beacon' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockGpsMarkerStyle ? 'control-chip--disabled' : ''}}" bindtap="handleSetGpsMarkerStyleBeacon">信标</view>
  553. <view class="control-chip {{gpsMarkerStyle === 'disc' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockGpsMarkerStyle ? 'control-chip--disabled' : ''}}" bindtap="handleSetGpsMarkerStyleDisc">圆盘</view>
  554. <view class="control-chip {{gpsMarkerStyle === 'badge' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockGpsMarkerStyle ? 'control-chip--disabled' : ''}}" bindtap="handleSetGpsMarkerStyleBadge">徽章</view>
  555. </view>
  556. </view>
  557. <view class="debug-section debug-section--info">
  558. <view class="debug-section__header">
  559. <view class="debug-section__header-row">
  560. <view class="debug-section__header-main">
  561. <view class="debug-section__title">10. 按钮习惯</view>
  562. <view class="debug-section__desc">切换功能按钮显示在左侧还是右侧,适配左手/右手操作习惯</view>
  563. </view>
  564. <view class="debug-section__lock {{lockSideButtonPlacement ? 'debug-section__lock--active' : ''}}">
  565. <text class="debug-section__lock-text">{{lockSideButtonPlacement ? '配置锁定' : '允许调整'}}</text>
  566. </view>
  567. </view>
  568. </view>
  569. <view class="info-panel__row">
  570. <text class="info-panel__label">当前习惯</text>
  571. <text class="info-panel__value">{{sideButtonPlacement === 'right' ? '右手' : '左手'}}{{lockSideButtonPlacement ? ' · 已锁定' : ' · 可编辑'}}</text>
  572. </view>
  573. <view class="control-row">
  574. <view class="control-chip {{sideButtonPlacement === 'left' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockSideButtonPlacement ? 'control-chip--disabled' : ''}}" bindtap="handleSetSideButtonPlacementLeft">左手</view>
  575. <view class="control-chip {{sideButtonPlacement === 'right' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockSideButtonPlacement ? 'control-chip--disabled' : ''}}" bindtap="handleSetSideButtonPlacementRight">右手</view>
  576. </view>
  577. </view>
  578. <view class="debug-section debug-section--info">
  579. <view class="debug-section__header">
  580. <view class="debug-section__header-row">
  581. <view class="debug-section__header-main">
  582. <view class="debug-section__title">11. 自动转图</view>
  583. <view class="debug-section__desc">控制地图是否跟随朝向自动旋转,外部按钮与这里保持同步</view>
  584. </view>
  585. <view class="debug-section__lock {{lockAutoRotate ? 'debug-section__lock--active' : ''}}">
  586. <text class="debug-section__lock-text">{{lockAutoRotate ? '配置锁定' : '允许调整'}}</text>
  587. </view>
  588. </view>
  589. </view>
  590. <view class="info-panel__row">
  591. <text class="info-panel__label">当前状态</text>
  592. <text class="info-panel__value">{{autoRotateEnabled ? '开启' : '关闭'}}{{lockAutoRotate ? ' · 已锁定' : ' · 可编辑'}}</text>
  593. </view>
  594. <view class="control-row">
  595. <view class="control-chip {{autoRotateEnabled ? 'control-chip--active' : 'control-chip--secondary'}} {{lockAutoRotate ? 'control-chip--disabled' : ''}}" bindtap="handleSetAutoRotateEnabledOn">开启</view>
  596. <view class="control-chip {{!autoRotateEnabled ? 'control-chip--active' : 'control-chip--secondary'}} {{lockAutoRotate ? 'control-chip--disabled' : ''}}" bindtap="handleSetAutoRotateEnabledOff">关闭</view>
  597. </view>
  598. </view>
  599. <view class="debug-section debug-section--info">
  600. <view class="debug-section__header">
  601. <view class="debug-section__header-row">
  602. <view class="debug-section__header-main">
  603. <view class="debug-section__title">12. 指北针响应</view>
  604. <view class="debug-section__desc">切换指针的平滑与跟手程度,影响指北针响应手感</view>
  605. </view>
  606. <view class="debug-section__lock {{lockCompassTuning ? 'debug-section__lock--active' : ''}}">
  607. <text class="debug-section__lock-text">{{lockCompassTuning ? '配置锁定' : '允许调整'}}</text>
  608. </view>
  609. </view>
  610. </view>
  611. <view class="info-panel__row">
  612. <text class="info-panel__label">当前档位</text>
  613. <text class="info-panel__value">{{compassTuningProfileText}}{{lockCompassTuning ? ' · 已锁定' : ' · 可编辑'}}</text>
  614. </view>
  615. <view class="control-row control-row--triple">
  616. <view class="control-chip {{compassTuningProfile === 'smooth' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockCompassTuning ? 'control-chip--disabled' : ''}}" bindtap="handleSetCompassTuningSmooth">顺滑</view>
  617. <view class="control-chip {{compassTuningProfile === 'balanced' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockCompassTuning ? 'control-chip--disabled' : ''}}" bindtap="handleSetCompassTuningBalanced">平衡</view>
  618. <view class="control-chip {{compassTuningProfile === 'responsive' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockCompassTuning ? 'control-chip--disabled' : ''}}" bindtap="handleSetCompassTuningResponsive">跟手</view>
  619. </view>
  620. </view>
  621. <view class="debug-section debug-section--info">
  622. <view class="debug-section__header">
  623. <view class="debug-section__header-row">
  624. <view class="debug-section__header-main">
  625. <view class="debug-section__title">13. 比例尺显示</view>
  626. <view class="debug-section__desc">控制比例尺显示与否,默认沿用你的本地偏好</view>
  627. </view>
  628. <view class="debug-section__lock {{lockScaleRulerVisible ? 'debug-section__lock--active' : ''}}">
  629. <text class="debug-section__lock-text">{{lockScaleRulerVisible ? '配置锁定' : '允许调整'}}</text>
  630. </view>
  631. </view>
  632. </view>
  633. <view class="info-panel__row">
  634. <text class="info-panel__label">当前状态</text>
  635. <text class="info-panel__value">{{showCenterScaleRuler ? '显示' : '隐藏'}}{{lockScaleRulerVisible ? ' · 已锁定' : ' · 可编辑'}}</text>
  636. </view>
  637. <view class="control-row">
  638. <view class="control-chip {{showCenterScaleRuler ? 'control-chip--active' : 'control-chip--secondary'}} {{lockScaleRulerVisible ? 'control-chip--disabled' : ''}}" bindtap="handleSetCenterScaleRulerVisibleOn">显示</view>
  639. <view class="control-chip {{!showCenterScaleRuler ? 'control-chip--active' : 'control-chip--secondary'}} {{lockScaleRulerVisible ? 'control-chip--disabled' : ''}}" bindtap="handleSetCenterScaleRulerVisibleOff">隐藏</view>
  640. </view>
  641. </view>
  642. <view class="debug-section debug-section--info">
  643. <view class="debug-section__header">
  644. <view class="debug-section__header-row">
  645. <view class="debug-section__header-main">
  646. <view class="debug-section__title">14. 比例尺基准点</view>
  647. <view class="debug-section__desc">设置比例尺零点锚定位置,可跟随屏幕中心或指北针圆心</view>
  648. </view>
  649. <view class="debug-section__lock {{lockScaleRulerAnchor ? 'debug-section__lock--active' : ''}}">
  650. <text class="debug-section__lock-text">{{lockScaleRulerAnchor ? '配置锁定' : '允许调整'}}</text>
  651. </view>
  652. </view>
  653. </view>
  654. <view class="info-panel__row">
  655. <text class="info-panel__label">当前锚点</text>
  656. <text class="info-panel__value">{{centerScaleRulerAnchorMode === 'compass-center' ? '指北针圆心' : '屏幕中心'}}{{lockScaleRulerAnchor ? ' · 已锁定' : ' · 可编辑'}}</text>
  657. </view>
  658. <view class="control-row">
  659. <view class="control-chip {{centerScaleRulerAnchorMode === 'screen-center' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockScaleRulerAnchor ? 'control-chip--disabled' : ''}}" bindtap="handleSetCenterScaleRulerAnchorScreenCenter">屏幕中心</view>
  660. <view class="control-chip {{centerScaleRulerAnchorMode === 'compass-center' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockScaleRulerAnchor ? 'control-chip--disabled' : ''}}" bindtap="handleSetCenterScaleRulerAnchorCompassCenter">指北针圆心</view>
  661. </view>
  662. </view>
  663. <view class="debug-section debug-section--info">
  664. <view class="debug-section__header">
  665. <view class="debug-section__header-row">
  666. <view class="debug-section__header-main">
  667. <view class="debug-section__title">15. 北参考</view>
  668. <view class="debug-section__desc">切换磁北/真北作为地图与指北针参考</view>
  669. </view>
  670. <view class="debug-section__lock {{lockNorthReference ? 'debug-section__lock--active' : ''}}">
  671. <text class="debug-section__lock-text">{{lockNorthReference ? '配置锁定' : '允许调整'}}</text>
  672. </view>
  673. </view>
  674. </view>
  675. <view class="info-panel__row">
  676. <text class="info-panel__label">当前参考</text>
  677. <text class="info-panel__value">{{northReferenceText}}{{lockNorthReference ? ' · 已锁定' : ' · 可编辑'}}</text>
  678. </view>
  679. <view class="control-row">
  680. <view class="control-chip {{northReferenceMode === 'magnetic' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockNorthReference ? 'control-chip--disabled' : ''}}" bindtap="handleSetNorthReferenceMagnetic">磁北</view>
  681. <view class="control-chip {{northReferenceMode === 'true' ? 'control-chip--active' : 'control-chip--secondary'}} {{lockNorthReference ? 'control-chip--disabled' : ''}}" bindtap="handleSetNorthReferenceTrue">真北</view>
  682. </view>
  683. </view>
  684. <view class="debug-section debug-section--info">
  685. <view class="debug-section__header">
  686. <view class="debug-section__header-row">
  687. <view class="debug-section__header-main">
  688. <view class="debug-section__title">16. 心率设备</view>
  689. <view class="debug-section__desc">局内正式入口,可快速更换、重连或断开当前心率带</view>
  690. </view>
  691. <view class="debug-section__lock {{lockHeartRateDevice ? 'debug-section__lock--active' : ''}}">
  692. <text class="debug-section__lock-text">{{lockHeartRateDevice ? '配置锁定' : '允许调整'}}</text>
  693. </view>
  694. </view>
  695. </view>
  696. <view class="info-panel__row">
  697. <text class="info-panel__label">当前状态</text>
  698. <text class="info-panel__value">{{heartRateStatusText}}{{heartRateSourceMode !== 'real' ? ' · 当前为模拟模式' : ''}}</text>
  699. </view>
  700. <view class="info-panel__row info-panel__row--stack">
  701. <text class="info-panel__label">当前设备</text>
  702. <text class="info-panel__value">{{heartRateDeviceText}}</text>
  703. </view>
  704. <view class="info-panel__row" wx:if="{{heartRateSourceMode === 'real'}}">
  705. <text class="info-panel__label">扫描状态</text>
  706. <text class="info-panel__value">{{heartRateScanText}}</text>
  707. </view>
  708. <view class="summary" wx:if="{{heartRateSourceMode !== 'real'}}">当前为模拟心率模式,如需连接真实心率带,请先在调试面板切回“真实心率”。</view>
  709. <view class="control-row" wx:if="{{heartRateSourceMode === 'real'}}">
  710. <view class="control-chip control-chip--secondary {{lockHeartRateDevice ? 'control-chip--disabled' : ''}}" bindtap="handleOpenHeartRateDevicePicker">更换心率带</view>
  711. <view class="control-chip {{heartRateConnected ? 'control-chip--active' : 'control-chip--secondary'}} {{lockHeartRateDevice ? 'control-chip--disabled' : ''}}" bindtap="handleConnectHeartRate">{{heartRateConnected ? '重新扫描' : '连接心率带'}}</view>
  712. <view class="control-chip control-chip--secondary {{lockHeartRateDevice ? 'control-chip--disabled' : ''}}" bindtap="handleDisconnectHeartRate">断开心率带</view>
  713. </view>
  714. <view class="control-row">
  715. <view class="control-chip control-chip--secondary {{lockHeartRateDevice ? 'control-chip--disabled' : ''}}" bindtap="handleClearPreferredHeartRateDevice">清除首选设备</view>
  716. </view>
  717. </view>
  718. </scroll-view>
  719. </view>
  720. </view>
  721. <view class="debug-modal" wx:if="{{showDebugPanel}}" bindtap="handleCloseDebugPanel">
  722. <view class="debug-modal__dialog" catchtap="handleDebugPanelTap">
  723. <view class="debug-modal__header">
  724. <view class="debug-modal__header-main">
  725. <view class="debug-modal__eyebrow">DEBUG PANEL</view>
  726. <view class="debug-modal__build">{{buildVersion}}</view>
  727. </view>
  728. <view class="debug-modal__header-actions">
  729. <view class="debug-modal__close" bindtap="handleCloseDebugPanel">关闭</view>
  730. </view>
  731. </view>
  732. <scroll-view class="debug-modal__content" scroll-y enhanced show-scrollbar="true">
  733. <view class="debug-section">
  734. <view class="debug-section__header">
  735. <view class="debug-section__title">Session</view>
  736. <view class="debug-section__desc">当前局状态与主流程控制</view>
  737. </view>
  738. <view class="info-panel__row">
  739. <text class="info-panel__label">Mode</text>
  740. <text class="info-panel__value">{{gameModeText}}</text>
  741. </view>
  742. <view class="info-panel__row">
  743. <text class="info-panel__label">Config</text>
  744. <text class="info-panel__value">{{configSourceText}}</text>
  745. </view>
  746. <view class="info-panel__row">
  747. <text class="info-panel__label">Game</text>
  748. <text class="info-panel__value">{{gameSessionStatus}}</text>
  749. </view>
  750. <view class="info-panel__row">
  751. <text class="info-panel__label">Progress</text>
  752. <text class="info-panel__value">{{panelProgressText}}</text>
  753. </view>
  754. <view class="info-panel__row">
  755. <text class="info-panel__label">Timer</text>
  756. <text class="info-panel__value">{{panelTimerText}}</text>
  757. </view>
  758. <view class="info-panel__row info-panel__row--stack">
  759. <text class="info-panel__label">Punch Hint</text>
  760. <text class="info-panel__value">{{punchHintText}}</text>
  761. </view>
  762. <view class="control-row">
  763. <view class="control-chip {{configSourceText === '顺序赛配置' ? 'control-chip--active' : 'control-chip--secondary'}}" bindtap="handleLoadClassicConfig">顺序赛配置</view>
  764. <view class="control-chip {{configSourceText === '积分赛配置' ? 'control-chip--active' : 'control-chip--secondary'}}" bindtap="handleLoadScoreOConfig">积分赛配置</view>
  765. </view>
  766. <view class="control-row">
  767. <view class="control-chip control-chip--primary" bindtap="handleRecenter">回到首屏</view>
  768. <view class="control-chip control-chip--secondary" bindtap="handleRotationReset">旋转归零</view>
  769. </view>
  770. <view class="control-row">
  771. <view class="control-chip control-chip--secondary" bindtap="handleClearMapTestArtifacts">清空测试痕迹</view>
  772. </view>
  773. </view>
  774. <view class="debug-section">
  775. <view class="debug-section__header">
  776. <view class="debug-section__title">Sensors</view>
  777. <view class="debug-section__desc">定位模拟、心率模拟、调试日志与方向状态</view>
  778. </view>
  779. <view class="control-row">
  780. <view class="control-chip {{mockBridgeConnected && mockHeartRateBridgeConnected && mockDebugLogBridgeConnected ? 'control-chip--active' : 'control-chip--secondary'}}" bindtap="handleConnectAllMockSources">一键连接开发调试源</view>
  781. <view class="control-chip control-chip--secondary" bindtap="handleOpenWebViewTest">测试 H5</view>
  782. </view>
  783. <view class="info-panel__row info-panel__row--stack">
  784. <text class="info-panel__label">模拟通道号</text>
  785. <view class="debug-inline-stack">
  786. <input
  787. class="debug-input"
  788. value="{{mockChannelIdDraft}}"
  789. placeholder="default / runner-a"
  790. bindinput="handleMockChannelIdInput"
  791. />
  792. <view class="control-row control-row--compact">
  793. <view class="control-chip control-chip--secondary" bindtap="handleSaveMockChannelId">保存通道号</view>
  794. </view>
  795. </view>
  796. <text class="info-panel__hint">当前通道:{{mockChannelIdText}}</text>
  797. </view>
  798. <view class="debug-group-title">定位模拟</view>
  799. <view class="info-panel__row">
  800. <text class="info-panel__label">GPS</text>
  801. <text class="info-panel__value">{{gpsTrackingText}}</text>
  802. </view>
  803. <view class="info-panel__row">
  804. <text class="info-panel__label">Location Source</text>
  805. <text class="info-panel__value">{{locationSourceText}}</text>
  806. </view>
  807. <view class="info-panel__row info-panel__row--stack">
  808. <text class="info-panel__label">GPS Coord</text>
  809. <text class="info-panel__value">{{gpsCoordText}}</text>
  810. </view>
  811. <view class="info-panel__row">
  812. <text class="info-panel__label">GPS Logo</text>
  813. <text class="info-panel__value">{{gpsLogoStatusText}}</text>
  814. </view>
  815. <view class="info-panel__row info-panel__row--stack">
  816. <text class="info-panel__label">GPS Logo Src</text>
  817. <text class="info-panel__value">{{gpsLogoSourceText}}</text>
  818. </view>
  819. <view class="info-panel__row info-panel__row--stack">
  820. <text class="info-panel__label">定位模拟状态</text>
  821. <text class="info-panel__value">{{mockBridgeStatusText}}</text>
  822. </view>
  823. <view class="info-panel__row info-panel__row--stack">
  824. <text class="info-panel__label">定位模拟地址</text>
  825. <view class="debug-inline-stack">
  826. <input
  827. class="debug-input"
  828. value="{{mockBridgeUrlDraft}}"
  829. placeholder="ws://192.168.x.x:17865/mock-gps"
  830. bindinput="handleMockBridgeUrlInput"
  831. />
  832. <view class="control-row control-row--compact">
  833. <view class="control-chip control-chip--secondary" bindtap="handleSaveMockBridgeUrl">保存地址</view>
  834. <view class="control-chip {{mockBridgeConnected ? 'control-chip--active' : 'control-chip--secondary'}}" bindtap="handleConnectMockLocationBridge">连接定位模拟</view>
  835. <view class="control-chip control-chip--secondary" bindtap="handleDisconnectMockLocationBridge">断开定位模拟</view>
  836. </view>
  837. </view>
  838. </view>
  839. <view class="info-panel__row info-panel__row--stack">
  840. <text class="info-panel__label">Mock Coord</text>
  841. <text class="info-panel__value">{{mockCoordText}}</text>
  842. </view>
  843. <view class="info-panel__row">
  844. <text class="info-panel__label">Mock Speed</text>
  845. <text class="info-panel__value">{{mockSpeedText}}</text>
  846. </view>
  847. <view class="control-row">
  848. <view class="control-chip {{gpsTracking ? 'control-chip--active' : 'control-chip--secondary'}}" bindtap="handleToggleGpsTracking">{{gpsTracking ? '停止定位' : '开启定位'}}</view>
  849. </view>
  850. <view class="control-row">
  851. <view class="control-chip {{locationSourceMode === 'real' ? 'control-chip--active' : 'control-chip--secondary'}}" bindtap="handleSetRealLocationMode">真实定位</view>
  852. <view class="control-chip {{locationSourceMode === 'mock' ? 'control-chip--active' : 'control-chip--secondary'}}" bindtap="handleSetMockLocationMode">模拟定位</view>
  853. </view>
  854. <view class="debug-group-title">心率模拟</view>
  855. <view class="info-panel__row">
  856. <text class="info-panel__label">Heart Rate</text>
  857. <text class="info-panel__value">{{heartRateStatusText}}</text>
  858. </view>
  859. <view class="info-panel__row">
  860. <text class="info-panel__label">Heart Source</text>
  861. <text class="info-panel__value">{{heartRateSourceText}}</text>
  862. </view>
  863. <view class="info-panel__row info-panel__row--stack">
  864. <text class="info-panel__label">HR Device</text>
  865. <text class="info-panel__value">{{heartRateDeviceText}}</text>
  866. </view>
  867. <view class="control-row">
  868. <view class="control-chip {{heartRateSourceMode === 'real' ? 'control-chip--active' : 'control-chip--secondary'}}" bindtap="handleSetRealHeartRateMode">真实心率</view>
  869. <view class="control-chip {{heartRateSourceMode === 'mock' ? 'control-chip--active' : 'control-chip--secondary'}}" bindtap="handleSetMockHeartRateMode">模拟心率</view>
  870. </view>
  871. <view class="info-panel__row" wx:if="{{heartRateSourceMode === 'real'}}">
  872. <text class="info-panel__label">HR Scan</text>
  873. <text class="info-panel__value">{{heartRateScanText}}</text>
  874. </view>
  875. <view class="control-row" wx:if="{{heartRateSourceMode === 'real'}}">
  876. <view class="control-chip {{heartRateConnected ? 'control-chip--active' : 'control-chip--secondary'}}" bindtap="handleConnectHeartRate">{{heartRateConnected ? '重新扫描' : '连接心率带'}}</view>
  877. </view>
  878. <view class="summary" wx:if="{{heartRateSourceMode === 'real'}}">正式用户入口已放到系统设置;这里仅保留心率源切换与开发调试能力。</view>
  879. <view class="info-panel__row info-panel__row--stack" wx:if="{{heartRateSourceMode === 'mock'}}">
  880. <text class="info-panel__label">心率模拟状态</text>
  881. <text class="info-panel__value">{{mockHeartRateBridgeStatusText}}</text>
  882. </view>
  883. <view class="info-panel__row info-panel__row--stack" wx:if="{{heartRateSourceMode === 'mock'}}">
  884. <text class="info-panel__label">心率模拟地址</text>
  885. <view class="debug-inline-stack">
  886. <input
  887. class="debug-input"
  888. value="{{mockHeartRateBridgeUrlDraft}}"
  889. placeholder="ws://192.168.x.x:17865/mock-hr"
  890. bindinput="handleMockHeartRateBridgeUrlInput"
  891. />
  892. <view class="control-row control-row--compact">
  893. <view class="control-chip control-chip--secondary" bindtap="handleSaveMockHeartRateBridgeUrl">保存地址</view>
  894. <view class="control-chip {{mockHeartRateBridgeConnected ? 'control-chip--active' : 'control-chip--secondary'}}" bindtap="handleConnectMockHeartRateBridge">连接心率模拟</view>
  895. <view class="control-chip control-chip--secondary" bindtap="handleDisconnectMockHeartRateBridge">断开心率模拟</view>
  896. </view>
  897. </view>
  898. </view>
  899. <view class="info-panel__row" wx:if="{{heartRateSourceMode === 'mock'}}">
  900. <text class="info-panel__label">Mock BPM</text>
  901. <text class="info-panel__value">{{mockHeartRateText}}</text>
  902. </view>
  903. <view class="debug-group-title">调试日志</view>
  904. <view class="info-panel__row info-panel__row--stack">
  905. <text class="info-panel__label">日志通道状态</text>
  906. <text class="info-panel__value">{{mockDebugLogBridgeStatusText}}</text>
  907. </view>
  908. <view class="info-panel__row info-panel__row--stack">
  909. <text class="info-panel__label">日志通道地址</text>
  910. <view class="debug-inline-stack">
  911. <input
  912. class="debug-input"
  913. value="{{mockDebugLogBridgeUrlDraft}}"
  914. placeholder="ws://192.168.x.x:17865/debug-log"
  915. bindinput="handleMockDebugLogBridgeUrlInput"
  916. />
  917. <view class="control-row control-row--compact">
  918. <view class="control-chip control-chip--secondary" bindtap="handleSaveMockDebugLogBridgeUrl">保存地址</view>
  919. <view class="control-chip {{mockDebugLogBridgeConnected ? 'control-chip--active' : 'control-chip--secondary'}}" bindtap="handleConnectMockDebugLogBridge">连接日志通道</view>
  920. <view class="control-chip control-chip--secondary" bindtap="handleDisconnectMockDebugLogBridge">断开日志通道</view>
  921. </view>
  922. </view>
  923. </view>
  924. <view class="debug-group-title">方向</view>
  925. <view class="info-panel__row">
  926. <text class="info-panel__label">Heading Mode</text>
  927. <text class="info-panel__value">{{orientationModeText}}</text>
  928. </view>
  929. <view class="info-panel__row">
  930. <text class="info-panel__label">Sensor Heading</text>
  931. <text class="info-panel__value">{{sensorHeadingText}}</text>
  932. </view>
  933. <view class="info-panel__row">
  934. <text class="info-panel__label">Device Heading</text>
  935. <text class="info-panel__value">{{deviceHeadingText}}</text>
  936. </view>
  937. <view class="info-panel__row">
  938. <text class="info-panel__label">Pose</text>
  939. <text class="info-panel__value">{{devicePoseText}}</text>
  940. </view>
  941. <view class="info-panel__row">
  942. <text class="info-panel__label">Heading Confidence</text>
  943. <text class="info-panel__value">{{headingConfidenceText}}</text>
  944. </view>
  945. <view class="info-panel__row">
  946. <text class="info-panel__label">Compass Source</text>
  947. <text class="info-panel__value">{{compassSourceText}}</text>
  948. </view>
  949. <view class="info-panel__row">
  950. <text class="info-panel__label">Compass Tune</text>
  951. <text class="info-panel__value">{{compassTuningProfileText}}</text>
  952. </view>
  953. <view class="info-panel__row info-panel__row--stack">
  954. <text class="info-panel__label">Accel</text>
  955. <text class="info-panel__value">{{accelerometerText}}</text>
  956. </view>
  957. <view class="info-panel__row info-panel__row--stack">
  958. <text class="info-panel__label">Gyro</text>
  959. <text class="info-panel__value">{{gyroscopeText}}</text>
  960. </view>
  961. <view class="info-panel__row info-panel__row--stack">
  962. <text class="info-panel__label">Motion</text>
  963. <text class="info-panel__value">{{deviceMotionText}}</text>
  964. </view>
  965. <view class="info-panel__row info-panel__row--stack">
  966. <text class="info-panel__label">North Ref</text>
  967. <text class="info-panel__value">{{northReferenceText}}</text>
  968. </view>
  969. <view class="control-row">
  970. <view class="control-chip control-chip--secondary" bindtap="handleCycleNorthReferenceMode">{{northReferenceButtonText}}</view>
  971. </view>
  972. </view>
  973. <view class="debug-section">
  974. <view class="debug-section__header">
  975. <view class="debug-section__title">Telemetry</view>
  976. <view class="debug-section__desc">HUD 派生数据与心率颜色测试</view>
  977. </view>
  978. <view class="info-panel__row">
  979. <text class="info-panel__label">HR</text>
  980. <text class="info-panel__value">{{panelHeartRateValueText}} {{panelHeartRateUnitText}}</text>
  981. </view>
  982. <view class="info-panel__row">
  983. <text class="info-panel__label">HR Zone</text>
  984. <text class="info-panel__value">{{panelHeartRateZoneNameText}} {{panelHeartRateZoneRangeText}}</text>
  985. </view>
  986. <view class="info-panel__row">
  987. <text class="info-panel__label">Calories</text>
  988. <text class="info-panel__value">{{panelCaloriesValueText}} {{panelCaloriesUnitText}}</text>
  989. </view>
  990. <view class="info-panel__row">
  991. <text class="info-panel__label">Speed</text>
  992. <text class="info-panel__value">{{panelSpeedValueText}} km/h</text>
  993. </view>
  994. <view class="info-panel__row">
  995. <text class="info-panel__label">Avg Speed</text>
  996. <text class="info-panel__value">{{panelAverageSpeedValueText}} {{panelAverageSpeedUnitText}}</text>
  997. </view>
  998. <view class="info-panel__row">
  999. <text class="info-panel__label">Target Dist</text>
  1000. <text class="info-panel__value">{{panelDistanceValueText}} {{panelDistanceUnitText}}</text>
  1001. </view>
  1002. <view class="info-panel__row">
  1003. <text class="info-panel__label">Accuracy</text>
  1004. <text class="info-panel__value">{{panelAccuracyValueText}} {{panelAccuracyUnitText}}</text>
  1005. </view>
  1006. <view class="info-panel__row">
  1007. <text class="info-panel__label">Timer</text>
  1008. <text class="info-panel__value">{{panelTimerText}}</text>
  1009. </view>
  1010. <view class="info-panel__row">
  1011. <text class="info-panel__label">Timer Mode</text>
  1012. <text class="info-panel__value">{{panelTimerMode === 'countdown' ? '倒计时' : '正计时'}}</text>
  1013. </view>
  1014. <view class="control-row control-row--triple">
  1015. <view class="control-chip control-chip--secondary" bindtap="handleDebugSetSessionRemainingWarning">剩10分钟</view>
  1016. <view class="control-chip control-chip--secondary" bindtap="handleDebugSetSessionRemainingOneMinute">剩1分钟</view>
  1017. <view class="control-chip control-chip--secondary" bindtap="handleDebugTimeoutSession">立即超时</view>
  1018. </view>
  1019. <view class="control-row control-row--triple">
  1020. <view class="control-chip control-chip--secondary" bindtap="handleDebugHeartRateBlue">蓝</view>
  1021. <view class="control-chip control-chip--secondary" bindtap="handleDebugHeartRatePurple">紫</view>
  1022. <view class="control-chip control-chip--secondary" bindtap="handleDebugHeartRateGreen">绿</view>
  1023. </view>
  1024. <view class="control-row control-row--triple">
  1025. <view class="control-chip control-chip--secondary" bindtap="handleDebugHeartRateYellow">黄</view>
  1026. <view class="control-chip control-chip--secondary" bindtap="handleDebugHeartRateOrange">橙</view>
  1027. <view class="control-chip control-chip--secondary" bindtap="handleDebugHeartRateRed">红</view>
  1028. </view>
  1029. <view class="control-row">
  1030. <view class="control-chip control-chip--secondary" bindtap="handleClearDebugHeartRate">清除</view>
  1031. </view>
  1032. </view>
  1033. <view class="debug-section">
  1034. <view class="debug-section__header">
  1035. <view class="debug-section__title">Rendering</view>
  1036. <view class="debug-section__desc">地图渲染、视角与参考图层</view>
  1037. </view>
  1038. <view class="info-panel__row">
  1039. <text class="info-panel__label">Renderer</text>
  1040. <text class="info-panel__value">{{renderMode}}</text>
  1041. </view>
  1042. <view class="info-panel__row info-panel__row--stack">
  1043. <text class="info-panel__label">Projection</text>
  1044. <text class="info-panel__value">{{projectionMode}}</text>
  1045. </view>
  1046. <view class="info-panel__row">
  1047. <text class="info-panel__label">Zoom</text>
  1048. <text class="info-panel__value">{{zoom}}</text>
  1049. </view>
  1050. <view class="info-panel__row">
  1051. <text class="info-panel__label">Rotation</text>
  1052. <text class="info-panel__value">{{rotationText}}</text>
  1053. </view>
  1054. <view class="info-panel__row">
  1055. <text class="info-panel__label">Auto Source</text>
  1056. <text class="info-panel__value">{{autoRotateSourceText}}</text>
  1057. </view>
  1058. <view class="info-panel__row">
  1059. <text class="info-panel__label">Calibration</text>
  1060. <text class="info-panel__value">{{autoRotateCalibrationText}}</text>
  1061. </view>
  1062. <view class="control-row">
  1063. <view class="control-chip {{osmReferenceEnabled ? 'control-chip--active' : 'control-chip--secondary'}}" bindtap="handleToggleOsmReference">{{osmReferenceText}}</view>
  1064. <view class="control-chip" wx:if="{{orientationMode === 'manual'}}" bindtap="handleRotateStep">旋转 +15°</view>
  1065. </view>
  1066. <view class="control-row control-row--triple">
  1067. <view class="control-chip {{orientationMode === 'manual' ? 'control-chip--active' : ''}}" bindtap="handleSetManualMode">手动</view>
  1068. <view class="control-chip {{orientationMode === 'north-up' ? 'control-chip--active' : ''}}" bindtap="handleSetNorthUpMode">北朝上</view>
  1069. <view class="control-chip {{orientationMode === 'heading-up' ? 'control-chip--active' : ''}}" bindtap="handleSetHeadingUpMode">朝向朝上</view>
  1070. </view>
  1071. <view class="control-row" wx:if="{{orientationMode === 'heading-up'}}">
  1072. <view class="control-chip" bindtap="handleAutoRotateCalibrate">按当前方向校准</view>
  1073. </view>
  1074. </view>
  1075. <view class="debug-section">
  1076. <view class="debug-section__header">
  1077. <view class="debug-section__title">Diagnostics</view>
  1078. <view class="debug-section__desc">配置、瓦片缓存与运行状态</view>
  1079. </view>
  1080. <view class="info-panel__row info-panel__row--stack">
  1081. <text class="info-panel__label">Config</text>
  1082. <text class="info-panel__value">{{configStatusText}}</text>
  1083. </view>
  1084. <view class="info-panel__row info-panel__row--stack">
  1085. <text class="info-panel__label">Status</text>
  1086. <text class="info-panel__value">{{statusText}}</text>
  1087. </view>
  1088. <view class="info-panel__row info-panel__row--stack">
  1089. <text class="info-panel__label">Tile URL</text>
  1090. <text class="info-panel__value">{{tileSource}}</text>
  1091. </view>
  1092. <view class="info-panel__row">
  1093. <text class="info-panel__label">Center Tile</text>
  1094. <text class="info-panel__value">{{centerText}}</text>
  1095. </view>
  1096. <view class="info-panel__row">
  1097. <text class="info-panel__label">Tile Size</text>
  1098. <text class="info-panel__value">{{tileSizePx}}px</text>
  1099. </view>
  1100. <view class="info-panel__row">
  1101. <text class="info-panel__label">Visible Tiles</text>
  1102. <text class="info-panel__value">{{visibleTileCount}}</text>
  1103. </view>
  1104. <view class="info-panel__row">
  1105. <text class="info-panel__label">Ready Tiles</text>
  1106. <text class="info-panel__value">{{readyTileCount}}</text>
  1107. </view>
  1108. <view class="info-panel__row">
  1109. <text class="info-panel__label">Memory Tiles</text>
  1110. <text class="info-panel__value">{{memoryTileCount}}</text>
  1111. </view>
  1112. <view class="info-panel__row">
  1113. <text class="info-panel__label">Disk Tiles</text>
  1114. <text class="info-panel__value">{{diskTileCount}}</text>
  1115. </view>
  1116. <view class="info-panel__row">
  1117. <text class="info-panel__label">Cache Hit</text>
  1118. <text class="info-panel__value">{{cacheHitRateText}}</text>
  1119. </view>
  1120. <view class="info-panel__row">
  1121. <text class="info-panel__label">Disk Hits</text>
  1122. <text class="info-panel__value">{{diskHitCount}}</text>
  1123. </view>
  1124. <view class="info-panel__row">
  1125. <text class="info-panel__label">Net Fetches</text>
  1126. <text class="info-panel__value">{{networkFetchCount}}</text>
  1127. </view>
  1128. </view>
  1129. </scroll-view>
  1130. </view>
  1131. </view>
  1132. <view wx:if="{{showHeartRateDevicePicker}}" class="picker-mask" bindtap="handleCloseHeartRateDevicePicker"></view>
  1133. <view wx:if="{{showHeartRateDevicePicker}}" class="picker-sheet">
  1134. <view class="picker-sheet__header">
  1135. <view class="picker-sheet__title">选择心率带设备</view>
  1136. <button class="picker-sheet__close" bindtap="handleCloseHeartRateDevicePicker">关闭</button>
  1137. </view>
  1138. <view class="summary">扫描状态:{{heartRateScanText}}</view>
  1139. <view wx:if="{{!heartRateDiscoveredDevices.length}}" class="summary">当前还没有发现设备,可先点“重新扫描”。</view>
  1140. <view wx:if="{{heartRateDiscoveredDevices.length}}" class="device-list">
  1141. <view wx:for="{{heartRateDiscoveredDevices}}" wx:key="deviceId" class="device-card">
  1142. <view class="device-card__main">
  1143. <view class="device-card__title-row">
  1144. <text class="device-card__name">{{item.name}}</text>
  1145. <text class="device-card__badge" wx:if="{{item.preferred}}">首选</text>
  1146. <text class="device-card__badge device-card__badge--active" wx:if="{{item.connected}}">已连接</text>
  1147. </view>
  1148. <text class="device-card__meta">{{item.rssiText}}</text>
  1149. </view>
  1150. <button class="btn {{item.connected ? 'btn--ghost' : 'btn--secondary'}} device-card__action" data-device-id="{{item.deviceId}}" bindtap="handleConnectHeartRateDevice">{{item.connected ? '已连接' : '连接'}}</button>
  1151. </view>
  1152. </view>
  1153. </view>
  1154. </view>