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

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

5
 export default function Blank(props) {
5
 export default function Blank(props) {
6
   return (
6
   return (
7
     <View className="blank">
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
         props.tips && <View className="tips">{props.tips}</View>
11
         props.tips && <View className="tips">{props.tips}</View>
11
-      }      
12
+      }
12
     </View>
13
     </View>
13
   )
14
   )
14
 }
15
 }

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

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
 .blank {
21
 .blank {
3
-  width: 280rpx;
22
+  width: 100%;
4
   transform: translateY(50%);
23
   transform: translateY(50%);
5
   margin: 0 auto;
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
   .tips {
31
   .tips {
14
-    margin-top: 10rpx;
15
-    font-size: 28rpx;
16
-    line-height: 1.8em;
32
+    font-size: 28px;
33
+    line-height: 2;
17
     color: #999;
34
     color: #999;
18
     text-align: center;
35
     text-align: center;
19
   }
36
   }

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

95
           </AtTabsPane>
95
           </AtTabsPane>
96
           <AtTabsPane current={this.state.current} index={1}>
96
           <AtTabsPane current={this.state.current} index={1}>
97
             <View>
97
             <View>
98
-              <Blank />
98
+              <Blank tips="暂无认筹记录" />
99
             </View>
99
             </View>
100
           </AtTabsPane>
100
           </AtTabsPane>
101
         </AtTabs>
101
         </AtTabs>