From ab8325ce0371942440f8a0d59f8c72b34c96d0b8 Mon Sep 17 00:00:00 2001 From: qiang Date: Fri, 13 Mar 2020 18:40:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20H5=20navigationBarS?= =?UTF-8?q?hadow=20=E9=85=8D=E7=BD=AE=E4=B8=8D=E7=94=9F=E6=95=88=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20fixed=20#607?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/platforms/h5/components/page/index.vue | 45 ++++++---- src/platforms/h5/components/page/pageHead.vue | 84 +++++++++++++++---- 2 files changed, 97 insertions(+), 32 deletions(-) diff --git a/src/platforms/h5/components/page/index.vue b/src/platforms/h5/components/page/index.vue index 0e579d538..2edb68f0f 100644 --- a/src/platforms/h5/components/page/index.vue +++ b/src/platforms/h5/components/page/index.vue @@ -1,19 +1,21 @@ + diff --git a/src/platforms/h5/components/page/pageHead.vue b/src/platforms/h5/components/page/pageHead.vue index b06164da0..3685b3f9c 100644 --- a/src/platforms/h5/components/page/pageHead.vue +++ b/src/platforms/h5/components/page/pageHead.vue @@ -2,16 +2,16 @@
-
-
-
- -
@@ -108,7 +108,7 @@ uni-page-head { uni-page-head .uni-page-head { position: fixed; - left: 0; + left: 0; top: 0; width: 100%; height: 44px; @@ -302,6 +302,44 @@ uni-page-head .uni-page-head__title .uni-page-head__title_image { height: 26px; vertical-align: middle; } + +uni-page-head .uni-page-head-shadow { + overflow: visible; +} + +uni-page-head .uni-page-head-shadow::after { + content: ""; + position: absolute; + left: 0; + right: 0; + top: 100%; + height: 5px; + background-size: 100% 100%; +} + +uni-page-head .uni-page-head-shadow-grey::after { + background-image: url("https://cdn.dcloud.net.cn/img/shadow-grey.png"); +} + +uni-page-head .uni-page-head-shadow-blue::after { + background-image: url("https://cdn.dcloud.net.cn/img/shadow-blue.png"); +} + +uni-page-head .uni-page-head-shadow-green::after { + background-image: url("https://cdn.dcloud.net.cn/img/shadow-green.png"); +} + +uni-page-head .uni-page-head-shadow-orange::after { + background-image: url("https://cdn.dcloud.net.cn/img/shadow-orange.png"); +} + +uni-page-head .uni-page-head-shadow-red::after { + background-image: url("https://cdn.dcloud.net.cn/img/shadow-red.png"); +} + +uni-page-head .uni-page-head-shadow-yellow::after { + background-image: url("https://cdn.dcloud.net.cn/img/shadow-yellow.png"); +}