浏览代码

静态页面

xcx 4 年前
父节点
当前提交
02416c8f84

+ 2
- 2
config/dev.js 查看文件

@@ -3,8 +3,8 @@ module.exports = {
3 3
     NODE_ENV: '"development"'
4 4
   },
5 5
   defineConstants: {
6
-    // HOST: '"https://xs.ycjcjy.com"'
7
-    HOST: '"http://127.0.0.1:6060"'
6
+    HOST: '"https://xs.ycjcjy.com"'
7
+    // HOST: '"http://127.0.0.1:6060"'
8 8
   },
9 9
   mini: {
10 10
     debugReact: true

+ 2
- 4
src/pages/HuoDong/HuoDongSign/index.css 查看文件

@@ -5,9 +5,7 @@
5 5
 }
6 6
 .HuoDongSign > image {
7 7
   width: 100%;
8
-  height: auto;
9
-  display: block;
10
-  position: relative;
8
+  height: 100%;
11 9
   z-index: 1;
12 10
 }
13 11
 .HuoDongSign > .SignBtn {
@@ -17,7 +15,7 @@
17 15
   overflow: visible;
18 16
   z-index: 2;
19 17
   left: 50%;
20
-  bottom: 300px;
18
+  bottom: 200px;
21 19
   margin-left: -94px;
22 20
 }
23 21
 .HuoDongSign > .SignBtn::after {

+ 1
- 1
src/pages/HuoDong/HuoDongSign/index.jsx 查看文件

@@ -55,7 +55,7 @@ export default function HuoDongDetail () {
55 55
   return (
56 56
     <Page>
57 57
       <view className='HuoDongSign'>
58
-        <image mode='widthFix' src='https://zhiyun-image.oss-cn-shanghai.aliyuncs.com/xiangsong/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20201218165430-min.jpg'></image>
58
+        <image mode='aspectFill' src='https://zhiyun-image.oss-cn-shanghai.aliyuncs.com/xiangsong/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20201218165430-min.jpg' className='centerLabel'></image>
59 59
         <view className={HasSign ? 'SignBtn' : 'SignBtn active'}>
60 60
           <view>
61 61
             <text className='centerLabel' onClick={ToSign}>{HasSign ? '已签到' : '签到'}</text>

+ 2
- 4
src/pages/HuoDong/HuoDongSign/index.less 查看文件

@@ -5,9 +5,7 @@
5 5
 
6 6
   >image {
7 7
     width: 100%;
8
-    height: auto;
9
-    display: block;
10
-    position: relative;
8
+    height: 100%;
11 9
     z-index: 1;
12 10
   }
13 11
 
@@ -18,7 +16,7 @@
18 16
     overflow: visible;
19 17
     z-index: 2;
20 18
     left: 50%;
21
-    bottom: 300px;
19
+    bottom: 200px;
22 20
     margin-left: -94px;
23 21
 
24 22
     &::after {