Your Name 2 years ago
parent
commit
080bc9e7b7

+ 2
- 2
src/components/CoverBtn.vue View File

37
 <style lang="less" scoped>
37
 <style lang="less" scoped>
38
 .cover-btn {
38
 .cover-btn {
39
   position: absolute;
39
   position: absolute;
40
-  // background: rgba(255, 0, 0, 0.5);
41
-  z-index: 10;
40
+  background: rgba(255, 0, 0, 0.5);
41
+  z-index: 100;
42
 }
42
 }
43
 </style>
43
 </style>

+ 0
- 3
src/components/Image.vue View File

42
 
42
 
43
 <style lang="less" scoped>
43
 <style lang="less" scoped>
44
 .page-image {
44
 .page-image {
45
-  position: absolute;
46
-  top: 0;
47
-  left: 0;
48
   display: block;
45
   display: block;
49
   width: 100%;
46
   width: 100%;
50
 }
47
 }

+ 1
- 0
src/components/TGradient.vue View File

12
 <style lang="less" scoped>
12
 <style lang="less" scoped>
13
   .t-gradient-box {
13
   .t-gradient-box {
14
     position: absolute;
14
     position: absolute;
15
+    height: 20px;
15
     z-index: 26;
16
     z-index: 26;
16
     background: linear-gradient(0, transparent, v-bind(color), transparent);
17
     background: linear-gradient(0, transparent, v-bind(color), transparent);
17
   }
18
   }

+ 0
- 1
src/pages/index/index.vue View File

26
     const { width, height } = e.target;
26
     const { width, height } = e.target;
27
     gdStyle.value = {
27
     gdStyle.value = {
28
       width: `${width}px`,
28
       width: `${width}px`,
29
-      height: '20px',
30
       left: 0,
29
       left: 0,
31
       top: `${height - 10}px`
30
       top: `${height - 10}px`
32
     }
31
     }

+ 2
- 0
src/pages/makeSaving/index.vue View File

127
 <style lang="less" scoped>
127
 <style lang="less" scoped>
128
   .making-page {
128
   .making-page {
129
     .poem-wrapper {
129
     .poem-wrapper {
130
+      overflow: hidden;
131
+
130
       .poem-author {
132
       .poem-author {
131
         background: transparent;
133
         background: transparent;
132
         position: absolute;
134
         position: absolute;

+ 1
- 0
src/style.css View File

24
   width: 100vw;
24
   width: 100vw;
25
   height: 100vh;
25
   height: 100vh;
26
   background-color: #0f2c37;
26
   background-color: #0f2c37;
27
+  overflow: hidden;
27
 }
28
 }

+ 3
- 2
src/utils/page.js View File

1
 
1
 
2
 // 这个值先取, 不能动态
2
 // 这个值先取, 不能动态
3
 // 因为移动端出现输入法的时候会变
3
 // 因为移动端出现输入法的时候会变
4
-const height = document.documentElement.clientHeight || document.body.clientHeight;
4
+const height = document.body.clientHeight;
5
 
5
 
6
 export function getPageStyle(fitHeight) {
6
 export function getPageStyle(fitHeight) {
7
-  return fitHeight > height ? { height: `${fitHeight}px`, overflow: 'hidden' } : { height: `${height}px`, overflow: 'hidden' }
7
+  // return fitHeight > height ? { height: `${fitHeight}px`, overflow: 'hidden' } : { height: `${height}px`, overflow: 'hidden' }
8
+  return {};
8
 }
9
 }