吃个甘蔗嚼一年 3 年 前
コミット
8905228d56
共有2 個のファイルを変更した11 個の追加4 個の削除を含む
  1. 4
    2
      src/components/CompoentsOrder/AlreadyUsed/index.jsx
  2. 7
    2
      src/components/CompoentsOrder/complete/index.jsx

+ 4
- 2
src/components/CompoentsOrder/AlreadyUsed/index.jsx ファイルの表示

@@ -17,14 +17,16 @@ const score = '3.9'
17 17
 
18 18
 
19 19
 export default (props) => {
20
-  const { show, maskClosable, list } = props
20
+  const { showCutover, maskClosable, list, onClose } = props
21 21
 
22 22
   const [showDialog, setShowDialog] = useState(false)
23 23
   const [CollectNub, setCollectNub] = useState(1)
24 24
 
25 25
   const ButtonCancel = () => {
26
+    onClose()
26 27
   }
27 28
   const ButtonOK = (e) => {
29
+    onClose()
28 30
 
29 31
   }
30 32
 
@@ -33,7 +35,7 @@ export default (props) => {
33 35
   }
34 36
 
35 37
   return (
36
-    <Popup show={show} maskClosable={show} onClose={ButtonCancel} className='box-content' >
38
+    <Popup show={showCutover} maskClosable={maskClosable} onClose={onClose} className='box-content' >
37 39
       <AlreadyUsedMolded list={list} />
38 40
       <view className='item-center-Number' >
39 41
         {/* 评分 */}

+ 7
- 2
src/components/CompoentsOrder/complete/index.jsx ファイルの表示

@@ -72,10 +72,15 @@ export default (props) => {
72 72
   };
73 73
 
74 74
   const [show, setShow] = useState(false)
75
+  const [showCutover, setShowCutover] = useState(false)
75 76
 
77
+  const onClose = () => {
78
+    setShowCutover(false)
79
+  }
76 80
   //评价
77 81
   const evaluation = () => {
78
-    setShow(true)
82
+    setShowCutover(true)
83
+
79 84
   }
80 85
 
81 86
   useEffect(() => {
@@ -129,7 +134,7 @@ export default (props) => {
129 134
         list.length == 0 ?
130 135
           <NoData /> :
131 136
           <view className='complete-boxs'>
132
-            <AlreadyUsed show={show} maskClosable={show} list={list} />
137
+            <AlreadyUsed showCutover={showCutover} maskClosable={showCutover} onClose={onClose} list={list} />
133 138
             {list.map((item, index) => {
134 139
               /* 待支付 */
135 140
               if (item.status === 0) {