From 0c0fe21681227735fb5a16f2759d354a2e0d0de3 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Thu, 15 Jun 2023 10:38:16 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/css/layout.styl | 38 +++++++++++++++++ src/main.js | 1 + src/pages/modules/homepage/one.vue | 64 ++++++++++++++--------------- src/pages/modules/homepage/two.vue | 36 ++++++++++++++++ src/pages/modules/takeshape/one.vue | 3 ++ 5 files changed, 108 insertions(+), 34 deletions(-) create mode 100644 src/assets/css/layout.styl diff --git a/src/assets/css/layout.styl b/src/assets/css/layout.styl new file mode 100644 index 0000000..18c0fd3 --- /dev/null +++ b/src/assets/css/layout.styl @@ -0,0 +1,38 @@ +@import 'mixin.styl' + +.tooltip_wrap + position fixed + bottom 10% + z-index 10 + _wh(auto, 40px) + padding 5px 5px + background-color rgba(228,233,237,1) + _fj(row) + &:hover + opacity 1 !important +.left_tooltip_wrap + right 0 + border-top-left-radius 12px + border-bottom-left-radius 12px +.right_tooltip_wrap + left 0 + border-top-right-radius 12px + border-bottom-right-radius 12px +.tooltip_arrow + _wh(40px, 100%) + _font(14px, 30px, #999,,) +.tooltip_pages + height 100% + _fj(row) + transition width .3s ease + overflow hidden +.tooltip_page + _wh(30px, 100%) + margin 0 5px + _font(14px, 30px, #999,,) + border 1px solid #999 + border-radius 50% + &:hover + background-color #03fcfd + border-color #03fcfd + color #fff \ No newline at end of file diff --git a/src/main.js b/src/main.js index 1ac904f..0b4ab64 100644 --- a/src/main.js +++ b/src/main.js @@ -5,6 +5,7 @@ import router from './router' import store from './vuex/store' import '@css/reset.css' import '@css/iconfont.styl' +import '@css/layout.styl' import '@js/rem.js' import filter from '@js/filter.js' import { Dialog, toast } from '@js/mUtils.js' diff --git a/src/pages/modules/homepage/one.vue b/src/pages/modules/homepage/one.vue index 2189bec..b440d48 100644 --- a/src/pages/modules/homepage/one.vue +++ b/src/pages/modules/homepage/one.vue @@ -568,15 +568,15 @@ -