From e603c97dbe7a4f1dbd6445e00383ed651182e0fe Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 03 三月 2020 17:09:11 +0800
Subject: [PATCH] 2020-03-03

---
 src/templates/tableshare/verifycard/index.jsx |   22 ++++++++++++++++++----
 1 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/src/templates/tableshare/verifycard/index.jsx b/src/templates/tableshare/verifycard/index.jsx
index c93912e..6ad62f0 100644
--- a/src/templates/tableshare/verifycard/index.jsx
+++ b/src/templates/tableshare/verifycard/index.jsx
@@ -423,10 +423,10 @@
         if (res.status) {
           let _LongParam = ''
           if (res.LongParam) {
-            _LongParam = window.decodeURIComponent(window.atob(res.LongParam))
             try {
-              _LongParam = JSON.parse(_LongParam)
+              _LongParam = JSON.parse(window.decodeURIComponent(window.atob(res.LongParam)))
             } catch (e) {
+              console.warn('Parse Failure')
               _LongParam = ''
             }
           }
@@ -953,6 +953,10 @@
         message: '鎵ц鎴愬姛锛�',
         duration: 2
       })
+    } else if (errorType === 'Y') {
+      Modal.success({
+        title: '鎵ц鎴愬姛锛�'
+      })
     } else if (errorType === 'F') {
       notification.error({
         className: 'notification-custom-error',
@@ -1148,8 +1152,10 @@
               <Row gutter={24}>
                 <Col offset={6} span={6}>
                   <Form.Item label={'鎻愮ず缂栫爜'}>
-                    <span className="errorval"> -1 </span>
-                    涓嶆彁绀�
+                    <span className="errorval"> Y </span>
+                    <Button onClick={() => {this.showError('Y')}} type="primary" size="small">
+                      鏌ョ湅
+                    </Button>
                   </Form.Item>
                 </Col>
               </Row>
@@ -1203,6 +1209,14 @@
                   </Form.Item>
                 </Col>
               </Row>
+              <Row gutter={24}>
+                <Col offset={6} span={6}>
+                  <Form.Item label={'鎻愮ず缂栫爜'}>
+                    <span className="errorval"> -1 </span>
+                    涓嶆彁绀�
+                  </Form.Item>
+                </Col>
+              </Row>
             </Form>
           </TabPane>
         </Tabs>

--
Gitblit v1.8.0