map.wxml 75 KB

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