Browse Source

fix:图片居中、导航栏高度修改

master
xiaohei 1 year ago
parent
commit
1beec441e8
2 changed files with 6 additions and 2 deletions
  1. +2
    -2
      src/components/custom-nav-bar/custom-nav-bar.vue
  2. +4
    -0
      src/packages/public/pages/web-view/web-view.vue

+ 2
- 2
src/components/custom-nav-bar/custom-nav-bar.vue View File

@@ -1,6 +1,6 @@
<template>
<view style="height: 100%">
<view v-if="position === 'fixed'" :style="'height: calc(103px + 17rpx);'" />
<view v-if="position === 'fixed'" :style="'height:220rpx;'" />

<view
:class="'custom-nav-bar ' + (position === 'fixed' ? 'custom-nav-bar__fixed' : '') + ' ' + (position === 'absolute' ? 'custom-nav-bar__absolute' : '')"
@@ -9,7 +9,7 @@
zIndex +
';background-color: ' +
(color === 'white' ? 'transparent' : '#ffffff') +
';height:calc(103px + 17rpx);'
';height:220rpx;'
">
<view :class="'custom-nav-bar-content__content ' + (border ? 'custom-nav-bar__border-bottom' : '')">
<view class="custom-nav-bar-content__left" @click="onClickLeft">


+ 4
- 0
src/packages/public/pages/web-view/web-view.vue View File

@@ -61,9 +61,13 @@
position: absolute;
text-align: center;
transform: translate(-50% -50%);
margin-top: 100rpx;
}

.img {
display: inline-block;
margin:0 auto;
text-align: center;
// width: 750rpx;
// height: 1334rpx;
}

Loading…
Cancel
Save