Ver código fonte

静态页面

xcx 4 anos atrás
pai
commit
e36a2ad2ee

+ 33
- 0
src/components/AdvLayer/index.css Ver arquivo

@@ -0,0 +1,33 @@
1
+.AdvLayer {
2
+  width: 100%;
3
+  position: absolute;
4
+  left: 0;
5
+  top: 0;
6
+  bottom: 0;
7
+  z-index: 20000;
8
+  background: rgba(0, 0, 0, 0.8);
9
+}
10
+.AdvLayer > view {
11
+  width: 100%;
12
+  height: 100vw;
13
+  overflow: visible;
14
+}
15
+.AdvLayer > view > image {
16
+  width: 64%;
17
+  height: auto;
18
+  position: relative;
19
+  z-index: 1;
20
+  margin: 0 auto;
21
+  display: block;
22
+}
23
+.AdvLayer > view > text {
24
+  display: inline-block;
25
+  color: #fff;
26
+  font-size: 60px;
27
+  position: absolute;
28
+  left: 50%;
29
+  bottom: -60px;
30
+  transform: translateX(-50%);
31
+  -webkit-transform: translateX(-50%);
32
+  z-index: 2;
33
+}

+ 2
- 1
src/components/AdvLayer/index.jsx Ver arquivo

@@ -1,5 +1,6 @@
1 1
 import React, { useState, useEffect } from 'react'
2 2
 import request, { apis } from '@/utils/request'
3
+import Taro from '@tarojs/taro'
3 4
 import { Text } from '@tarojs/components'
4 5
 import { useModel } from '@/store'
5 6
 import '@/assets/css/reset.less'
@@ -40,7 +41,7 @@ export default function AdvLayer () {
40 41
   return (
41 42
     <view className='AdvLayer' style={{ display: ShowIndexAdv ? 'block' : 'none' }}>
42 43
       <view className='centerLabel'>
43
-        <image mode='aspectFit' src={AdvDetail !== null ? AdvDetail.image : null} onClick={AdvClick}></image>
44
+        <image mode='widthFix' src={AdvDetail !== null ? AdvDetail.image : null} onClick={AdvClick}></image>
44 45
         <Text className='iconfont iconguanbi' onClick={() => { setShowIndexAdv(false) }}></Text>
45 46
       </view>
46 47
     </view>

+ 3
- 3
src/components/AdvLayer/index.less Ver arquivo

@@ -13,8 +13,8 @@
13 13
     overflow: visible;
14 14
 
15 15
     >image {
16
-      width: 60%;
17
-      height: 60%;
16
+      width: 64%;
17
+      height: auto;
18 18
       position: relative;
19 19
       z-index: 1;
20 20
       margin: 0 auto;
@@ -27,7 +27,7 @@
27 27
       font-size: 60px;
28 28
       position: absolute;
29 29
       left: 50%;
30
-      bottom: -30px;
30
+      bottom: -60px;
31 31
       transform: translateX(-50%);
32 32
       -webkit-transform: translateX(-50%);
33 33
       z-index: 2;

+ 2
- 1
src/pages/FuLi/JiFenGuiZe/index.css Ver arquivo

@@ -17,6 +17,7 @@
17 17
   width: 100%;
18 18
   position: relative;
19 19
   overflow: hidden;
20
+  margin-top: 200px;
20 21
 }
21 22
 .JiFenGuiZe > .JiFenContent > view > .Img > image {
22 23
   width: 100%;
@@ -25,7 +26,7 @@
25 26
 .JiFenGuiZe > .JiFenContent > view > .Title {
26 27
   position: relative;
27 28
   overflow: hidden;
28
-  margin-top: 80px;
29
+  margin-top: 40px;
29 30
 }
30 31
 .JiFenGuiZe > .JiFenContent > view > .Title > text {
31 32
   width: 100%;

+ 2
- 2
src/pages/FuLi/JiFenGuiZe/index.jsx Ver arquivo

@@ -30,10 +30,10 @@ export default function JiFenGuiZe () {
30 30
             <view className='Img'>
31 31
               <image mode='widthFix' src='https://zhiyun-image.oss-cn-shanghai.aliyuncs.com/xiangsong/img.png'></image>
32 32
             </view>
33
-            <view className='Title'>
33
+            {/* <view className='Title'>
34 34
               <text>积分兑换时间</text>
35 35
             </view>
36
-            <text>2020年11月30日09:00-2020年12月30日15:00</text>
36
+            <text>2020年11月30日09:00-2020年12月30日15:00</text> */}
37 37
             <view className='Title'>
38 38
               <text>积分兑换规则</text>
39 39
             </view>

+ 1
- 1
src/pages/FuLi/JiFenGuiZe/index.less Ver arquivo

@@ -28,7 +28,7 @@
28 28
       >.Title {
29 29
         position: relative;
30 30
         overflow: hidden;
31
-        margin-top: 80px;
31
+        margin-top: 40px;
32 32
 
33 33
         >text {
34 34
           width: 100%;