From b3cfcdd210536fa672b36e37b0f54bb9c4e98ada Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期五, 20 六月 2025 14:22:13 +0800 Subject: [PATCH] feat(tabbar): 二维码扫描功能适配 H5 端- 在 fg-tabbar 组件中添加了对 H5 端二维码扫描的支持 - 引入 qrcode 解析库以处理 H5 端的二维码扫描结果 - 根据平台类型(app 或 H5)选择不同的扫描方式 --- eims-ui-mobile/src/pages/scan/index.vue | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/eims-ui-mobile/src/pages/scan/index.vue b/eims-ui-mobile/src/pages/scan/index.vue index eecf651..d8fca76 100644 --- a/eims-ui-mobile/src/pages/scan/index.vue +++ b/eims-ui-mobile/src/pages/scan/index.vue @@ -67,7 +67,7 @@ <view class="h-[10px] bg-base"></view> <wd-tabs v-model="tab"> - <wd-tab title="缁翠慨璇锋眰"> + <wd-tab title="鎶ヤ慨鍗�"> <view class="h-[10px] bg-base"></view> <!-- 缁翠慨璇锋眰鍖哄煙 --> <view class="mt-2" v-if="reqList.length > 0"> @@ -149,7 +149,7 @@ exist.value = true Object.assign(model, res) // 鍔犺浇缁翠慨璇锋眰鍜岀淮淇崟鏁版嵁 - loadRepairData(res.equId) + loadRepairData() } else { toast.error('鏈煡璇㈠埌璇ヨ祫浜х紪鍙风浉鍏虫暟鎹紒') } @@ -161,10 +161,10 @@ } // 鍔犺浇缁翠慨璇锋眰鍜岀淮淇崟鏁版嵁 -function loadRepairData(equId: string | number) { +function loadRepairData() { // 鍔犺浇鏈帴鍗曠殑缁翠慨璇锋眰 getRepairReqList({ - equId, + equId: model.equId, status: '0', }).then((res: any) => { if (res?.rows) { @@ -174,7 +174,7 @@ // 鍔犺浇鏈畬鎴愮殑缁翠慨鍗� const params = { - equId, + equId: model.equId, params: { status: '0,1,2', }, -- Gitblit v1.9.3