fangmingyue 2 лет назад
Родитель
Сommit
7647ff4d65
2 измененных файлов: 17 добавлений и 10 удалений
  1. 13
    5
      src/components/IssueCard/index.jsx
  2. 4
    5
      src/components/IssueCard/style.module.less

+ 13
- 5
src/components/IssueCard/index.jsx Просмотреть файл

@@ -28,7 +28,7 @@ export default (props) => {
28 28
     if (!detail) return [];
29 29
 
30 30
     // detail 有可能是申请信息
31
-    const {value : bizStatus = 0, label : statusText} = getIssueStatus({
31
+    const { value: bizStatus = 0, label: statusText } = getIssueStatus({
32 32
       ...detail || {},
33 33
       processNode: detail?.processNode || detail?.applyType,
34 34
       processStatus: detail?.processStatus || detail?.verifyStatus || APPLY_READY,
@@ -41,12 +41,20 @@ export default (props) => {
41 41
       statusText,
42 42
     ];
43 43
   }, [detail, color, stText]);
44
-  
44
+  console.log('issue', issue)
45
+  console.log('detail', detail)
46
+
45 47
   return (
46 48
     <View className={style['issue-card-wrapper']} onClick={onClick}>
47 49
       <View className={style['issue-card-header']}>
48
-        <View>问题清单</View>
49
-        <View>{createDate}</View>
50
+        <View>
51
+          <View>ID:{detail?.issueId}</View>
52
+          <View>问题清单</View>
53
+        </View>
54
+        <View>
55
+          <View>{detail?.typeName}</View>
56
+          <View>{createDate}</View>
57
+        </View>
50 58
       </View>
51 59
       <View className={style['issue-card-body']} style={{ backgroundColor: styleColor[0] }}>
52 60
         <ScrollView scrollY style={{ height: '100%' }}>
@@ -56,7 +64,7 @@ export default (props) => {
56 64
       <View className={style['issue-card-footer']}>
57 65
         <View>
58 66
           <Image src={icon} />
59
-          <Text style={{'verticalAlign': 'middle'}}>{detail?.issueAddr || detail?.addr || ''}</Text>
67
+          <Text style={{ 'verticalAlign': 'middle' }}>{detail?.issueAddr || detail?.addr || ''}</Text>
60 68
         </View>
61 69
         <View style={{ color: styleColor[1] }}>{statusTxt}</View>
62 70
       </View>

+ 4
- 5
src/components/IssueCard/style.module.less Просмотреть файл

@@ -1,9 +1,8 @@
1
-
2 1
 .issue-card-wrapper {
3 2
   width: calc(100% - var(--main-space) * 2);
4 3
   margin: var(--main-space);
5
-  background: #FFFFFF;
6
-  box-shadow: 0px 18px 22px 1px rgba(0,0,0,0.06);
4
+  background: #ffffff;
5
+  box-shadow: 0px 18px 22px 1px rgba(0, 0, 0, 0.06);
7 6
   border-radius: 8px;
8 7
   padding: 20px 20px 40px 20px;
9 8
 
@@ -39,7 +38,7 @@
39 38
     display: flex;
40 39
     align-items: center;
41 40
     justify-content: space-between;
42
-    
41
+
43 42
     font-size: 28px;
44 43
     line-height: 32px;
45 44
     color: #202020;
@@ -52,7 +51,7 @@
52 51
       margin-right: 10px;
53 52
       vertical-align: middle;
54 53
     }
55
-    
54
+
56 55
     & > view {
57 56
       flex: 1;
58 57