From b696bd7b008c28b2a12383ecbf9127605e15405f Mon Sep 17 00:00:00 2001 From: ch Date: Sat, 21 May 2022 17:02:38 +0800 Subject: [PATCH] banner --- pages.json | 10 ++++++++++ pages/index/components/Banner.vue | 10 ++++++++-- pages/index/index.vue | 8 +++++++- 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/pages.json b/pages.json index 3f9efcb..1f98a74 100644 --- a/pages.json +++ b/pages.json @@ -283,5 +283,15 @@ "custom": { "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" } + }, + "condition" : { //模式配置,仅开发期间生效 + "current": 0, //当前激活的模式(list 的索引项) + "list": [ + { + "name": "", //模式名称 + "path": "", //启动页面,必选 + "query": "" //启动参数,在页面的onLoad函数里面得到 + } + ] } } diff --git a/pages/index/components/Banner.vue b/pages/index/components/Banner.vue index 1846115..a77807c 100644 --- a/pages/index/components/Banner.vue +++ b/pages/index/components/Banner.vue @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-03-23 10:31:12 * @LastEditors: ch - * @LastEditTime: 2022-05-05 18:37:20 + * @LastEditTime: 2022-05-21 17:02:24 * @Description: file content -->