From 265a1929f7dde3156ee0f3d92a6b3a71bcb8edb8 Mon Sep 17 00:00:00 2001 From: "liujw155@outlook.com" Date: Wed, 31 Jan 2024 17:34:25 +0800 Subject: [PATCH] fix poi scan code --- src/pages/write_off/menu/menu.vue | 2 +- src/pages/write_off/operate/operate.vue | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pages/write_off/menu/menu.vue b/src/pages/write_off/menu/menu.vue index 4637909..93471c5 100644 --- a/src/pages/write_off/menu/menu.vue +++ b/src/pages/write_off/menu/menu.vue @@ -39,7 +39,7 @@ 抖音团购核销 - + 抖音团购核销 diff --git a/src/pages/write_off/operate/operate.vue b/src/pages/write_off/operate/operate.vue index 3ed8d80..7d72d68 100644 --- a/src/pages/write_off/operate/operate.vue +++ b/src/pages/write_off/operate/operate.vue @@ -134,7 +134,12 @@ export default { if(writeOffType == 'site')return this.siteGet({ query: _query, vType: _vType, }); if(writeOffType == 'mall')return this.mallGet({ query: _query, vType: _vType, }); if(writeOffType == 'dypoi'){ - let _code = decrypt_text || verify_code; + let _code = verify_code; + if(decrypt_text){ + try{ + _code = JSON.parse(decrypt_text)?.code; + }catch(err){console.warn(err)} + } return this.dypoiGet({ ..._query, code: _code,