文章详情样式再次调整

main
一杯沧海 1 year ago
parent fbfd475246
commit 8d29b7024f
  1. 4
      src/pages/preview/brand/article/article.module.scss
  2. 2
      src/pages/preview/brand/article/article.tsx
  3. 3
      src/pages/preview/illness/article/article.module.scss
  4. 2
      src/pages/preview/illness/article/article.tsx

@ -1,5 +1,7 @@
.fixedBox{ .fixedBox{
position: absolute; position: fixed;
z-index: 1000;
top:0;
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1), rgba(255, 255, 255, 1)); background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1), rgba(255, 255, 255, 1));

@ -27,7 +27,7 @@ const article:FC = () => {
const html = articleInfo?.content; const html = articleInfo?.content;
return ( return (
<> <>
<View style={{padding:'10px'}} dangerouslySetInnerHTML={{ __html: html! }}></View> <View style={{padding:'10px',height:!token ? Taro.getWindowInfo().windowHeight-60+'px' : 'auto',overflow:!token ? 'hidden':'auto'}} dangerouslySetInnerHTML={{ __html: html! }}></View>
{ {
!token && !token &&
<View className={styles.fixedBox}> <View className={styles.fixedBox}>

@ -1,5 +1,6 @@
.fixedBox{ .fixedBox{
position: absolute; position: fixed;
top:0;
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1), rgba(255, 255, 255, 1)); background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1), rgba(255, 255, 255, 1));

@ -28,7 +28,7 @@ const article:FC = () => {
const html = articleInfo?.content; const html = articleInfo?.content;
return ( return (
<> <>
<View style={{padding:'10px'}} dangerouslySetInnerHTML={{ __html: html! }}></View> <View style={{padding:'10px',height:!token ? Taro.getWindowInfo().windowHeight-60+'px' : 'auto',overflow:!token ? 'hidden':'auto'}} dangerouslySetInnerHTML={{ __html: html! }}></View>
{ {
!token && !token &&
<View className={styles.fixedBox}> <View className={styles.fixedBox}>

Loading…
Cancel
Save