|
|
@@ -1,5 +1,46 @@
|
|
|
/******************** 这里放组件样式 ********************/
|
|
|
+/**************** 系统响应式 ****************/
|
|
|
+@mixin mediaSmall() {
|
|
|
+ @media screen and (min-width: 650px) {
|
|
|
+ @content;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+@mixin mediaMiddle() {
|
|
|
+ @media screen and (min-width: 820px) {
|
|
|
+ @content;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+@mixin mediaBig() {
|
|
|
+ @media screen and (min-width: 1024px) {
|
|
|
+ @content;
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
+// pad上隐藏 (大于768的) vue中使用
|
|
|
+ @media screen and (min-width: 768px) {
|
|
|
+ .ezy-hidden-pad{display: none!important;}
|
|
|
+ }
|
|
|
+
|
|
|
+// 手机上隐藏 (小于768的) vue中使用
|
|
|
+ @media screen and (max-width: 767px) {
|
|
|
+ .ezy-hidden-phone{display: none!important;}
|
|
|
+ }
|
|
|
+
|
|
|
+ // 对于Pad上隐藏的元素 ---scss中使用
|
|
|
+ @mixin hideOnPad() {
|
|
|
+ @media screen and (min-width: 768px) {
|
|
|
+ display: none !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 对于手机上隐藏的元素 ---scss media中使用
|
|
|
+ @mixin hideOnPhone() {
|
|
|
+ @media screen and (max-width: 767px) {
|
|
|
+ display: none !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
/***** view *****/
|
|
|
view{box-sizing: border-box;}
|
|
|
|
|
|
@@ -82,7 +123,16 @@ $titleBar-tabBar-page: calc(100vh - var(--status-bar-height));
|
|
|
.tabbar-item-box{
|
|
|
width: 25%;display: flex;flex-wrap: nowrap;justify-content: space-evenly;
|
|
|
}
|
|
|
- .tabbar-item{width: 60rpx;height: 80rpx;@include ezy-no-repeat-cover;z-index: 2;}
|
|
|
+ .tabbar-item{width: 60rpx;height: 80rpx;@include ezy-no-repeat-contain;z-index: 2;}
|
|
|
+ /*** pad ***/
|
|
|
+ @include mediaSmall() {
|
|
|
+ height: 80rpx;
|
|
|
+ .tabbar-item{width: 37rpx;height: 59rpx;}
|
|
|
+ }
|
|
|
+ @include mediaBig() {
|
|
|
+ height: 180rpx;
|
|
|
+ .tabbar-item{width: 82rpx;height: 130rpx;}
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -121,10 +171,19 @@ $titleBar-tabBar-page: calc(100vh - var(--status-bar-height));
|
|
|
width: 24rpx;height: 38rpx;content: '';display: block;margin-left: 24rpx;
|
|
|
background-image: url("@/static/images/common/navBar-return-btn.png");@include ezy-no-repeat-cover();
|
|
|
}
|
|
|
+ /*** pad ***/
|
|
|
+ @include mediaSmall() {
|
|
|
+ .nav-bar-title{font-size: 28rpx;}
|
|
|
+ }
|
|
|
+ @include mediaBig(){
|
|
|
+ .nav-bar-title{font-size: 66rpx;height: 180rpx;line-height: 180rpx;}
|
|
|
+ }
|
|
|
}
|
|
|
.icon-title-navBar-box::before{
|
|
|
width: 100%;height: 356rpx;content: '';display: block;position: absolute;z-index: 0;top: 0;left: 0;
|
|
|
- background-image: url("@/static/images/common/page-header-bj.png");@include ezy-no-repeat-cover(top);
|
|
|
+ background-image: url("@/static/images/phone/common/page-header-bj.png");@include ezy-no-repeat-cover(top);
|
|
|
+ @include mediaSmall() {height: 160rpx;background-image: url("@/static/images/pad/common/page-header-bj.png");}
|
|
|
+ @include mediaBig() {height: 350rpx;}
|
|
|
}
|
|
|
// 仅一个返回按钮
|
|
|
.ezy-nav-bar-icon{width: 100rpx;height: 100rpx;position: absolute;left: 0;top: var(--status-bar-height);}
|
|
|
@@ -253,6 +312,11 @@ $titleBar-tabBar-page: calc(100vh - var(--status-bar-height));
|
|
|
display: flex;flex-direction: column;flex: 1;
|
|
|
position: relative;background-color: #fff;z-index: 1;
|
|
|
border-radius: 20rpx 20rpx 0 0;padding: 42rpx 0;overflow: hidden;
|
|
|
+ @include mediaSmall() {
|
|
|
+ padding: 28rpx 0 10rpx;
|
|
|
+ }
|
|
|
+ @include mediaBig() {padding: 64rpx 0 32rpx;}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/***** 模拟标题栏 *****/
|
|
|
@@ -374,13 +438,25 @@ $titleBar-tabBar-page: calc(100vh - var(--status-bar-height));
|
|
|
.ezy-xueke-tab-box{
|
|
|
display: flex;justify-content: center;margin-bottom: 24rpx;flex-shrink: 0;
|
|
|
.tab-item{
|
|
|
- width: 242rpx;height: 90rpx;line-height: 90rpx;@include ezy-no-repeat-cover;
|
|
|
- background-image: url("@/static/images/xuanke/tab-item-bj.png");
|
|
|
- text-align: center;color: #a6a6a6;
|
|
|
+ width: 242rpx;height: 90rpx;line-height: 90rpx;font-size: 30rpx;
|
|
|
+ background-image: url("@/static/images/phone/xuanke/tab-item-bj.png");
|
|
|
+ text-align: center;color: #a6a6a6;@include ezy-no-repeat-cover;
|
|
|
}
|
|
|
.tab-item.active{
|
|
|
- color: #fff;background-image: url("@/static/images/xuanke/tab-item-a.png");
|
|
|
+ color: #fff;background-image: url("@/static/images/phone/xuanke/tab-item-a.png");
|
|
|
}
|
|
|
+
|
|
|
+ @include mediaSmall() {
|
|
|
+ .tab-item{
|
|
|
+ width: 238rpx;height: 58rpx;line-height: 58rpx;font-size: 24rpx;
|
|
|
+ background-image: url("@/static/images/pad/xuanke/tab-item-bj.png");}
|
|
|
+ .tab-item.active{background-image: url("@/static/images/pad/xuanke/tab-item-a.png");}
|
|
|
+ }
|
|
|
+ @include mediaBig() {
|
|
|
+ .tab-item{width: 620rpx;height: 152rpx;line-height: 152rpx;font-size: 60rpx;margin: 0 6rpx;}
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
// tab页面
|
|
|
@@ -461,4 +537,8 @@ $titleBar-tabBar-page: calc(100vh - var(--status-bar-height));
|
|
|
}
|
|
|
|
|
|
// 没有更多
|
|
|
-.ezy-no-more{color: rgb(119, 119, 119);font-size: 28rpx;text-align: center;}
|
|
|
+.ezy-no-more{
|
|
|
+ color: rgb(119, 119, 119);font-size: 28rpx;text-align: center;
|
|
|
+ @include mediaSmall() {font-size: 18rpx;}
|
|
|
+ @include mediaBig() {font-size: 40rpx;}
|
|
|
+}
|