This commit is contained in:
wuzilong committed 2026-09-17 09:10:10 +08:00
1 parent a0da6427ef
commit 86694f739f
471 files changed
+62075 -44805

No files matched your search

+19 -4
View File
@@ -1,21 +1,36 @@
// API 基础配置(山峡化工 miniprogram)
// 环境切换:改 config/env.js 中的 APP_ENV(local | test | production)
// 发版:APP_ENV = 'production' 后执行 npm run release:check-api
//
// 注意:必须直接 re-export env 中的 URL,不要用 const 再拷一份。
// 热更新只重载 env.js 时,拷贝版 API_BASE 会仍指向旧环境(本地签发 ticket、生产打开 H5 → 401)。
import {
APP_ENV,
API_BASE_URL,
CURRENT_ENV,
IS_PRODUCTION,
WECHAT_MP_APPID
WECHAT_MP_APPID,
resolveApiBase,
resolveWebOrigin
} from '@/config/env'
export { APP_ENV, CURRENT_ENV, IS_PRODUCTION, WECHAT_MP_APPID }
export {
APP_ENV,
CURRENT_ENV,
IS_PRODUCTION,
WECHAT_MP_APPID,
resolveApiBase,
resolveWebOrigin
}
/** @deprecated 热更新可能仍是旧值;请求请用 resolveApiBase() */
export const BASE_URL = API_BASE_URL
export const API_BASE = BASE_URL
/** @deprecated 热更新可能仍是旧值;请求请用 resolveApiBase() */
export const API_BASE = API_BASE_URL
console.log('[ENV]', APP_ENV, CURRENT_ENV.label, resolveApiBase(), resolveWebOrigin())
console.log('[ENV]', APP_ENV, CURRENT_ENV.label, BASE_URL)
/** 认证相关路径(当前复用 web-admin 公共登录接口) */
export const AUTH_API = {
+9
View File
@@ -61,3 +61,12 @@ export const API_BASE_URL = preset.apiBaseUrl
export const STATIC_ASSETS_BASE_URL = preset.staticAssetsBaseUrl
export const WEB_ORIGIN = preset.webOrigin
export const MINIO_BASE_URL = preset.minioBaseUrl
/** 每次调用按当前 APP_ENV 取值,避免热更新后 api.js 里拷贝的常量仍指向旧环境 */
export function resolveApiBase() {
return (ENV_PRESETS[APP_ENV] || ENV_PRESETS.local).apiBaseUrl
}
export function resolveWebOrigin() {
return (ENV_PRESETS[APP_ENV] || ENV_PRESETS.local).webOrigin
}
+2 -2
View File
@@ -56,7 +56,7 @@ export const WORKBENCH_MODULES = [
{
key: 'pl',
title: '运输管理',
desc: '加油登记 · 运输计划单 · 运输计划 · 司机运输计划单',
desc: '加油登记 · 现场运输计划单 · 运输计划 · 司机运输计划单',
iconText: '运输',
visible: true,
menus: [
@@ -68,7 +68,7 @@ export const WORKBENCH_MODULES = [
perms: 'mini:pl:fuelRegister:list'
},
{
name: '运输计划单',
name: '现场运输计划单',
enabled: true,
code: 'pl-transport-plan',
icon: '📋',
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_loginrsa_js", "label": "loginRsa.js", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/loginRsa.js", "source_location": "L1"}, {"id": "utils_loginrsa_fetchloginpublickey", "label": "fetchLoginPublicKey()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/loginRsa.js", "source_location": "L4"}, {"id": "utils_loginrsa_buildminiencryptedloginbody", "label": "buildMiniEncryptedLoginBody()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/loginRsa.js", "source_location": "L16"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_loginrsa_js", "target": "jsencrypt", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/loginRsa.js", "source_location": "L1", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_loginrsa_js", "target": "api", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/loginRsa.js", "source_location": "L2", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_loginrsa_js", "target": "utils_loginrsa_fetchloginpublickey", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/loginRsa.js", "source_location": "L4", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_loginrsa_js", "target": "utils_loginrsa_buildminiencryptedloginbody", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/loginRsa.js", "source_location": "L16", "weight": 1.0}, {"source": "utils_loginrsa_buildminiencryptedloginbody", "target": "utils_loginrsa_fetchloginpublickey", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/loginRsa.js", "source_location": "L17", "weight": 1.0}], "raw_calls": [{"caller_nid": "utils_loginrsa_fetchloginpublickey", "callee": "resolveApiBase", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/loginRsa.js", "source_location": "L5"}, {"caller_nid": "utils_loginrsa_fetchloginpublickey", "callee": "now", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/loginRsa.js", "source_location": "L5"}, {"caller_nid": "utils_loginrsa_buildminiencryptedloginbody", "callee": "setPublicKey", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/loginRsa.js", "source_location": "L24"}, {"caller_nid": "utils_loginrsa_buildminiencryptedloginbody", "callee": "stringify", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/loginRsa.js", "source_location": "L25"}, {"caller_nid": "utils_loginrsa_buildminiencryptedloginbody", "callee": "now", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/loginRsa.js", "source_location": "L28"}, {"caller_nid": "utils_loginrsa_buildminiencryptedloginbody", "callee": "encrypt", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/loginRsa.js", "source_location": "L30"}]}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_config_api_js", "label": "api.js", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/api.js", "source_location": "L1"}, {"id": "config_api_auth_api", "label": "AUTH_API", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/api.js", "source_location": "L21"}, {"id": "config_api_upload_api", "label": "UPLOAD_API", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/api.js", "source_location": "L36"}, {"id": "config_api_page_paths", "label": "PAGE_PATHS", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/api.js", "source_location": "L41"}, {"id": "config_api_workbench_route_map", "label": "WORKBENCH_ROUTE_MAP", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/api.js", "source_location": "L78"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_config_api_js", "target": "env", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/api.js", "source_location": "L5", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_config_api_js", "target": "config_api_auth_api", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/api.js", "source_location": "L21", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_config_api_js", "target": "config_api_upload_api", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/api.js", "source_location": "L36", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_config_api_js", "target": "config_api_page_paths", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/api.js", "source_location": "L41", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_config_api_js", "target": "config_api_workbench_route_map", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/api.js", "source_location": "L78", "weight": 1.0}], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_pl_transport_plan_list_vue", "label": "list.vue", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/transport-plan/list.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_bx_mine_list_vue", "label": "list.vue", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/mine/list.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "label": "mp-webview.vue", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L1"}, {"id": "common_mp_webview_textarea", "label": "textarea", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L76"}, {"id": "common_mp_webview_ok", "label": "ok", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L83"}, {"id": "common_mp_webview_result", "label": "result", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L151"}, {"id": "common_mp_webview_path", "label": "path", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L206"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_textarea", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L76", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_ok", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L83", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_result", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L151", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_path", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L206", "weight": 1.0}], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_safearea_js", "label": "safeArea.js", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/safeArea.js", "source_location": "L1"}, {"id": "utils_safearea_getsysteminfo", "label": "getSystemInfo()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/safeArea.js", "source_location": "L9"}, {"id": "utils_safearea_getmenubuttonrect", "label": "getMenuButtonRect()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/safeArea.js", "source_location": "L29"}, {"id": "utils_safearea_computesafeareametrics", "label": "computeSafeAreaMetrics()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/safeArea.js", "source_location": "L38"}, {"id": "utils_safearea_applysafeareacssvars", "label": "applySafeAreaCssVars()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/safeArea.js", "source_location": "L74"}, {"id": "utils_safearea_initglobalsafearea", "label": "initGlobalSafeArea()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/safeArea.js", "source_location": "L83"}, {"id": "utils_safearea_getglobalsafearea", "label": "getGlobalSafeArea()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/safeArea.js", "source_location": "L94"}, {"id": "utils_safearea_getsafeareastyle", "label": "getSafeAreaStyle()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/safeArea.js", "source_location": "L99"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_safearea_js", "target": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_safeareacss_js", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/safeArea.js", "source_location": "L1", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_safearea_js", "target": "utils_safeareacss_buildsafeareacssvarsstyle", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/safeArea.js", "source_location": "L1", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_safearea_js", "target": "utils_safearea_getsysteminfo", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/safeArea.js", "source_location": "L9", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_safearea_js", "target": "utils_safearea_getmenubuttonrect", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/safeArea.js", "source_location": "L29", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_safearea_js", "target": "utils_safearea_computesafeareametrics", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/safeArea.js", "source_location": "L38", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_safearea_js", "target": "utils_safearea_applysafeareacssvars", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/safeArea.js", "source_location": "L74", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_safearea_js", "target": "utils_safearea_initglobalsafearea", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/safeArea.js", "source_location": "L83", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_safearea_js", "target": "utils_safearea_getglobalsafearea", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/safeArea.js", "source_location": "L94", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_safearea_js", "target": "utils_safearea_getsafeareastyle", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/safeArea.js", "source_location": "L99", "weight": 1.0}, {"source": "utils_safearea_computesafeareametrics", "target": "utils_safearea_getsysteminfo", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/safeArea.js", "source_location": "L39", "weight": 1.0}, {"source": "utils_safearea_computesafeareametrics", "target": "utils_safearea_getmenubuttonrect", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniproLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "label": "mp-webview.vue", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L1"}, {"id": "common_mp_webview_textarea", "label": "textarea", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L61"}, {"id": "common_mp_webview_ok", "label": "ok", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L68"}, {"id": "common_mp_webview_userstore", "label": "userStore", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L130"}, {"id": "common_mp_webview_result", "label": "result", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L142"}, {"id": "common_mp_webview_origin", "label": "origin", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L147"}, {"id": "common_mp_webview_qsparts", "label": "qsParts", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L153"}, {"id": "common_mp_webview_path", "label": "path", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L166"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_textarea", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L61", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_ok", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L68", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_userstore", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L130", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_result", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L142", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_origin", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L147", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_qsparts", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L153", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_path", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L166", "weight": 1.0}], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_config_api_js", "label": "api.js", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/api.js", "source_location": "L1"}, {"id": "config_api_auth_api", "label": "AUTH_API", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/api.js", "source_location": "L36"}, {"id": "config_api_upload_api", "label": "UPLOAD_API", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/api.js", "source_location": "L51"}, {"id": "config_api_page_paths", "label": "PAGE_PATHS", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/api.js", "source_location": "L56"}, {"id": "config_api_workbench_route_map", "label": "WORKBENCH_ROUTE_MAP", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/api.js", "source_location": "L93"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_config_api_js", "target": "env", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/api.js", "source_location": "L8", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_config_api_js", "target": "config_api_auth_api", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/api.js", "source_location": "L36", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_config_api_js", "target": "config_api_upload_api", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/api.js", "source_location": "L51", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_config_api_js", "target": "config_api_page_paths", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/api.js", "source_location": "L56", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_config_api_js", "target": "config_api_workbench_route_map", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/api.js", "source_location": "L93", "weight": 1.0}], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_bx_reimburse_detail_vue", "label": "detail.vue", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/reimburse/detail.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_config_env_js", "label": "env.js", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/env.js", "source_location": "L1"}, {"id": "config_env_env_presets", "label": "ENV_PRESETS", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/env.js", "source_location": "L26"}, {"id": "config_env_resolveapibase", "label": "resolveApiBase()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/env.js", "source_location": "L66"}, {"id": "config_env_resolveweborigin", "label": "resolveWebOrigin()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/env.js", "source_location": "L70"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_config_env_js", "target": "config_env_env_presets", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/env.js", "source_location": "L26", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_config_env_js", "target": "config_env_resolveapibase", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/env.js", "source_location": "L66", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_config_env_js", "target": "config_env_resolveweborigin", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/env.js", "source_location": "L70", "weight": 1.0}], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_bx_reimburse_apply_vue", "label": "apply.vue", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/reimburse/apply.vue", "source_location": "L1"}, {"id": "reimburse_apply_rows_total", "label": "{ rows, total }", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/reimburse/apply.vue", "source_location": "L526"}, {"id": "reimburse_apply_chunk", "label": "chunk", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/reimburse/apply.vue", "source_location": "L527"}, {"id": "reimburse_apply_i", "label": "i", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/reimburse/apply.vue", "source_location": "L566"}, {"id": "reimburse_apply_amountstr", "label": "amountStr", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/reimburse/apply.vue", "source_location": "L609"}, {"id": "reimburse_apply_amt", "label": "amt", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/reimburse/apply.vue", "source_location": "L611"}, {"id": "reimburse_apply_validdetails", "label": "validDetails", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/reimburse/apply.vue", "source_location": "L631"}, {"id": "reimburse_apply_id", "label": "id", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/reimburse/apply.vue", "source_location": "L679"}, {"id": "reimburse_apply_idx", "label": "idx", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/reimburse/apply.vue", "source_location": "L689"}, {"id": "reimburse_apply_newids", "label": "newIds", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/reimburse/apply.vue", "source_location": "L717"}, {"id": "reimburse_apply_tree", "label": "tree", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/reimburse/apply.vue", "source_location": "L730"}, {"id": "reimburse_apply_picks", "label": "picks", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/reimburse/apply.vue", "source_location": "L757"}, {"id": "reimburse_apply_invoiceid", "label": "invoiceId", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/reimburse/apply.vue", "source_location": "L759"}, {"id": "reimburse_apply_attachmentid", "label": "attachmentId", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/reimburse/apply.vue", "source_location": "L761"}, {"id": "reimburse_apply_mapped", "label": "mapped", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/reimburse/apply.vue", "source_location": "L781"}, {"id": "reimburse_apply_invoicepayload", "label": "invoicePayload", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/reimburse/apply.vue", "source_location": "L820"}, {"id": "reimburse_apply_payload", "label": "payload", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/reimburse/apply.vue", "source_location": "L821"}, {"id": "reimburse_apply_uid", "label": "uid", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/reimburse/apply.vue", "source_location": "L878"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_bx_reimburse_apply_vue", "target": "reimburse_apply_rows_total", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/reimburse/apply.vue", "source_location": "L526", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_bx_reimburse_apply_vue", "target": "reimburse_apply_chunk", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/reimburse/apply.vue", "source_location": "L527", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_bx_reimburse_apply_vue", "target": "reimburse_apply_i", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/reimburse/apply.vue", "source_location": "L566", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_bx_reimburse_apply_vue", "target": "reimburse_apply_amountstr", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/reimburse/apply.vue", "source_location": "L609", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_bx_reimburse_apply_vue", "target": "reimburse_apply_amt", "relation": "conLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_bx_reimburse_list_vue", "label": "list.vue", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/reimburse/list.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_avatar_js", "label": "avatar.js", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/avatar.js", "source_location": "L1"}, {"id": "utils_avatar_defaultavatarpathbyrole", "label": "defaultAvatarPathByRole()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/avatar.js", "source_location": "L9"}, {"id": "utils_avatar_normalizeavatarurlformini", "label": "normalizeAvatarUrlForMini()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/avatar.js", "source_location": "L18"}, {"id": "utils_avatar_resolveuseravatarurl", "label": "resolveUserAvatarUrl()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/avatar.js", "source_location": "L28"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_avatar_js", "target": "api", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/avatar.js", "source_location": "L1", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_avatar_js", "target": "staticasset", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/avatar.js", "source_location": "L2", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_avatar_js", "target": "osscache", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/avatar.js", "source_location": "L3", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_avatar_js", "target": "utils_avatar_defaultavatarpathbyrole", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/avatar.js", "source_location": "L9", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_avatar_js", "target": "utils_avatar_normalizeavatarurlformini", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/avatar.js", "source_location": "L18", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_avatar_js", "target": "utils_avatar_resolveuseravatarurl", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/avatar.js", "source_location": "L28", "weight": 1.0}, {"source": "utils_avatar_resolveuseravatarurl", "target": "utils_avatar_normalizeavatarurlformini", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/avatar.js", "source_location": "L30", "weight": 1.0}, {"source": "utils_avatar_resolveuseravatarurl", "target": "utils_avatar_defaultavatarpathbyrole", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/avatar.js", "source_location": "L31", "weight": 1.0}], "raw_calls": [{"caller_nid": "utils_avatar_normalizeavatarurlformini", "callee": "trim", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/avatar.js", "source_location": "L19"}, {"caller_nid": "utils_avatar_normalizeavatarurlformini", "callee": "String", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/avatar.js", "source_location": "L19"}, {"caller_nid": "utils_avatar_normalizeavatarurlformini", "callee": "test", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/avatar.js", "source_location": "L21"}, {"caller_nid": "utils_avatar_normalizeavatarurlformini", "callee": "startsWith", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/avatar.js", "source_location": "L21"}, {"caller_nid": "utils_avatar_normalizeavatarurlformini", "callee": "withOssVersion", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/avatar.js", "source_location": "L21"}, {"caller_nid": "utils_avatar_normalizeavatarurlformini", "callee": "replace", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/avatar.js", "source_location": "L22"}, {"caller_nid": "utils_avatar_normalizeavatarurlformini", "callee": "resolveApiBase", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/avatar.js", "source_location": "L22"}, {"caller_nid": "utils_avatar_normalizeavatarurlformini", "callee": "startsWith", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/avatar.js", "source_location": "L23"}, {"caller_nid": "utils_avatar_normalizeavataLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_request_js", "label": "request.js", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/request.js", "source_location": "L1"}, {"id": "utils_request_api_encrypt_exclude_paths", "label": "API_ENCRYPT_EXCLUDE_PATHS", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/request.js", "source_location": "L11"}, {"id": "utils_request_appendtimestampquery", "label": "appendTimestampQuery()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/request.js", "source_location": "L18"}, {"id": "utils_request_createunauthorizederror", "label": "createUnauthorizedError()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/request.js", "source_location": "L29"}, {"id": "utils_request_onhttpunauthorized", "label": "onHttpUnauthorized()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/request.js", "source_location": "L39"}, {"id": "utils_request_isbizunauthorized", "label": "isBizUnauthorized()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/request.js", "source_location": "L73"}, {"id": "utils_request_randomnonce", "label": "randomNonce()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/request.js", "source_location": "L78"}, {"id": "utils_request_hextobytes", "label": "hexToBytes()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/request.js", "source_location": "L90"}, {"id": "utils_request_bytestohex", "label": "bytesToHex()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/request.js", "source_location": "L98"}, {"id": "utils_request_bytestobase64", "label": "bytesToBase64()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/request.js", "source_location": "L104"}, {"id": "utils_request_base64tobytes", "label": "base64ToBytes()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/request.js", "source_location": "L112"}, {"id": "utils_request_tobase64url", "label": "toBase64Url()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/request.js", "source_location": "L121"}, {"id": "utils_request_frombase64url", "label": "fromBase64Url()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/request.js", "source_location": "L125"}, {"id": "utils_request_sha256hex", "label": "sha256Hex()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/request.js", "source_location": "L131"}, {"id": "utils_request_derivekey", "label": "deriveKey()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/request.js", "source_location": "L141"}, {"id": "utils_request_encryptjson", "label": "encryptJson()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/request.js", "source_location": "L145"}, {"id": "utils_request_decryptjson", "label": "decryptJson()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/request.js", "source_location": "L160"}, {"id": "utils_request_parseuseridfromtoken", "label": "parseUserIdFromToken()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/request.js", "source_location": "L177"}, {"id": "utils_request_normalizerequestdata", "label": "normalizeRequestData()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/request.js", "source_location": "L192"}, {"id": "utils_request_isnativeformdata", "label": "isNativeFormData()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/request.js", "source_location": "L205"}, {"id": "utils_request_shouldencryptrequest", "label": "shouldEncryptRequest()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/request.js", "source_location": "L210"}, {"id": "utils_request_getencryptskipreason", "label": "getEncryptSkipReason()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/request.js", "source_location": "L218"}, {"id": "utils_request_request", "label": "request()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/request.js", "source_location": "L228"}, {"id": "utils_request_parseresponsejson", "label": "parseResponseJson()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/request.js", "source_location": "L360"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_request_js", "target": "api", "relation": "imports_from", "context": "import"Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_pl_driver_plan_list_vue", "label": "list.vue", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/driver-plan/list.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_workbench_workbench_vue", "label": "workbench.vue", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/workbench/workbench.vue", "source_location": "L1"}, {"id": "workbench_workbench_ismpwebviewroute", "label": "isMpWebviewRoute()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/workbench/workbench.vue", "source_location": "L42"}, {"id": "workbench_workbench_openpage", "label": "openPage()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/workbench/workbench.vue", "source_location": "L44"}, {"id": "workbench_workbench_openmenu", "label": "openMenu()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/workbench/workbench.vue", "source_location": "L76"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_workbench_workbench_vue", "target": "workbench_workbench_ismpwebviewroute", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/workbench/workbench.vue", "source_location": "L42", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_workbench_workbench_vue", "target": "workbench_workbench_openpage", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/workbench/workbench.vue", "source_location": "L44", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_workbench_workbench_vue", "target": "workbench_workbench_openmenu", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/workbench/workbench.vue", "source_location": "L76", "weight": 1.0}, {"source": "workbench_workbench_openpage", "target": "workbench_workbench_ismpwebviewroute", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/workbench/workbench.vue", "source_location": "L46", "weight": 1.0}, {"source": "workbench_workbench_openmenu", "target": "workbench_workbench_openpage", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/workbench/workbench.vue", "source_location": "L83", "weight": 1.0}], "raw_calls": [{"caller_nid": "workbench_workbench_ismpwebviewroute", "callee": "includes", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/workbench/workbench.vue", "source_location": "L42"}, {"caller_nid": "workbench_workbench_ismpwebviewroute", "callee": "String", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/workbench/workbench.vue", "source_location": "L42"}, {"caller_nid": "workbench_workbench_openpage", "callee": "redirectTo", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/workbench/workbench.vue", "source_location": "L47"}, {"caller_nid": "workbench_workbench_openpage", "callee": "catch", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/workbench/workbench.vue", "source_location": "L59"}, {"caller_nid": "workbench_workbench_openpage", "callee": "navigateTo", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/workbench/workbench.vue", "source_location": "L70"}, {"caller_nid": "workbench_workbench_openpage", "callee": "catch", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/workbench/workbench.vue", "source_location": "L72"}, {"caller_nid": "workbench_workbench_openmenu", "callee": "showToast", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/workbench/workbench.vue", "source_location": "L78"}, {"caller_nid": "workbench_workbench_openmenu", "callee": "encodeURIComponent", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/workbench/workbench.vue", "source_location": "L86"}, {"caller_nid": "workbench_workbench_openmenu", "callee": "encodeURIComponent", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/workbench/workbench.vue", "source_location": "L87"}, {"caller_nid": "workbench_workbench_openmenu", "callee": "encodeURIComponent", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/workbench/workbench.vue", "source_location": "L88"}]}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_bx_advance_list_vue", "label": "list.vue", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/advance/list.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "label": "mp-webview.vue", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L1"}, {"id": "common_mp_webview_textarea", "label": "textarea", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L50"}, {"id": "common_mp_webview_ok", "label": "ok", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L57"}, {"id": "common_mp_webview_value", "label": "value", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L66"}, {"id": "common_mp_webview_path", "label": "path", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L101"}, {"id": "common_mp_webview_userstore", "label": "userStore", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L111"}, {"id": "common_mp_webview_result", "label": "result", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L123"}, {"id": "common_mp_webview_origin", "label": "origin", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L128"}, {"id": "common_mp_webview_qsparts", "label": "qsParts", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L134"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_textarea", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L50", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_ok", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L57", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_value", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L66", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_path", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L101", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_userstore", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L111", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_result", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L123", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_origin", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L128", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_qsparts", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L134", "weight": 1.0}], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_pl_transport_plan_list_vue", "label": "list.vue", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/transport-plan/list.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "label": "mp-webview.vue", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_config_workbench_menus_js", "label": "workbench-menus.js", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/workbench-menus.js", "source_location": "L1"}, {"id": "config_workbench_menus_workbench_modules", "label": "WORKBENCH_MODULES", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/workbench-menus.js", "source_location": "L6"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_config_workbench_menus_js", "target": "config_workbench_menus_workbench_modules", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/workbench-menus.js", "source_location": "L6", "weight": 1.0}], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "label": "mp-webview.vue", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L1"}, {"id": "common_mp_webview_textarea", "label": "textarea", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L61"}, {"id": "common_mp_webview_ok", "label": "ok", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L68"}, {"id": "common_mp_webview_userstore", "label": "userStore", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L130"}, {"id": "common_mp_webview_result", "label": "result", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L142"}, {"id": "common_mp_webview_origin", "label": "origin", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L147"}, {"id": "common_mp_webview_qsparts", "label": "qsParts", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L153"}, {"id": "common_mp_webview_qs", "label": "qs", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L157"}, {"id": "common_mp_webview_path", "label": "path", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L167"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_textarea", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L61", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_ok", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L68", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_userstore", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L130", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_result", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L142", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_origin", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L147", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_qsparts", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L153", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_qs", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L157", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_path", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L167", "weight": 1.0}], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_bxinvoicethumb_js", "label": "bxInvoiceThumb.js", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxInvoiceThumb.js", "source_location": "L1"}, {"id": "utils_bxinvoicethumb_isimagefiletype", "label": "isImageFileType()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxInvoiceThumb.js", "source_location": "L1"}, {"id": "utils_bxinvoicethumb_fileextlabel", "label": "fileExtLabel()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxInvoiceThumb.js", "source_location": "L5"}, {"id": "utils_bxinvoicethumb_formatinvoicedateymd", "label": "formatInvoiceDateYmd()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxInvoiceThumb.js", "source_location": "L11"}, {"id": "utils_bxinvoicethumb_invoicefilelist", "label": "invoiceFileList()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxInvoiceThumb.js", "source_location": "L24"}, {"id": "utils_bxinvoicethumb_buildattachitemsfrominvoicerows", "label": "buildAttachItemsFromInvoiceRows()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxInvoiceThumb.js", "source_location": "L50"}, {"id": "utils_bxinvoicethumb_mergeinvoicepicksbydraftkeys", "label": "mergeInvoicePicksByDraftKeys()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxInvoiceThumb.js", "source_location": "L75"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_bxinvoicethumb_js", "target": "utils_bxinvoicethumb_isimagefiletype", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxInvoiceThumb.js", "source_location": "L1", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_bxinvoicethumb_js", "target": "utils_bxinvoicethumb_fileextlabel", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxInvoiceThumb.js", "source_location": "L5", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_bxinvoicethumb_js", "target": "utils_bxinvoicethumb_formatinvoicedateymd", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxInvoiceThumb.js", "source_location": "L11", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_bxinvoicethumb_js", "target": "utils_bxinvoicethumb_invoicefilelist", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxInvoiceThumb.js", "source_location": "L24", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_bxinvoicethumb_js", "target": "utils_bxinvoicethumb_buildattachitemsfrominvoicerows", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxInvoiceThumb.js", "source_location": "L50", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_bxinvoicethumb_js", "target": "utils_bxinvoicethumb_mergeinvoicepicksbydraftkeys", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxInvoiceThumb.js", "source_location": "L75", "weight": 1.0}, {"source": "utils_bxinvoicethumb_buildattachitemsfrominvoicerows", "target": "utils_bxinvoicethumb_invoicefilelist", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxInvoiceThumb.js", "source_location": "L54", "weight": 1.0}], "raw_calls": [{"caller_nid": "utils_bxinvoicethumb_isimagefiletype", "callee": "startsWith", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxInvoiceThumb.js", "source_location": "L2"}, {"caller_nid": "utils_bxinvoicethumb_isimagefiletype", "callee": "String", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxInvoiceThumb.js", "source_location": "L2"}, {"caller_nid": "utils_bxinvoicethumb_fileextlabel", "callee": "pop", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxInvoiceThumb.js", "source_location": "L6"}, {"caller_nid": "utils_bxinvoicethumb_fileextlabel", "callee": "split", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxInvoiceThumb.js", "source_location": "L6"}, {"caller_nid": "utils_bxinvoicethumb_fileextlabel", "callee": "String", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxInvoiceThumb.js", "source_location": "L6"}, {"caller_nid": "utils_bxinvoicethumb_fileextlabel", "callee": "toUppeLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_config_env_js", "label": "env.js", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/env.js", "source_location": "L1"}, {"id": "config_env_env_presets", "label": "ENV_PRESETS", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/env.js", "source_location": "L26"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_config_env_js", "target": "config_env_env_presets", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/config/env.js", "source_location": "L26", "weight": 1.0}], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "label": "mp-webview.vue", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L1"}, {"id": "common_mp_webview_textarea", "label": "textarea", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L62"}, {"id": "common_mp_webview_ok", "label": "ok", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L69"}, {"id": "common_mp_webview_userstore", "label": "userStore", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L131"}, {"id": "common_mp_webview_result", "label": "result", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L143"}, {"id": "common_mp_webview_origin", "label": "origin", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L148"}, {"id": "common_mp_webview_qsparts", "label": "qsParts", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L154"}, {"id": "common_mp_webview_path", "label": "path", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L167"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_textarea", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L62", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_ok", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L69", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_userstore", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L131", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_result", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L143", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_origin", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L148", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_qsparts", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L154", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_common_mp_webview_vue", "target": "common_mp_webview_path", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/common/mp-webview.vue", "source_location": "L167", "weight": 1.0}], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_pl_fuel_register_form_vue", "label": "form.vue", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/form.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_pl_driver_plan_detail_vue", "label": "detail.vue", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/driver-plan/detail.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_bxrequest_js", "label": "bxRequest.js", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxRequest.js", "source_location": "L1"}, {"id": "utils_bxrequest_normalizebxurl", "label": "normalizeBxUrl()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxRequest.js", "source_location": "L9"}, {"id": "utils_bxrequest_buildquery", "label": "buildQuery()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxRequest.js", "source_location": "L14"}, {"id": "utils_bxrequest_parsedetailmessage", "label": "parseDetailMessage()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxRequest.js", "source_location": "L25"}, {"id": "utils_bxrequest_onunauthorized", "label": "onUnauthorized()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxRequest.js", "source_location": "L39"}, {"id": "utils_bxrequest_bxrequest", "label": "bxRequest()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxRequest.js", "source_location": "L59"}, {"id": "utils_bxrequest_bxuploadfile", "label": "bxUploadFile()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxRequest.js", "source_location": "L120"}, {"id": "utils_bxrequest_bxuploadinvoice", "label": "bxUploadInvoice()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxRequest.js", "source_location": "L179"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_bxrequest_js", "target": "api", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxRequest.js", "source_location": "L5", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_bxrequest_js", "target": "utils_bxrequest_normalizebxurl", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxRequest.js", "source_location": "L9", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_bxrequest_js", "target": "utils_bxrequest_buildquery", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxRequest.js", "source_location": "L14", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_bxrequest_js", "target": "utils_bxrequest_parsedetailmessage", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxRequest.js", "source_location": "L25", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_bxrequest_js", "target": "utils_bxrequest_onunauthorized", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxRequest.js", "source_location": "L39", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_bxrequest_js", "target": "utils_bxrequest_bxrequest", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxRequest.js", "source_location": "L59", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_bxrequest_js", "target": "utils_bxrequest_bxuploadfile", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxRequest.js", "source_location": "L120", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_bxrequest_js", "target": "utils_bxrequest_bxuploadinvoice", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxRequest.js", "source_location": "L179", "weight": 1.0}, {"source": "utils_bxrequest_onunauthorized", "target": "user", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxRequest.js", "source_location": "L44", "weight": 1.0}, {"source": "utils_bxrequest_bxrequest", "target": "utils_bxrequest_normalizebxurl", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxRequest.js", "source_location": "L63", "weight": 1.0}, {"source": "utils_bxrequest_bxrequest", "target": "utils_bxrequest_buildquery", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/bxRequest.js", "source_location": "L64", "weight": 1.0}, {"source": "utils_bxrequest_bxuploadfile", "target": "utils_bxrequest_buildquery", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "sourceLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_dbrequest_js", "label": "dbRequest.js", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/dbRequest.js", "source_location": "L1"}, {"id": "utils_dbrequest_normalizedburl", "label": "normalizeDbUrl()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/dbRequest.js", "source_location": "L9"}, {"id": "utils_dbrequest_buildquery", "label": "buildQuery()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/dbRequest.js", "source_location": "L14"}, {"id": "utils_dbrequest_parsedetailmessage", "label": "parseDetailMessage()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/dbRequest.js", "source_location": "L25"}, {"id": "utils_dbrequest_onunauthorized", "label": "onUnauthorized()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/dbRequest.js", "source_location": "L38"}, {"id": "utils_dbrequest_dbrequest", "label": "dbRequest()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/dbRequest.js", "source_location": "L57"}, {"id": "utils_dbrequest_db", "label": "db", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/dbRequest.js", "source_location": "L105"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_dbrequest_js", "target": "api", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/dbRequest.js", "source_location": "L5", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_dbrequest_js", "target": "utils_dbrequest_normalizedburl", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/dbRequest.js", "source_location": "L9", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_dbrequest_js", "target": "utils_dbrequest_buildquery", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/dbRequest.js", "source_location": "L14", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_dbrequest_js", "target": "utils_dbrequest_parsedetailmessage", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/dbRequest.js", "source_location": "L25", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_dbrequest_js", "target": "utils_dbrequest_onunauthorized", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/dbRequest.js", "source_location": "L38", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_dbrequest_js", "target": "utils_dbrequest_dbrequest", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/dbRequest.js", "source_location": "L57", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_dbrequest_js", "target": "utils_dbrequest_db", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/dbRequest.js", "source_location": "L105", "weight": 1.0}, {"source": "utils_dbrequest_onunauthorized", "target": "user", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/dbRequest.js", "source_location": "L43", "weight": 1.0}, {"source": "utils_dbrequest_dbrequest", "target": "utils_dbrequest_normalizedburl", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/dbRequest.js", "source_location": "L61", "weight": 1.0}, {"source": "utils_dbrequest_dbrequest", "target": "utils_dbrequest_buildquery", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/dbRequest.js", "source_location": "L62", "weight": 1.0}], "raw_calls": [{"caller_nid": "utils_dbrequest_normalizedburl", "callee": "endsWith", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/dbRequest.js", "source_location": "L10"}, {"caller_nid": "utils_dbrequest_normalizedburl", "callee": "test", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/dbRequest.js", "source_location": "L11"}, {"caller_nid": "utils_dbrequest_buildquery", "callee": "forEach", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/dbRequest.js", "source_location": "L17"}, {"caller_nid": "utils_dbrequest_buildquery", "callee": "keys", "is_membeLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_upload_js", "label": "upload.js", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/upload.js", "source_location": "L1"}, {"id": "utils_upload_parseuploadbody", "label": "parseUploadBody()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/upload.js", "source_location": "L7"}, {"id": "utils_upload_extracturl", "label": "extractUrl()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/upload.js", "source_location": "L15"}, {"id": "utils_upload_gettoken", "label": "getToken()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/upload.js", "source_location": "L22"}, {"id": "utils_upload_chooseanduploadimages", "label": "chooseAndUploadImages()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/upload.js", "source_location": "L31"}, {"id": "utils_upload_previewimages", "label": "previewImages()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/upload.js", "source_location": "L95"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_upload_js", "target": "api", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/upload.js", "source_location": "L5", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_upload_js", "target": "utils_upload_parseuploadbody", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/upload.js", "source_location": "L7", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_upload_js", "target": "utils_upload_extracturl", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/upload.js", "source_location": "L15", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_upload_js", "target": "utils_upload_gettoken", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/upload.js", "source_location": "L22", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_upload_js", "target": "utils_upload_chooseanduploadimages", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/upload.js", "source_location": "L31", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_upload_js", "target": "utils_upload_previewimages", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/upload.js", "source_location": "L95", "weight": 1.0}, {"source": "utils_upload_chooseanduploadimages", "target": "utils_upload_gettoken", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/upload.js", "source_location": "L54", "weight": 1.0}, {"source": "utils_upload_chooseanduploadimages", "target": "utils_upload_parseuploadbody", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/upload.js", "source_location": "L76", "weight": 1.0}, {"source": "utils_upload_chooseanduploadimages", "target": "utils_upload_extracturl", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/upload.js", "source_location": "L77", "weight": 1.0}], "raw_calls": [{"caller_nid": "utils_upload_parseuploadbody", "callee": "parse", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/upload.js", "source_location": "L9"}, {"caller_nid": "utils_upload_parseuploadbody", "callee": "String", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/upload.js", "source_location": "L9"}, {"caller_nid": "utils_upload_extracturl", "callee": "trim", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/upload.js", "source_location": "L19"}, {"caller_nid": "utils_upload_extracturl", "callee": "String", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/upload.js", "source_location": "L19"}, {"caller_nid": "utils_upload_gettoken", "callee": "getStorageSync", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/upload.js", "source_location": "L23"}, {"caller_nid": "utils_upload_gettoken", "callee": "trim", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/utils/upload.js", "source_location": "L24"}, {"caller_nid": "utilsLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_workbench_workbench_vue", "label": "workbench.vue", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/workbench/workbench.vue", "source_location": "L1"}, {"id": "workbench_workbench_msg", "label": "msg", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/workbench/workbench.vue", "source_location": "L44"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_workbench_workbench_vue", "target": "workbench_workbench_msg", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/workbench/workbench.vue", "source_location": "L44", "weight": 1.0}], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_bx_advance_detail_vue", "label": "detail.vue", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/bx/advance/detail.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_pl_fuel_register_list_vue", "label": "list.vue", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L1"}, {"id": "fuel_register_list_safeareastyle", "label": "safeAreaStyle", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L129"}, {"id": "fuel_register_list_tabs", "label": "tabs", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L131"}, {"id": "fuel_register_list_keyword", "label": "keyword", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L137"}, {"id": "fuel_register_list_activetab", "label": "activeTab", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L138"}, {"id": "fuel_register_list_list", "label": "list", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L139"}, {"id": "fuel_register_list_loading", "label": "loading", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L140"}, {"id": "fuel_register_list_finished", "label": "finished", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L141"}, {"id": "fuel_register_list_refreshing", "label": "refreshing", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L142"}, {"id": "fuel_register_list_currentpage", "label": "currentPage", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L143"}, {"id": "fuel_register_list_listheight", "label": "listHeight", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L145"}, {"id": "fuel_register_list_computelistheight", "label": "computeListHeight()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L147"}, {"id": "fuel_register_list_categorylabel", "label": "categoryLabel()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L157"}, {"id": "fuel_register_list_statuslabel", "label": "statusLabel()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L164"}, {"id": "fuel_register_list_statustagclass", "label": "statusTagClass()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L169"}, {"id": "fuel_register_list_formatliters", "label": "formatLiters()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L173"}, {"id": "fuel_register_list_formattons", "label": "formatTons()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L178"}, {"id": "fuel_register_list_fetchpage", "label": "fetchPage()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L187"}, {"id": "fuel_register_list_onrefresh", "label": "onRefresh()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L213"}, {"id": "fuel_register_list_onpullrefresh", "label": "onPullRefresh()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L221"}, {"id": "fuel_register_list_onloadmore", "label": "onLoadMore()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L228"}, {"id": "fuel_register_list_ontabchange", "label": "onTabChange()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L233"}, {"id": "fuel_register_list_clearkeyword", "label": "clearKeyword()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/fuel-register/list.vue", "source_location": "L238"}, {"id": "fuel_register_list_goback", "label": "goBack()", "file_type": "code", "source_file": "/Users/zlwuLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_pl_transport_plan_detail_vue", "label": "detail.vue", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/transport-plan/detail.vue", "source_location": "L1"}, {"id": "transport_plan_detail_body", "label": "body", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/transport-plan/detail.vue", "source_location": "L239"}, {"id": "transport_plan_detail_loaddetail", "label": "loadDetail()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/transport-plan/detail.vue", "source_location": "L260"}, {"id": "transport_plan_detail_handlesave", "label": "handleSave()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/transport-plan/detail.vue", "source_location": "L286"}, {"id": "transport_plan_detail_golist", "label": "goList()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/transport-plan/detail.vue", "source_location": "L313"}, {"id": "transport_plan_detail_goback", "label": "goBack()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/transport-plan/detail.vue", "source_location": "L319"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_pl_transport_plan_detail_vue", "target": "transport_plan_detail_body", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/transport-plan/detail.vue", "source_location": "L239", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_pl_transport_plan_detail_vue", "target": "transport_plan_detail_loaddetail", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/transport-plan/detail.vue", "source_location": "L260", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_pl_transport_plan_detail_vue", "target": "transport_plan_detail_handlesave", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/transport-plan/detail.vue", "source_location": "L286", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_pl_transport_plan_detail_vue", "target": "transport_plan_detail_golist", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/transport-plan/detail.vue", "source_location": "L313", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_pages_pl_transport_plan_detail_vue", "target": "transport_plan_detail_goback", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/transport-plan/detail.vue", "source_location": "L319", "weight": 1.0}, {"source": "transport_plan_detail_handlesave", "target": "transport_plan_detail_loaddetail", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/transport-plan/detail.vue", "source_location": "L305", "weight": 1.0}, {"source": "transport_plan_detail_goback", "target": "transport_plan_detail_golist", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/transport-plan/detail.vue", "source_location": "L320", "weight": 1.0}], "raw_calls": [{"caller_nid": "transport_plan_detail_loaddetail", "callee": "get", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/transport-plan/detail.vue", "source_location": "L269"}, {"caller_nid": "transport_plan_detail_loaddetail", "callee": "map", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/transport-plan/detail.vue", "source_location": "L271"}, {"caller_nid": "transport_plan_detail_handlesave", "callee": "Number", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/transport-plan/detail.vue", "source_location": "L292"}, {"caller_nid": "transport_plan_detail_handlesave", "callee": "trim", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/transport-plan/detail.vue", "source_location": "L293"}, {"caller_nid": "transport_plan_detail_handlesave", "callee": "saveFeedback", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/transport-plan/detail.vue", "source_location": "L296"}, {"caller_nid": "transport_plan_detail_handlesave", "callee": "trim", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/pages/pl/transport-plan/detail.vue", "source_location": "L301"}, {"caller_nid": "transport_plan_detail_handlesave", "Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_miniprogram_scripts_test_bx_invoice_thumb_mjs", "label": "test-bx-invoice-thumb.mjs", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/scripts/test-bx-invoice-thumb.mjs", "source_location": "L1"}, {"id": "scripts_test_bx_invoice_thumb_rows", "label": "rows", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/scripts/test-bx-invoice-thumb.mjs", "source_location": "L16"}, {"id": "scripts_test_bx_invoice_thumb_items", "label": "items", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/scripts/test-bx-invoice-thumb.mjs", "source_location": "L27"}, {"id": "scripts_test_bx_invoice_thumb_prev", "label": "prev", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/scripts/test-bx-invoice-thumb.mjs", "source_location": "L32"}, {"id": "scripts_test_bx_invoice_thumb_merged", "label": "merged", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/scripts/test-bx-invoice-thumb.mjs", "source_location": "L44"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_scripts_test_bx_invoice_thumb_mjs", "target": "strict", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/scripts/test-bx-invoice-thumb.mjs", "source_location": "L1", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_scripts_test_bx_invoice_thumb_mjs", "target": "users_zlwu_work_00code_shanxia2_0_miniprogram_utils_bxinvoicethumb_js", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/scripts/test-bx-invoice-thumb.mjs", "source_location": "L2", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_scripts_test_bx_invoice_thumb_mjs", "target": "utils_bxinvoicethumb_isimagefiletype", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/scripts/test-bx-invoice-thumb.mjs", "source_location": "L2", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_scripts_test_bx_invoice_thumb_mjs", "target": "utils_bxinvoicethumb_fileextlabel", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/scripts/test-bx-invoice-thumb.mjs", "source_location": "L2", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_scripts_test_bx_invoice_thumb_mjs", "target": "utils_bxinvoicethumb_formatinvoicedateymd", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/scripts/test-bx-invoice-thumb.mjs", "source_location": "L2", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_scripts_test_bx_invoice_thumb_mjs", "target": "utils_bxinvoicethumb_buildattachitemsfrominvoicerows", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/scripts/test-bx-invoice-thumb.mjs", "source_location": "L2", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_scripts_test_bx_invoice_thumb_mjs", "target": "utils_bxinvoicethumb_mergeinvoicepicksbydraftkeys", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/scripts/test-bx-invoice-thumb.mjs", "source_location": "L2", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_scripts_test_bx_invoice_thumb_mjs", "target": "scripts_test_bx_invoice_thumb_rows", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/scripts/test-bx-invoice-thumb.mjs", "source_location": "L16", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_scripts_test_bx_invoice_thumb_mjs", "target": "scripts_test_bx_invoice_thumb_items", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/scripts/test-bx-invoice-thumb.mjs", "source_location": "L27", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_scripts_test_bx_invoice_thumb_mjs", "target": "scripts_test_bx_invoice_thumb_prev", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/scripts/test-bx-invoice-thumb.mjs", "source_location": "L32", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_miniprogram_scripts_test_bx_invoice_thumb_mjs", "target": "scripts_test_bx_invoice_thumb_merged", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/miniprogram/scripts/test-bx-invoice-thumb.mjs", "source_location": "L44", "weight":Line truncated
+6 -3
View File
@@ -55,8 +55,11 @@
{
"path": "pages/common/mp-webview",
"style": {
"navigationStyle": "custom",
"navigationBarTitleText": "运输计划"
// 竖屏 web-view 无法去掉原生顶栏:标题置空 + 背景对齐 H5 绿头,视觉合成一条
"navigationStyle": "default",
"navigationBarTitleText": " ",
"navigationBarBackgroundColor": "#087f57",
"navigationBarTextStyle": "white"
}
}
// #ifdef H5
@@ -194,7 +197,7 @@
},
{
"path": "transport-plan/list",
"style": { "navigationStyle": "custom", "navigationBarTitleText": "运输计划单" }
"style": { "navigationStyle": "custom", "navigationBarTitleText": "现场运输计划单" }
},
{
"path": "transport-plan/detail",
+11 -2
View File
@@ -165,6 +165,7 @@
<view v-if="showActions" class="bottom-action-bar">
<template v-if="detail?.status === 'draft'">
<button class="btn btn-primary" style="flex: 1" @click="handleEdit">编辑</button>
<button
class="btn btn-primary"
style="flex: 1"
@@ -183,7 +184,15 @@
</button>
</template>
<template v-if="detail?.status === 'rejected'">
<button class="btn btn-primary" style="flex: 1" @click="handleResubmit">重新提交</button>
<button class="btn btn-primary" style="flex: 1" @click="handleEdit">编辑</button>
<button
class="btn btn-primary"
style="flex: 1"
:disabled="actionLoading.submit"
@click="handleSubmit"
>
提交审批
</button>
</template>
<template v-if="canWithdraw">
<button
@@ -352,7 +361,7 @@ function handleDelete() {
})
}
function handleResubmit() {
function handleEdit() {
if (!detail.value) return
uni.navigateTo({
url: `${PAGE_PATHS.bxAdvanceApplyForm}?id=${detail.value.id}`
+20 -2
View File
@@ -126,6 +126,9 @@
<button class="btn btn-sm btn-danger" @click="handleDelete(item, 'advance')">
删除
</button>
<button class="btn btn-sm btn-primary" @click="goApply(item, 'advance')">
编辑
</button>
<button class="btn btn-sm btn-primary" @click="handleSubmit(item, 'advance')">
提交
</button>
@@ -134,8 +137,11 @@
<button class="btn btn-sm btn-primary" @click="goDetail(item, 'advance')">
查看
</button>
<button class="btn btn-sm btn-primary" @click="goApply(item, 'advance')">
编辑
</button>
<button class="btn btn-sm btn-primary" @click="handleSubmit(item, 'advance')">
重新提交
提交
</button>
</view>
<view v-else class="op-actions">
@@ -216,6 +222,9 @@
<button class="btn btn-sm btn-danger" @click="handleDelete(item, 'reimburse')">
删除
</button>
<button class="btn btn-sm btn-primary" @click="goApply(item, 'reimburse')">
编辑
</button>
<button class="btn btn-sm btn-primary" @click="handleSubmit(item, 'reimburse')">
提交
</button>
@@ -224,8 +233,11 @@
<button class="btn btn-sm btn-primary" @click="goDetail(item, 'reimburse')">
查看
</button>
<button class="btn btn-sm btn-primary" @click="goApply(item, 'reimburse')">
编辑
</button>
<button class="btn btn-sm btn-primary" @click="handleSubmit(item, 'reimburse')">
重新提交
提交
</button>
</view>
<view v-else class="op-actions">
@@ -429,6 +441,12 @@ function goDetail(item, biz) {
uni.navigateTo({ url: `${path}?id=${item.id}` })
}
function goApply(item, biz) {
const path =
biz === 'advance' ? PAGE_PATHS.bxAdvanceApplyForm : PAGE_PATHS.bxReimburseApplyForm
uni.navigateTo({ url: `${path}?id=${item.id}` })
}
async function handleSubmit(item, biz) {
try {
const api = biz === 'advance' ? advanceApi : reimburseApi
+229 -29
View File
@@ -1,39 +1,178 @@
<template>
<view class="mp-wv-page">
<view v-if="errorText" class="mp-wv-error">{{ errorText }}</view>
<web-view v-else-if="src" :src="src" />
<view v-if="errorText" class="mp-wv-error">
<text class="mp-wv-error__title">{{ errorText }}</text>
</view>
<!-- 等 onReady 后再挂载 web-view,避免跳转尚未完成时嵌入 H5 导致 navigateTo:fail timeout -->
<web-view v-else-if="src" :src="src" @message="onWebViewMessage" />
<view v-else class="mp-wv-error">加载中…</view>
</view>
</template>
<script setup>
import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import { AUTH_API, PAGE_PATHS } from '@/config/api'
import { WEB_ORIGIN } from '@/config/env'
import { onMounted, onUnmounted, ref } from 'vue'
import { onLoad, onReady, onShow } from '@dcloudio/uni-app'
import { AUTH_API, PAGE_PATHS, resolveApiBase, resolveWebOrigin } from '@/config/api'
import { request, parseResponseJson } from '@/utils/request'
import { useUserStore } from '@/stores/user'
/** 热更新错配时:本地签发 ticket、生产打开 H5 → 401 */
function assertTicketEnvAligned() {
const api = resolveApiBase()
const web = resolveWebOrigin()
const apiLocal = /127\.0\.0\.1|localhost/.test(api)
const webLocal = /127\.0\.0\.1|localhost/.test(web)
const apiProd = /shanxiachem\.com/.test(api)
const webProd = /shanxiachem\.com/.test(web)
if (apiLocal !== webLocal || apiProd !== webProd) {
throw new Error(
`环境错配:API=${api},Web=${web}。请停止后重新「运行到小程序」完整编译,不要只靠热更新。`
)
}
}
const MP_WEBVIEW_GO_WORKBENCH = 'MP_WEBVIEW_GO_WORKBENCH'
const MP_WEBVIEW_COPY_TEXT = 'MP_WEBVIEW_COPY_TEXT'
const src = ref('')
const errorText = ref('')
const pageReady = ref(false)
/** ticket 就绪后的完整 H5 URL,等 pageReady 再赋给 src */
let pendingSrc = ''
function normalizePath(raw) {
let path = String(raw || '').trim()
for (let i = 0; i < 3; i++) {
if (!path || path.startsWith('/m/')) break
try {
const next = decodeURIComponent(path)
if (next === path) break
path = next.trim()
} catch {
break
}
}
return path
}
function isAllowedPath(path) {
return typeof path === 'string' && path.startsWith('/m/')
}
onLoad(async (query) => {
const path = decodeURIComponent(String(query?.path || '').trim())
if (!isAllowedPath(path)) {
errorText.value = '无效地址'
uni.showToast({ title: '无效地址', icon: 'none' })
setTimeout(() => {
uni.navigateBack({
fail: () => uni.reLaunch({ url: PAGE_PATHS.workbench })
})
}, 400)
function goWorkbench() {
uni.reLaunch({ url: PAGE_PATHS.workbench })
}
function tryMountWebView() {
if (!pageReady.value || !pendingSrc || errorText.value) return
src.value = pendingSrc
pendingSrc = ''
}
function fallbackExecCommandCopy(text) {
// #ifdef H5
try {
if (typeof document === 'undefined') return false
const textarea = document.createElement('textarea')
textarea.value = text
textarea.setAttribute('readonly', '')
textarea.style.position = 'fixed'
textarea.style.left = '-9999px'
document.body.appendChild(textarea)
textarea.select()
const ok = document.execCommand('copy')
document.body.removeChild(textarea)
return ok
} catch {
return false
}
// #endif
// #ifndef H5
return false
// #endif
}
async function copyTextOnHost(text) {
const value = String(text || '')
if (!value) return false
// #ifdef H5
try {
if (typeof navigator !== 'undefined' && navigator.clipboard?.writeText) {
await navigator.clipboard.writeText(value)
return true
}
} catch {
/* fall through */
}
if (fallbackExecCommandCopy(value)) {
return true
}
// #endif
return await new Promise((resolve) => {
uni.setClipboardData({
data: value,
success: () => resolve(true),
fail: () => resolve(false)
})
})
}
function handleHostPayload(data) {
if (!data || typeof data !== 'object') return
if (data.type === MP_WEBVIEW_GO_WORKBENCH) {
goWorkbench()
return
}
if (data.type === MP_WEBVIEW_COPY_TEXT) {
void copyTextOnHost(data.text)
}
}
function onWebViewMessage(event) {
const list = event && event.detail && event.detail.data
if (!Array.isArray(list)) return
for (let i = list.length - 1; i >= 0; i--) {
handleHostPayload(list[i])
}
}
function onHostMessage(event) {
handleHostPayload(event && event.data)
}
async function fetchMpWebviewTicket(maxAttempts = 3) {
let lastMessage = '无法打开内嵌页'
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
try {
const res = await request({
url: AUTH_API.MP_WEBVIEW_TICKET,
method: 'POST'
})
const result = parseResponseJson(res)
const code = result && result.code
const message = (result && result.message) || ''
const ticket = code === 200 ? result.data?.ticket : ''
if (ticket) return ticket
lastMessage = message || lastMessage
if (Number(code) === 503 && attempt < maxAttempts) {
await new Promise((r) => setTimeout(r, 300 * attempt))
continue
}
break
} catch (error) {
const errMsg = (error && error.message) || String(error)
lastMessage = errMsg || lastMessage
if (/timeout|fail|网络/i.test(String(lastMessage)) && attempt < maxAttempts) {
await new Promise((r) => setTimeout(r, 300 * attempt))
continue
}
throw error
}
}
throw new Error(lastMessage)
}
async function bootstrapWebView(path) {
const userStore = useUserStore()
userStore.checkLoginStatus()
if (!userStore.isLoggedIn) {
@@ -42,21 +181,77 @@ onLoad(async (query) => {
}
try {
const res = await request({
url: AUTH_API.MP_WEBVIEW_TICKET,
method: 'POST'
})
const result = parseResponseJson(res)
const ticket = result && result.code === 200 ? result.data?.ticket : ''
if (!ticket) {
throw new Error((result && result.message) || '无法打开内嵌页')
assertTicketEnvAligned()
const ticket = await fetchMpWebviewTicket()
const origin = String(resolveWebOrigin() || '').replace(/\/$/, '')
const returnOrigin =
typeof window !== 'undefined' && window.location && window.location.origin
? window.location.origin
: ''
const qsParts = [`mpTicket=${encodeURIComponent(ticket)}`]
if (returnOrigin) {
qsParts.push(`mpReturnOrigin=${encodeURIComponent(returnOrigin)}`)
}
const origin = String(WEB_ORIGIN || '').replace(/\/$/, '')
src.value = `${origin}/#${path}?mpTicket=${encodeURIComponent(ticket)}`
const qs = qsParts.join('&')
pendingSrc = `${origin}/?${qs}#${path}?${qs}`
tryMountWebView()
} catch (error) {
errorText.value = (error && error.message) || '无法打开内嵌页'
uni.showToast({ title: errorText.value, icon: 'none' })
const msg = (error && error.message) || '无法打开内嵌页'
errorText.value = msg
uni.showToast({ title: msg, icon: 'none', duration: 3500 })
}
}
onLoad((query) => {
const path = normalizePath(query?.path)
if (!isAllowedPath(path)) {
errorText.value = '无效地址'
uni.showToast({ title: '无效地址', icon: 'none' })
setTimeout(() => {
goWorkbench()
}, 1200)
return
}
void bootstrapWebView(path)
})
onReady(() => {
pageReady.value = true
tryMountWebView()
})
onShow(() => {
// #ifdef MP-WEIXIN
try {
if (typeof uni.hideHomeButton === 'function') {
uni.hideHomeButton({})
}
// 中间标题留空,只留绿底与胶囊,和下方 H5 头视觉一体
uni.setNavigationBarTitle({ title: '\u200B' })
uni.setNavigationBarColor({
frontColor: '#ffffff',
backgroundColor: '#087f57'
})
} catch {
/* ignore */
}
// #endif
})
onMounted(() => {
// #ifdef H5
if (typeof window !== 'undefined') {
window.addEventListener('message', onHostMessage)
}
// #endif
})
onUnmounted(() => {
// #ifdef H5
if (typeof window !== 'undefined') {
window.removeEventListener('message', onHostMessage)
}
// #endif
})
</script>
@@ -66,9 +261,14 @@ onLoad(async (query) => {
background: #f5f8f7;
}
.mp-wv-error {
padding: 48px 16px;
padding: 32px 16px 8px;
color: #6b7b74;
font-size: 14px;
text-align: center;
}
.mp-wv-error__title {
color: #b45309;
font-size: 15px;
font-weight: 600;
}
</style>
+7 -5
View File
@@ -125,15 +125,12 @@
<script setup>
import { computed, ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import { API_BASE, PAGE_PATHS, TOKEN_KEY } from '@/config/api'
import { PAGE_PATHS, TOKEN_KEY, resolveApiBase } from '@/config/api'
import { MINIO_BASE_URL } from '@/config/env'
import { driverPlanApi } from '@/api/pl'
import { getSafeAreaStyle } from '@/utils/safeArea'
import { previewImages } from '@/utils/upload'
import '@/styles/bx-theme.scss'
import '@/styles/pl-driver-plan.scss'
const safeAreaStyle = getSafeAreaStyle()
const planId = ref('')
const page = ref(null)
@@ -208,7 +205,7 @@ async function uploadForStop(stop) {
if (!choose?.tempFilePaths?.length) return
const token = uni.getStorageSync(TOKEN_KEY) || ''
const uploadUrl = `${API_BASE}/transport/driver-plan/${planId.value}/attachments`
const uploadUrl = `${resolveApiBase()}/transport/driver-plan/${planId.value}/attachments`
uni.showLoading({ title: '上传中...' })
try {
for (const filePath of choose.tempFilePaths) {
@@ -322,3 +319,8 @@ onLoad((q) => {
loadDetail()
})
</script>
<style lang="scss">
@import '@/styles/bx-theme.scss';
@import '@/styles/pl-driver-plan.scss';
</style>
+10 -3
View File
@@ -71,9 +71,6 @@ import { PAGE_PATHS } from '@/config/api'
import { driverPlanApi } from '@/api/pl'
import { getSafeAreaStyle } from '@/utils/safeArea'
import '@/styles/bx-theme.scss'
import '@/styles/pl-driver-plan.scss'
const safeAreaStyle = getSafeAreaStyle()
function todayStr() {
@@ -158,7 +155,17 @@ onShow(() => {
})
</script>
<!-- 微信端:scss 须在 style 中 @import;script 里 import 只会生成空 js,H5 有样式而小程序无样式 -->
<style lang="scss">
@import '@/styles/bx-theme.scss';
@import '@/styles/pl-driver-plan.scss';
</style>
<style lang="scss" scoped>
:deep(.uni-calendar__backtoday) {
display: none;
}
:deep(.uni-calendar-item--checked),
:deep(.uni-calendar-item--isDay),
:deep(.uni-calendar-item--multiple) {
+18 -4
View File
@@ -99,6 +99,11 @@
/>
</view>
<view class="field">
<text class="field-label">加油/吨</text>
<input class="form-input" :value="fuelTonsDisplay" disabled />
</view>
<view class="field">
<text class="field-label">备注</text>
<textarea
@@ -207,7 +212,8 @@ const userStore = useUserStore()
const MAX_ATTACHMENTS = 5
const categoryOptions = [
{ label: '百链', value: 'bailian' },
{ label: '加油站', value: 'gas_station' }
{ label: '加油站', value: 'gas_station' },
{ label: '山峡', value: 'shanxia_factory' }
]
const editId = ref('')
@@ -254,6 +260,12 @@ const registrantDisplay = computed(() => {
return name || '当前登录人'
})
const fuelTonsDisplay = computed(() => {
const n = Number(form.fuelLiters)
if (!form.fuelLiters || Number.isNaN(n) || n <= 0) return ''
return (n / 1176).toFixed(3)
})
function vehiclePlate(v) {
return String(v?.licensePlate || v?.license_plate || '').trim()
}
@@ -510,18 +522,20 @@ onLoad(async (query) => {
.fuel-seg {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.fuel-seg__item {
flex: 1;
flex: 1 1 calc(33.33% - 6px);
min-width: 88px;
text-align: center;
padding: 10px 0;
padding: 10px 4px;
border-radius: 8px;
border: 1px solid var(--border);
background: var(--surface);
color: var(--text-sec);
font-size: 14px;
font-size: 13px;
}
.fuel-seg__item--active {
@@ -80,6 +80,10 @@
<text class="list-card-kv__k">加油类别</text>
<text class="list-card-kv__v">{{ categoryLabel(item.fuelCategory) }}</text>
</view>
<view class="list-card-kv__row">
<text class="list-card-kv__k">加油/吨</text>
<text class="list-card-kv__v">{{ formatTons(item.fuelTons, item.fuelLiters) }}</text>
</view>
<view class="list-card-kv__row">
<text class="list-card-kv__k">日期</text>
<text class="list-card-kv__v">{{ item.registerDate || '—' }}</text>
@@ -153,6 +157,7 @@ function computeListHeight() {
function categoryLabel(v) {
if (v === 'bailian') return '百链'
if (v === 'gas_station') return '加油站'
if (v === 'shanxia_factory') return '山峡'
return v || '—'
}
@@ -170,6 +175,15 @@ function formatLiters(v) {
return Number.isNaN(n) ? '—' : n.toFixed(2)
}
function formatTons(tons, liters) {
if (tons != null && tons !== '' && !Number.isNaN(Number(tons))) {
return `${Number(tons).toFixed(3)} 吨`
}
const n = Number(liters)
if (Number.isNaN(n) || n <= 0) return '—'
return `${(n / 1176).toFixed(3)} 吨`
}
async function fetchPage() {
if (loading.value && !refreshing.value) return
loading.value = true
@@ -131,15 +131,12 @@
<script setup>
import { computed, ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import { API_BASE, PAGE_PATHS, TOKEN_KEY } from '@/config/api'
import { PAGE_PATHS, TOKEN_KEY, resolveApiBase } from '@/config/api'
import { MINIO_BASE_URL } from '@/config/env'
import { sitePlanApi } from '@/api/pl'
import { getSafeAreaStyle } from '@/utils/safeArea'
import { previewImages } from '@/utils/upload'
import '@/styles/bx-theme.scss'
import '@/styles/pl-site-plan.scss'
const safeAreaStyle = getSafeAreaStyle()
const planId = ref('')
const page = ref(null)
@@ -224,7 +221,7 @@ async function uploadForStop(stop) {
if (!choose?.tempFilePaths?.length) return
const token = uni.getStorageSync(TOKEN_KEY) || ''
const uploadUrl = `${API_BASE}/transport/site-plan/${planId.value}/attachments`
const uploadUrl = `${resolveApiBase()}/transport/site-plan/${planId.value}/attachments`
uni.showLoading({ title: '上传中...' })
try {
for (const filePath of choose.tempFilePaths) {
@@ -328,3 +325,8 @@ onLoad((q) => {
loadDetail()
})
</script>
<style lang="scss">
@import '@/styles/bx-theme.scss';
@import '@/styles/pl-site-plan.scss';
</style>
+11 -4
View File
@@ -3,7 +3,7 @@
<view class="topbar" :style="safeAreaStyle">
<view class="topbar-left">
<text class="topbar-back" @click="goBack">←</text>
<text class="topbar-title">运输计划单</text>
<text class="topbar-title">现场运输计划单</text>
</view>
<view class="topbar-right" />
</view>
@@ -78,9 +78,6 @@ import { PAGE_PATHS } from '@/config/api'
import { sitePlanApi } from '@/api/pl'
import { getSafeAreaStyle } from '@/utils/safeArea'
import '@/styles/bx-theme.scss'
import '@/styles/pl-site-plan.scss'
const safeAreaStyle = getSafeAreaStyle()
function todayStr() {
@@ -180,7 +177,17 @@ onShow(() => {
})
</script>
<!-- 微信端:scss 须在 style 中 @import;script 里 import 只会生成空 js,H5 有样式而小程序无样式 -->
<style lang="scss">
@import '@/styles/bx-theme.scss';
@import '@/styles/pl-site-plan.scss';
</style>
<style lang="scss" scoped>
:deep(.uni-calendar__backtoday) {
display: none;
}
/* 保险:覆盖 uni-calendar 默认蓝选中态(组件内已改为 #0a9f6d) */
:deep(.uni-calendar-item--checked),
:deep(.uni-calendar-item--isDay),
+37 -4
View File
@@ -38,6 +38,41 @@ onShow(async () => {
await userStore.fetchMenuCodes()
})
/** 含 web-view 的页用 redirectTo,避免真机 navigateTo:fail timeout 闪进又弹回工作台 */
const isMpWebviewRoute = (url) => String(url || '').includes('/pages/common/mp-webview')
const openPage = (url) => {
const failToast = () => uni.showToast({ title: '打开失败,请重试', icon: 'none' })
if (isMpWebviewRoute(url)) {
const ret = uni.redirectTo({
url,
fail: (err) => {
// 栈异常时再退到 reLaunch
const msg = String((err && err.errMsg) || '')
if (/fail/i.test(msg)) {
uni.reLaunch({ url, fail: failToast })
return
}
failToast()
}
})
if (ret && typeof ret.catch === 'function') ret.catch(() => {})
return
}
const fail = (err) => {
const msg = String((err && err.errMsg) || '')
if (/timeout/i.test(msg)) {
uni.redirectTo({ url, fail: failToast })
return
}
failToast()
}
const ret = uni.navigateTo({ url, fail })
if (ret && typeof ret.catch === 'function') {
ret.catch(() => {})
}
}
const openMenu = (module, menu) => {
if (!menu.enabled) {
uni.showToast({ title: '本期暂未开放', icon: 'none' })
@@ -45,15 +80,13 @@ const openMenu = (module, menu) => {
}
const route = WORKBENCH_ROUTE_MAP[menu.code]
if (route) {
uni.navigateTo({ url: route })
openPage(route)
return
}
const title = encodeURIComponent(menu.name || '')
const moduleTitle = encodeURIComponent(module.title || '')
const code = encodeURIComponent(menu.code || '')
uni.navigateTo({
url: `${PAGE_PATHS.bizPlaceholder}?title=${title}&module=${moduleTitle}&code=${code}`
})
openPage(`${PAGE_PATHS.bizPlaceholder}?title=${title}&module=${moduleTitle}&code=${code}`)
}
const handleLogout = async () => {
+2 -2
View File
@@ -1,4 +1,4 @@
import { BASE_URL } from '@/config/api'
import { resolveApiBase } from '@/config/api'
import { DEFAULT_PLACEHOLDER_IMAGE_URL } from '@/utils/staticAsset'
import { withOssVersion } from '@/utils/ossCache'
@@ -19,7 +19,7 @@ export function normalizeAvatarUrlForMini(avatarUrl) {
const u = String(avatarUrl || '').trim()
if (!u) return ''
if (/^https?:\/\//i.test(u) || u.startsWith('//')) return withOssVersion(u)
const origin = BASE_URL.replace(/\/$/, '')
const origin = resolveApiBase().replace(/\/$/, '')
const path = u.startsWith('/') ? u : `/${u}`
return withOssVersion(`${origin}${path}`)
}
+4 -4
View File
@@ -2,7 +2,7 @@
* 报销/备用金模块 HTTP(bx 信封:code === 0)
* 对齐 bx-mobile/src/api/bxClient.ts
*/
import { API_BASE, TOKEN_KEY, REFRESH_TOKEN_KEY, USER_INFO_KEY } from '@/config/api'
import { TOKEN_KEY, REFRESH_TOKEN_KEY, USER_INFO_KEY, resolveApiBase } from '@/config/api'
const BX_COLLECTION_ROOT = /^\/(reimburses|advances|payments|workflows|expense-items)$/
@@ -65,7 +65,7 @@ export function bxRequest(options = {}) {
const rawUrl = `${path}${query}`
const url = rawUrl.startsWith('http')
? rawUrl
: `${API_BASE}${rawUrl.startsWith('/') ? rawUrl : `/${rawUrl}`}`
: `${resolveApiBase()}${rawUrl.startsWith('/') ? rawUrl : `/${rawUrl}`}`
return new Promise((resolve, reject) => {
uni.request({
@@ -124,7 +124,7 @@ export function bxUploadFile(filePath, opts = {}) {
biz_type: opts.bizType || '',
biz_id: opts.bizId != null && opts.bizId !== '' ? opts.bizId : 0
})
const url = `${API_BASE}/attachments/upload${query}`
const url = `${resolveApiBase()}/attachments/upload${query}`
return new Promise((resolve, reject) => {
uni.uploadFile({
@@ -192,7 +192,7 @@ export function bxUploadInvoice(opts = {}) {
if (opts.targetUserId != null && opts.targetUserId !== '') {
formData.targetUserId = String(opts.targetUserId)
}
const url = `${API_BASE}/invoices`
const url = `${resolveApiBase()}/invoices`
return new Promise((resolve, reject) => {
uni.uploadFile({
+2 -2
View File
@@ -2,7 +2,7 @@
* 地磅模块 HTTP(裸 JSON,非门户 code/data 信封)
* 对齐 mobile-h5/src/utils/http/db.ts
*/
import { API_BASE, TOKEN_KEY, REFRESH_TOKEN_KEY, USER_INFO_KEY } from '@/config/api'
import { TOKEN_KEY, REFRESH_TOKEN_KEY, USER_INFO_KEY, resolveApiBase } from '@/config/api'
const DB_COLLECTION_ROOT = /^\/(plans|inventory|weighing)$/
@@ -63,7 +63,7 @@ export function dbRequest(options = {}) {
const rawUrl = `${path}${query}`
const url = rawUrl.startsWith('http')
? rawUrl
: `${API_BASE}${rawUrl.startsWith('/') ? rawUrl : `/${rawUrl}`}`
: `${resolveApiBase()}${rawUrl.startsWith('/') ? rawUrl : `/${rawUrl}`}`
return new Promise((resolve, reject) => {
uni.request({
+2 -2
View File
@@ -1,8 +1,8 @@
import JSEncrypt from 'jsencrypt'
import { API_BASE, AUTH_API } from '@/config/api'
import { resolveApiBase, AUTH_API } from '@/config/api'
function fetchLoginPublicKey() {
const url = `${API_BASE}${AUTH_API.LOGIN_RSA_PUBLIC_KEY}?_t=${Date.now()}`
const url = `${resolveApiBase()}${AUTH_API.LOGIN_RSA_PUBLIC_KEY}?_t=${Date.now()}`
return new Promise((resolve, reject) => {
uni.request({
url,
+2 -2
View File
@@ -1,4 +1,4 @@
import { API_BASE, TOKEN_KEY, REFRESH_TOKEN_KEY, USER_INFO_KEY } from '@/config/api'
import { TOKEN_KEY, REFRESH_TOKEN_KEY, USER_INFO_KEY, resolveApiBase } from '@/config/api'
let clearingAuth = false
// TODO(config-hardcoded): 以下加密参数为临时写死,后续应迁移至构建期注入或安全配置下发。
@@ -251,7 +251,7 @@ export function request(options) {
const userId = userIdFromStorage || parseUserIdFromToken(token)
const normalizedUrl = rawUrl.startsWith('http')
? rawUrl
: `${API_BASE}${rawUrl.startsWith('/') ? rawUrl : `/${rawUrl}`}`
: `${resolveApiBase()}${rawUrl.startsWith('/') ? rawUrl : `/${rawUrl}`}`
const url = appendTimestampQuery(normalizedUrl)
const shouldEncrypt = shouldEncryptRequest(rawUrl, userId, options.data)
const skipReason = shouldEncrypt ? '' : getEncryptSkipReason(rawUrl, userId, options.data)
+13 -1
View File
@@ -7,9 +7,21 @@ const DEFAULT_GAP = 8
const DEFAULT_HORIZONTAL_PADDING = 8
function getSystemInfo() {
// 微信基础库 3.x 起 getSystemInfoSync 已弃用,优先拆分 API
try {
if (typeof uni.getWindowInfo === 'function') {
const win = uni.getWindowInfo() || {}
return {
statusBarHeight: win.statusBarHeight,
windowWidth: win.windowWidth
}
}
} catch (_) {
/* fall through */
}
try {
return uni.getSystemInfoSync() || {}
} catch (error) {
} catch (_) {
return {}
}
}
+2 -2
View File
@@ -2,7 +2,7 @@
* 小程序拍照凭证上传(OpenSpec 基线)
* chooseImage → uni.uploadFile → 收集 URL → 业务接口再传 imageUrls
*/
import { API_BASE, TOKEN_KEY, UPLOAD_API } from '@/config/api'
import { resolveApiBase, TOKEN_KEY, UPLOAD_API } from '@/config/api'
function parseUploadBody(raw) {
try {
@@ -32,7 +32,7 @@ export async function chooseAndUploadImages(opts = {}) {
const folder = opts.folder || 'mini-evidence'
const maxCount = opts.maxCount != null ? opts.maxCount : 6
const currentUrls = Array.isArray(opts.currentUrls) ? opts.currentUrls : []
const uploadUrl = opts.uploadUrl || `${API_BASE}${UPLOAD_API.IMAGE}`
const uploadUrl = opts.uploadUrl || `${resolveApiBase()}${UPLOAD_API.IMAGE}`
const remain = maxCount - currentUrls.length
if (remain <= 0) {