Browse Source

首页更改

mym 1 year ago
parent
commit
b8ecba8a50
1 changed files with 6 additions and 2 deletions
  1. 6 2
      pages/index/index.vue

+ 6 - 2
pages/index/index.vue

@@ -68,7 +68,7 @@ export default {
 	onLoad() {
 		this.getBannerList();
 		this.getNewsList();
-		this.getRoleMenu();
+		// this.getRoleMenu();
 		this.getMenu();
 	},
 	methods: {
@@ -111,6 +111,7 @@ export default {
 					});
 				}
 			});
+			console.log(this.menuList)
 		},
 		getNewsList() {
 			this.http.request({
@@ -129,7 +130,10 @@ export default {
 					uni.showModal({ content: '功能还在开发中', showCancel: false });
 				}
 			});
-		}
+		},
+		go(url) {
+			uni.navigateTo({ url: url });
+		},
 	}
 };
 </script>