first:修正上传地址,优化界面,尝试对接微信支付分免押(50%)

This commit is contained in:
2025-06-27 18:38:10 +08:00
parent bdde4ae2cf
commit 8ac1666e6b
55 changed files with 3142 additions and 1656 deletions
+16 -8
View File
@@ -1,10 +1,18 @@
"use strict";
const _imports_0$1 = "/static/scan-icon.png";
const _imports_0 = "/static/jl.png";
const _imports_1 = "/static/complaint.png";
const _imports_2 = "/static/hlep.png";
exports._imports_0 = _imports_0$1;
exports._imports_0$1 = _imports_0;
exports._imports_1 = _imports_1;
exports._imports_2 = _imports_2;
const _imports_0$2 = "/static/logo.png";
const _imports_1$2 = "/static/scan-icon.png";
const _imports_0$1 = "/static/jl.png";
const _imports_1$1 = "/static/complaint.png";
const _imports_2$1 = "/static/hlep.png";
const _imports_0 = "/static/images/location-map.svg";
const _imports_1 = "/static/images/Electricity.svg";
const _imports_2 = "/static/images/wxpayflag.png";
exports._imports_0 = _imports_0$2;
exports._imports_0$1 = _imports_0$1;
exports._imports_0$2 = _imports_0;
exports._imports_1 = _imports_1$2;
exports._imports_1$1 = _imports_1$1;
exports._imports_1$2 = _imports_1;
exports._imports_2 = _imports_2$1;
exports._imports_2$1 = _imports_2;
//# sourceMappingURL=../../.sourcemap/mp-weixin/common/assets.js.map
+184 -112
View File
@@ -2570,21 +2570,21 @@ function injectHook(type, hook, target = currentInstance, prepend = false) {
);
}
}
const createHook = (lifecycle) => (hook, target = currentInstance) => (
const createHook$1 = (lifecycle) => (hook, target = currentInstance) => (
// post-create lifecycle registrations are noops during SSR (except for serverPrefetch)
(!isInSSRComponentSetup || lifecycle === "sp") && injectHook(lifecycle, (...args) => hook(...args), target)
);
const onBeforeMount = createHook("bm");
const onMounted = createHook("m");
const onBeforeUpdate = createHook("bu");
const onUpdated = createHook("u");
const onBeforeUnmount = createHook("bum");
const onUnmounted = createHook("um");
const onServerPrefetch = createHook("sp");
const onRenderTriggered = createHook(
const onBeforeMount = createHook$1("bm");
const onMounted = createHook$1("m");
const onBeforeUpdate = createHook$1("bu");
const onUpdated = createHook$1("u");
const onBeforeUnmount = createHook$1("bum");
const onUnmounted = createHook$1("um");
const onServerPrefetch = createHook$1("sp");
const onRenderTriggered = createHook$1(
"rtg"
);
const onRenderTracked = createHook(
const onRenderTracked = createHook$1(
"rtc"
);
function onErrorCaptured(hook, target = currentInstance) {
@@ -5119,9 +5119,10 @@ function createApp$1(rootComponent, rootProps = null) {
}
const createSSRApp = createApp$1;
function getLocaleLanguage$1() {
var _a;
let localeLanguage = "";
{
const appBaseInfo = wx.getAppBaseInfo();
const appBaseInfo = ((_a = wx.getAppBaseInfo) === null || _a === void 0 ? void 0 : _a.call(wx)) || wx.getSystemInfoSync();
const language = appBaseInfo && appBaseInfo.language ? appBaseInfo.language : LOCALE_EN;
localeLanguage = normalizeLocale(language) || LOCALE_EN;
}
@@ -5532,9 +5533,15 @@ let isIOS = false;
let deviceWidth = 0;
let deviceDPR = 0;
function checkDeviceWidth() {
const { windowWidth, pixelRatio, platform } = Object.assign({}, wx.getWindowInfo(), {
platform: wx.getDeviceInfo().platform
});
var _a, _b;
let windowWidth, pixelRatio, platform;
{
const windowInfo = ((_a = wx.getWindowInfo) === null || _a === void 0 ? void 0 : _a.call(wx)) || wx.getSystemInfoSync();
const deviceInfo = ((_b = wx.getDeviceInfo) === null || _b === void 0 ? void 0 : _b.call(wx)) || wx.getSystemInfoSync();
windowWidth = windowInfo.windowWidth;
pixelRatio = windowInfo.pixelRatio;
platform = deviceInfo.platform;
}
deviceWidth = windowWidth;
deviceDPR = pixelRatio;
isIOS = platform === "ios";
@@ -5989,11 +5996,29 @@ function getOSInfo(system, platform) {
osName = platform;
osVersion = system;
} else {
osName = system.split(" ")[0] || "";
osName = system.split(" ")[0] || platform;
osVersion = system.split(" ")[1] || "";
}
osName = osName.toLocaleLowerCase();
switch (osName) {
case "harmony":
case "ohos":
case "openharmony":
osName = "harmonyos";
break;
case "iphone os":
osName = "ios";
break;
case "mac":
case "darwin":
osName = "macos";
break;
case "windows_nt":
osName = "windows";
break;
}
return {
osName: osName.toLocaleLowerCase(),
osName,
osVersion
};
}
@@ -6014,9 +6039,9 @@ function populateParameters(fromRes, toRes) {
appVersion: "1.0.0",
appVersionCode: "100",
appLanguage: getAppLanguage(hostLanguage),
uniCompileVersion: "4.57",
uniCompilerVersion: "4.57",
uniRuntimeVersion: "4.57",
uniCompileVersion: "4.66",
uniCompilerVersion: "4.66",
uniRuntimeVersion: "4.66",
uniPlatform: "mp-weixin",
deviceBrand,
deviceModel: model,
@@ -6165,9 +6190,9 @@ const getAppBaseInfo = {
appLanguage: getAppLanguage(hostLanguage),
isUniAppX: false,
uniPlatform: "mp-weixin",
uniCompileVersion: "4.57",
uniCompilerVersion: "4.57",
uniRuntimeVersion: "4.57"
uniCompileVersion: "4.66",
uniCompilerVersion: "4.66",
uniRuntimeVersion: "4.66"
};
extend(toRes, parameters);
}
@@ -6448,6 +6473,91 @@ function tryConnectSocket(host2, port, id) {
});
});
}
const CONSOLE_TYPES = ["log", "warn", "error", "info", "debug"];
const originalConsole = /* @__PURE__ */ CONSOLE_TYPES.reduce((methods, type) => {
methods[type] = console[type].bind(console);
return methods;
}, {});
let sendError = null;
const errorQueue = /* @__PURE__ */ new Set();
const errorExtra = {};
function sendErrorMessages(errors) {
if (sendError == null) {
errors.forEach((error) => {
errorQueue.add(error);
});
return;
}
const data = errors.map((err) => {
if (typeof err === "string") {
return err;
}
const isPromiseRejection = err && "promise" in err && "reason" in err;
const prefix = isPromiseRejection ? "UnhandledPromiseRejection: " : "";
if (isPromiseRejection) {
err = err.reason;
}
if (err instanceof Error && err.stack) {
if (err.message && !err.stack.includes(err.message)) {
return `${prefix}${err.message}
${err.stack}`;
}
return `${prefix}${err.stack}`;
}
if (typeof err === "object" && err !== null) {
try {
return prefix + JSON.stringify(err);
} catch (err2) {
return prefix + String(err2);
}
}
return prefix + String(err);
}).filter(Boolean);
if (data.length > 0) {
sendError(JSON.stringify(Object.assign({
type: "error",
data
}, errorExtra)));
}
}
function setSendError(value, extra = {}) {
sendError = value;
Object.assign(errorExtra, extra);
if (value != null && errorQueue.size > 0) {
const errors = Array.from(errorQueue);
errorQueue.clear();
sendErrorMessages(errors);
}
}
function initOnError() {
function onError2(error) {
try {
if (typeof PromiseRejectionEvent !== "undefined" && error instanceof PromiseRejectionEvent && error.reason instanceof Error && error.reason.message && error.reason.message.includes(`Cannot create property 'errMsg' on string 'taskId`)) {
return;
}
if (true) {
originalConsole.error(error);
}
sendErrorMessages([error]);
} catch (err) {
originalConsole.error(err);
}
}
if (typeof index.onError === "function") {
index.onError(onError2);
}
if (typeof index.onUnhandledRejection === "function") {
index.onUnhandledRejection(onError2);
}
return function offError2() {
if (typeof index.offError === "function") {
index.offError(onError2);
}
if (typeof index.offUnhandledRejection === "function") {
index.offUnhandledRejection(onError2);
}
};
}
function formatMessage(type, args) {
try {
return {
@@ -6480,7 +6590,16 @@ function formatArg(arg, depth = 0) {
case "boolean":
return formatBoolean(arg);
case "object":
return formatObject(arg, depth);
try {
return formatObject(arg, depth);
} catch (e2) {
return {
type: "object",
value: {
properties: []
}
};
}
case "undefined":
return formatUndefined();
case "function":
@@ -6626,14 +6745,21 @@ function formatObject(value, depth) {
}
}
}
let entries = Object.entries(value);
if (isHarmonyBuilderParams(value)) {
entries = entries.filter(([key]) => key !== "modifier" && key !== "nodeContent");
}
return {
type: "object",
className,
value: {
properties: Object.entries(value).map((entry) => formatObjectProperty(entry[0], entry[1], depth + 1))
properties: entries.map((entry) => formatObjectProperty(entry[0], entry[1], depth + 1))
}
};
}
function isHarmonyBuilderParams(value) {
return value.modifier && value.modifier._attribute && value.nodeContent;
}
function isComponentPublicInstance(value) {
return value.$ && isComponentInternalInstance(value.$);
}
@@ -6711,10 +6837,11 @@ function formatMapEntry(value, depth) {
value: formatArg(value[1], depth)
};
}
const CONSOLE_TYPES = ["log", "warn", "error", "info", "debug"];
let sendConsole = null;
const messageQueue = [];
const messageExtra = {};
const EXCEPTION_BEGIN_MARK = "---BEGIN:EXCEPTION---";
const EXCEPTION_END_MARK = "---END:EXCEPTION---";
function sendConsoleMessages(messages) {
if (sendConsole == null) {
messageQueue.push(...messages);
@@ -6734,10 +6861,6 @@ function setSendConsole(value, extra = {}) {
sendConsoleMessages(messages);
}
}
const originalConsole = /* @__PURE__ */ CONSOLE_TYPES.reduce((methods, type) => {
methods[type] = console[type].bind(console);
return methods;
}, {});
const atFileRegex = /^\s*at\s+[\w/./-]+:\d+$/;
function rewriteConsole() {
function wrapConsole(type) {
@@ -6752,6 +6875,18 @@ function rewriteConsole() {
{
originalConsole[type](...originalArgs);
}
if (type === "error" && args.length === 1) {
const arg = args[0];
if (typeof arg === "string" && arg.startsWith(EXCEPTION_BEGIN_MARK)) {
const startIndex = EXCEPTION_BEGIN_MARK.length;
const endIndex = arg.length - EXCEPTION_END_MARK.length;
sendErrorMessages([arg.slice(startIndex, endIndex)]);
return;
} else if (arg instanceof Error) {
sendErrorMessages([arg]);
return;
}
}
sendConsoleMessages([formatMessage(type, args)]);
};
}
@@ -6796,87 +6931,10 @@ function isConsoleWritable() {
console.log = value;
return isWritable;
}
let sendError = null;
const errorQueue = /* @__PURE__ */ new Set();
const errorExtra = {};
function sendErrorMessages(errors) {
if (sendError == null) {
errors.forEach((error) => {
errorQueue.add(error);
});
return;
}
const data = errors.map((err) => {
const isPromiseRejection = err && "promise" in err && "reason" in err;
const prefix = isPromiseRejection ? "UnhandledPromiseRejection: " : "";
if (isPromiseRejection) {
err = err.reason;
}
if (err instanceof Error && err.stack) {
if (err.message && !err.stack.includes(err.message)) {
return `${prefix}${err.message}
${err.stack}`;
}
return `${prefix}${err.stack}`;
}
if (typeof err === "object" && err !== null) {
try {
return prefix + JSON.stringify(err);
} catch (err2) {
return prefix + String(err2);
}
}
return prefix + String(err);
}).filter(Boolean);
if (data.length > 0) {
sendError(JSON.stringify(Object.assign({
type: "error",
data
}, errorExtra)));
}
}
function setSendError(value, extra = {}) {
sendError = value;
Object.assign(errorExtra, extra);
if (value != null && errorQueue.size > 0) {
const errors = Array.from(errorQueue);
errorQueue.clear();
sendErrorMessages(errors);
}
}
function initOnError() {
function onError2(error) {
try {
if (typeof PromiseRejectionEvent !== "undefined" && error instanceof PromiseRejectionEvent && error.reason instanceof Error && error.reason.message && error.reason.message.includes(`Cannot create property 'errMsg' on string 'taskId`)) {
return;
}
if (true) {
originalConsole.error(error);
}
sendErrorMessages([error]);
} catch (err) {
originalConsole.error(err);
}
}
if (typeof index.onError === "function") {
index.onError(onError2);
}
if (typeof index.onUnhandledRejection === "function") {
index.onUnhandledRejection(onError2);
}
return function offError2() {
if (typeof index.offError === "function") {
index.offError(onError2);
}
if (typeof index.offUnhandledRejection === "function") {
index.offUnhandledRejection(onError2);
}
};
}
function initRuntimeSocketService() {
const hosts = "127.0.0.1,192.168.10.9";
const hosts = "192.168.10.21,127.0.0.1";
const port = "8090";
const id = "mp-weixin_uN9NT1";
const id = "mp-weixin_ZQiCij";
const lazy = typeof swan !== "undefined";
let restoreError = lazy ? () => {
} : initOnError();
@@ -6892,13 +6950,19 @@ function initRuntimeSocketService() {
restoreError();
restoreConsole();
originalConsole.error(wrapError("开发模式下日志通道建立 socket 连接失败。"));
originalConsole.error(wrapError("如果是小程序平台,请勾选不校验合法域名配置。"));
{
originalConsole.error(wrapError("小程序平台,请勾选不校验合法域名配置。"));
}
originalConsole.error(wrapError("如果是运行到真机,请确认手机与电脑处于同一网络。"));
return false;
}
initMiniProgramGlobalFlag();
{
initMiniProgramGlobalFlag();
}
socket.onClose(() => {
originalConsole.error(wrapError("开发模式下日志通道 socket 连接关闭,请在 HBuilderX 中重新运行。"));
{
originalConsole.error(wrapError("开发模式下日志通道 socket 连接关闭,请在 HBuilderX 中重新运行。"));
}
restoreError();
restoreConsole();
});
@@ -7039,9 +7103,10 @@ function findVmByVueId(instance, vuePid) {
}
}
function getLocaleLanguage() {
var _a;
let localeLanguage = "";
{
const appBaseInfo = wx.getAppBaseInfo();
const appBaseInfo = ((_a = wx.getAppBaseInfo) === null || _a === void 0 ? void 0 : _a.call(wx)) || wx.getSystemInfoSync();
const language = appBaseInfo && appBaseInfo.language ? appBaseInfo.language : LOCALE_EN;
localeLanguage = normalizeLocale(language) || LOCALE_EN;
}
@@ -8747,6 +8812,10 @@ const $u = {
throttle
};
index.$u = $u;
const createHook = (lifecycle) => (hook, target = getCurrentInstance()) => {
!isInSSRComponentSetup && injectHook(lifecycle, hook, target);
};
const onLoad = /* @__PURE__ */ createHook(ON_LOAD);
exports._export_sfc = _export_sfc;
exports.createSSRApp = createSSRApp;
exports.e = e;
@@ -8754,5 +8823,8 @@ exports.f = f;
exports.index = index;
exports.n = n;
exports.o = o;
exports.onLoad = onLoad;
exports.reactive = reactive;
exports.ref = ref;
exports.t = t;
//# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map