From d4af4c2e1e2e8251327ef19541c4f124637715c1 Mon Sep 17 00:00:00 2001 From: Bobi <2166145077@qq.com> Date: Thu, 24 Oct 2024 15:40:56 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=92=8C=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 12 +- pages/index/center.vue | 375 +++++++++++++++++++------------------------------ pages/index/index.vue | 322 ++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 460 insertions(+), 249 deletions(-) diff --git a/pages.json b/pages.json index bf341ff..fae0e40 100644 --- a/pages.json +++ b/pages.json @@ -89,5 +89,15 @@ "backgroundColor": "#F8F8F8", "navigationStyle": "custom" }, - "uniIdRouter": {} + "uniIdRouter": {}, + "condition" : { //模式配置,仅开发期间生效 + "current": 0, //当前激活的模式(list 的索引项) + "list": [ + { + "name": "", //模式名称 + "path": "", //启动页面,必选 + "query": "" //启动参数,在页面的onLoad函数里面得到 + } + ] + } } \ No newline at end of file diff --git a/pages/index/center.vue b/pages/index/center.vue index 6242ebf..28fcb8c 100644 --- a/pages/index/center.vue +++ b/pages/index/center.vue @@ -1,7 +1,70 @@