spring
2025-11-24 902890b673c06bf7d145dab94532d7d0c6b82530
fix: PDA拍照功能在正式环境运行异常
已修改4个文件
52 ■■■■■ 文件已修改
src/manifest.json 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages.json 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/routingInspection/detail/indexJX.vue 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/routingInspection/detail/indexLS.vue 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/manifest.json
@@ -20,7 +20,10 @@
            "delay" : 0
        },
        /* 模块配置 */
        "modules" : {},
    "modules": {
      "Camera": {},
      "Gallery": {}
    },
        /* 应用发布信息 */
        "distribute" : {
            /* android打包配置 */
@@ -34,6 +37,9 @@
                    "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
                    "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
                    "<uses-permission android:name=\"android.permission.CAMERA\"/>",
          "<uses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\"/>",
          "<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
          "<uses-permission android:name=\"android.permission.READ_MEDIA_IMAGES\"/>",
                    "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
                    "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
                    "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
src/pages.json
@@ -313,12 +313,12 @@
        "iconPath": "static/tabbar/home.png",
        "selectedIconPath": "static/tabbar/home-active.png"
      },
      {
        "pagePath": "pages/work/index",
        "text": "工作台",
        "iconPath": "static/tabbar/work.png",
        "selectedIconPath": "static/tabbar/work-active.png"
      },
      // {
      //   "pagePath": "pages/work/index",
      //   "text": "工作台",
      //   "iconPath": "static/tabbar/work.png",
      //   "selectedIconPath": "static/tabbar/work-active.png"
      // },
      {
        "pagePath": "pages/mine/index",
        "text": "我的",
src/pages/routingInspection/detail/indexJX.vue
@@ -717,15 +717,15 @@
  if (!cachedData || !cachedData.uid) {
    console.log("⚠️ 未检测到扫码缓存,用户需要扫描设备二维码");
    // 在编辑模式下才提示
    if (isEdit.value) {
      setTimeout(() => {
        uni.showToast({
          title: "请扫描设备二维码后再保存",
          icon: "none",
          duration: 2000,
        });
      }, 500);
    }
    // if (isEdit.value) {
    //   setTimeout(() => {
    //     uni.showToast({
    //       title: "请扫描设备二维码后再保存",
    //       icon: "none",
    //       duration: 2000,
    //     });
    //   }, 500);
    // }
  }
});
</script>
src/pages/routingInspection/detail/indexLS.vue
@@ -623,13 +623,13 @@
    console.log("⚠️ 未检测到扫码缓存,用户需要扫描设备二维码");
    // 在编辑模式下才提示
    if (isEdit.value) {
      setTimeout(() => {
        uni.showToast({
          title: "请扫描设备二维码后再保存",
          icon: "none",
          duration: 2000,
        });
      }, 500);
      // setTimeout(() => {
      //   uni.showToast({
      //     title: "请扫描设备二维码后再保存",
      //     icon: "none",
      //     duration: 2000,
      //   });
      // }, 500);
    }
  }
});