Browse Source

优化间距和固定搜索框

master
wanghongjun 2 years ago
parent
commit
4dadb24e92
  1. 2
      components/search/index.vue
  2. 4
      pages/category/index.vue
  3. 4
      pages/recommend/index.vue

2
components/search/index.vue

@ -44,7 +44,7 @@
.search-wrapper { .search-wrapper {
background: #1c223b; background: #1c223b;
padding: 0rpx 0rpx 0rpx 0rpx; padding: 0rpx 0rpx 0rpx 0rpx;
position: absolute; position: fixed;
top: 20rpx; top: 20rpx;
left: 19rpx; left: 19rpx;
width: 95%; width: 95%;

4
pages/category/index.vue

@ -396,7 +396,7 @@
<style lang="scss" scoped> <style lang="scss" scoped>
// //
.sozone{ .sozone{
position: relative; position: fixed;
z-index: 70; z-index: 70;
width: 100%; width: 100%;
height: 120rpx; height: 120rpx;
@ -419,7 +419,7 @@
display: flex; display: flex;
z-index: 1; z-index: 1;
background: #fff; background: #fff;
padding-top: 6rpx; padding-top: 120rpx;
height: 100%; height: 100%;
} }

4
pages/recommend/index.vue

@ -211,7 +211,7 @@ export default {
<style lang="scss" scoped> // <style lang="scss" scoped> //
// //
.sozone{ .sozone{
position: relative; position: fixed;
z-index: 70; z-index: 70;
width: 100%; width: 100%;
height: 120rpx; height: 120rpx;
@ -234,7 +234,7 @@ export default {
display: flex; display: flex;
z-index: 1; z-index: 1;
background: #fff; background: #fff;
padding-top: 16rpx; padding-top: 135rpx;
height: 100%; height: 100%;
} }

Loading…
Cancel
Save