Explorar o código

feat: 首页增加结算页(orderComplete)调试入口

快捷功能区添加"结算页"按钮(🧪图标),跳转到 orderComplete
页面方便调试样式。标记 TODO,上线前移除。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
skyline hai 1 semana
pai
achega
37abce3c32
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      haha-mp/src/pages/index/index.vue

+ 9 - 0
haha-mp/src/pages/index/index.vue

@@ -37,6 +37,13 @@
         </view>
         <text class="action-label">优惠券</text>
       </view>
+      <!-- TODO: 调试入口,上线前移除 -->
+      <view class="quick-action-item" @click="goToOrderComplete">
+        <view class="action-icon debug-icon">
+          <text class="debug-icon-text">🧪</text>
+        </view>
+        <text class="action-label">结算页</text>
+      </view>
     </view>
 
     <!-- 底部信息卡片 -->
@@ -309,6 +316,8 @@ const doOpenDoor = (deviceId: string) => {
 const goToMy = () => uni.navigateTo({ url: '/pages/my/my' })
 const goToOrders = () => uni.navigateTo({ url: '/pages/orders/orders' })
 const goToCouponCenter = () => uni.navigateTo({ url: '/pages/couponCenter/couponCenter' })
+// TODO: 调试入口,上线前移除
+const goToOrderComplete = () => uni.navigateTo({ url: '/pages/orderComplete/orderComplete?orderNo=DEBUG_TEST_ORDER' })
 const onContactSuccess = () => logger.log('[首页] 客服会话已打开')
 </script>