2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/mixin/mixin.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var mixin_default = {
|
|
|
|
|
// 定义每个组件都可能需要用到的外部样式以及类名
|
|
|
|
|
props: {
|
|
|
|
|
// 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
|
|
|
|
|
customStyle: {
|
|
|
|
|
type: [Object, String],
|
|
|
|
|
default: () => ({})
|
|
|
|
|
},
|
|
|
|
|
customClass: {
|
|
|
|
|
type: String,
|
|
|
|
|
default: ""
|
|
|
|
|
},
|
|
|
|
|
// 跳转的页面路径
|
|
|
|
|
url: {
|
|
|
|
|
type: String,
|
|
|
|
|
default: ""
|
|
|
|
|
},
|
|
|
|
|
// 页面跳转的类型
|
|
|
|
|
linkType: {
|
|
|
|
|
type: String,
|
|
|
|
|
default: "navigateTo"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {};
|
|
|
|
|
},
|
|
|
|
|
onLoad() {
|
|
|
|
|
this.$u.getRect = this.$uGetRect;
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.$u.getRect = this.$uGetRect;
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
// 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
|
|
|
|
|
// 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
|
|
|
|
|
// 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
|
|
|
|
|
$u() {
|
|
|
|
|
return uni.$u.deepMerge(uni.$u, {
|
|
|
|
|
props: void 0,
|
|
|
|
|
http: void 0,
|
|
|
|
|
mixin: void 0
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 生成bem规则类名
|
|
|
|
|
* 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
|
|
|
|
|
* 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
|
|
|
|
|
* @param {String} name 组件名称
|
|
|
|
|
* @param {Array} fixed 一直会存在的类名
|
|
|
|
|
* @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
|
|
|
|
|
* @returns {Array|string}
|
|
|
|
|
*/
|
|
|
|
|
bem() {
|
|
|
|
|
return function(name, fixed, change) {
|
|
|
|
|
const prefix = `u-${name}--`;
|
|
|
|
|
const classes = {};
|
|
|
|
|
if (fixed) {
|
|
|
|
|
fixed.map((item) => {
|
|
|
|
|
classes[prefix + this[item]] = true;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (change) {
|
|
|
|
|
change.map((item) => {
|
|
|
|
|
this[item] ? classes[prefix + item] = this[item] : delete classes[prefix + item];
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
return Object.keys(classes);
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
// 跳转某一个页面
|
|
|
|
|
openPage(urlKey = "url") {
|
|
|
|
|
const url2 = this[urlKey];
|
|
|
|
|
if (url2) {
|
|
|
|
|
this.$u.route({ type: this.linkType, url: url2 });
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 查询节点信息
|
|
|
|
|
// 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
|
|
|
|
|
// 解决办法为在组件根部再套一个没有任何作用的view元素
|
|
|
|
|
$uGetRect(selector, all) {
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
uni.createSelectorQuery().in(this)[all ? "selectAll" : "select"](selector).boundingClientRect((rect) => {
|
|
|
|
|
if (all && Array.isArray(rect) && rect.length) {
|
|
|
|
|
resolve(rect);
|
|
|
|
|
}
|
|
|
|
|
if (!all && rect) {
|
|
|
|
|
resolve(rect);
|
|
|
|
|
}
|
|
|
|
|
}).exec();
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getParentData(parentName = "") {
|
|
|
|
|
if (!this.parent)
|
|
|
|
|
this.parent = {};
|
|
|
|
|
this.parent = uni.$u.$parent.call(this, parentName);
|
|
|
|
|
if (this.parent.children) {
|
|
|
|
|
this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
|
|
|
|
|
}
|
|
|
|
|
if (this.parent && this.parentData) {
|
|
|
|
|
Object.keys(this.parentData).map((key) => {
|
|
|
|
|
this.parentData[key] = this.parent[key];
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 阻止事件冒泡
|
|
|
|
|
preventEvent(e) {
|
|
|
|
|
e && typeof e.stopPropagation === "function" && e.stopPropagation();
|
|
|
|
|
},
|
|
|
|
|
// 空操作
|
|
|
|
|
noop(e) {
|
|
|
|
|
this.preventEvent(e);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onReachBottom() {
|
|
|
|
|
uni.$emit("uOnReachBottom");
|
|
|
|
|
},
|
|
|
|
|
beforeDestroy() {
|
|
|
|
|
if (this.parent && uni.$u.test.array(this.parent.children)) {
|
|
|
|
|
const childrenList = this.parent.children;
|
|
|
|
|
childrenList.map((child, index) => {
|
|
|
|
|
if (child === this) {
|
|
|
|
|
childrenList.splice(index, 1);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/mixin/mpMixin.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var mpMixin_default = {};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/utils.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var { toString } = Object.prototype;
|
|
|
|
|
function isArray(val) {
|
|
|
|
|
return toString.call(val) === "[object Array]";
|
|
|
|
|
}
|
|
|
|
|
function isObject(val) {
|
|
|
|
|
return val !== null && typeof val === "object";
|
|
|
|
|
}
|
|
|
|
|
function isDate(val) {
|
|
|
|
|
return toString.call(val) === "[object Date]";
|
|
|
|
|
}
|
|
|
|
|
function isURLSearchParams(val) {
|
|
|
|
|
return typeof URLSearchParams !== "undefined" && val instanceof URLSearchParams;
|
|
|
|
|
}
|
|
|
|
|
function forEach(obj, fn) {
|
|
|
|
|
if (obj === null || typeof obj === "undefined") {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (typeof obj !== "object") {
|
|
|
|
|
obj = [obj];
|
|
|
|
|
}
|
|
|
|
|
if (isArray(obj)) {
|
|
|
|
|
for (let i = 0, l = obj.length; i < l; i++) {
|
|
|
|
|
fn.call(null, obj[i], i, obj);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
for (const key in obj) {
|
|
|
|
|
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
|
|
|
fn.call(null, obj[key], key, obj);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function isPlainObject(obj) {
|
|
|
|
|
return Object.prototype.toString.call(obj) === "[object Object]";
|
|
|
|
|
}
|
|
|
|
|
function deepMerge() {
|
|
|
|
|
const result = {};
|
|
|
|
|
function assignValue(val, key) {
|
|
|
|
|
if (typeof result[key] === "object" && typeof val === "object") {
|
|
|
|
|
result[key] = deepMerge(result[key], val);
|
|
|
|
|
} else if (typeof val === "object") {
|
|
|
|
|
result[key] = deepMerge({}, val);
|
|
|
|
|
} else {
|
|
|
|
|
result[key] = val;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
for (let i = 0, l = arguments.length; i < l; i++) {
|
|
|
|
|
forEach(arguments[i], assignValue);
|
|
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
function isUndefined(val) {
|
|
|
|
|
return typeof val === "undefined";
|
|
|
|
|
}
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/helpers/buildURL.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
function encode(val) {
|
|
|
|
|
return encodeURIComponent(val).replace(/%40/gi, "@").replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
|
|
|
}
|
|
|
|
|
function buildURL(url2, params) {
|
|
|
|
|
if (!params) {
|
|
|
|
|
return url2;
|
|
|
|
|
}
|
|
|
|
|
let serializedParams;
|
|
|
|
|
if (isURLSearchParams(params)) {
|
|
|
|
|
serializedParams = params.toString();
|
|
|
|
|
} else {
|
|
|
|
|
const parts = [];
|
|
|
|
|
forEach(params, (val, key) => {
|
|
|
|
|
if (val === null || typeof val === "undefined") {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (isArray(val)) {
|
|
|
|
|
key = `${key}[]`;
|
|
|
|
|
} else {
|
|
|
|
|
val = [val];
|
|
|
|
|
}
|
|
|
|
|
forEach(val, (v) => {
|
|
|
|
|
if (isDate(v)) {
|
|
|
|
|
v = v.toISOString();
|
|
|
|
|
} else if (isObject(v)) {
|
|
|
|
|
v = JSON.stringify(v);
|
|
|
|
|
}
|
|
|
|
|
parts.push(`${encode(key)}=${encode(v)}`);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
serializedParams = parts.join("&");
|
|
|
|
|
}
|
|
|
|
|
if (serializedParams) {
|
|
|
|
|
const hashmarkIndex = url2.indexOf("#");
|
|
|
|
|
if (hashmarkIndex !== -1) {
|
|
|
|
|
url2 = url2.slice(0, hashmarkIndex);
|
|
|
|
|
}
|
|
|
|
|
url2 += (url2.indexOf("?") === -1 ? "?" : "&") + serializedParams;
|
|
|
|
|
}
|
|
|
|
|
return url2;
|
|
|
|
|
}
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/helpers/isAbsoluteURL.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
function isAbsoluteURL(url2) {
|
|
|
|
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
|
|
|
}
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/helpers/combineURLs.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
function combineURLs(baseURL, relativeURL) {
|
|
|
|
|
return relativeURL ? `${baseURL.replace(/\/+$/, "")}/${relativeURL.replace(/^\/+/, "")}` : baseURL;
|
|
|
|
|
}
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/buildFullPath.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
function buildFullPath(baseURL, requestedURL) {
|
|
|
|
|
if (baseURL && !isAbsoluteURL(requestedURL)) {
|
|
|
|
|
return combineURLs(baseURL, requestedURL);
|
|
|
|
|
}
|
|
|
|
|
return requestedURL;
|
|
|
|
|
}
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/settle.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
function settle(resolve, reject, response) {
|
|
|
|
|
const { validateStatus: validateStatus2 } = response.config;
|
|
|
|
|
const status = response.statusCode;
|
|
|
|
|
if (status && (!validateStatus2 || validateStatus2(status))) {
|
|
|
|
|
resolve(response);
|
|
|
|
|
} else {
|
|
|
|
|
reject(response);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/adapters/index.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var mergeKeys = (keys, config2) => {
|
|
|
|
|
const config = {};
|
|
|
|
|
keys.forEach((prop) => {
|
|
|
|
|
if (!isUndefined(config2[prop])) {
|
|
|
|
|
config[prop] = config2[prop];
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return config;
|
|
|
|
|
};
|
|
|
|
|
var adapters_default = (config) => new Promise((resolve, reject) => {
|
|
|
|
|
const fullPath = buildURL(buildFullPath(config.baseURL, config.url), config.params);
|
|
|
|
|
const _config = {
|
|
|
|
|
url: fullPath,
|
|
|
|
|
header: config.header,
|
|
|
|
|
complete: (response) => {
|
|
|
|
|
config.fullPath = fullPath;
|
|
|
|
|
response.config = config;
|
|
|
|
|
try {
|
|
|
|
|
if (typeof response.data === "string") {
|
|
|
|
|
response.data = JSON.parse(response.data);
|
|
|
|
|
}
|
|
|
|
|
} catch (e) {
|
|
|
|
|
}
|
|
|
|
|
settle(resolve, reject, response);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
let requestTask;
|
|
|
|
|
if (config.method === "UPLOAD") {
|
|
|
|
|
delete _config.header["content-type"];
|
|
|
|
|
delete _config.header["Content-Type"];
|
|
|
|
|
const otherConfig = {
|
|
|
|
|
filePath: config.filePath,
|
|
|
|
|
name: config.name
|
|
|
|
|
};
|
|
|
|
|
const optionalKeys = [
|
|
|
|
|
"files",
|
|
|
|
|
"file",
|
|
|
|
|
"timeout",
|
|
|
|
|
"formData"
|
|
|
|
|
];
|
|
|
|
|
requestTask = uni.uploadFile({ ..._config, ...otherConfig, ...mergeKeys(optionalKeys, config) });
|
|
|
|
|
} else if (config.method === "DOWNLOAD") {
|
|
|
|
|
if (!isUndefined(config.timeout)) {
|
|
|
|
|
_config.timeout = config.timeout;
|
|
|
|
|
}
|
|
|
|
|
requestTask = uni.downloadFile(_config);
|
|
|
|
|
} else {
|
|
|
|
|
const optionalKeys = [
|
|
|
|
|
"data",
|
|
|
|
|
"method",
|
|
|
|
|
"timeout",
|
|
|
|
|
"dataType",
|
|
|
|
|
"responseType",
|
|
|
|
|
"withCredentials"
|
|
|
|
|
];
|
|
|
|
|
requestTask = uni.request({ ..._config, ...mergeKeys(optionalKeys, config) });
|
|
|
|
|
}
|
|
|
|
|
if (config.getTask) {
|
|
|
|
|
config.getTask(requestTask, config);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/dispatchRequest.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var dispatchRequest_default = (config) => adapters_default(config);
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/InterceptorManager.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
function InterceptorManager() {
|
|
|
|
|
this.handlers = [];
|
|
|
|
|
}
|
|
|
|
|
InterceptorManager.prototype.use = function use(fulfilled, rejected) {
|
|
|
|
|
this.handlers.push({
|
|
|
|
|
fulfilled,
|
|
|
|
|
rejected
|
|
|
|
|
});
|
|
|
|
|
return this.handlers.length - 1;
|
|
|
|
|
};
|
|
|
|
|
InterceptorManager.prototype.eject = function eject(id) {
|
|
|
|
|
if (this.handlers[id]) {
|
|
|
|
|
this.handlers[id] = null;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
InterceptorManager.prototype.forEach = function forEach2(fn) {
|
|
|
|
|
this.handlers.forEach((h) => {
|
|
|
|
|
if (h !== null) {
|
|
|
|
|
fn(h);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
var InterceptorManager_default = InterceptorManager;
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/mergeConfig.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var mergeKeys2 = (keys, globalsConfig, config2) => {
|
|
|
|
|
const config = {};
|
|
|
|
|
keys.forEach((prop) => {
|
|
|
|
|
if (!isUndefined(config2[prop])) {
|
|
|
|
|
config[prop] = config2[prop];
|
|
|
|
|
} else if (!isUndefined(globalsConfig[prop])) {
|
|
|
|
|
config[prop] = globalsConfig[prop];
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return config;
|
|
|
|
|
};
|
|
|
|
|
var mergeConfig_default = (globalsConfig, config2 = {}) => {
|
|
|
|
|
const method = config2.method || globalsConfig.method || "GET";
|
|
|
|
|
let config = {
|
|
|
|
|
baseURL: globalsConfig.baseURL || "",
|
|
|
|
|
method,
|
|
|
|
|
url: config2.url || "",
|
|
|
|
|
params: config2.params || {},
|
|
|
|
|
custom: { ...globalsConfig.custom || {}, ...config2.custom || {} },
|
|
|
|
|
header: deepMerge(globalsConfig.header || {}, config2.header || {})
|
|
|
|
|
};
|
|
|
|
|
const defaultToConfig2Keys = ["getTask", "validateStatus"];
|
|
|
|
|
config = { ...config, ...mergeKeys2(defaultToConfig2Keys, globalsConfig, config2) };
|
|
|
|
|
if (method === "DOWNLOAD") {
|
|
|
|
|
if (!isUndefined(config2.timeout)) {
|
|
|
|
|
config.timeout = config2.timeout;
|
|
|
|
|
} else if (!isUndefined(globalsConfig.timeout)) {
|
|
|
|
|
config.timeout = globalsConfig.timeout;
|
|
|
|
|
}
|
|
|
|
|
} else if (method === "UPLOAD") {
|
|
|
|
|
delete config.header["content-type"];
|
|
|
|
|
delete config.header["Content-Type"];
|
|
|
|
|
const uploadKeys = [
|
|
|
|
|
"files",
|
|
|
|
|
"file",
|
|
|
|
|
"filePath",
|
|
|
|
|
"name",
|
|
|
|
|
"timeout",
|
|
|
|
|
"formData"
|
|
|
|
|
];
|
|
|
|
|
uploadKeys.forEach((prop) => {
|
|
|
|
|
if (!isUndefined(config2[prop])) {
|
|
|
|
|
config[prop] = config2[prop];
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
if (isUndefined(config.timeout) && !isUndefined(globalsConfig.timeout)) {
|
|
|
|
|
config.timeout = globalsConfig.timeout;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
const defaultsKeys = [
|
|
|
|
|
"data",
|
|
|
|
|
"timeout",
|
|
|
|
|
"dataType",
|
|
|
|
|
"responseType",
|
|
|
|
|
"withCredentials"
|
|
|
|
|
];
|
|
|
|
|
config = { ...config, ...mergeKeys2(defaultsKeys, globalsConfig, config2) };
|
|
|
|
|
}
|
|
|
|
|
return config;
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/defaults.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var defaults_default = {
|
|
|
|
|
baseURL: "",
|
|
|
|
|
header: {},
|
|
|
|
|
method: "GET",
|
|
|
|
|
dataType: "json",
|
|
|
|
|
responseType: "text",
|
|
|
|
|
custom: {},
|
|
|
|
|
timeout: 6e4,
|
|
|
|
|
withCredentials: false,
|
|
|
|
|
validateStatus: function validateStatus(status) {
|
|
|
|
|
return status >= 200 && status < 300;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/utils/clone.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var clone = function() {
|
|
|
|
|
"use strict";
|
|
|
|
|
function _instanceof(obj, type) {
|
|
|
|
|
return type != null && obj instanceof type;
|
|
|
|
|
}
|
|
|
|
|
var nativeMap;
|
|
|
|
|
try {
|
|
|
|
|
nativeMap = Map;
|
|
|
|
|
} catch (_) {
|
|
|
|
|
nativeMap = function() {
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
var nativeSet;
|
|
|
|
|
try {
|
|
|
|
|
nativeSet = Set;
|
|
|
|
|
} catch (_) {
|
|
|
|
|
nativeSet = function() {
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
var nativePromise;
|
|
|
|
|
try {
|
|
|
|
|
nativePromise = Promise;
|
|
|
|
|
} catch (_) {
|
|
|
|
|
nativePromise = function() {
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
function clone2(parent, circular, depth, prototype, includeNonEnumerable) {
|
|
|
|
|
if (typeof circular === "object") {
|
|
|
|
|
depth = circular.depth;
|
|
|
|
|
prototype = circular.prototype;
|
|
|
|
|
includeNonEnumerable = circular.includeNonEnumerable;
|
|
|
|
|
circular = circular.circular;
|
|
|
|
|
}
|
|
|
|
|
var allParents = [];
|
|
|
|
|
var allChildren = [];
|
|
|
|
|
var useBuffer = typeof Buffer != "undefined";
|
|
|
|
|
if (typeof circular == "undefined")
|
|
|
|
|
circular = true;
|
|
|
|
|
if (typeof depth == "undefined")
|
|
|
|
|
depth = Infinity;
|
|
|
|
|
function _clone(parent2, depth2) {
|
|
|
|
|
if (parent2 === null)
|
|
|
|
|
return null;
|
|
|
|
|
if (depth2 === 0)
|
|
|
|
|
return parent2;
|
|
|
|
|
var child;
|
|
|
|
|
var proto;
|
|
|
|
|
if (typeof parent2 != "object") {
|
|
|
|
|
return parent2;
|
|
|
|
|
}
|
|
|
|
|
if (_instanceof(parent2, nativeMap)) {
|
|
|
|
|
child = new nativeMap();
|
|
|
|
|
} else if (_instanceof(parent2, nativeSet)) {
|
|
|
|
|
child = new nativeSet();
|
|
|
|
|
} else if (_instanceof(parent2, nativePromise)) {
|
|
|
|
|
child = new nativePromise(function(resolve, reject) {
|
|
|
|
|
parent2.then(function(value) {
|
|
|
|
|
resolve(_clone(value, depth2 - 1));
|
|
|
|
|
}, function(err) {
|
|
|
|
|
reject(_clone(err, depth2 - 1));
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
} else if (clone2.__isArray(parent2)) {
|
|
|
|
|
child = [];
|
|
|
|
|
} else if (clone2.__isRegExp(parent2)) {
|
|
|
|
|
child = new RegExp(parent2.source, __getRegExpFlags(parent2));
|
|
|
|
|
if (parent2.lastIndex)
|
|
|
|
|
child.lastIndex = parent2.lastIndex;
|
|
|
|
|
} else if (clone2.__isDate(parent2)) {
|
|
|
|
|
child = new Date(parent2.getTime());
|
|
|
|
|
} else if (useBuffer && Buffer.isBuffer(parent2)) {
|
|
|
|
|
if (Buffer.from) {
|
|
|
|
|
child = Buffer.from(parent2);
|
|
|
|
|
} else {
|
|
|
|
|
child = new Buffer(parent2.length);
|
|
|
|
|
parent2.copy(child);
|
|
|
|
|
}
|
|
|
|
|
return child;
|
|
|
|
|
} else if (_instanceof(parent2, Error)) {
|
|
|
|
|
child = Object.create(parent2);
|
|
|
|
|
} else {
|
|
|
|
|
if (typeof prototype == "undefined") {
|
|
|
|
|
proto = Object.getPrototypeOf(parent2);
|
|
|
|
|
child = Object.create(proto);
|
|
|
|
|
} else {
|
|
|
|
|
child = Object.create(prototype);
|
|
|
|
|
proto = prototype;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (circular) {
|
|
|
|
|
var index = allParents.indexOf(parent2);
|
|
|
|
|
if (index != -1) {
|
|
|
|
|
return allChildren[index];
|
|
|
|
|
}
|
|
|
|
|
allParents.push(parent2);
|
|
|
|
|
allChildren.push(child);
|
|
|
|
|
}
|
|
|
|
|
if (_instanceof(parent2, nativeMap)) {
|
|
|
|
|
parent2.forEach(function(value, key) {
|
|
|
|
|
var keyChild = _clone(key, depth2 - 1);
|
|
|
|
|
var valueChild = _clone(value, depth2 - 1);
|
|
|
|
|
child.set(keyChild, valueChild);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (_instanceof(parent2, nativeSet)) {
|
|
|
|
|
parent2.forEach(function(value) {
|
|
|
|
|
var entryChild = _clone(value, depth2 - 1);
|
|
|
|
|
child.add(entryChild);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
for (var i in parent2) {
|
|
|
|
|
var attrs = Object.getOwnPropertyDescriptor(parent2, i);
|
|
|
|
|
if (attrs) {
|
|
|
|
|
child[i] = _clone(parent2[i], depth2 - 1);
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
var objProperty = Object.getOwnPropertyDescriptor(parent2, i);
|
|
|
|
|
if (objProperty.set === "undefined") {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
child[i] = _clone(parent2[i], depth2 - 1);
|
|
|
|
|
} catch (e) {
|
|
|
|
|
if (e instanceof TypeError) {
|
|
|
|
|
continue;
|
|
|
|
|
} else if (e instanceof ReferenceError) {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (Object.getOwnPropertySymbols) {
|
|
|
|
|
var symbols = Object.getOwnPropertySymbols(parent2);
|
|
|
|
|
for (var i = 0; i < symbols.length; i++) {
|
|
|
|
|
var symbol = symbols[i];
|
|
|
|
|
var descriptor = Object.getOwnPropertyDescriptor(parent2, symbol);
|
|
|
|
|
if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
child[symbol] = _clone(parent2[symbol], depth2 - 1);
|
|
|
|
|
Object.defineProperty(child, symbol, descriptor);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (includeNonEnumerable) {
|
|
|
|
|
var allPropertyNames = Object.getOwnPropertyNames(parent2);
|
|
|
|
|
for (var i = 0; i < allPropertyNames.length; i++) {
|
|
|
|
|
var propertyName = allPropertyNames[i];
|
|
|
|
|
var descriptor = Object.getOwnPropertyDescriptor(parent2, propertyName);
|
|
|
|
|
if (descriptor && descriptor.enumerable) {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
child[propertyName] = _clone(parent2[propertyName], depth2 - 1);
|
|
|
|
|
Object.defineProperty(child, propertyName, descriptor);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return child;
|
|
|
|
|
}
|
|
|
|
|
return _clone(parent, depth);
|
|
|
|
|
}
|
|
|
|
|
clone2.clonePrototype = function clonePrototype(parent) {
|
|
|
|
|
if (parent === null)
|
|
|
|
|
return null;
|
|
|
|
|
var c = function() {
|
|
|
|
|
};
|
|
|
|
|
c.prototype = parent;
|
|
|
|
|
return new c();
|
|
|
|
|
};
|
|
|
|
|
function __objToStr(o) {
|
|
|
|
|
return Object.prototype.toString.call(o);
|
|
|
|
|
}
|
|
|
|
|
clone2.__objToStr = __objToStr;
|
|
|
|
|
function __isDate(o) {
|
|
|
|
|
return typeof o === "object" && __objToStr(o) === "[object Date]";
|
|
|
|
|
}
|
|
|
|
|
clone2.__isDate = __isDate;
|
|
|
|
|
function __isArray(o) {
|
|
|
|
|
return typeof o === "object" && __objToStr(o) === "[object Array]";
|
|
|
|
|
}
|
|
|
|
|
clone2.__isArray = __isArray;
|
|
|
|
|
function __isRegExp(o) {
|
|
|
|
|
return typeof o === "object" && __objToStr(o) === "[object RegExp]";
|
|
|
|
|
}
|
|
|
|
|
clone2.__isRegExp = __isRegExp;
|
|
|
|
|
function __getRegExpFlags(re) {
|
|
|
|
|
var flags = "";
|
|
|
|
|
if (re.global)
|
|
|
|
|
flags += "g";
|
|
|
|
|
if (re.ignoreCase)
|
|
|
|
|
flags += "i";
|
|
|
|
|
if (re.multiline)
|
|
|
|
|
flags += "m";
|
|
|
|
|
return flags;
|
|
|
|
|
}
|
|
|
|
|
clone2.__getRegExpFlags = __getRegExpFlags;
|
|
|
|
|
return clone2;
|
|
|
|
|
}();
|
|
|
|
|
var clone_default = clone;
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/Request.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var Request = class {
|
|
|
|
|
/**
|
|
|
|
|
* @param {Object} arg - 全局配置
|
|
|
|
|
* @param {String} arg.baseURL - 全局根路径
|
|
|
|
|
* @param {Object} arg.header - 全局header
|
|
|
|
|
* @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
|
|
|
|
|
* @param {String} arg.dataType = [json] - 全局默认的dataType
|
|
|
|
|
* @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
|
|
|
|
|
* @param {Object} arg.custom - 全局默认的自定义参数
|
|
|
|
|
* @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
|
|
|
|
|
* @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
|
|
|
|
|
* @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
|
|
|
|
|
* @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
|
|
|
|
|
* @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
|
|
|
|
|
*/
|
|
|
|
|
constructor(arg = {}) {
|
|
|
|
|
if (!isPlainObject(arg)) {
|
|
|
|
|
arg = {};
|
|
|
|
|
console.warn("设置全局参数必须接收一个Object");
|
|
|
|
|
}
|
|
|
|
|
this.config = clone_default({ ...defaults_default, ...arg });
|
|
|
|
|
this.interceptors = {
|
|
|
|
|
request: new InterceptorManager_default(),
|
|
|
|
|
response: new InterceptorManager_default()
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* @Function
|
|
|
|
|
* @param {Request~setConfigCallback} f - 设置全局默认配置
|
|
|
|
|
*/
|
|
|
|
|
setConfig(f) {
|
|
|
|
|
this.config = f(this.config);
|
|
|
|
|
}
|
|
|
|
|
middleware(config) {
|
|
|
|
|
config = mergeConfig_default(this.config, config);
|
|
|
|
|
const chain = [dispatchRequest_default, void 0];
|
|
|
|
|
let promise2 = Promise.resolve(config);
|
|
|
|
|
this.interceptors.request.forEach((interceptor) => {
|
|
|
|
|
chain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
|
|
|
});
|
|
|
|
|
this.interceptors.response.forEach((interceptor) => {
|
|
|
|
|
chain.push(interceptor.fulfilled, interceptor.rejected);
|
|
|
|
|
});
|
|
|
|
|
while (chain.length) {
|
|
|
|
|
promise2 = promise2.then(chain.shift(), chain.shift());
|
|
|
|
|
}
|
|
|
|
|
return promise2;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* @Function
|
|
|
|
|
* @param {Object} config - 请求配置项
|
|
|
|
|
* @prop {String} options.url - 请求路径
|
|
|
|
|
* @prop {Object} options.data - 请求参数
|
|
|
|
|
* @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
|
|
|
|
|
* @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
|
|
|
|
|
* @prop {Object} [options.header = config.header] - 请求header
|
|
|
|
|
* @prop {Object} [options.method = config.method] - 请求方法
|
|
|
|
|
* @returns {Promise<unknown>}
|
|
|
|
|
*/
|
|
|
|
|
request(config = {}) {
|
|
|
|
|
return this.middleware(config);
|
|
|
|
|
}
|
|
|
|
|
get(url2, options = {}) {
|
|
|
|
|
return this.middleware({
|
|
|
|
|
url: url2,
|
|
|
|
|
method: "GET",
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
post(url2, data, options = {}) {
|
|
|
|
|
return this.middleware({
|
|
|
|
|
url: url2,
|
|
|
|
|
data,
|
|
|
|
|
method: "POST",
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
put(url2, data, options = {}) {
|
|
|
|
|
return this.middleware({
|
|
|
|
|
url: url2,
|
|
|
|
|
data,
|
|
|
|
|
method: "PUT",
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
delete(url2, data, options = {}) {
|
|
|
|
|
return this.middleware({
|
|
|
|
|
url: url2,
|
|
|
|
|
data,
|
|
|
|
|
method: "DELETE",
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
connect(url2, data, options = {}) {
|
|
|
|
|
return this.middleware({
|
|
|
|
|
url: url2,
|
|
|
|
|
data,
|
|
|
|
|
method: "CONNECT",
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
head(url2, data, options = {}) {
|
|
|
|
|
return this.middleware({
|
|
|
|
|
url: url2,
|
|
|
|
|
data,
|
|
|
|
|
method: "HEAD",
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
options(url2, data, options = {}) {
|
|
|
|
|
return this.middleware({
|
|
|
|
|
url: url2,
|
|
|
|
|
data,
|
|
|
|
|
method: "OPTIONS",
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
trace(url2, data, options = {}) {
|
|
|
|
|
return this.middleware({
|
|
|
|
|
url: url2,
|
|
|
|
|
data,
|
|
|
|
|
method: "TRACE",
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
upload(url2, config = {}) {
|
|
|
|
|
config.url = url2;
|
|
|
|
|
config.method = "UPLOAD";
|
|
|
|
|
return this.middleware(config);
|
|
|
|
|
}
|
|
|
|
|
download(url2, config = {}) {
|
|
|
|
|
config.url = url2;
|
|
|
|
|
config.method = "DOWNLOAD";
|
|
|
|
|
return this.middleware(config);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/index.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var luch_request_default = Request;
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/util/route.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var Router = class {
|
|
|
|
|
constructor() {
|
|
|
|
|
this.config = {
|
|
|
|
|
type: "navigateTo",
|
|
|
|
|
url: "",
|
|
|
|
|
delta: 1,
|
|
|
|
|
// navigateBack页面后退时,回退的层数
|
|
|
|
|
params: {},
|
|
|
|
|
// 传递的参数
|
|
|
|
|
animationType: "pop-in",
|
|
|
|
|
// 窗口动画,只在APP有效
|
|
|
|
|
animationDuration: 300,
|
|
|
|
|
// 窗口动画持续时间,单位毫秒,只在APP有效
|
|
|
|
|
intercept: false
|
|
|
|
|
// 是否需要拦截
|
|
|
|
|
};
|
|
|
|
|
this.route = this.route.bind(this);
|
|
|
|
|
}
|
|
|
|
|
// 判断url前面是否有"/",如果没有则加上,否则无法跳转
|
|
|
|
|
addRootPath(url2) {
|
|
|
|
|
return url2[0] === "/" ? url2 : `/${url2}`;
|
|
|
|
|
}
|
|
|
|
|
// 整合路由参数
|
|
|
|
|
mixinParam(url2, params) {
|
|
|
|
|
url2 = url2 && this.addRootPath(url2);
|
|
|
|
|
let query = "";
|
|
|
|
|
if (/.*\/.*\?.*=.*/.test(url2)) {
|
|
|
|
|
query = uni.$u.queryParams(params, false);
|
|
|
|
|
return url2 += `&${query}`;
|
|
|
|
|
}
|
|
|
|
|
query = uni.$u.queryParams(params);
|
|
|
|
|
return url2 += query;
|
|
|
|
|
}
|
|
|
|
|
// 对外的方法名称
|
|
|
|
|
async route(options = {}, params = {}) {
|
|
|
|
|
let mergeConfig = {};
|
|
|
|
|
if (typeof options === "string") {
|
|
|
|
|
mergeConfig.url = this.mixinParam(options, params);
|
|
|
|
|
mergeConfig.type = "navigateTo";
|
|
|
|
|
} else {
|
|
|
|
|
mergeConfig = uni.$u.deepMerge(this.config, options);
|
|
|
|
|
mergeConfig.url = this.mixinParam(options.url, options.params);
|
|
|
|
|
}
|
|
|
|
|
if (mergeConfig.url === uni.$u.page())
|
|
|
|
|
return;
|
|
|
|
|
if (params.intercept) {
|
|
|
|
|
this.config.intercept = params.intercept;
|
|
|
|
|
}
|
|
|
|
|
mergeConfig.params = params;
|
|
|
|
|
mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
|
|
|
|
|
if (typeof uni.$u.routeIntercept === "function") {
|
|
|
|
|
const isNext = await new Promise((resolve, reject) => {
|
|
|
|
|
uni.$u.routeIntercept(mergeConfig, resolve);
|
|
|
|
|
});
|
|
|
|
|
isNext && this.openPage(mergeConfig);
|
|
|
|
|
} else {
|
|
|
|
|
this.openPage(mergeConfig);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 执行路由跳转
|
|
|
|
|
openPage(config) {
|
|
|
|
|
const {
|
|
|
|
|
url: url2,
|
|
|
|
|
type,
|
|
|
|
|
delta,
|
|
|
|
|
animationType,
|
|
|
|
|
animationDuration
|
|
|
|
|
} = config;
|
|
|
|
|
if (config.type == "navigateTo" || config.type == "to") {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: url2,
|
|
|
|
|
animationType,
|
|
|
|
|
animationDuration
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (config.type == "redirectTo" || config.type == "redirect") {
|
|
|
|
|
uni.redirectTo({
|
|
|
|
|
url: url2
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (config.type == "switchTab" || config.type == "tab") {
|
|
|
|
|
uni.switchTab({
|
|
|
|
|
url: url2
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (config.type == "reLaunch" || config.type == "launch") {
|
|
|
|
|
uni.reLaunch({
|
|
|
|
|
url: url2
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (config.type == "navigateBack" || config.type == "back") {
|
|
|
|
|
uni.navigateBack({
|
|
|
|
|
delta
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
var route_default = new Router().route;
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/colorGradient.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
function colorGradient(startColor = "rgb(0, 0, 0)", endColor = "rgb(255, 255, 255)", step = 10) {
|
|
|
|
|
const startRGB = hexToRgb(startColor, false);
|
|
|
|
|
const startR = startRGB[0];
|
|
|
|
|
const startG = startRGB[1];
|
|
|
|
|
const startB = startRGB[2];
|
|
|
|
|
const endRGB = hexToRgb(endColor, false);
|
|
|
|
|
const endR = endRGB[0];
|
|
|
|
|
const endG = endRGB[1];
|
|
|
|
|
const endB = endRGB[2];
|
|
|
|
|
const sR = (endR - startR) / step;
|
|
|
|
|
const sG = (endG - startG) / step;
|
|
|
|
|
const sB = (endB - startB) / step;
|
|
|
|
|
const colorArr = [];
|
|
|
|
|
for (let i = 0; i < step; i++) {
|
|
|
|
|
let hex = rgbToHex(`rgb(${Math.round(sR * i + startR)},${Math.round(sG * i + startG)},${Math.round(sB * i + startB)})`);
|
|
|
|
|
if (i === 0)
|
|
|
|
|
hex = rgbToHex(startColor);
|
|
|
|
|
if (i === step - 1)
|
|
|
|
|
hex = rgbToHex(endColor);
|
|
|
|
|
colorArr.push(hex);
|
|
|
|
|
}
|
|
|
|
|
return colorArr;
|
|
|
|
|
}
|
|
|
|
|
function hexToRgb(sColor, str = true) {
|
|
|
|
|
const reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
|
|
|
|
|
sColor = String(sColor).toLowerCase();
|
|
|
|
|
if (sColor && reg.test(sColor)) {
|
|
|
|
|
if (sColor.length === 4) {
|
|
|
|
|
let sColorNew = "#";
|
|
|
|
|
for (let i = 1; i < 4; i += 1) {
|
|
|
|
|
sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
|
|
|
|
|
}
|
|
|
|
|
sColor = sColorNew;
|
|
|
|
|
}
|
|
|
|
|
const sColorChange = [];
|
|
|
|
|
for (let i = 1; i < 7; i += 2) {
|
|
|
|
|
sColorChange.push(parseInt(`0x${sColor.slice(i, i + 2)}`));
|
|
|
|
|
}
|
|
|
|
|
if (!str) {
|
|
|
|
|
return sColorChange;
|
|
|
|
|
}
|
|
|
|
|
return `rgb(${sColorChange[0]},${sColorChange[1]},${sColorChange[2]})`;
|
|
|
|
|
}
|
|
|
|
|
if (/^(rgb|RGB)/.test(sColor)) {
|
|
|
|
|
const arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, "").split(",");
|
|
|
|
|
return arr.map((val) => Number(val));
|
|
|
|
|
}
|
|
|
|
|
return sColor;
|
|
|
|
|
}
|
|
|
|
|
function rgbToHex(rgb) {
|
|
|
|
|
const _this = rgb;
|
|
|
|
|
const reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
|
|
|
|
|
if (/^(rgb|RGB)/.test(_this)) {
|
|
|
|
|
const aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, "").split(",");
|
|
|
|
|
let strHex = "#";
|
|
|
|
|
for (let i = 0; i < aColor.length; i++) {
|
|
|
|
|
let hex = Number(aColor[i]).toString(16);
|
|
|
|
|
hex = String(hex).length == 1 ? `${0}${hex}` : hex;
|
|
|
|
|
if (hex === "0") {
|
|
|
|
|
hex += hex;
|
|
|
|
|
}
|
|
|
|
|
strHex += hex;
|
|
|
|
|
}
|
|
|
|
|
if (strHex.length !== 7) {
|
|
|
|
|
strHex = _this;
|
|
|
|
|
}
|
|
|
|
|
return strHex;
|
|
|
|
|
}
|
|
|
|
|
if (reg.test(_this)) {
|
|
|
|
|
const aNum = _this.replace(/#/, "").split("");
|
|
|
|
|
if (aNum.length === 6) {
|
|
|
|
|
return _this;
|
|
|
|
|
}
|
|
|
|
|
if (aNum.length === 3) {
|
|
|
|
|
let numHex = "#";
|
|
|
|
|
for (let i = 0; i < aNum.length; i += 1) {
|
|
|
|
|
numHex += aNum[i] + aNum[i];
|
|
|
|
|
}
|
|
|
|
|
return numHex;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
return _this;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function colorToRgba(color6, alpha) {
|
|
|
|
|
color6 = rgbToHex(color6);
|
|
|
|
|
const reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
|
|
|
|
|
let sColor = String(color6).toLowerCase();
|
|
|
|
|
if (sColor && reg.test(sColor)) {
|
|
|
|
|
if (sColor.length === 4) {
|
|
|
|
|
let sColorNew = "#";
|
|
|
|
|
for (let i = 1; i < 4; i += 1) {
|
|
|
|
|
sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
|
|
|
|
|
}
|
|
|
|
|
sColor = sColorNew;
|
|
|
|
|
}
|
|
|
|
|
const sColorChange = [];
|
|
|
|
|
for (let i = 1; i < 7; i += 2) {
|
|
|
|
|
sColorChange.push(parseInt(`0x${sColor.slice(i, i + 2)}`));
|
|
|
|
|
}
|
|
|
|
|
return `rgba(${sColorChange.join(",")},${alpha})`;
|
|
|
|
|
}
|
|
|
|
|
return sColor;
|
|
|
|
|
}
|
|
|
|
|
var colorGradient_default = {
|
|
|
|
|
colorGradient,
|
|
|
|
|
hexToRgb,
|
|
|
|
|
rgbToHex,
|
|
|
|
|
colorToRgba
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/test.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
function email(value) {
|
|
|
|
|
return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
|
|
|
|
|
}
|
|
|
|
|
function mobile(value) {
|
|
|
|
|
return /^1[23456789]\d{9}$/.test(value);
|
|
|
|
|
}
|
|
|
|
|
function url(value) {
|
|
|
|
|
return /^((https|http|ftp|rtsp|mms):\/\/)(([0-9a-zA-Z_!~*'().&=+$%-]+: )?[0-9a-zA-Z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-zA-Z_!~*'()-]+.)*([0-9a-zA-Z][0-9a-zA-Z-]{0,61})?[0-9a-zA-Z].[a-zA-Z]{2,6})(:[0-9]{1,4})?((\/?)|(\/[0-9a-zA-Z_!~*'().;?:@&=+$,%#-]+)+\/?)$/.test(value);
|
|
|
|
|
}
|
|
|
|
|
function date(value) {
|
|
|
|
|
if (!value)
|
|
|
|
|
return false;
|
|
|
|
|
if (number(value))
|
|
|
|
|
value = +value;
|
|
|
|
|
return !/Invalid|NaN/.test(new Date(value).toString());
|
|
|
|
|
}
|
|
|
|
|
function dateISO(value) {
|
|
|
|
|
return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
|
|
|
|
|
}
|
|
|
|
|
function number(value) {
|
|
|
|
|
return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
|
|
|
|
|
}
|
|
|
|
|
function string(value) {
|
|
|
|
|
return typeof value === "string";
|
|
|
|
|
}
|
|
|
|
|
function digits(value) {
|
|
|
|
|
return /^\d+$/.test(value);
|
|
|
|
|
}
|
|
|
|
|
function idCard(value) {
|
|
|
|
|
return /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(
|
|
|
|
|
value
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
function carNo(value) {
|
|
|
|
|
const xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
|
|
|
|
|
const creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
|
|
|
|
|
if (value.length === 7) {
|
|
|
|
|
return creg.test(value);
|
|
|
|
|
}
|
|
|
|
|
if (value.length === 8) {
|
|
|
|
|
return xreg.test(value);
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
function amount(value) {
|
|
|
|
|
return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
|
|
|
|
|
}
|
|
|
|
|
function chinese(value) {
|
|
|
|
|
const reg = /^[\u4e00-\u9fa5]+$/gi;
|
|
|
|
|
return reg.test(value);
|
|
|
|
|
}
|
|
|
|
|
function letter(value) {
|
|
|
|
|
return /^[a-zA-Z]*$/.test(value);
|
|
|
|
|
}
|
|
|
|
|
function enOrNum(value) {
|
|
|
|
|
const reg = /^[0-9a-zA-Z]*$/g;
|
|
|
|
|
return reg.test(value);
|
|
|
|
|
}
|
|
|
|
|
function contains(value, param) {
|
|
|
|
|
return value.indexOf(param) >= 0;
|
|
|
|
|
}
|
|
|
|
|
function range(value, param) {
|
|
|
|
|
return value >= param[0] && value <= param[1];
|
|
|
|
|
}
|
|
|
|
|
function rangeLength(value, param) {
|
|
|
|
|
return value.length >= param[0] && value.length <= param[1];
|
|
|
|
|
}
|
|
|
|
|
function landline(value) {
|
|
|
|
|
const reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
|
|
|
|
|
return reg.test(value);
|
|
|
|
|
}
|
|
|
|
|
function empty(value) {
|
|
|
|
|
switch (typeof value) {
|
|
|
|
|
case "undefined":
|
|
|
|
|
return true;
|
|
|
|
|
case "string":
|
|
|
|
|
if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, "").length == 0)
|
|
|
|
|
return true;
|
|
|
|
|
break;
|
|
|
|
|
case "boolean":
|
|
|
|
|
if (!value)
|
|
|
|
|
return true;
|
|
|
|
|
break;
|
|
|
|
|
case "number":
|
|
|
|
|
if (value === 0 || isNaN(value))
|
|
|
|
|
return true;
|
|
|
|
|
break;
|
|
|
|
|
case "object":
|
|
|
|
|
if (value === null || value.length === 0)
|
|
|
|
|
return true;
|
|
|
|
|
for (const i in value) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
function jsonString(value) {
|
|
|
|
|
if (typeof value === "string") {
|
|
|
|
|
try {
|
|
|
|
|
const obj = JSON.parse(value);
|
|
|
|
|
if (typeof obj === "object" && obj) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
} catch (e) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
function array(value) {
|
|
|
|
|
if (typeof Array.isArray === "function") {
|
|
|
|
|
return Array.isArray(value);
|
|
|
|
|
}
|
|
|
|
|
return Object.prototype.toString.call(value) === "[object Array]";
|
|
|
|
|
}
|
|
|
|
|
function object(value) {
|
|
|
|
|
return Object.prototype.toString.call(value) === "[object Object]";
|
|
|
|
|
}
|
|
|
|
|
function code(value, len = 6) {
|
|
|
|
|
return new RegExp(`^\\d{${len}}$`).test(value);
|
|
|
|
|
}
|
|
|
|
|
function func(value) {
|
|
|
|
|
return typeof value === "function";
|
|
|
|
|
}
|
|
|
|
|
function promise(value) {
|
|
|
|
|
return object(value) && func(value.then) && func(value.catch);
|
|
|
|
|
}
|
|
|
|
|
function image(value) {
|
|
|
|
|
const newValue = value.split("?")[0];
|
|
|
|
|
const IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
|
|
|
|
|
return IMAGE_REGEXP.test(newValue);
|
|
|
|
|
}
|
|
|
|
|
function video(value) {
|
|
|
|
|
const VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
|
|
|
|
|
return VIDEO_REGEXP.test(value);
|
|
|
|
|
}
|
|
|
|
|
function regExp(o) {
|
|
|
|
|
return o && Object.prototype.toString.call(o) === "[object RegExp]";
|
|
|
|
|
}
|
|
|
|
|
var test_default = {
|
|
|
|
|
email,
|
|
|
|
|
mobile,
|
|
|
|
|
url,
|
|
|
|
|
date,
|
|
|
|
|
dateISO,
|
|
|
|
|
number,
|
|
|
|
|
digits,
|
|
|
|
|
idCard,
|
|
|
|
|
carNo,
|
|
|
|
|
amount,
|
|
|
|
|
chinese,
|
|
|
|
|
letter,
|
|
|
|
|
enOrNum,
|
|
|
|
|
contains,
|
|
|
|
|
range,
|
|
|
|
|
rangeLength,
|
|
|
|
|
empty,
|
|
|
|
|
isEmpty: empty,
|
|
|
|
|
jsonString,
|
|
|
|
|
landline,
|
|
|
|
|
object,
|
|
|
|
|
array,
|
|
|
|
|
code,
|
|
|
|
|
func,
|
|
|
|
|
promise,
|
|
|
|
|
video,
|
|
|
|
|
image,
|
|
|
|
|
regExp,
|
|
|
|
|
string
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/debounce.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var timeout = null;
|
|
|
|
|
function debounce(func2, wait = 500, immediate = false) {
|
|
|
|
|
if (timeout !== null)
|
|
|
|
|
clearTimeout(timeout);
|
|
|
|
|
if (immediate) {
|
|
|
|
|
const callNow = !timeout;
|
|
|
|
|
timeout = setTimeout(() => {
|
|
|
|
|
timeout = null;
|
|
|
|
|
}, wait);
|
|
|
|
|
if (callNow)
|
|
|
|
|
typeof func2 === "function" && func2();
|
|
|
|
|
} else {
|
|
|
|
|
timeout = setTimeout(() => {
|
|
|
|
|
typeof func2 === "function" && func2();
|
|
|
|
|
}, wait);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
var debounce_default = debounce;
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/throttle.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var timer;
|
|
|
|
|
var flag;
|
|
|
|
|
function throttle(func2, wait = 500, immediate = true) {
|
|
|
|
|
if (immediate) {
|
|
|
|
|
if (!flag) {
|
|
|
|
|
flag = true;
|
|
|
|
|
typeof func2 === "function" && func2();
|
|
|
|
|
timer = setTimeout(() => {
|
|
|
|
|
flag = false;
|
|
|
|
|
}, wait);
|
|
|
|
|
}
|
|
|
|
|
} else if (!flag) {
|
|
|
|
|
flag = true;
|
|
|
|
|
timer = setTimeout(() => {
|
|
|
|
|
flag = false;
|
|
|
|
|
typeof func2 === "function" && func2();
|
|
|
|
|
}, wait);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
var throttle_default = throttle;
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/digit.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var _boundaryCheckingState = true;
|
|
|
|
|
function strip(num, precision = 15) {
|
|
|
|
|
return +parseFloat(Number(num).toPrecision(precision));
|
|
|
|
|
}
|
|
|
|
|
function digitLength(num) {
|
|
|
|
|
const eSplit = num.toString().split(/[eE]/);
|
|
|
|
|
const len = (eSplit[0].split(".")[1] || "").length - +(eSplit[1] || 0);
|
|
|
|
|
return len > 0 ? len : 0;
|
|
|
|
|
}
|
|
|
|
|
function float2Fixed(num) {
|
|
|
|
|
if (num.toString().indexOf("e") === -1) {
|
|
|
|
|
return Number(num.toString().replace(".", ""));
|
|
|
|
|
}
|
|
|
|
|
const dLen = digitLength(num);
|
|
|
|
|
return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
|
|
|
|
|
}
|
|
|
|
|
function checkBoundary(num) {
|
|
|
|
|
if (_boundaryCheckingState) {
|
|
|
|
|
if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
|
|
|
|
|
console.warn(`${num} 超出了精度限制,结果可能不正确`);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function iteratorOperation(arr, operation) {
|
|
|
|
|
const [num1, num2, ...others] = arr;
|
|
|
|
|
let res = operation(num1, num2);
|
|
|
|
|
others.forEach((num) => {
|
|
|
|
|
res = operation(res, num);
|
|
|
|
|
});
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
function times(...nums) {
|
|
|
|
|
if (nums.length > 2) {
|
|
|
|
|
return iteratorOperation(nums, times);
|
|
|
|
|
}
|
|
|
|
|
const [num1, num2] = nums;
|
|
|
|
|
const num1Changed = float2Fixed(num1);
|
|
|
|
|
const num2Changed = float2Fixed(num2);
|
|
|
|
|
const baseNum = digitLength(num1) + digitLength(num2);
|
|
|
|
|
const leftValue = num1Changed * num2Changed;
|
|
|
|
|
checkBoundary(leftValue);
|
|
|
|
|
return leftValue / Math.pow(10, baseNum);
|
|
|
|
|
}
|
|
|
|
|
function divide(...nums) {
|
|
|
|
|
if (nums.length > 2) {
|
|
|
|
|
return iteratorOperation(nums, divide);
|
|
|
|
|
}
|
|
|
|
|
const [num1, num2] = nums;
|
|
|
|
|
const num1Changed = float2Fixed(num1);
|
|
|
|
|
const num2Changed = float2Fixed(num2);
|
|
|
|
|
checkBoundary(num1Changed);
|
|
|
|
|
checkBoundary(num2Changed);
|
|
|
|
|
return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
|
|
|
|
|
}
|
|
|
|
|
function round(num, ratio) {
|
|
|
|
|
const base = Math.pow(10, ratio);
|
|
|
|
|
let result = divide(Math.round(Math.abs(times(num, base))), base);
|
|
|
|
|
if (num < 0 && result !== 0) {
|
|
|
|
|
result = times(result, -1);
|
|
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/index.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
function range2(min = 0, max = 0, value = 0) {
|
|
|
|
|
return Math.max(min, Math.min(max, Number(value)));
|
|
|
|
|
}
|
|
|
|
|
function getPx(value, unit = false) {
|
|
|
|
|
if (test_default.number(value)) {
|
|
|
|
|
return unit ? `${value}px` : Number(value);
|
|
|
|
|
}
|
|
|
|
|
if (/(rpx|upx)$/.test(value)) {
|
|
|
|
|
return unit ? `${uni.upx2px(parseInt(value))}px` : Number(uni.upx2px(parseInt(value)));
|
|
|
|
|
}
|
|
|
|
|
return unit ? `${parseInt(value)}px` : parseInt(value);
|
|
|
|
|
}
|
|
|
|
|
function sleep(value = 30) {
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
resolve();
|
|
|
|
|
}, value);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
function os() {
|
|
|
|
|
return uni.getSystemInfoSync().platform.toLowerCase();
|
|
|
|
|
}
|
|
|
|
|
function sys() {
|
|
|
|
|
return uni.getSystemInfoSync();
|
|
|
|
|
}
|
|
|
|
|
function random(min, max) {
|
|
|
|
|
if (min >= 0 && max > 0 && max >= min) {
|
|
|
|
|
const gab = max - min + 1;
|
|
|
|
|
return Math.floor(Math.random() * gab + min);
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
function guid(len = 32, firstU = true, radix = null) {
|
|
|
|
|
const chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");
|
|
|
|
|
const uuid = [];
|
|
|
|
|
radix = radix || chars.length;
|
|
|
|
|
if (len) {
|
|
|
|
|
for (let i = 0; i < len; i++)
|
|
|
|
|
uuid[i] = chars[0 | Math.random() * radix];
|
|
|
|
|
} else {
|
|
|
|
|
let r;
|
|
|
|
|
uuid[8] = uuid[13] = uuid[18] = uuid[23] = "-";
|
|
|
|
|
uuid[14] = "4";
|
|
|
|
|
for (let i = 0; i < 36; i++) {
|
|
|
|
|
if (!uuid[i]) {
|
|
|
|
|
r = 0 | Math.random() * 16;
|
|
|
|
|
uuid[i] = chars[i == 19 ? r & 3 | 8 : r];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (firstU) {
|
|
|
|
|
uuid.shift();
|
|
|
|
|
return `u${uuid.join("")}`;
|
|
|
|
|
}
|
|
|
|
|
return uuid.join("");
|
|
|
|
|
}
|
|
|
|
|
function $parent(name = void 0) {
|
|
|
|
|
let parent = this.$parent;
|
|
|
|
|
while (parent) {
|
|
|
|
|
if (parent.$options && parent.$options.name !== name) {
|
|
|
|
|
parent = parent.$parent;
|
|
|
|
|
} else {
|
|
|
|
|
return parent;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
function addStyle(customStyle, target = "object") {
|
|
|
|
|
if (test_default.empty(customStyle) || typeof customStyle === "object" && target === "object" || target === "string" && typeof customStyle === "string") {
|
|
|
|
|
return customStyle;
|
|
|
|
|
}
|
|
|
|
|
if (target === "object") {
|
|
|
|
|
customStyle = trim(customStyle);
|
|
|
|
|
const styleArray = customStyle.split(";");
|
|
|
|
|
const style = {};
|
|
|
|
|
for (let i = 0; i < styleArray.length; i++) {
|
|
|
|
|
if (styleArray[i]) {
|
|
|
|
|
const item = styleArray[i].split(":");
|
|
|
|
|
style[trim(item[0])] = trim(item[1]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return style;
|
|
|
|
|
}
|
|
|
|
|
let string2 = "";
|
|
|
|
|
for (const i in customStyle) {
|
|
|
|
|
const key = i.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
|
|
|
string2 += `${key}:${customStyle[i]};`;
|
|
|
|
|
}
|
|
|
|
|
return trim(string2);
|
|
|
|
|
}
|
|
|
|
|
function addUnit(value = "auto", unit = "") {
|
|
|
|
|
if (!unit) {
|
|
|
|
|
unit = uni.$u.config.unit || "px";
|
|
|
|
|
}
|
|
|
|
|
value = String(value);
|
|
|
|
|
return test_default.number(value) ? `${value}${unit}` : value;
|
|
|
|
|
}
|
|
|
|
|
function deepClone(obj) {
|
|
|
|
|
if ([null, void 0, NaN, false].includes(obj))
|
|
|
|
|
return obj;
|
|
|
|
|
if (typeof obj !== "object" && typeof obj !== "function") {
|
|
|
|
|
return obj;
|
|
|
|
|
}
|
|
|
|
|
const o = test_default.array(obj) ? [] : {};
|
|
|
|
|
for (const i in obj) {
|
|
|
|
|
if (obj.hasOwnProperty(i)) {
|
|
|
|
|
o[i] = typeof obj[i] === "object" ? deepClone(obj[i]) : obj[i];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return o;
|
|
|
|
|
}
|
|
|
|
|
function deepMerge2(target = {}, source = {}) {
|
|
|
|
|
target = deepClone(target);
|
|
|
|
|
if (typeof target !== "object" || typeof source !== "object")
|
|
|
|
|
return false;
|
|
|
|
|
for (const prop in source) {
|
|
|
|
|
if (!source.hasOwnProperty(prop))
|
|
|
|
|
continue;
|
|
|
|
|
if (prop in target) {
|
|
|
|
|
if (source[prop] == null) {
|
|
|
|
|
target[prop] = source[prop];
|
|
|
|
|
} else if (typeof target[prop] !== "object") {
|
|
|
|
|
target[prop] = source[prop];
|
|
|
|
|
} else if (typeof source[prop] !== "object") {
|
|
|
|
|
target[prop] = source[prop];
|
|
|
|
|
} else if (target[prop].concat && source[prop].concat) {
|
|
|
|
|
target[prop] = target[prop].concat(source[prop]);
|
|
|
|
|
} else {
|
|
|
|
|
target[prop] = deepMerge2(target[prop], source[prop]);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
target[prop] = source[prop];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return target;
|
|
|
|
|
}
|
|
|
|
|
function error(err) {
|
|
|
|
|
if (true) {
|
|
|
|
|
console.error(`uView提示:${err}`);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function randomArray(array2 = []) {
|
|
|
|
|
return array2.sort(() => Math.random() - 0.5);
|
|
|
|
|
}
|
|
|
|
|
if (!String.prototype.padStart) {
|
|
|
|
|
String.prototype.padStart = function(maxLength, fillString = " ") {
|
|
|
|
|
if (Object.prototype.toString.call(fillString) !== "[object String]") {
|
|
|
|
|
throw new TypeError(
|
|
|
|
|
"fillString must be String"
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
const str = this;
|
|
|
|
|
if (str.length >= maxLength)
|
|
|
|
|
return String(str);
|
|
|
|
|
const fillLength = maxLength - str.length;
|
|
|
|
|
let times2 = Math.ceil(fillLength / fillString.length);
|
|
|
|
|
while (times2 >>= 1) {
|
|
|
|
|
fillString += fillString;
|
|
|
|
|
if (times2 === 1) {
|
|
|
|
|
fillString += fillString;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return fillString.slice(0, fillLength) + str;
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
function timeFormat(dateTime = null, formatStr = "yyyy-mm-dd") {
|
|
|
|
|
let date2;
|
|
|
|
|
if (!dateTime) {
|
|
|
|
|
date2 = /* @__PURE__ */ new Date();
|
|
|
|
|
} else if (/^\d{10}$/.test(dateTime.toString().trim())) {
|
|
|
|
|
date2 = new Date(dateTime * 1e3);
|
|
|
|
|
} else if (typeof dateTime === "string" && /^\d+$/.test(dateTime.trim())) {
|
|
|
|
|
date2 = new Date(Number(dateTime));
|
|
|
|
|
} else {
|
|
|
|
|
date2 = new Date(
|
|
|
|
|
typeof dateTime === "string" ? dateTime.replace(/-/g, "/") : dateTime
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
const timeSource = {
|
|
|
|
|
"y": date2.getFullYear().toString(),
|
|
|
|
|
// 年
|
|
|
|
|
"m": (date2.getMonth() + 1).toString().padStart(2, "0"),
|
|
|
|
|
// 月
|
|
|
|
|
"d": date2.getDate().toString().padStart(2, "0"),
|
|
|
|
|
// 日
|
|
|
|
|
"h": date2.getHours().toString().padStart(2, "0"),
|
|
|
|
|
// 时
|
|
|
|
|
"M": date2.getMinutes().toString().padStart(2, "0"),
|
|
|
|
|
// 分
|
|
|
|
|
"s": date2.getSeconds().toString().padStart(2, "0")
|
|
|
|
|
// 秒
|
|
|
|
|
// 有其他格式化字符需求可以继续添加,必须转化成字符串
|
|
|
|
|
};
|
|
|
|
|
for (const key in timeSource) {
|
|
|
|
|
const [ret] = new RegExp(`${key}+`).exec(formatStr) || [];
|
|
|
|
|
if (ret) {
|
|
|
|
|
const beginIndex = key === "y" && ret.length === 2 ? 2 : 0;
|
|
|
|
|
formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return formatStr;
|
|
|
|
|
}
|
|
|
|
|
function timeFrom(timestamp = null, format = "yyyy-mm-dd") {
|
|
|
|
|
if (timestamp == null)
|
|
|
|
|
timestamp = Number(/* @__PURE__ */ new Date());
|
|
|
|
|
timestamp = parseInt(timestamp);
|
|
|
|
|
if (timestamp.toString().length == 10)
|
|
|
|
|
timestamp *= 1e3;
|
|
|
|
|
let timer2 = (/* @__PURE__ */ new Date()).getTime() - timestamp;
|
|
|
|
|
timer2 = parseInt(timer2 / 1e3);
|
|
|
|
|
let tips = "";
|
|
|
|
|
switch (true) {
|
|
|
|
|
case timer2 < 300:
|
|
|
|
|
tips = "刚刚";
|
|
|
|
|
break;
|
|
|
|
|
case (timer2 >= 300 && timer2 < 3600):
|
|
|
|
|
tips = `${parseInt(timer2 / 60)}分钟前`;
|
|
|
|
|
break;
|
|
|
|
|
case (timer2 >= 3600 && timer2 < 86400):
|
|
|
|
|
tips = `${parseInt(timer2 / 3600)}小时前`;
|
|
|
|
|
break;
|
|
|
|
|
case (timer2 >= 86400 && timer2 < 2592e3):
|
|
|
|
|
tips = `${parseInt(timer2 / 86400)}天前`;
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
if (format === false) {
|
|
|
|
|
if (timer2 >= 2592e3 && timer2 < 365 * 86400) {
|
|
|
|
|
tips = `${parseInt(timer2 / (86400 * 30))}个月前`;
|
|
|
|
|
} else {
|
|
|
|
|
tips = `${parseInt(timer2 / (86400 * 365))}年前`;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
tips = timeFormat(timestamp, format);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tips;
|
|
|
|
|
}
|
|
|
|
|
function trim(str, pos = "both") {
|
|
|
|
|
str = String(str);
|
|
|
|
|
if (pos == "both") {
|
|
|
|
|
return str.replace(/^\s+|\s+$/g, "");
|
|
|
|
|
}
|
|
|
|
|
if (pos == "left") {
|
|
|
|
|
return str.replace(/^\s*/, "");
|
|
|
|
|
}
|
|
|
|
|
if (pos == "right") {
|
|
|
|
|
return str.replace(/(\s*$)/g, "");
|
|
|
|
|
}
|
|
|
|
|
if (pos == "all") {
|
|
|
|
|
return str.replace(/\s+/g, "");
|
|
|
|
|
}
|
|
|
|
|
return str;
|
|
|
|
|
}
|
|
|
|
|
function queryParams(data = {}, isPrefix = true, arrayFormat = "brackets") {
|
|
|
|
|
const prefix = isPrefix ? "?" : "";
|
|
|
|
|
const _result = [];
|
|
|
|
|
if (["indices", "brackets", "repeat", "comma"].indexOf(arrayFormat) == -1)
|
|
|
|
|
arrayFormat = "brackets";
|
|
|
|
|
for (const key in data) {
|
|
|
|
|
const value = data[key];
|
|
|
|
|
if (["", void 0, null].indexOf(value) >= 0) {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
if (value.constructor === Array) {
|
|
|
|
|
switch (arrayFormat) {
|
|
|
|
|
case "indices":
|
|
|
|
|
for (let i = 0; i < value.length; i++) {
|
|
|
|
|
_result.push(`${key}[${i}]=${value[i]}`);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case "brackets":
|
|
|
|
|
value.forEach((_value) => {
|
|
|
|
|
_result.push(`${key}[]=${_value}`);
|
|
|
|
|
});
|
|
|
|
|
break;
|
|
|
|
|
case "repeat":
|
|
|
|
|
value.forEach((_value) => {
|
|
|
|
|
_result.push(`${key}=${_value}`);
|
|
|
|
|
});
|
|
|
|
|
break;
|
|
|
|
|
case "comma":
|
|
|
|
|
let commaStr = "";
|
|
|
|
|
value.forEach((_value) => {
|
|
|
|
|
commaStr += (commaStr ? "," : "") + _value;
|
|
|
|
|
});
|
|
|
|
|
_result.push(`${key}=${commaStr}`);
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
value.forEach((_value) => {
|
|
|
|
|
_result.push(`${key}[]=${_value}`);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
_result.push(`${key}=${value}`);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return _result.length ? prefix + _result.join("&") : "";
|
|
|
|
|
}
|
|
|
|
|
function toast(title, duration = 2e3) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: String(title),
|
|
|
|
|
icon: "none",
|
|
|
|
|
duration
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
function type2icon(type = "success", fill = false) {
|
|
|
|
|
if (["primary", "info", "error", "warning", "success"].indexOf(type) == -1)
|
|
|
|
|
type = "success";
|
|
|
|
|
let iconName = "";
|
|
|
|
|
switch (type) {
|
|
|
|
|
case "primary":
|
|
|
|
|
iconName = "info-circle";
|
|
|
|
|
break;
|
|
|
|
|
case "info":
|
|
|
|
|
iconName = "info-circle";
|
|
|
|
|
break;
|
|
|
|
|
case "error":
|
|
|
|
|
iconName = "close-circle";
|
|
|
|
|
break;
|
|
|
|
|
case "warning":
|
|
|
|
|
iconName = "error-circle";
|
|
|
|
|
break;
|
|
|
|
|
case "success":
|
|
|
|
|
iconName = "checkmark-circle";
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
iconName = "checkmark-circle";
|
|
|
|
|
}
|
|
|
|
|
if (fill)
|
|
|
|
|
iconName += "-fill";
|
|
|
|
|
return iconName;
|
|
|
|
|
}
|
|
|
|
|
function priceFormat(number2, decimals = 0, decimalPoint = ".", thousandsSeparator = ",") {
|
|
|
|
|
number2 = `${number2}`.replace(/[^0-9+-Ee.]/g, "");
|
|
|
|
|
const n = !isFinite(+number2) ? 0 : +number2;
|
|
|
|
|
const prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
|
|
|
|
|
const sep = typeof thousandsSeparator === "undefined" ? "," : thousandsSeparator;
|
|
|
|
|
const dec = typeof decimalPoint === "undefined" ? "." : decimalPoint;
|
|
|
|
|
let s = "";
|
|
|
|
|
s = (prec ? round(n, prec) + "" : `${Math.round(n)}`).split(".");
|
|
|
|
|
const re = /(-?\d+)(\d{3})/;
|
|
|
|
|
while (re.test(s[0])) {
|
|
|
|
|
s[0] = s[0].replace(re, `$1${sep}$2`);
|
|
|
|
|
}
|
|
|
|
|
if ((s[1] || "").length < prec) {
|
|
|
|
|
s[1] = s[1] || "";
|
|
|
|
|
s[1] += new Array(prec - s[1].length + 1).join("0");
|
|
|
|
|
}
|
|
|
|
|
return s.join(dec);
|
|
|
|
|
}
|
|
|
|
|
function getDuration(value, unit = true) {
|
|
|
|
|
const valueNum = parseInt(value);
|
|
|
|
|
if (unit) {
|
|
|
|
|
if (/s$/.test(value))
|
|
|
|
|
return value;
|
|
|
|
|
return value > 30 ? `${value}ms` : `${value}s`;
|
|
|
|
|
}
|
|
|
|
|
if (/ms$/.test(value))
|
|
|
|
|
return valueNum;
|
|
|
|
|
if (/s$/.test(value))
|
|
|
|
|
return valueNum > 30 ? valueNum : valueNum * 1e3;
|
|
|
|
|
return valueNum;
|
|
|
|
|
}
|
|
|
|
|
function padZero(value) {
|
|
|
|
|
return `00${value}`.slice(-2);
|
|
|
|
|
}
|
|
|
|
|
function formValidate(instance, event) {
|
|
|
|
|
const formItem = uni.$u.$parent.call(instance, "u-form-item");
|
|
|
|
|
const form = uni.$u.$parent.call(instance, "u-form");
|
|
|
|
|
if (formItem && form) {
|
|
|
|
|
form.validateField(formItem.prop, () => {
|
|
|
|
|
}, event);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function getProperty(obj, key) {
|
|
|
|
|
if (!obj) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (typeof key !== "string" || key === "") {
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
if (key.indexOf(".") !== -1) {
|
|
|
|
|
const keys = key.split(".");
|
|
|
|
|
let firstObj = obj[keys[0]] || {};
|
|
|
|
|
for (let i = 1; i < keys.length; i++) {
|
|
|
|
|
if (firstObj) {
|
|
|
|
|
firstObj = firstObj[keys[i]];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return firstObj;
|
|
|
|
|
}
|
|
|
|
|
return obj[key];
|
|
|
|
|
}
|
|
|
|
|
function setProperty(obj, key, value) {
|
|
|
|
|
if (!obj) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
const inFn = function(_obj, keys, v) {
|
|
|
|
|
if (keys.length === 1) {
|
|
|
|
|
_obj[keys[0]] = v;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
while (keys.length > 1) {
|
|
|
|
|
const k = keys[0];
|
|
|
|
|
if (!_obj[k] || typeof _obj[k] !== "object") {
|
|
|
|
|
_obj[k] = {};
|
|
|
|
|
}
|
|
|
|
|
const key2 = keys.shift();
|
|
|
|
|
inFn(_obj[k], keys, v);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
if (typeof key !== "string" || key === "") {
|
|
|
|
|
} else if (key.indexOf(".") !== -1) {
|
|
|
|
|
const keys = key.split(".");
|
|
|
|
|
inFn(obj, keys, value);
|
|
|
|
|
} else {
|
|
|
|
|
obj[key] = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function page() {
|
|
|
|
|
const pages2 = getCurrentPages();
|
|
|
|
|
return `/${pages2[pages2.length - 1].route || ""}`;
|
|
|
|
|
}
|
|
|
|
|
function pages() {
|
|
|
|
|
const pages2 = getCurrentPages();
|
|
|
|
|
return pages2;
|
|
|
|
|
}
|
|
|
|
|
function setConfig({
|
|
|
|
|
props = {},
|
|
|
|
|
config = {},
|
|
|
|
|
color: color6 = {},
|
|
|
|
|
zIndex = {}
|
|
|
|
|
}) {
|
|
|
|
|
const {
|
|
|
|
|
deepMerge: deepMerge3
|
|
|
|
|
} = uni.$u;
|
|
|
|
|
uni.$u.config = deepMerge3(uni.$u.config, config);
|
|
|
|
|
uni.$u.props = deepMerge3(uni.$u.props, props);
|
|
|
|
|
uni.$u.color = deepMerge3(uni.$u.color, color6);
|
|
|
|
|
uni.$u.zIndex = deepMerge3(uni.$u.zIndex, zIndex);
|
|
|
|
|
}
|
|
|
|
|
var function_default = {
|
|
|
|
|
range: range2,
|
|
|
|
|
getPx,
|
|
|
|
|
sleep,
|
|
|
|
|
os,
|
|
|
|
|
sys,
|
|
|
|
|
random,
|
|
|
|
|
guid,
|
|
|
|
|
$parent,
|
|
|
|
|
addStyle,
|
|
|
|
|
addUnit,
|
|
|
|
|
deepClone,
|
|
|
|
|
deepMerge: deepMerge2,
|
|
|
|
|
error,
|
|
|
|
|
randomArray,
|
|
|
|
|
timeFormat,
|
|
|
|
|
timeFrom,
|
|
|
|
|
trim,
|
|
|
|
|
queryParams,
|
|
|
|
|
toast,
|
|
|
|
|
type2icon,
|
|
|
|
|
priceFormat,
|
|
|
|
|
getDuration,
|
|
|
|
|
padZero,
|
|
|
|
|
formValidate,
|
|
|
|
|
getProperty,
|
|
|
|
|
setProperty,
|
|
|
|
|
page,
|
|
|
|
|
pages,
|
|
|
|
|
setConfig
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/config.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var version = "3";
|
|
|
|
|
if (true) {
|
|
|
|
|
console.log(`
|
|
|
|
|
%c uview-plus V${version} %c https://ijry.github.io/uview-plus/
|
|
|
|
|
|
|
|
|
|
`, "color: #ffffff; background: #3c9cff; padding:5px 0;", "color: #3c9cff;background: #ffffff; padding:5px 0;");
|
|
|
|
|
}
|
|
|
|
|
var config_default = {
|
|
|
|
|
v: version,
|
|
|
|
|
version,
|
|
|
|
|
// 主题名称
|
|
|
|
|
type: [
|
|
|
|
|
"primary",
|
|
|
|
|
"success",
|
|
|
|
|
"info",
|
|
|
|
|
"error",
|
|
|
|
|
"warning"
|
|
|
|
|
],
|
|
|
|
|
// 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
|
|
|
|
|
color: {
|
|
|
|
|
"u-primary": "#2979ff",
|
|
|
|
|
"u-warning": "#ff9900",
|
|
|
|
|
"u-success": "#19be6b",
|
|
|
|
|
"u-error": "#fa3534",
|
|
|
|
|
"u-info": "#909399",
|
|
|
|
|
"u-main-color": "#303133",
|
|
|
|
|
"u-content-color": "#606266",
|
|
|
|
|
"u-tips-color": "#909399",
|
|
|
|
|
"u-light-color": "#c0c4cc"
|
|
|
|
|
},
|
|
|
|
|
// 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
|
|
|
|
|
unit: "px"
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/actionSheet.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var actionSheet_default = {
|
|
|
|
|
// action-sheet组件
|
|
|
|
|
actionSheet: {
|
|
|
|
|
show: false,
|
|
|
|
|
title: "",
|
|
|
|
|
description: "",
|
|
|
|
|
actions: () => [],
|
|
|
|
|
index: "",
|
|
|
|
|
cancelText: "",
|
|
|
|
|
closeOnClickAction: true,
|
|
|
|
|
safeAreaInsetBottom: true,
|
|
|
|
|
openType: "",
|
|
|
|
|
closeOnClickOverlay: true,
|
|
|
|
|
round: 0
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/album.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var album_default = {
|
|
|
|
|
// album 组件
|
|
|
|
|
album: {
|
|
|
|
|
urls: () => [],
|
|
|
|
|
keyName: "",
|
|
|
|
|
singleSize: 180,
|
|
|
|
|
multipleSize: 70,
|
|
|
|
|
space: 6,
|
|
|
|
|
singleMode: "scaleToFill",
|
|
|
|
|
multipleMode: "aspectFill",
|
|
|
|
|
maxCount: 9,
|
|
|
|
|
previewFullImage: true,
|
|
|
|
|
rowCount: 3,
|
|
|
|
|
showMore: true
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/alert.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var alert_default = {
|
|
|
|
|
// alert警告组件
|
|
|
|
|
alert: {
|
|
|
|
|
title: "",
|
|
|
|
|
type: "warning",
|
|
|
|
|
description: "",
|
|
|
|
|
closable: false,
|
|
|
|
|
showIcon: false,
|
|
|
|
|
effect: "light",
|
|
|
|
|
center: false,
|
|
|
|
|
fontSize: 14
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/avatar.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var avatar_default = {
|
|
|
|
|
// avatar 组件
|
|
|
|
|
avatar: {
|
|
|
|
|
src: "",
|
|
|
|
|
shape: "circle",
|
|
|
|
|
size: 40,
|
|
|
|
|
mode: "scaleToFill",
|
|
|
|
|
text: "",
|
|
|
|
|
bgColor: "#c0c4cc",
|
|
|
|
|
color: "#ffffff",
|
|
|
|
|
fontSize: 18,
|
|
|
|
|
icon: "",
|
|
|
|
|
mpAvatar: false,
|
|
|
|
|
randomBgColor: false,
|
|
|
|
|
defaultUrl: "",
|
|
|
|
|
colorIndex: "",
|
|
|
|
|
name: ""
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/avatarGroup.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var avatarGroup_default = {
|
|
|
|
|
// avatarGroup 组件
|
|
|
|
|
avatarGroup: {
|
|
|
|
|
urls: () => [],
|
|
|
|
|
maxCount: 5,
|
|
|
|
|
shape: "circle",
|
|
|
|
|
mode: "scaleToFill",
|
|
|
|
|
showMore: true,
|
|
|
|
|
size: 40,
|
|
|
|
|
keyName: "",
|
|
|
|
|
gap: 0.5,
|
|
|
|
|
extraValue: 0
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/backtop.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var backtop_default = {
|
|
|
|
|
// backtop组件
|
|
|
|
|
backtop: {
|
|
|
|
|
mode: "circle",
|
|
|
|
|
icon: "arrow-upward",
|
|
|
|
|
text: "",
|
|
|
|
|
duration: 100,
|
|
|
|
|
scrollTop: 0,
|
|
|
|
|
top: 400,
|
|
|
|
|
bottom: 100,
|
|
|
|
|
right: 20,
|
|
|
|
|
zIndex: 9,
|
|
|
|
|
iconStyle: () => ({
|
|
|
|
|
color: "#909399",
|
|
|
|
|
fontSize: "19px"
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/badge.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var badge_default = {
|
|
|
|
|
// 徽标数组件
|
|
|
|
|
badge: {
|
|
|
|
|
isDot: false,
|
|
|
|
|
value: "",
|
|
|
|
|
show: true,
|
|
|
|
|
max: 999,
|
|
|
|
|
type: "error",
|
|
|
|
|
showZero: false,
|
|
|
|
|
bgColor: null,
|
|
|
|
|
color: null,
|
|
|
|
|
shape: "circle",
|
|
|
|
|
numberType: "overflow",
|
|
|
|
|
offset: () => [],
|
|
|
|
|
inverted: false,
|
|
|
|
|
absolute: false
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/button.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var button_default = {
|
|
|
|
|
// button组件
|
|
|
|
|
button: {
|
|
|
|
|
hairline: false,
|
|
|
|
|
type: "info",
|
|
|
|
|
size: "normal",
|
|
|
|
|
shape: "square",
|
|
|
|
|
plain: false,
|
|
|
|
|
disabled: false,
|
|
|
|
|
loading: false,
|
|
|
|
|
loadingText: "",
|
|
|
|
|
loadingMode: "spinner",
|
|
|
|
|
loadingSize: 15,
|
|
|
|
|
openType: "",
|
|
|
|
|
formType: "",
|
|
|
|
|
appParameter: "",
|
|
|
|
|
hoverStopPropagation: true,
|
|
|
|
|
lang: "en",
|
|
|
|
|
sessionFrom: "",
|
|
|
|
|
sendMessageTitle: "",
|
|
|
|
|
sendMessagePath: "",
|
|
|
|
|
sendMessageImg: "",
|
|
|
|
|
showMessageCard: false,
|
|
|
|
|
dataName: "",
|
|
|
|
|
throttleTime: 0,
|
|
|
|
|
hoverStartTime: 0,
|
|
|
|
|
hoverStayTime: 200,
|
|
|
|
|
text: "",
|
|
|
|
|
icon: "",
|
|
|
|
|
iconColor: "",
|
|
|
|
|
color: ""
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/calendar.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var calendar_default = {
|
|
|
|
|
// calendar 组件
|
|
|
|
|
calendar: {
|
|
|
|
|
title: "日期选择",
|
|
|
|
|
showTitle: true,
|
|
|
|
|
showSubtitle: true,
|
|
|
|
|
mode: "single",
|
|
|
|
|
startText: "开始",
|
|
|
|
|
endText: "结束",
|
|
|
|
|
customList: () => [],
|
|
|
|
|
color: "#3c9cff",
|
|
|
|
|
minDate: 0,
|
|
|
|
|
maxDate: 0,
|
|
|
|
|
defaultDate: null,
|
|
|
|
|
maxCount: Number.MAX_SAFE_INTEGER,
|
|
|
|
|
// Infinity
|
|
|
|
|
rowHeight: 56,
|
|
|
|
|
formatter: null,
|
|
|
|
|
showLunar: false,
|
|
|
|
|
showMark: true,
|
|
|
|
|
confirmText: "确定",
|
|
|
|
|
confirmDisabledText: "确定",
|
|
|
|
|
show: false,
|
|
|
|
|
closeOnClickOverlay: false,
|
|
|
|
|
readonly: false,
|
|
|
|
|
showConfirm: true,
|
|
|
|
|
maxRange: Number.MAX_SAFE_INTEGER,
|
|
|
|
|
// Infinity
|
|
|
|
|
rangePrompt: "",
|
|
|
|
|
showRangePrompt: true,
|
|
|
|
|
allowSameDay: false,
|
|
|
|
|
round: 0,
|
|
|
|
|
monthNum: 3
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/carKeyboard.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var carKeyboard_default = {
|
|
|
|
|
// 车牌号键盘
|
|
|
|
|
carKeyboard: {
|
|
|
|
|
random: false
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/cell.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var cell_default = {
|
|
|
|
|
// cell组件的props
|
|
|
|
|
cell: {
|
|
|
|
|
customClass: "",
|
|
|
|
|
title: "",
|
|
|
|
|
label: "",
|
|
|
|
|
value: "",
|
|
|
|
|
icon: "",
|
|
|
|
|
disabled: false,
|
|
|
|
|
border: true,
|
|
|
|
|
center: false,
|
|
|
|
|
url: "",
|
|
|
|
|
linkType: "navigateTo",
|
|
|
|
|
clickable: false,
|
|
|
|
|
isLink: false,
|
|
|
|
|
required: false,
|
|
|
|
|
arrowDirection: "",
|
|
|
|
|
iconStyle: {},
|
|
|
|
|
rightIconStyle: {},
|
|
|
|
|
rightIcon: "arrow-right",
|
|
|
|
|
titleStyle: {},
|
|
|
|
|
size: "",
|
|
|
|
|
stop: true,
|
|
|
|
|
name: ""
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/cellGroup.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var cellGroup_default = {
|
|
|
|
|
// cell-group组件的props
|
|
|
|
|
cellGroup: {
|
|
|
|
|
title: "",
|
|
|
|
|
border: true,
|
|
|
|
|
customStyle: {}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/checkbox.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var checkbox_default = {
|
|
|
|
|
// checkbox组件
|
|
|
|
|
checkbox: {
|
|
|
|
|
name: "",
|
|
|
|
|
shape: "",
|
|
|
|
|
size: "",
|
|
|
|
|
checkbox: false,
|
|
|
|
|
disabled: "",
|
|
|
|
|
activeColor: "",
|
|
|
|
|
inactiveColor: "",
|
|
|
|
|
iconSize: "",
|
|
|
|
|
iconColor: "",
|
|
|
|
|
label: "",
|
|
|
|
|
labelSize: "",
|
|
|
|
|
labelColor: "",
|
|
|
|
|
labelDisabled: ""
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/checkboxGroup.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var checkboxGroup_default = {
|
|
|
|
|
// checkbox-group组件
|
|
|
|
|
checkboxGroup: {
|
|
|
|
|
name: "",
|
|
|
|
|
value: () => [],
|
|
|
|
|
shape: "square",
|
|
|
|
|
disabled: false,
|
|
|
|
|
activeColor: "#2979ff",
|
|
|
|
|
inactiveColor: "#c8c9cc",
|
|
|
|
|
size: 18,
|
|
|
|
|
placement: "row",
|
|
|
|
|
labelSize: 14,
|
|
|
|
|
labelColor: "#303133",
|
|
|
|
|
labelDisabled: false,
|
|
|
|
|
iconColor: "#ffffff",
|
|
|
|
|
iconSize: 12,
|
|
|
|
|
iconPlacement: "left",
|
|
|
|
|
borderBottom: false
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/circleProgress.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var circleProgress_default = {
|
|
|
|
|
// circleProgress 组件
|
|
|
|
|
circleProgress: {
|
|
|
|
|
percentage: 30
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/code.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var code_default = {
|
|
|
|
|
// code 组件
|
|
|
|
|
code: {
|
|
|
|
|
seconds: 60,
|
|
|
|
|
startText: "获取验证码",
|
|
|
|
|
changeText: "X秒重新获取",
|
|
|
|
|
endText: "重新获取",
|
|
|
|
|
keepRunning: false,
|
|
|
|
|
uniqueKey: ""
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/codeInput.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var codeInput_default = {
|
|
|
|
|
// codeInput 组件
|
|
|
|
|
codeInput: {
|
|
|
|
|
adjustPosition: true,
|
|
|
|
|
maxlength: 6,
|
|
|
|
|
dot: false,
|
|
|
|
|
mode: "box",
|
|
|
|
|
hairline: false,
|
|
|
|
|
space: 10,
|
|
|
|
|
value: "",
|
|
|
|
|
focus: false,
|
|
|
|
|
bold: false,
|
|
|
|
|
color: "#606266",
|
|
|
|
|
fontSize: 18,
|
|
|
|
|
size: 35,
|
|
|
|
|
disabledKeyboard: false,
|
|
|
|
|
borderColor: "#c9cacc",
|
|
|
|
|
disabledDot: true
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/col.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var col_default = {
|
|
|
|
|
// col 组件
|
|
|
|
|
col: {
|
|
|
|
|
span: 12,
|
|
|
|
|
offset: 0,
|
|
|
|
|
justify: "start",
|
|
|
|
|
align: "stretch",
|
|
|
|
|
textAlign: "left"
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/collapse.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var collapse_default = {
|
|
|
|
|
// collapse 组件
|
|
|
|
|
collapse: {
|
|
|
|
|
value: null,
|
|
|
|
|
accordion: false,
|
|
|
|
|
border: true
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/collapseItem.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var collapseItem_default = {
|
|
|
|
|
// collapseItem 组件
|
|
|
|
|
collapseItem: {
|
|
|
|
|
title: "",
|
|
|
|
|
value: "",
|
|
|
|
|
label: "",
|
|
|
|
|
disabled: false,
|
|
|
|
|
isLink: true,
|
|
|
|
|
clickable: true,
|
|
|
|
|
border: true,
|
|
|
|
|
align: "left",
|
|
|
|
|
name: "",
|
|
|
|
|
icon: "",
|
|
|
|
|
duration: 300
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/columnNotice.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var columnNotice_default = {
|
|
|
|
|
// columnNotice 组件
|
|
|
|
|
columnNotice: {
|
|
|
|
|
text: "",
|
|
|
|
|
icon: "volume",
|
|
|
|
|
mode: "",
|
|
|
|
|
color: "#f9ae3d",
|
|
|
|
|
bgColor: "#fdf6ec",
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
speed: 80,
|
|
|
|
|
step: false,
|
|
|
|
|
duration: 1500,
|
|
|
|
|
disableTouch: true
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/countDown.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var countDown_default = {
|
|
|
|
|
// u-count-down 计时器组件
|
|
|
|
|
countDown: {
|
|
|
|
|
time: 0,
|
|
|
|
|
format: "HH:mm:ss",
|
|
|
|
|
autoStart: true,
|
|
|
|
|
millisecond: false
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/countTo.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var countTo_default = {
|
|
|
|
|
// countTo 组件
|
|
|
|
|
countTo: {
|
|
|
|
|
startVal: 0,
|
|
|
|
|
endVal: 0,
|
|
|
|
|
duration: 2e3,
|
|
|
|
|
autoplay: true,
|
|
|
|
|
decimals: 0,
|
|
|
|
|
useEasing: true,
|
|
|
|
|
decimal: ".",
|
|
|
|
|
color: "#606266",
|
|
|
|
|
fontSize: 22,
|
|
|
|
|
bold: false,
|
|
|
|
|
separator: ""
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/datetimePicker.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var datetimePicker_default = {
|
|
|
|
|
// datetimePicker 组件
|
|
|
|
|
datetimePicker: {
|
|
|
|
|
show: false,
|
|
|
|
|
showToolbar: true,
|
|
|
|
|
value: "",
|
|
|
|
|
title: "",
|
|
|
|
|
mode: "datetime",
|
|
|
|
|
maxDate: new Date((/* @__PURE__ */ new Date()).getFullYear() + 10, 0, 1).getTime(),
|
|
|
|
|
minDate: new Date((/* @__PURE__ */ new Date()).getFullYear() - 10, 0, 1).getTime(),
|
|
|
|
|
minHour: 0,
|
|
|
|
|
maxHour: 23,
|
|
|
|
|
minMinute: 0,
|
|
|
|
|
maxMinute: 59,
|
|
|
|
|
filter: null,
|
|
|
|
|
formatter: null,
|
|
|
|
|
loading: false,
|
|
|
|
|
itemHeight: 44,
|
|
|
|
|
cancelText: "取消",
|
|
|
|
|
confirmText: "确认",
|
|
|
|
|
cancelColor: "#909193",
|
|
|
|
|
confirmColor: "#3c9cff",
|
|
|
|
|
visibleItemCount: 5,
|
|
|
|
|
closeOnClickOverlay: false,
|
|
|
|
|
defaultIndex: () => []
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/divider.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var divider_default = {
|
|
|
|
|
// divider组件
|
|
|
|
|
divider: {
|
|
|
|
|
dashed: false,
|
|
|
|
|
hairline: true,
|
|
|
|
|
dot: false,
|
|
|
|
|
textPosition: "center",
|
|
|
|
|
text: "",
|
|
|
|
|
textSize: 14,
|
|
|
|
|
textColor: "#909399",
|
|
|
|
|
lineColor: "#dcdfe6"
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/empty.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var empty_default = {
|
|
|
|
|
// empty组件
|
|
|
|
|
empty: {
|
|
|
|
|
icon: "",
|
|
|
|
|
text: "",
|
|
|
|
|
textColor: "#c0c4cc",
|
|
|
|
|
textSize: 14,
|
|
|
|
|
iconColor: "#c0c4cc",
|
|
|
|
|
iconSize: 90,
|
|
|
|
|
mode: "data",
|
|
|
|
|
width: 160,
|
|
|
|
|
height: 160,
|
|
|
|
|
show: true,
|
|
|
|
|
marginTop: 0
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/form.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var form_default = {
|
|
|
|
|
// form 组件
|
|
|
|
|
form: {
|
|
|
|
|
model: () => ({}),
|
|
|
|
|
rules: () => ({}),
|
|
|
|
|
errorType: "message",
|
|
|
|
|
borderBottom: true,
|
|
|
|
|
labelPosition: "left",
|
|
|
|
|
labelWidth: 45,
|
|
|
|
|
labelAlign: "left",
|
|
|
|
|
labelStyle: () => ({})
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/formItem.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var formItem_default = {
|
|
|
|
|
// formItem 组件
|
|
|
|
|
formItem: {
|
|
|
|
|
label: "",
|
|
|
|
|
prop: "",
|
|
|
|
|
borderBottom: "",
|
|
|
|
|
labelWidth: "",
|
|
|
|
|
rightIcon: "",
|
|
|
|
|
leftIcon: "",
|
|
|
|
|
required: false,
|
|
|
|
|
leftIconStyle: ""
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/gap.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var gap_default = {
|
|
|
|
|
// gap组件
|
|
|
|
|
gap: {
|
|
|
|
|
bgColor: "transparent",
|
|
|
|
|
height: 20,
|
|
|
|
|
marginTop: 0,
|
|
|
|
|
marginBottom: 0,
|
|
|
|
|
customStyle: {}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/grid.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var grid_default = {
|
|
|
|
|
// grid组件
|
|
|
|
|
grid: {
|
|
|
|
|
col: 3,
|
|
|
|
|
border: false,
|
|
|
|
|
align: "left"
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/gridItem.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var gridItem_default = {
|
|
|
|
|
// grid-item组件
|
|
|
|
|
gridItem: {
|
|
|
|
|
name: null,
|
|
|
|
|
bgColor: "transparent"
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/icon.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var {
|
|
|
|
|
color
|
|
|
|
|
} = config_default;
|
|
|
|
|
var icon_default = {
|
|
|
|
|
// icon组件
|
|
|
|
|
icon: {
|
|
|
|
|
name: "",
|
|
|
|
|
color: color["u-content-color"],
|
|
|
|
|
size: "16px",
|
|
|
|
|
bold: false,
|
|
|
|
|
index: "",
|
|
|
|
|
hoverClass: "",
|
|
|
|
|
customPrefix: "uicon",
|
|
|
|
|
label: "",
|
|
|
|
|
labelPos: "right",
|
|
|
|
|
labelSize: "15px",
|
|
|
|
|
labelColor: color["u-content-color"],
|
|
|
|
|
space: "3px",
|
|
|
|
|
imgMode: "",
|
|
|
|
|
width: "",
|
|
|
|
|
height: "",
|
|
|
|
|
top: 0,
|
|
|
|
|
stop: false
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/image.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var image_default = {
|
|
|
|
|
// image组件
|
|
|
|
|
image: {
|
|
|
|
|
src: "",
|
|
|
|
|
mode: "aspectFill",
|
|
|
|
|
width: "300",
|
|
|
|
|
height: "225",
|
|
|
|
|
shape: "square",
|
|
|
|
|
radius: 0,
|
|
|
|
|
lazyLoad: true,
|
|
|
|
|
showMenuByLongpress: true,
|
|
|
|
|
loadingIcon: "photo",
|
|
|
|
|
errorIcon: "error-circle",
|
|
|
|
|
showLoading: true,
|
|
|
|
|
showError: true,
|
|
|
|
|
fade: true,
|
|
|
|
|
webp: false,
|
|
|
|
|
duration: 500,
|
|
|
|
|
bgColor: "#f3f4f6"
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/indexAnchor.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var indexAnchor_default = {
|
|
|
|
|
// indexAnchor 组件
|
|
|
|
|
indexAnchor: {
|
|
|
|
|
text: "",
|
|
|
|
|
color: "#606266",
|
|
|
|
|
size: 14,
|
|
|
|
|
bgColor: "#dedede",
|
|
|
|
|
height: 32
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/indexList.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var indexList_default = {
|
|
|
|
|
// indexList 组件
|
|
|
|
|
indexList: {
|
|
|
|
|
inactiveColor: "#606266",
|
|
|
|
|
activeColor: "#5677fc",
|
|
|
|
|
indexList: () => [],
|
|
|
|
|
sticky: true,
|
|
|
|
|
customNavHeight: 0
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/input.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var input_default = {
|
|
|
|
|
// index 组件
|
|
|
|
|
input: {
|
|
|
|
|
value: "",
|
|
|
|
|
type: "text",
|
|
|
|
|
fixed: false,
|
|
|
|
|
disabled: false,
|
|
|
|
|
disabledColor: "#f5f7fa",
|
|
|
|
|
clearable: false,
|
|
|
|
|
password: false,
|
|
|
|
|
maxlength: -1,
|
|
|
|
|
placeholder: null,
|
|
|
|
|
placeholderClass: "input-placeholder",
|
|
|
|
|
placeholderStyle: "color: #c0c4cc",
|
|
|
|
|
showWordLimit: false,
|
|
|
|
|
confirmType: "done",
|
|
|
|
|
confirmHold: false,
|
|
|
|
|
holdKeyboard: false,
|
|
|
|
|
focus: false,
|
|
|
|
|
autoBlur: false,
|
|
|
|
|
disableDefaultPadding: false,
|
|
|
|
|
cursor: -1,
|
|
|
|
|
cursorSpacing: 30,
|
|
|
|
|
selectionStart: -1,
|
|
|
|
|
selectionEnd: -1,
|
|
|
|
|
adjustPosition: true,
|
|
|
|
|
inputAlign: "left",
|
|
|
|
|
fontSize: "15px",
|
|
|
|
|
color: "#303133",
|
|
|
|
|
prefixIcon: "",
|
|
|
|
|
prefixIconStyle: "",
|
|
|
|
|
suffixIcon: "",
|
|
|
|
|
suffixIconStyle: "",
|
|
|
|
|
border: "surround",
|
|
|
|
|
readonly: false,
|
|
|
|
|
shape: "square",
|
|
|
|
|
formatter: null
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/keyboard.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var keyboard_default = {
|
|
|
|
|
// 键盘组件
|
|
|
|
|
keyboard: {
|
|
|
|
|
mode: "number",
|
|
|
|
|
dotDisabled: false,
|
|
|
|
|
tooltip: true,
|
|
|
|
|
showTips: true,
|
|
|
|
|
tips: "",
|
|
|
|
|
showCancel: true,
|
|
|
|
|
showConfirm: true,
|
|
|
|
|
random: false,
|
|
|
|
|
safeAreaInsetBottom: true,
|
|
|
|
|
closeOnClickOverlay: true,
|
|
|
|
|
show: false,
|
|
|
|
|
overlay: true,
|
|
|
|
|
zIndex: 10075,
|
|
|
|
|
cancelText: "取消",
|
|
|
|
|
confirmText: "确定",
|
|
|
|
|
autoChange: false
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/line.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var line_default = {
|
|
|
|
|
// line组件
|
|
|
|
|
line: {
|
|
|
|
|
color: "#d6d7d9",
|
|
|
|
|
length: "100%",
|
|
|
|
|
direction: "row",
|
|
|
|
|
hairline: true,
|
|
|
|
|
margin: 0,
|
|
|
|
|
dashed: false
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/lineProgress.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var lineProgress_default = {
|
|
|
|
|
// lineProgress 组件
|
|
|
|
|
lineProgress: {
|
|
|
|
|
activeColor: "#19be6b",
|
|
|
|
|
inactiveColor: "#ececec",
|
|
|
|
|
percentage: 0,
|
|
|
|
|
showText: true,
|
|
|
|
|
height: 12
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/link.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var {
|
|
|
|
|
color: color2
|
|
|
|
|
} = config_default;
|
|
|
|
|
var link_default = {
|
|
|
|
|
// link超链接组件props参数
|
|
|
|
|
link: {
|
|
|
|
|
color: color2["u-primary"],
|
|
|
|
|
fontSize: 15,
|
|
|
|
|
underLine: false,
|
|
|
|
|
href: "",
|
|
|
|
|
mpTips: "链接已复制,请在浏览器打开",
|
|
|
|
|
lineColor: "",
|
|
|
|
|
text: ""
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/list.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var list_default = {
|
|
|
|
|
// list 组件
|
|
|
|
|
list: {
|
|
|
|
|
showScrollbar: false,
|
|
|
|
|
lowerThreshold: 50,
|
|
|
|
|
upperThreshold: 0,
|
|
|
|
|
scrollTop: 0,
|
|
|
|
|
offsetAccuracy: 10,
|
|
|
|
|
enableFlex: false,
|
|
|
|
|
pagingEnabled: false,
|
|
|
|
|
scrollable: true,
|
|
|
|
|
scrollIntoView: "",
|
|
|
|
|
scrollWithAnimation: false,
|
|
|
|
|
enableBackToTop: false,
|
|
|
|
|
height: 0,
|
|
|
|
|
width: 0,
|
|
|
|
|
preLoadScreen: 1
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/listItem.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var listItem_default = {
|
|
|
|
|
// listItem 组件
|
|
|
|
|
listItem: {
|
|
|
|
|
anchor: ""
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/loadingIcon.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var {
|
|
|
|
|
color: color3
|
|
|
|
|
} = config_default;
|
|
|
|
|
var loadingIcon_default = {
|
|
|
|
|
// loading-icon加载中图标组件
|
|
|
|
|
loadingIcon: {
|
|
|
|
|
show: true,
|
|
|
|
|
color: color3["u-tips-color"],
|
|
|
|
|
textColor: color3["u-tips-color"],
|
|
|
|
|
vertical: false,
|
|
|
|
|
mode: "spinner",
|
|
|
|
|
size: 24,
|
|
|
|
|
textSize: 15,
|
|
|
|
|
text: "",
|
|
|
|
|
timingFunction: "ease-in-out",
|
|
|
|
|
duration: 1200,
|
|
|
|
|
inactiveColor: ""
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/loadingPage.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var loadingPage_default = {
|
|
|
|
|
// loading-page组件
|
|
|
|
|
loadingPage: {
|
|
|
|
|
loadingText: "正在加载",
|
|
|
|
|
image: "",
|
|
|
|
|
loadingMode: "circle",
|
|
|
|
|
loading: false,
|
|
|
|
|
bgColor: "#ffffff",
|
|
|
|
|
color: "#C8C8C8",
|
|
|
|
|
fontSize: 19,
|
|
|
|
|
iconSize: 28,
|
|
|
|
|
loadingColor: "#C8C8C8"
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/loadmore.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var loadmore_default = {
|
|
|
|
|
// loadmore 组件
|
|
|
|
|
loadmore: {
|
|
|
|
|
status: "loadmore",
|
|
|
|
|
bgColor: "transparent",
|
|
|
|
|
icon: true,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
iconSize: 17,
|
|
|
|
|
color: "#606266",
|
|
|
|
|
loadingIcon: "spinner",
|
|
|
|
|
loadmoreText: "加载更多",
|
|
|
|
|
loadingText: "正在加载...",
|
|
|
|
|
nomoreText: "没有更多了",
|
|
|
|
|
isDot: false,
|
|
|
|
|
iconColor: "#b7b7b7",
|
|
|
|
|
marginTop: 10,
|
|
|
|
|
marginBottom: 10,
|
|
|
|
|
height: "auto",
|
|
|
|
|
line: false,
|
|
|
|
|
lineColor: "#E6E8EB",
|
|
|
|
|
dashed: false
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/modal.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var modal_default = {
|
|
|
|
|
// modal 组件
|
|
|
|
|
modal: {
|
|
|
|
|
show: false,
|
|
|
|
|
title: "",
|
|
|
|
|
content: "",
|
|
|
|
|
confirmText: "确认",
|
|
|
|
|
cancelText: "取消",
|
|
|
|
|
showConfirmButton: true,
|
|
|
|
|
showCancelButton: false,
|
|
|
|
|
confirmColor: "#2979ff",
|
|
|
|
|
cancelColor: "#606266",
|
|
|
|
|
buttonReverse: false,
|
|
|
|
|
zoom: true,
|
|
|
|
|
asyncClose: false,
|
|
|
|
|
closeOnClickOverlay: false,
|
|
|
|
|
negativeTop: 0,
|
|
|
|
|
width: "650rpx",
|
|
|
|
|
confirmButtonShape: ""
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/color.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var color4 = {
|
|
|
|
|
primary: "#3c9cff",
|
|
|
|
|
info: "#909399",
|
|
|
|
|
default: "#909399",
|
|
|
|
|
warning: "#f9ae3d",
|
|
|
|
|
error: "#f56c6c",
|
|
|
|
|
success: "#5ac725",
|
|
|
|
|
mainColor: "#303133",
|
|
|
|
|
contentColor: "#606266",
|
|
|
|
|
tipsColor: "#909399",
|
|
|
|
|
lightColor: "#c0c4cc",
|
|
|
|
|
borderColor: "#e4e7ed"
|
|
|
|
|
};
|
|
|
|
|
var color_default = color4;
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/navbar.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var navbar_default = {
|
|
|
|
|
// navbar 组件
|
|
|
|
|
navbar: {
|
|
|
|
|
safeAreaInsetTop: true,
|
|
|
|
|
placeholder: false,
|
|
|
|
|
fixed: true,
|
|
|
|
|
border: false,
|
|
|
|
|
leftIcon: "arrow-left",
|
|
|
|
|
leftText: "",
|
|
|
|
|
rightText: "",
|
|
|
|
|
rightIcon: "",
|
|
|
|
|
title: "",
|
|
|
|
|
bgColor: "#ffffff",
|
|
|
|
|
titleWidth: "400rpx",
|
|
|
|
|
height: "44px",
|
|
|
|
|
leftIconSize: 20,
|
|
|
|
|
leftIconColor: color_default.mainColor,
|
|
|
|
|
autoBack: false,
|
|
|
|
|
titleStyle: ""
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/noNetwork.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var noNetwork_default = {
|
|
|
|
|
// noNetwork
|
|
|
|
|
noNetwork: {
|
|
|
|
|
tips: "哎呀,网络信号丢失",
|
|
|
|
|
zIndex: "",
|
|
|
|
|
image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABLKADAAQAAAABAAABLAAAAADYYILnAABAAElEQVR4Ae29CZhkV3kefNeq6m2W7tn3nl0aCbHIAgmQPGB+sLCNzSID9g9PYrAf57d/+4+DiW0cy8QBJ06c2In/PLFDHJ78+MGCGNsYgyxwIwktwEijAc1ohtmnZ+2Z7p5eq6vu9r/vuXWrq25VdVV1V3dXVX9Hmj73nv285963vvOd75yraeIEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQaD8E9PbrkvRopSMwMBBYRs+5O/yJS68cPnzYXel4tFP/jXbqjPRFEAiCQNe6Bw/6gdFn9Oy9Q90LLG2DgBBW2wyldIQIPPPCte2a5q3jtR+4ff/4wuBuXotrDwSEsNpjHKUXQODppy+udYJMEUEZgbd94DvnNwlA7YGAEFZ7jOOK78Xp06eTTkq7sxwQhmXuf/754VXl4iSstRAQwmqt8ZLWlkHg0UcD49qYfUjXfLtMtOZ7npExJu4iqZWLl7DWQUAIq3XGSlpaAYHD77q8xwuCOSUoXw8Sl0eMux977DGzQjES3AIICGG1wCBJEysj8PXnz230XXdr5RQFMYbRvWnv6w8UhMhliyGwYghr4Pjg3oEXL34ey9zyC9tiD2ml5h47dr1LN7S6CMjz/A3PvHh1Z6UyJby5EVgRhKUe7Kz/JU0LfvrJo5f+Y3MPibSuFgQGBgasYSd9l6GDsup0WS/T/9RTp9fXmU2SNwECdQ92E7S57iaMeJnPQLK6ixkDLfjlb7546RfrLkQyNBcC3dsP6oHWMd9G+V3JgwPHh7rnm1/yLQ8CbU9Y33zp0j+nZFUMb/DHmB7+SHGY3LUKAk8cObtD00xlHDrfNge+Z2ozU3c9dvx4Yr5lSL6lR6CtCWvg6OAPw9z538ZhhZRl6XrwhW8du1KX/iNejtwvPQIDR8+vSRqJ/obU7GupjdNdh2gW0ZDypJBFR6BtB2rg2OVtuub9JcmpHIpBoK1xfffLzx4f7C0XL2HNiYDp6bs9z23Ypn1fC1Y/9PCFDc3ZW2lVHIG2JKzTp4Ok7nv/G6Q054MIvda+bNb74pEgKGtwGAdL7pcfAa8vOKEZ2kyjWuLr7uDh+/qvN6o8KWdxEWhLwroyeek/g4zuqwU6kNrhyZcu/UktaSXN8iNwuL9/RuvVXtJ9PbPQ1vhmcP6t9+47u9ByJP/SIdB2hDVw9MJHQFYfrQdCph84evFX68kjaZcPAZJWwjMXRFpJ2zr91tfuvrh8vZCa54NA2xGWrunvmg8QWCJ/N4ir7fCYDxatkOeBB7an501agXbygVdvv9IK/ZQ2FiPQdi9osGbH+zRNf7y4m9Xu9Me7N9nv0HXdr5ZS4psHgXpJC9P/wDRTx0Vn1TxjWG9LGrbaUm/Fi5meSvcrkxf/Cg/ow9XqAUk91v3qHT97r6471dJKfHMi8Oyzgx1Z03t1YAQVT2MwgsC3u+yXHzi0faQ5eyGtqgWBtpOw2Ol9+/TM+sTOn8L08MtzgQCy+tOHXr3jA0JWc6HU/HF5Scssr4jXcYqfP6V/T8iq+ceyWgvbUsKKOn38eJAYyl56TAuCEr2WYei//9Crd/5GlFb81kdASVopSFrerKRlaoZj9HR+700H10+0fg+lB21NWBxe2lhNHsUpDZr27mi4dV379R9+za4/iO7Fbx8ECknLCPTsTDJ17O33bJpqnx6u7J60PWFxeAcCbMV56dJfQKf1bkMLfuGh1+76zMoe9vbuPUnLsb2DtmOe5HSxvXsrvWtLBEhaTx29+Ma27Jx0ShAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQaEsEVoQdVluO3BJ06ptHL34b1XRjp4Ch6Rq24+kmjG4Nwwg+9uA9u/73EjRBqhAEihAoe3xwUQq5WTYEzp0b3ZnV/Ncf6O/9AvY9wlh/6dy3X7ncN512Zw9BVLXjuAP4np44vnQtkZoEgVkEhLBmsWiKqwsXpjbPBOn3gRfenwnc+7GBe+zsjclvonFDS9nA9Iy/u3x9+vAP3735VPk4CRUEFhcBIazFxbfm0k9fHD7k+v4nQFaPQIrx8Gmyx/GJ0J/t7ez7mw0b9MmaC2pQQgh0/ZSm4g5TwueWWtqLt0HuVy4CQljLPPYnB0depTn+b3t+8B4t0AdBUv93h2H9xc6da0aXs2m+r1WQsLRnl7NdUvfKRkAIa5nG//r1oGtsZvjTgev/kqYHF/TA+AXoqv4npJemOEiQU1Eo2l+G0movBK1UBBPU7s9E1+ILAkuNgKwSLjXiqO/khVtvARH8dxDBRkMzPrF/V+9/BlG5y9CUqlXinHv9mRPXtvuus88L9H3JPv2zD2yXExCqAicJBIFWRwAvv3Xqwq0/Pnn+lv/K+ZvfPH3p9p5W75O0fxaBp793ce3AwIDMWmYhafiVgNtwSMsXeHp4eNXJC8Nf0PAdRCiuf/XgrnWUqsqotcvnl9DmRkCdweX4b9N7+m/ih+mbMraLM14yJVwcXItKpT1VRve+ArC3Qqn+3gM7132jKEGZm6tXg86J7OhDfuA/iHwPUpfUZSfu2L59tXxEoQxeyxkEgjKeOnLxHb4RqC+NY5H3+2953d4XlrNN7Vq3ENYij+yZwbG9jpt9GkBPQ5H9zgP9607OVeWp87cOQtn9zwJf+xDMNFfj+jryPqXpxj8c2Nn7P+SXey70lidu4IXzb0DNB4tr9751+HV7zxSHyd1CERDCWiiCc+QPjUCnsaqmZ62O5IN7N/VUNP48ee7mAZDTf4Tt049iUG4Guv4ZfNLos9UIbo7qJWoJEHjy+bP7fNsoOcnW0A0/aacef8PdG28sQTNWTBVCWIs01OfPj66BpfqTmq732UnjgT1bei+Vq4pTv7HM8Ceg2/o1qLQug7T+FaaM3IqTLZdewpoHgYEjV9fphvOj+OShWa5V+CxvZtpzv/LwG/aNl4uXsPoRwI+4uEYjAJ2GmdG8L0FK2mYa+tsrkdXZy+P7x2ZuHdW14P+BLdank9q6Qwd3rf+ckFWjR6Tx5Q2cP58K9Jm3VCIr1ogt48lO237r3//96YofeG18y9q7RFklXITxPXV+5DchKb3ZDMy37Nu5tuxG4R9cHH6b42QfAzlds+3EPXu2rfrBIjRFilwkBIIR7SHoJDurFU89ZOd680Gke6JaWomvjoBIWNUxqivFD87fej0e0n8Fwvr0/t1rnyqX+QfnRz7g+8FX8Rv8vL3auF/IqhxKzR2WCPxXqKeq3krDTdj2ierpJEUtCIgOqxaUakwzNBR0D09yiqePHOjveyOkpxLr9VMXb73V97S/h3nDXx7Y2fdPkAYbncW1IgIDxy5vM7LZt/hgrnLtxyaBrJNxv/72N+6tuNhSLp+EVUZACKsyNnXHvHL+1qcgNf2KbSXu2bt9dcmS9qlzo/fARgcmCtpzB3b1/Vg5QiuslLowENyDW
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/noticeBar.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var noticeBar_default = {
|
|
|
|
|
// noticeBar
|
|
|
|
|
noticeBar: {
|
|
|
|
|
text: () => [],
|
|
|
|
|
direction: "row",
|
|
|
|
|
step: false,
|
|
|
|
|
icon: "volume",
|
|
|
|
|
mode: "",
|
|
|
|
|
color: "#f9ae3d",
|
|
|
|
|
bgColor: "#fdf6ec",
|
|
|
|
|
speed: 80,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
duration: 2e3,
|
|
|
|
|
disableTouch: true,
|
|
|
|
|
url: "",
|
|
|
|
|
linkType: "navigateTo"
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/notify.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var notify_default = {
|
|
|
|
|
// notify组件
|
|
|
|
|
notify: {
|
|
|
|
|
top: 0,
|
|
|
|
|
type: "primary",
|
|
|
|
|
color: "#ffffff",
|
|
|
|
|
bgColor: "",
|
|
|
|
|
message: "",
|
|
|
|
|
duration: 3e3,
|
|
|
|
|
fontSize: 15,
|
|
|
|
|
safeAreaInsetTop: false
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/numberBox.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var numberBox_default = {
|
|
|
|
|
// 步进器组件
|
|
|
|
|
numberBox: {
|
|
|
|
|
name: "",
|
|
|
|
|
value: 0,
|
|
|
|
|
min: 1,
|
|
|
|
|
max: Number.MAX_SAFE_INTEGER,
|
|
|
|
|
step: 1,
|
|
|
|
|
integer: false,
|
|
|
|
|
disabled: false,
|
|
|
|
|
disabledInput: false,
|
|
|
|
|
asyncChange: false,
|
|
|
|
|
inputWidth: 35,
|
|
|
|
|
showMinus: true,
|
|
|
|
|
showPlus: true,
|
|
|
|
|
decimalLength: null,
|
|
|
|
|
longPress: true,
|
|
|
|
|
color: "#323233",
|
|
|
|
|
buttonSize: 30,
|
|
|
|
|
bgColor: "#EBECEE",
|
|
|
|
|
cursorSpacing: 100,
|
|
|
|
|
disableMinus: false,
|
|
|
|
|
disablePlus: false,
|
|
|
|
|
iconStyle: ""
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/numberKeyboard.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var numberKeyboard_default = {
|
|
|
|
|
// 数字键盘
|
|
|
|
|
numberKeyboard: {
|
|
|
|
|
mode: "number",
|
|
|
|
|
dotDisabled: false,
|
|
|
|
|
random: false
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/overlay.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var overlay_default = {
|
|
|
|
|
// overlay组件
|
|
|
|
|
overlay: {
|
|
|
|
|
show: false,
|
|
|
|
|
zIndex: 10070,
|
|
|
|
|
duration: 300,
|
|
|
|
|
opacity: 0.5
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/parse.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var parse_default = {
|
|
|
|
|
// parse
|
|
|
|
|
parse: {
|
|
|
|
|
copyLink: true,
|
|
|
|
|
errorImg: "",
|
|
|
|
|
lazyLoad: false,
|
|
|
|
|
loadingImg: "",
|
|
|
|
|
pauseVideo: true,
|
|
|
|
|
previewImg: true,
|
|
|
|
|
setTitle: true,
|
|
|
|
|
showImgMenu: true
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/picker.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var picker_default = {
|
|
|
|
|
// picker
|
|
|
|
|
picker: {
|
|
|
|
|
show: false,
|
|
|
|
|
showToolbar: true,
|
|
|
|
|
title: "",
|
|
|
|
|
columns: () => [],
|
|
|
|
|
loading: false,
|
|
|
|
|
itemHeight: 44,
|
|
|
|
|
cancelText: "取消",
|
|
|
|
|
confirmText: "确定",
|
|
|
|
|
cancelColor: "#909193",
|
|
|
|
|
confirmColor: "#3c9cff",
|
|
|
|
|
visibleItemCount: 5,
|
|
|
|
|
keyName: "text",
|
|
|
|
|
closeOnClickOverlay: false,
|
|
|
|
|
defaultIndex: () => [],
|
|
|
|
|
immediateChange: false
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/popup.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var popup_default = {
|
|
|
|
|
// popup组件
|
|
|
|
|
popup: {
|
|
|
|
|
show: false,
|
|
|
|
|
overlay: true,
|
|
|
|
|
mode: "bottom",
|
|
|
|
|
duration: 300,
|
|
|
|
|
closeable: false,
|
|
|
|
|
overlayStyle: () => {
|
|
|
|
|
},
|
|
|
|
|
closeOnClickOverlay: true,
|
|
|
|
|
zIndex: 10075,
|
|
|
|
|
safeAreaInsetBottom: true,
|
|
|
|
|
safeAreaInsetTop: false,
|
|
|
|
|
closeIconPos: "top-right",
|
|
|
|
|
round: 0,
|
|
|
|
|
zoom: true,
|
|
|
|
|
bgColor: "",
|
|
|
|
|
overlayOpacity: 0.5
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/radio.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var radio_default = {
|
|
|
|
|
// radio组件
|
|
|
|
|
radio: {
|
|
|
|
|
name: "",
|
|
|
|
|
shape: "",
|
|
|
|
|
disabled: "",
|
|
|
|
|
labelDisabled: "",
|
|
|
|
|
activeColor: "",
|
|
|
|
|
inactiveColor: "",
|
|
|
|
|
iconSize: "",
|
|
|
|
|
labelSize: "",
|
|
|
|
|
label: "",
|
|
|
|
|
labelColor: "",
|
|
|
|
|
size: "",
|
|
|
|
|
iconColor: "",
|
|
|
|
|
placement: ""
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/radioGroup.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var radioGroup_default = {
|
|
|
|
|
// radio-group组件
|
|
|
|
|
radioGroup: {
|
|
|
|
|
value: "",
|
|
|
|
|
disabled: false,
|
|
|
|
|
shape: "circle",
|
|
|
|
|
activeColor: "#2979ff",
|
|
|
|
|
inactiveColor: "#c8c9cc",
|
|
|
|
|
name: "",
|
|
|
|
|
size: 18,
|
|
|
|
|
placement: "row",
|
|
|
|
|
label: "",
|
|
|
|
|
labelColor: "#303133",
|
|
|
|
|
labelSize: 14,
|
|
|
|
|
labelDisabled: false,
|
|
|
|
|
iconColor: "#ffffff",
|
|
|
|
|
iconSize: 12,
|
|
|
|
|
borderBottom: false,
|
|
|
|
|
iconPlacement: "left"
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/rate.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var rate_default = {
|
|
|
|
|
// rate组件
|
|
|
|
|
rate: {
|
|
|
|
|
value: 1,
|
|
|
|
|
count: 5,
|
|
|
|
|
disabled: false,
|
|
|
|
|
size: 18,
|
|
|
|
|
inactiveColor: "#b2b2b2",
|
|
|
|
|
activeColor: "#FA3534",
|
|
|
|
|
gutter: 4,
|
|
|
|
|
minCount: 1,
|
|
|
|
|
allowHalf: false,
|
|
|
|
|
activeIcon: "star-fill",
|
|
|
|
|
inactiveIcon: "star",
|
|
|
|
|
touchable: true
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/readMore.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var readMore_default = {
|
|
|
|
|
// readMore
|
|
|
|
|
readMore: {
|
|
|
|
|
showHeight: 400,
|
|
|
|
|
toggle: false,
|
|
|
|
|
closeText: "展开阅读全文",
|
|
|
|
|
openText: "收起",
|
|
|
|
|
color: "#2979ff",
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
textIndent: "2em",
|
|
|
|
|
name: ""
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/row.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var row_default = {
|
|
|
|
|
// row
|
|
|
|
|
row: {
|
|
|
|
|
gutter: 0,
|
|
|
|
|
justify: "start",
|
|
|
|
|
align: "center"
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/rowNotice.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var rowNotice_default = {
|
|
|
|
|
// rowNotice
|
|
|
|
|
rowNotice: {
|
|
|
|
|
text: "",
|
|
|
|
|
icon: "volume",
|
|
|
|
|
mode: "",
|
|
|
|
|
color: "#f9ae3d",
|
|
|
|
|
bgColor: "#fdf6ec",
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
speed: 80
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/scrollList.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var scrollList_default = {
|
|
|
|
|
// scrollList
|
|
|
|
|
scrollList: {
|
|
|
|
|
indicatorWidth: 50,
|
|
|
|
|
indicatorBarWidth: 20,
|
|
|
|
|
indicator: true,
|
|
|
|
|
indicatorColor: "#f2f2f2",
|
|
|
|
|
indicatorActiveColor: "#3c9cff",
|
|
|
|
|
indicatorStyle: ""
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/search.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var search_default = {
|
|
|
|
|
// search
|
|
|
|
|
search: {
|
|
|
|
|
shape: "round",
|
|
|
|
|
bgColor: "#f2f2f2",
|
|
|
|
|
placeholder: "请输入关键字",
|
|
|
|
|
clearabled: true,
|
|
|
|
|
focus: false,
|
|
|
|
|
showAction: true,
|
|
|
|
|
actionStyle: () => ({}),
|
|
|
|
|
actionText: "搜索",
|
|
|
|
|
inputAlign: "left",
|
|
|
|
|
inputStyle: () => ({}),
|
|
|
|
|
disabled: false,
|
|
|
|
|
borderColor: "transparent",
|
|
|
|
|
searchIconColor: "#909399",
|
|
|
|
|
searchIconSize: 22,
|
|
|
|
|
color: "#606266",
|
|
|
|
|
placeholderColor: "#909399",
|
|
|
|
|
searchIcon: "search",
|
|
|
|
|
margin: "0",
|
|
|
|
|
animation: false,
|
|
|
|
|
value: "",
|
|
|
|
|
maxlength: "-1",
|
|
|
|
|
height: 32,
|
|
|
|
|
label: null
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/section.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var section_default = {
|
|
|
|
|
// u-section组件
|
|
|
|
|
section: {
|
|
|
|
|
title: "",
|
|
|
|
|
subTitle: "更多",
|
|
|
|
|
right: true,
|
|
|
|
|
fontSize: 15,
|
|
|
|
|
bold: true,
|
|
|
|
|
color: "#303133",
|
|
|
|
|
subColor: "#909399",
|
|
|
|
|
showLine: true,
|
|
|
|
|
lineColor: "",
|
|
|
|
|
arrow: true
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/skeleton.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var skeleton_default = {
|
|
|
|
|
// skeleton
|
|
|
|
|
skeleton: {
|
|
|
|
|
loading: true,
|
|
|
|
|
animate: true,
|
|
|
|
|
rows: 0,
|
|
|
|
|
rowsWidth: "100%",
|
|
|
|
|
rowsHeight: 18,
|
|
|
|
|
title: true,
|
|
|
|
|
titleWidth: "50%",
|
|
|
|
|
titleHeight: 18,
|
|
|
|
|
avatar: false,
|
|
|
|
|
avatarSize: 32,
|
|
|
|
|
avatarShape: "circle"
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/slider.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var slider_default = {
|
|
|
|
|
// slider组件
|
|
|
|
|
slider: {
|
|
|
|
|
value: 0,
|
|
|
|
|
blockSize: 18,
|
|
|
|
|
min: 0,
|
|
|
|
|
max: 100,
|
|
|
|
|
step: 1,
|
|
|
|
|
activeColor: "#2979ff",
|
|
|
|
|
inactiveColor: "#c0c4cc",
|
|
|
|
|
blockColor: "#ffffff",
|
|
|
|
|
showValue: false,
|
|
|
|
|
disabled: false,
|
|
|
|
|
blockStyle: () => {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/statusBar.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var statusBar_default = {
|
|
|
|
|
// statusBar
|
|
|
|
|
statusBar: {
|
|
|
|
|
bgColor: "transparent"
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/steps.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var steps_default = {
|
|
|
|
|
// steps组件
|
|
|
|
|
steps: {
|
|
|
|
|
direction: "row",
|
|
|
|
|
current: 0,
|
|
|
|
|
activeColor: "#3c9cff",
|
|
|
|
|
inactiveColor: "#969799",
|
|
|
|
|
activeIcon: "",
|
|
|
|
|
inactiveIcon: "",
|
|
|
|
|
dot: false
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/stepsItem.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var stepsItem_default = {
|
|
|
|
|
// steps-item组件
|
|
|
|
|
stepsItem: {
|
|
|
|
|
title: "",
|
|
|
|
|
desc: "",
|
|
|
|
|
iconSize: 17,
|
|
|
|
|
error: false
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/sticky.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var sticky_default = {
|
|
|
|
|
// sticky组件
|
|
|
|
|
sticky: {
|
|
|
|
|
offsetTop: 0,
|
|
|
|
|
customNavHeight: 0,
|
|
|
|
|
disabled: false,
|
|
|
|
|
bgColor: "transparent",
|
|
|
|
|
zIndex: "",
|
|
|
|
|
index: ""
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/subsection.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var subsection_default = {
|
|
|
|
|
// subsection组件
|
|
|
|
|
subsection: {
|
|
|
|
|
list: [],
|
|
|
|
|
current: 0,
|
|
|
|
|
activeColor: "#3c9cff",
|
|
|
|
|
inactiveColor: "#303133",
|
|
|
|
|
mode: "button",
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
bold: true,
|
|
|
|
|
bgColor: "#eeeeef",
|
|
|
|
|
keyName: "name"
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swipeAction.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var swipeAction_default = {
|
|
|
|
|
// swipe-action组件
|
|
|
|
|
swipeAction: {
|
|
|
|
|
autoClose: true
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swipeActionItem.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var swipeActionItem_default = {
|
|
|
|
|
// swipeActionItem 组件
|
|
|
|
|
swipeActionItem: {
|
|
|
|
|
show: false,
|
|
|
|
|
name: "",
|
|
|
|
|
disabled: false,
|
|
|
|
|
threshold: 20,
|
|
|
|
|
autoClose: true,
|
|
|
|
|
options: [],
|
|
|
|
|
duration: 300
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swiper.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var swiper_default = {
|
|
|
|
|
// swiper 组件
|
|
|
|
|
swiper: {
|
|
|
|
|
list: () => [],
|
|
|
|
|
indicator: false,
|
|
|
|
|
indicatorActiveColor: "#FFFFFF",
|
|
|
|
|
indicatorInactiveColor: "rgba(255, 255, 255, 0.35)",
|
|
|
|
|
indicatorStyle: "",
|
|
|
|
|
indicatorMode: "line",
|
|
|
|
|
autoplay: true,
|
|
|
|
|
current: 0,
|
|
|
|
|
currentItemId: "",
|
|
|
|
|
interval: 3e3,
|
|
|
|
|
duration: 300,
|
|
|
|
|
circular: false,
|
|
|
|
|
previousMargin: 0,
|
|
|
|
|
nextMargin: 0,
|
|
|
|
|
acceleration: false,
|
|
|
|
|
displayMultipleItems: 1,
|
|
|
|
|
easingFunction: "default",
|
|
|
|
|
keyName: "url",
|
|
|
|
|
imgMode: "aspectFill",
|
|
|
|
|
height: 130,
|
|
|
|
|
bgColor: "#f3f4f6",
|
|
|
|
|
radius: 4,
|
|
|
|
|
loading: false,
|
|
|
|
|
showTitle: false
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swipterIndicator.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var swipterIndicator_default = {
|
|
|
|
|
// swiperIndicator 组件
|
|
|
|
|
swiperIndicator: {
|
|
|
|
|
length: 0,
|
|
|
|
|
current: 0,
|
|
|
|
|
indicatorActiveColor: "",
|
|
|
|
|
indicatorInactiveColor: "",
|
|
|
|
|
indicatorMode: "line"
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/switch.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var switch_default = {
|
|
|
|
|
// switch
|
|
|
|
|
switch: {
|
|
|
|
|
loading: false,
|
|
|
|
|
disabled: false,
|
|
|
|
|
size: 25,
|
|
|
|
|
activeColor: "#2979ff",
|
|
|
|
|
inactiveColor: "#ffffff",
|
|
|
|
|
value: false,
|
|
|
|
|
activeValue: true,
|
|
|
|
|
inactiveValue: false,
|
|
|
|
|
asyncChange: false,
|
|
|
|
|
space: 0
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tabbar.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var tabbar_default = {
|
|
|
|
|
// tabbar
|
|
|
|
|
tabbar: {
|
|
|
|
|
value: null,
|
|
|
|
|
safeAreaInsetBottom: true,
|
|
|
|
|
border: true,
|
|
|
|
|
zIndex: 1,
|
|
|
|
|
activeColor: "#1989fa",
|
|
|
|
|
inactiveColor: "#7d7e80",
|
|
|
|
|
fixed: true,
|
|
|
|
|
placeholder: true
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tabbarItem.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var tabbarItem_default = {
|
|
|
|
|
//
|
|
|
|
|
tabbarItem: {
|
|
|
|
|
name: null,
|
|
|
|
|
icon: "",
|
|
|
|
|
badge: null,
|
|
|
|
|
dot: false,
|
|
|
|
|
text: "",
|
|
|
|
|
badgeStyle: "top: 6px;right:2px;"
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tabs.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var tabs_default = {
|
|
|
|
|
//
|
|
|
|
|
tabs: {
|
|
|
|
|
duration: 300,
|
|
|
|
|
list: () => [],
|
|
|
|
|
lineColor: "#3c9cff",
|
|
|
|
|
activeStyle: () => ({
|
|
|
|
|
color: "#303133"
|
|
|
|
|
}),
|
|
|
|
|
inactiveStyle: () => ({
|
|
|
|
|
color: "#606266"
|
|
|
|
|
}),
|
|
|
|
|
lineWidth: 20,
|
|
|
|
|
lineHeight: 3,
|
|
|
|
|
lineBgSize: "cover",
|
|
|
|
|
itemStyle: () => ({
|
|
|
|
|
height: "44px"
|
|
|
|
|
}),
|
|
|
|
|
scrollable: true,
|
|
|
|
|
current: 0,
|
|
|
|
|
keyName: "name"
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tag.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var tag_default = {
|
|
|
|
|
// tag 组件
|
|
|
|
|
tag: {
|
|
|
|
|
type: "primary",
|
|
|
|
|
disabled: false,
|
|
|
|
|
size: "medium",
|
|
|
|
|
shape: "square",
|
|
|
|
|
text: "",
|
|
|
|
|
bgColor: "",
|
|
|
|
|
color: "",
|
|
|
|
|
borderColor: "",
|
|
|
|
|
closeColor: "#C6C7CB",
|
|
|
|
|
name: "",
|
|
|
|
|
plainFill: false,
|
|
|
|
|
plain: false,
|
|
|
|
|
closable: false,
|
|
|
|
|
show: true,
|
|
|
|
|
icon: ""
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/text.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var text_default = {
|
|
|
|
|
// text 组件
|
|
|
|
|
text: {
|
|
|
|
|
type: "",
|
|
|
|
|
show: true,
|
|
|
|
|
text: "",
|
|
|
|
|
prefixIcon: "",
|
|
|
|
|
suffixIcon: "",
|
|
|
|
|
mode: "",
|
|
|
|
|
href: "",
|
|
|
|
|
format: "",
|
|
|
|
|
call: false,
|
|
|
|
|
openType: "",
|
|
|
|
|
bold: false,
|
|
|
|
|
block: false,
|
|
|
|
|
lines: "",
|
|
|
|
|
color: "#303133",
|
|
|
|
|
size: 15,
|
|
|
|
|
iconStyle: () => ({
|
|
|
|
|
fontSize: "15px"
|
|
|
|
|
}),
|
|
|
|
|
decoration: "none",
|
|
|
|
|
margin: 0,
|
|
|
|
|
lineHeight: "",
|
|
|
|
|
align: "left",
|
|
|
|
|
wordWrap: "normal"
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/textarea.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var textarea_default = {
|
|
|
|
|
// textarea 组件
|
|
|
|
|
textarea: {
|
|
|
|
|
value: "",
|
|
|
|
|
placeholder: "",
|
|
|
|
|
placeholderClass: "textarea-placeholder",
|
|
|
|
|
placeholderStyle: "color: #c0c4cc",
|
|
|
|
|
height: 70,
|
|
|
|
|
confirmType: "done",
|
|
|
|
|
disabled: false,
|
|
|
|
|
count: false,
|
|
|
|
|
focus: false,
|
|
|
|
|
autoHeight: false,
|
|
|
|
|
fixed: false,
|
|
|
|
|
cursorSpacing: 0,
|
|
|
|
|
cursor: "",
|
|
|
|
|
showConfirmBar: true,
|
|
|
|
|
selectionStart: -1,
|
|
|
|
|
selectionEnd: -1,
|
|
|
|
|
adjustPosition: true,
|
|
|
|
|
disableDefaultPadding: false,
|
|
|
|
|
holdKeyboard: false,
|
|
|
|
|
maxlength: 140,
|
|
|
|
|
border: "surround",
|
|
|
|
|
formatter: null
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/toast.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var toast_default = {
|
|
|
|
|
// toast组件
|
|
|
|
|
toast: {
|
|
|
|
|
zIndex: 10090,
|
|
|
|
|
loading: false,
|
|
|
|
|
text: "",
|
|
|
|
|
icon: "",
|
|
|
|
|
type: "",
|
|
|
|
|
loadingMode: "",
|
|
|
|
|
show: "",
|
|
|
|
|
overlay: false,
|
|
|
|
|
position: "center",
|
|
|
|
|
params: () => {
|
|
|
|
|
},
|
|
|
|
|
duration: 2e3,
|
|
|
|
|
isTab: false,
|
|
|
|
|
url: "",
|
|
|
|
|
callback: null,
|
|
|
|
|
back: false
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/toolbar.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var toolbar_default = {
|
|
|
|
|
// toolbar 组件
|
|
|
|
|
toolbar: {
|
|
|
|
|
show: true,
|
|
|
|
|
cancelText: "取消",
|
|
|
|
|
confirmText: "确认",
|
|
|
|
|
cancelColor: "#909193",
|
|
|
|
|
confirmColor: "#3c9cff",
|
|
|
|
|
title: ""
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tooltip.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var tooltip_default = {
|
|
|
|
|
// tooltip 组件
|
|
|
|
|
tooltip: {
|
|
|
|
|
text: "",
|
|
|
|
|
copyText: "",
|
|
|
|
|
size: 14,
|
|
|
|
|
color: "#606266",
|
|
|
|
|
bgColor: "transparent",
|
|
|
|
|
direction: "top",
|
|
|
|
|
zIndex: 10071,
|
|
|
|
|
showCopy: true,
|
|
|
|
|
buttons: () => [],
|
|
|
|
|
overlay: true,
|
|
|
|
|
showToast: true
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/transition.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var transition_default = {
|
|
|
|
|
// transition动画组件的props
|
|
|
|
|
transition: {
|
|
|
|
|
show: false,
|
|
|
|
|
mode: "fade",
|
|
|
|
|
duration: "300",
|
|
|
|
|
timingFunction: "ease-out"
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/upload.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var upload_default = {
|
|
|
|
|
// upload组件
|
|
|
|
|
upload: {
|
|
|
|
|
accept: "image",
|
|
|
|
|
capture: () => ["album", "camera"],
|
|
|
|
|
compressed: true,
|
|
|
|
|
camera: "back",
|
|
|
|
|
maxDuration: 60,
|
|
|
|
|
uploadIcon: "camera-fill",
|
|
|
|
|
uploadIconColor: "#D3D4D6",
|
|
|
|
|
useBeforeRead: false,
|
|
|
|
|
previewFullImage: true,
|
|
|
|
|
maxCount: 52,
|
|
|
|
|
disabled: false,
|
|
|
|
|
imageMode: "aspectFill",
|
|
|
|
|
name: "",
|
|
|
|
|
sizeType: () => ["original", "compressed"],
|
|
|
|
|
multiple: false,
|
|
|
|
|
deletable: true,
|
|
|
|
|
maxSize: Number.MAX_VALUE,
|
|
|
|
|
fileList: () => [],
|
|
|
|
|
uploadText: "",
|
|
|
|
|
width: 80,
|
|
|
|
|
height: 80,
|
|
|
|
|
previewImage: true
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var {
|
|
|
|
|
color: color5
|
|
|
|
|
} = config_default;
|
|
|
|
|
var props_default = {
|
|
|
|
|
...actionSheet_default,
|
|
|
|
|
...album_default,
|
|
|
|
|
...alert_default,
|
|
|
|
|
...avatar_default,
|
|
|
|
|
...avatarGroup_default,
|
|
|
|
|
...backtop_default,
|
|
|
|
|
...badge_default,
|
|
|
|
|
...button_default,
|
|
|
|
|
...calendar_default,
|
|
|
|
|
...carKeyboard_default,
|
|
|
|
|
...cell_default,
|
|
|
|
|
...cellGroup_default,
|
|
|
|
|
...checkbox_default,
|
|
|
|
|
...checkboxGroup_default,
|
|
|
|
|
...circleProgress_default,
|
|
|
|
|
...code_default,
|
|
|
|
|
...codeInput_default,
|
|
|
|
|
...col_default,
|
|
|
|
|
...collapse_default,
|
|
|
|
|
...collapseItem_default,
|
|
|
|
|
...columnNotice_default,
|
|
|
|
|
...countDown_default,
|
|
|
|
|
...countTo_default,
|
|
|
|
|
...datetimePicker_default,
|
|
|
|
|
...divider_default,
|
|
|
|
|
...empty_default,
|
|
|
|
|
...form_default,
|
|
|
|
|
...formItem_default,
|
|
|
|
|
...gap_default,
|
|
|
|
|
...grid_default,
|
|
|
|
|
...gridItem_default,
|
|
|
|
|
...icon_default,
|
|
|
|
|
...image_default,
|
|
|
|
|
...indexAnchor_default,
|
|
|
|
|
...indexList_default,
|
|
|
|
|
...input_default,
|
|
|
|
|
...keyboard_default,
|
|
|
|
|
...line_default,
|
|
|
|
|
...lineProgress_default,
|
|
|
|
|
...link_default,
|
|
|
|
|
...list_default,
|
|
|
|
|
...listItem_default,
|
|
|
|
|
...loadingIcon_default,
|
|
|
|
|
...loadingPage_default,
|
|
|
|
|
...loadmore_default,
|
|
|
|
|
...modal_default,
|
|
|
|
|
...navbar_default,
|
|
|
|
|
...noNetwork_default,
|
|
|
|
|
...noticeBar_default,
|
|
|
|
|
...notify_default,
|
|
|
|
|
...numberBox_default,
|
|
|
|
|
...numberKeyboard_default,
|
|
|
|
|
...overlay_default,
|
|
|
|
|
...parse_default,
|
|
|
|
|
...picker_default,
|
|
|
|
|
...popup_default,
|
|
|
|
|
...radio_default,
|
|
|
|
|
...radioGroup_default,
|
|
|
|
|
...rate_default,
|
|
|
|
|
...readMore_default,
|
|
|
|
|
...row_default,
|
|
|
|
|
...rowNotice_default,
|
|
|
|
|
...scrollList_default,
|
|
|
|
|
...search_default,
|
|
|
|
|
...section_default,
|
|
|
|
|
...skeleton_default,
|
|
|
|
|
...slider_default,
|
|
|
|
|
...statusBar_default,
|
|
|
|
|
...steps_default,
|
|
|
|
|
...stepsItem_default,
|
|
|
|
|
...sticky_default,
|
|
|
|
|
...subsection_default,
|
|
|
|
|
...swipeAction_default,
|
|
|
|
|
...swipeActionItem_default,
|
|
|
|
|
...swiper_default,
|
|
|
|
|
...swipterIndicator_default,
|
|
|
|
|
...switch_default,
|
|
|
|
|
...tabbar_default,
|
|
|
|
|
...tabbarItem_default,
|
|
|
|
|
...tabs_default,
|
|
|
|
|
...tag_default,
|
|
|
|
|
...text_default,
|
|
|
|
|
...textarea_default,
|
|
|
|
|
...toast_default,
|
|
|
|
|
...toolbar_default,
|
|
|
|
|
...tooltip_default,
|
|
|
|
|
...transition_default,
|
|
|
|
|
...upload_default
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/zIndex.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var zIndex_default = {
|
|
|
|
|
toast: 10090,
|
|
|
|
|
noNetwork: 10080,
|
|
|
|
|
// popup包含popup,actionsheet,keyboard,picker的值
|
|
|
|
|
popup: 10075,
|
|
|
|
|
mask: 10070,
|
|
|
|
|
navbar: 980,
|
|
|
|
|
topTips: 975,
|
|
|
|
|
sticky: 970,
|
|
|
|
|
indexListSticky: 965
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/platform.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var platform = "none";
|
|
|
|
|
platform = "vue3";
|
|
|
|
|
platform = "h5";
|
|
|
|
|
var platform_default = platform;
|
|
|
|
|
|
2023-12-18 18:48:57 +08:00
|
|
|
|
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/index.js
|
2023-10-17 16:02:55 +08:00
|
|
|
|
var pleaseSetTranspileDependencies = {};
|
|
|
|
|
var babelTest = pleaseSetTranspileDependencies == null ? void 0 : pleaseSetTranspileDependencies.test;
|
|
|
|
|
var $u = {
|
|
|
|
|
route: route_default,
|
|
|
|
|
date: function_default.timeFormat,
|
|
|
|
|
// 另名date
|
|
|
|
|
colorGradient: colorGradient_default.colorGradient,
|
|
|
|
|
hexToRgb: colorGradient_default.hexToRgb,
|
|
|
|
|
rgbToHex: colorGradient_default.rgbToHex,
|
|
|
|
|
colorToRgba: colorGradient_default.colorToRgba,
|
|
|
|
|
test: test_default,
|
|
|
|
|
type: ["primary", "success", "error", "warning", "info"],
|
|
|
|
|
http: new luch_request_default(),
|
|
|
|
|
config: config_default,
|
|
|
|
|
// uView配置信息相关,比如版本号
|
|
|
|
|
zIndex: zIndex_default,
|
|
|
|
|
debounce: debounce_default,
|
|
|
|
|
throttle: throttle_default,
|
|
|
|
|
mixin: mixin_default,
|
|
|
|
|
mpMixin: mpMixin_default,
|
|
|
|
|
props: props_default,
|
|
|
|
|
...function_default,
|
|
|
|
|
color: color_default,
|
|
|
|
|
platform: platform_default
|
|
|
|
|
};
|
|
|
|
|
uni.$u = $u;
|
|
|
|
|
var install = (Vue) => {
|
|
|
|
|
Vue.config.globalProperties.$u = $u;
|
|
|
|
|
Vue.config.globalProperties.$nextTick = (cb) => {
|
|
|
|
|
cb();
|
|
|
|
|
};
|
|
|
|
|
Vue.mixin(mixin_default);
|
|
|
|
|
};
|
|
|
|
|
var uview_plus_default = {
|
|
|
|
|
install
|
|
|
|
|
};
|
|
|
|
|
export {
|
|
|
|
|
uview_plus_default as default
|
|
|
|
|
};
|
|
|
|
|
//# sourceMappingURL=uview-plus.js.map
|