xuqiang пре 4 година
родитељ
комит
6d5684df78

+ 30 - 15
src/main/pc-space/src/router/index.js

@@ -93,7 +93,8 @@ const routes = [
                         name: 'accountdata',
                         component: () => import('../views/user/AccountData.vue'),
                         meta: {
-                            title: '资料账号'
+                            title: '资料账号',
+                            checkLogin: true
                         }
                     },
                     {
@@ -101,7 +102,8 @@ const routes = [
                         name: 'address',
                         component: () => import('../views/user/Address.vue'),
                         meta: {
-                            title: '地址管理'
+                            title: '地址管理',
+                            checkLogin: true
                         }
                     },
                     {
@@ -109,7 +111,8 @@ const routes = [
                         name: 'give',
                         component: () => import('../views/user/Give.vue'),
                         meta: {
-                            title: '我赞过的'
+                            title: '我赞过的',
+                            checkLogin: true
                         }
                     },
                     {
@@ -117,7 +120,8 @@ const routes = [
                         name: 'mylikes',
                         component: () => import('../views/user/MyLikes.vue'),
                         meta: {
-                            title: '藏品订单'
+                            title: '藏品订单',
+                            checkLogin: true
                         }
                     },
                     {
@@ -125,7 +129,8 @@ const routes = [
                         name: 'payrecord',
                         component: () => import('../views/user/PayRecord.vue'),
                         meta: {
-                            title: '支付记录'
+                            title: '支付记录',
+                            checkLogin: true
                         }
                     },
                     {
@@ -133,7 +138,8 @@ const routes = [
                         name: 'transactionordes',
                         component: () => import('../views/user/TransactionOrdes.vue'),
                         meta: {
-                            title: '交易记录'
+                            title: '交易记录',
+                            checkLogin: true
                         }
                     },
                     {
@@ -141,7 +147,8 @@ const routes = [
                         name: 'ordervalue',
                         component: () => import('../views/user/OrderValue.vue'),
                         meta: {
-                            title: '价值证明'
+                            title: '价值证明',
+                            checkLogin: true
                         }
                     }
                 ]
@@ -151,7 +158,8 @@ const routes = [
                 name: 'security',
                 component: () => import('../views/user/Security.vue'),
                 meta: {
-                    title: '修改登录账号'
+                    title: '修改登录账号',
+                    checkLogin: true
                 }
             },
             {
@@ -159,7 +167,8 @@ const routes = [
                 name: 'securitysuccess',
                 component: () => import('../views/user/SecuritySuccess.vue'),
                 meta: {
-                    title: '修改登录账号'
+                    title: '修改登录账号',
+                    checkLogin: true
                 }
             },
             {
@@ -167,7 +176,8 @@ const routes = [
                 name: 'transaction',
                 component: () => import('../views/user/Transaction.vue'),
                 meta: {
-                    title: '修改交易密码'
+                    title: '修改交易密码',
+                    checkLogin: true
                 }
             },
             {
@@ -175,7 +185,8 @@ const routes = [
                 name: 'transactionsuccess',
                 component: () => import('../views/user/TransactionSuccess.vue'),
                 meta: {
-                    title: '修改交易密码'
+                    title: '修改交易密码',
+                    checkLogin: true
                 }
             },
             {
@@ -183,7 +194,8 @@ const routes = [
                 name: 'modifypad',
                 component: () => import('../views/user/Modifypad.vue'),
                 meta: {
-                    title: '修改密码'
+                    title: '修改密码',
+                    checkLogin: true
                 }
             },
             {
@@ -191,7 +203,8 @@ const routes = [
                 name: 'authentication',
                 component: () => import('../views/user/Authentication.vue'),
                 meta: {
-                    title: '认证'
+                    title: '认证',
+                    checkLogin: true
                 }
             },
             {
@@ -199,7 +212,8 @@ const routes = [
                 name: 'userauthentication',
                 component: () => import('../views/user/UserAuthentication.vue'),
                 meta: {
-                    title: '个人认证'
+                    title: '个人认证',
+                    checkLogin: true
                 }
             },
             {
@@ -207,7 +221,8 @@ const routes = [
                 name: 'enterpriseauthentication',
                 component: () => import('../views/user/EnterpriseAuthentication.vue'),
                 meta: {
-                    title: '企业认证'
+                    title: '企业认证',
+                    checkLogin: true
                 }
             }
         ]

+ 2 - 4
src/main/pc-space/src/views/user/AccountData.vue

@@ -27,7 +27,7 @@
         </div>
         <div v-if="empty">
             <div class="border2"></div>
-            <el-empty description="还没有粉丝哦~"></el-empty>
+            <el-empty description="还没有哦~"></el-empty>
         </div>
 
         <div class="content" v-if="active !== '关注' && active !== '粉丝'">
@@ -167,7 +167,6 @@ export default {
                     } else {
                         this.empty = false;
                     }
-                    // console.log(res);
                 });
             } else {
                 this.$http.get('/user/myFollowers').then(res => {
@@ -177,7 +176,6 @@ export default {
                     } else {
                         this.empty = false;
                     }
-                    // console.log(res);
                 });
             }
         },
@@ -221,7 +219,7 @@ export default {
     }
     /deep/ .el-empty__description {
         color: #ccc;
-        margin: 10px 0 0 2px;
+        margin: 10px 0 0 17px;
     }
     .top {
         height: 146px;

+ 1 - 15
src/main/pc-space/src/views/user/Give.vue

@@ -15,7 +15,6 @@
                     placeholder="请输入您想找到的作品名称…"
                     v-model="search"
                     clearable
-                    @change="onSearch"
                 >
                 </el-input>
             </div>
@@ -91,20 +90,7 @@ export default {
             return this.showList.length ? false : true;
         }
     },
-    // watch: {
-    //     showList() {
-    //         return [...this.list]
-    //             .map((item, index) => {
-    //                 return {
-    //                     ...item,
-    //                     index
-    //                 };
-    //             })
-    //             .filter(item => {
-    //                 return !this.type || this.type === item.type;
-    //             });
-    //     }
-    // },
+    watch: {},
     mounted() {
         this.init();
     },