From cb2218cc7dd71636c0ac28d2b003dbe7edad8bc1 Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期四, 05 六月 2025 13:36:24 +0800 Subject: [PATCH] refactor(extend): 修改 SnailJob 服务器端口 --- eims-ui-mobile/src/components/fg-tabbar/fg-tabbar.vue | 24 +++++++++++++++++++++++- 1 files changed, 23 insertions(+), 1 deletions(-) diff --git a/eims-ui-mobile/src/components/fg-tabbar/fg-tabbar.vue b/eims-ui-mobile/src/components/fg-tabbar/fg-tabbar.vue index e8d12de..c3370a9 100644 --- a/eims-ui-mobile/src/components/fg-tabbar/fg-tabbar.vue +++ b/eims-ui-mobile/src/components/fg-tabbar/fg-tabbar.vue @@ -6,7 +6,7 @@ safeAreaInsetBottom placeholder @change="selectTabBar" - active-color="#007aff" + active-color="#4D80F0" inactive-color="#7d7e80" > <block v-for="(item, idx) in tabbarList" :key="item.path"> @@ -62,13 +62,35 @@ // scan鐗规畩澶勭悊 if (index === 2) { tabbarStore.setCurIdx(tabbarStore.lastIdx) + + // 妯℃嫙鎴愬姛 + // uni.navigateTo({ + // url: `/pages/scan/index?result=GPA2024NL025`, + // }) + // return false + // 妯℃嫙鎴愬姛 + // 鍙厑璁搁�氳繃鐩告満鎵爜 uni.scanCode({ onlyFromCamera: true, success: function (res) { console.log('鏉$爜绫诲瀷锛�' + res.scanType) console.log('鏉$爜鍐呭锛�' + res.result) + if (res?.scanType !== 'QR_CODE') { + uni.showToast({ + title: '璇蜂娇鐢ㄤ簩缁寸爜杩涜鎵爜', + icon: 'none', + }) + return false + } + + // 浣跨敤split鏂规硶鎴彇璧勪骇缂栧彿 + // const assetCode = res.result.split('璧勪骇缂栧彿锛�')[1].split(' ')[0] + uni.navigateTo({ + url: `/pages/scan/index?result=${res.result}`, + }) }, + fail: function (res) {}, }) } else { tabbarStore.setCurIdx(index) -- Gitblit v1.9.3