Browse Source

fix poi scan code

gongyingshang
刘嘉炜 11 months ago
parent
commit
265a1929f7
  1. 2
      src/pages/write_off/menu/menu.vue
  2. 7
      src/pages/write_off/operate/operate.vue

2
src/pages/write_off/menu/menu.vue

@ -39,7 +39,7 @@
<view class="ws-tit">抖音团购核销</view> <view class="ws-tit">抖音团购核销</view>
<view class="ws-ls"> <view class="ws-ls">
<view class="wl-item" @click="toOperate('dypoi')"> <view class="wl-item" @click="toOperate('dypoi')">
<image mode="aspectFit" src="/static/images/write_off/mall.png"></image>
<image mode="aspectFit" src="/static/images/write_off/site.png"></image>
<view>抖音团购核销</view> <view>抖音团购核销</view>
</view> </view>
</view> </view>

7
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 == 'site')return this.siteGet({ query: _query, vType: _vType, });
if(writeOffType == 'mall')return this.mallGet({ query: _query, vType: _vType, }); if(writeOffType == 'mall')return this.mallGet({ query: _query, vType: _vType, });
if(writeOffType == 'dypoi'){ 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({ return this.dypoiGet({
..._query, ..._query,
code: _code, code: _code,

Loading…
Cancel
Save