Browse Source

refactor(all): 移动文件

Tim_Walker 1 year ago
parent
commit
f038ab1e86

+ 10 - 10
src/pages.json

@@ -4,25 +4,25 @@
   },
   "pages": [
     {
-      "path": "pages/home/index",
+      "path": "pages/tabbar/home/index",
       "style": {
         "navigationBarTitleText": "首页"
       }
     },
     {
-      "path": "pages/community/index",
+      "path": "pages/tabbar/community/index",
       "style": {
         "navigationBarTitleText": "首页"
       }
     },
     {
-      "path": "pages/message/index",
+      "path": "pages/tabbar/message/index",
       "style": {
         "navigationBarTitleText": "消息"
       }
     },
     {
-      "path": "pages/mine/index",
+      "path": "pages/tabbar/mine/index",
       "style": {
         "navigationBarTitleText": "我的"
       }
@@ -42,7 +42,7 @@
   ],
   "subPackages": [
     {
-      "root": "client",
+      "root": "pages/client",
       "pages": [
         {
           "path": "CommunitySearch/index",
@@ -89,7 +89,7 @@
       ]
     },
     {
-      "root": "business",
+      "root": "pages/business",
       "pages": [
         {
           "path": "detail/index",
@@ -108,24 +108,24 @@
     "list": [
       {
         "text": "首页",
-        "pagePath": "pages/home/index",
+        "pagePath": "pages/tabbar/home/index",
         "iconPath": "static/images/home.png",
         "selectedIconPath": "static/images/home-select.png"
       },
       {
-        "pagePath": "pages/community/index",
+        "pagePath": "pages/tabbar/community/index",
         "text": "社区",
         "iconPath": "static/images/community.png",
         "selectedIconPath": "static/images/community-select.png"
       },
       {
-        "pagePath": "pages/message/index",
+        "pagePath": "pages/tabbar/message/index",
         "text": "消息",
         "iconPath": "static/images/message.png",
         "selectedIconPath": "static/images/message-select.png"
       },
       {
-        "pagePath": "pages/mine/index",
+        "pagePath": "pages/tabbar/mine/index",
         "text": "我的",
         "iconPath": "static/images/mine.png",
         "selectedIconPath": "static/images/mine-select.png"

+ 0 - 0
src/business/classify/index.vue → src/pages/business/classify/index.vue


+ 0 - 0
src/business/detail/index.vue → src/pages/business/detail/index.vue


+ 0 - 0
src/client/CommunitySearch/index.vue → src/pages/client/CommunitySearch/index.vue


+ 0 - 0
src/client/allComments/index.vue → src/pages/client/allComments/index.vue


+ 0 - 0
src/client/chooseCity/index copy 2.vue → src/pages/client/chooseCity/index copy 2.vue


+ 0 - 0
src/client/chooseCity/index copy 3.vue → src/pages/client/chooseCity/index copy 3.vue


+ 0 - 0
src/client/chooseCity/index copy.vue → src/pages/client/chooseCity/index copy.vue


+ 0 - 0
src/client/chooseCity/index.vue → src/pages/client/chooseCity/index.vue


+ 0 - 0
src/client/coupon/index.vue → src/pages/client/coupon/index.vue


+ 0 - 0
src/client/personalCenter/index.vue → src/pages/client/personalCenter/index.vue


+ 0 - 0
src/client/search/index.vue → src/pages/client/search/index.vue


+ 0 - 0
src/client/settings/index.vue → src/pages/client/settings/index.vue


+ 1 - 1
src/pages/login/index.vue

@@ -38,7 +38,7 @@ export default {
           this.loading = false;
           uni.$u.toast('登录成功');
           setTimeout(() => {
-            this.$Router.pushTab('/pages/home/index');
+            this.$Router.pushTab('/pages/tabbar/home/index');
           }, 1500);
         })
         .catch(() => {

+ 1 - 1
src/pages/login/phoneLogin.vue

@@ -131,7 +131,7 @@ export default {
             this.$store.commit('SET_ACCESS_TOKEN', res.access_token);
             this.$store.commit('SET_REFRESH_TOKEN', res.refresh_token);
             setTimeout(() => {
-              this.$Router.pushTab('/pages/home/index');
+              this.$Router.pushTab('/pages/tabbar/home/index');
             }, 1500);
           }
         })

+ 0 - 0
src/pages/community/index copy.vue → src/pages/tabbar/community/index copy.vue


+ 0 - 0
src/pages/community/index.vue → src/pages/tabbar/community/index.vue


+ 2 - 2
src/pages/home/index.vue → src/pages/tabbar/home/index.vue

@@ -3,7 +3,7 @@
     <!-- 顶部导航 -->
     <view class="home-header">
       <view class="goto-address" @click="$Router.push('/client/chooseCity/index')">
-        <span>地址</span>
+        <text>地址</text>
         <text class="iconfont icon-sanjiaoxing1"></text>
       </view>
       <view class="search-item" @click="Router.push('/client/search/index')">
@@ -34,7 +34,7 @@
         <text class="iconfont icon-youjiantou"></text>
       </view>
       <view class="hotList">
-        <view class="hot-item" @click="$Router.push('/business/detail/index')">
+        <view class="hot-item" @click="$Router.push('/pages/business/detail/index')">
           <view class="hot-image">图片</view>
           <view class="hot-name">商家名称</view>
           <view class="hot-name">具体位置</view>

+ 0 - 0
src/pages/message/index.vue → src/pages/tabbar/message/index.vue


+ 2 - 2
src/pages/mine/index.vue → src/pages/tabbar/mine/index.vue

@@ -8,7 +8,7 @@
         <view class="user-base">
           <view class="user-nickname" @tap="$Router.push('/pages/login/index')">用户昵称</view>
           <view class="btn-wrap">
-            <view class="btn-content" @tap="$Router.push('/client/settings/index')">设置</view>
+            <view class="btn-content" @tap="$Router.push('/pages/client/settings/index')">设置</view>
             <view class="btn-content">认证</view>
           </view>
         </view>
@@ -82,7 +82,7 @@ export default {
         {
           name: 'hourglass',
           title: '优惠券',
-          url: '/client/coupon/index',
+          url: '/pages/client/coupon/index',
         },
       ],
       list2: [