fangmingyue 2 年前
父节点
当前提交
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
     if (!detail) return [];
28
     if (!detail) return [];
29
 
29
 
30
     // detail 有可能是申请信息
30
     // detail 有可能是申请信息
31
-    const {value : bizStatus = 0, label : statusText} = getIssueStatus({
31
+    const { value: bizStatus = 0, label: statusText } = getIssueStatus({
32
       ...detail || {},
32
       ...detail || {},
33
       processNode: detail?.processNode || detail?.applyType,
33
       processNode: detail?.processNode || detail?.applyType,
34
       processStatus: detail?.processStatus || detail?.verifyStatus || APPLY_READY,
34
       processStatus: detail?.processStatus || detail?.verifyStatus || APPLY_READY,
41
       statusText,
41
       statusText,
42
     ];
42
     ];
43
   }, [detail, color, stText]);
43
   }, [detail, color, stText]);
44
-  
44
+  console.log('issue', issue)
45
+  console.log('detail', detail)
46
+
45
   return (
47
   return (
46
     <View className={style['issue-card-wrapper']} onClick={onClick}>
48
     <View className={style['issue-card-wrapper']} onClick={onClick}>
47
       <View className={style['issue-card-header']}>
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
       </View>
58
       </View>
51
       <View className={style['issue-card-body']} style={{ backgroundColor: styleColor[0] }}>
59
       <View className={style['issue-card-body']} style={{ backgroundColor: styleColor[0] }}>
52
         <ScrollView scrollY style={{ height: '100%' }}>
60
         <ScrollView scrollY style={{ height: '100%' }}>
56
       <View className={style['issue-card-footer']}>
64
       <View className={style['issue-card-footer']}>
57
         <View>
65
         <View>
58
           <Image src={icon} />
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
         </View>
68
         </View>
61
         <View style={{ color: styleColor[1] }}>{statusTxt}</View>
69
         <View style={{ color: styleColor[1] }}>{statusTxt}</View>
62
       </View>
70
       </View>

+ 4
- 5
src/components/IssueCard/style.module.less 查看文件

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