From 7c9f067280ba1f0cedab32d046faffd540e974a6 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 30 Nov 2021 14:39:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91=E7=8E=AF=E5=A2=83=E5=90=8C?= =?UTF-8?q?=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/serve.js | 3 ++- src/main.js | 2 ++ src/pages/loading.vue | 6 +++++- src/pages/mainEntry.vue | 43 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 src/pages/mainEntry.vue diff --git a/bin/serve.js b/bin/serve.js index d02bae31..7cf9de79 100644 --- a/bin/serve.js +++ b/bin/serve.js @@ -60,7 +60,8 @@ const start = () => { }, pages: [ {path: 'pages/loading'}, - {path: 'pages/login'} + {path: 'pages/login'}, + {path: 'pages/mainEntry', style: {navigationBarTitleText: "村微产品应用库"}} ], globalStyle: { pageOrientation: "auto", diff --git a/src/main.js b/src/main.js index 5b65ff9b..33ebf348 100644 --- a/src/main.js +++ b/src/main.js @@ -4,8 +4,10 @@ import store from './store'; import axios from './common/axios'; import utils from './common/util'; import ui from 'uview-ui' +import apps from './apps/index' Vue.use(ui) +Vue.use(apps) Vue.config.productionTip = false; Vue.prototype.$store = store; //初始化接口工具类 diff --git a/src/pages/loading.vue b/src/pages/loading.vue index 02daf34a..01ecd35c 100644 --- a/src/pages/loading.vue +++ b/src/pages/loading.vue @@ -7,7 +7,7 @@
去登录
- {{ app.name }} + {{ app.name }}
0 @@ -46,6 +46,10 @@ export default { } }) }, + handleGotoApp(app) { + console.log(app) + uni.navigateTo({url: `./mainEntry?app=${app.key}`}) + }, handleLogin() { uni.navigateTo({url: "./login"}) }, diff --git a/src/pages/mainEntry.vue b/src/pages/mainEntry.vue new file mode 100644 index 00000000..6ef470e6 --- /dev/null +++ b/src/pages/mainEntry.vue @@ -0,0 +1,43 @@ + + + + +