Просмотр исходного кода

feat(frontend): 我的页面服务区添加商城和购物车入口

在 ProfileMenu 服务区新增 🛍️ 商城 (pages/shop/index/index) 和
🛒 购物车 (pages/shop/cart/cart) 快捷入口。

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Xiaogang Liao 1 месяц назад
Родитель
Сommit
7f90e362c1
1 измененных файлов с 14 добавлено и 0 удалено
  1. 14 0
      cfc-frontend/components/ProfileMenu.vue

+ 14 - 0
cfc-frontend/components/ProfileMenu.vue

@@ -33,6 +33,14 @@
       <!-- ===== 服务 ===== -->
       <!-- ===== 服务 ===== -->
       <view class="menu-group" v-if="showServices">
       <view class="menu-group" v-if="showServices">
         <view class="menu-group-title">── 服务 ──</view>
         <view class="menu-group-title">── 服务 ──</view>
+        <view class="menu-item" @click="goToShop">
+          <text>🛍️ 商城</text>
+          <text class="arrow">›</text>
+        </view>
+        <view class="menu-item" @click="goToCart">
+          <text>🛒 购物车</text>
+          <text class="arrow">›</text>
+        </view>
         <view class="menu-item" @click="goToMembership">
         <view class="menu-item" @click="goToMembership">
           <text>👑 会员中心</text>
           <text>👑 会员中心</text>
           <text class="arrow">›</text>
           <text class="arrow">›</text>
@@ -172,6 +180,12 @@ export default {
         uni.showToast({ title: '操作失败', icon: 'none' })
         uni.showToast({ title: '操作失败', icon: 'none' })
       }
       }
     },
     },
+    goToShop() {
+      uni.navigateTo({ url: '/pages/shop/index/index' })
+    },
+    goToCart() {
+      uni.navigateTo({ url: '/pages/shop/cart/cart' })
+    },
     goToMembership() {
     goToMembership() {
       uni.navigateTo({ url: '/pages/membership/index' })
       uni.navigateTo({ url: '/pages/membership/index' })
     },
     },