1007395918@qq.com 5 年前
父节点
当前提交
0785efba58

+ 3
- 2
src/onlineSelling/components/Blank/index.js 查看文件

@@ -5,10 +5,11 @@ import './index.scss'
5 5
 export default function Blank(props) {
6 6
   return (
7 7
     <View className="blank">
8
-      <View className="nodata"></View>
8
+      <Image className="nodata-img" src={require('../../assets/norecord.png')}></Image>
9
+      {/* <View className="nodata"></View> */}
9 10
       {
10 11
         props.tips && <View className="tips">{props.tips}</View>
11
-      }      
12
+      }
12 13
     </View>
13 14
   )
14 15
 }

+ 26
- 9
src/onlineSelling/components/Blank/index.scss 查看文件

@@ -1,19 +1,36 @@
1 1
 
2
+// .blank {
3
+//   width: 280rpx;
4
+//   transform: translateY(50%);
5
+//   margin: 0 auto;
6
+
7
+//   .nodata {
8
+//     height: 220rpx;
9
+//     background: url('../../assets/norecord.png');
10
+//     background-size: cover;
11
+//   }
12
+
13
+//   .tips {
14
+//     margin-top: 10rpx;
15
+//     font-size: 28rpx;
16
+//     line-height: 1.8em;
17
+//     color: #999;
18
+//     text-align: center;
19
+//   }
20
+// }
2 21
 .blank {
3
-  width: 280rpx;
22
+  width: 100%;
4 23
   transform: translateY(50%);
5 24
   margin: 0 auto;
6
-
7
-  .nodata {
8
-    height: 220rpx;
9
-    background: url('../../assets/norecord.png');
10
-    background-size: cover;
25
+  text-align: center;
26
+  .nodata-img{
27
+    width:280px;
28
+    height:220px;
11 29
   }
12 30
 
13 31
   .tips {
14
-    margin-top: 10rpx;
15
-    font-size: 28rpx;
16
-    line-height: 1.8em;
32
+    font-size: 28px;
33
+    line-height: 2;
17 34
     color: #999;
18 35
     text-align: center;
19 36
   }

+ 1
- 1
src/onlineSelling/pages/selectionRecord/index.js 查看文件

@@ -95,7 +95,7 @@ export default class selectionRecord extends Component {
95 95
           </AtTabsPane>
96 96
           <AtTabsPane current={this.state.current} index={1}>
97 97
             <View>
98
-              <Blank />
98
+              <Blank tips="暂无认筹记录" />
99 99
             </View>
100 100
           </AtTabsPane>
101 101
         </AtTabs>