This commit is contained in:
zmj 2023-12-18 18:48:57 +08:00
parent 0e32a4c7d4
commit a59c789cd8
9 changed files with 563 additions and 134 deletions

View File

@ -2,7 +2,7 @@
"version" : "1.0",
"configurations" : [
{
"playground" : "standard",
"playground" : "custom",
"type" : "uni-app:app-android"
},
{

View File

@ -1,11 +1,11 @@
{
"hash": "778bad7d",
"browserHash": "24338c83",
"hash": "8ba23d55",
"browserHash": "9b7bcd37",
"optimized": {
"uview-plus": {
"src": "../../uview-plus/index.js",
"file": "uview-plus.js",
"fileHash": "525bf6f5",
"fileHash": "5cac3687",
"needsInterop": false
}
},

234
node_modules/.vite/deps/uview-plus.js generated vendored
View File

@ -1,4 +1,4 @@
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/mixin/mixin.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/mixin/mixin.js
var mixin_default = {
// 定义每个组件都可能需要用到的外部样式以及类名
props: {
@ -129,10 +129,10 @@ var mixin_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/mixin/mpMixin.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/mixin/mpMixin.js
var mpMixin_default = {};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/utils.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/utils.js
var { toString } = Object.prototype;
function isArray(val) {
return toString.call(val) === "[object Array]";
@ -188,7 +188,7 @@ function isUndefined(val) {
return typeof val === "undefined";
}
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/helpers/buildURL.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/helpers/buildURL.js
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, "]");
}
@ -231,17 +231,17 @@ function buildURL(url2, params) {
return url2;
}
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/helpers/isAbsoluteURL.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/helpers/isAbsoluteURL.js
function isAbsoluteURL(url2) {
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
}
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/helpers/combineURLs.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/helpers/combineURLs.js
function combineURLs(baseURL, relativeURL) {
return relativeURL ? `${baseURL.replace(/\/+$/, "")}/${relativeURL.replace(/^\/+/, "")}` : baseURL;
}
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/buildFullPath.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/buildFullPath.js
function buildFullPath(baseURL, requestedURL) {
if (baseURL && !isAbsoluteURL(requestedURL)) {
return combineURLs(baseURL, requestedURL);
@ -249,7 +249,7 @@ function buildFullPath(baseURL, requestedURL) {
return requestedURL;
}
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/settle.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/settle.js
function settle(resolve, reject, response) {
const { validateStatus: validateStatus2 } = response.config;
const status = response.statusCode;
@ -260,7 +260,7 @@ function settle(resolve, reject, response) {
}
}
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/adapters/index.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/adapters/index.js
var mergeKeys = (keys, config2) => {
const config = {};
keys.forEach((prop) => {
@ -323,10 +323,10 @@ var adapters_default = (config) => new Promise((resolve, reject) => {
}
});
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/dispatchRequest.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/dispatchRequest.js
var dispatchRequest_default = (config) => adapters_default(config);
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/InterceptorManager.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/InterceptorManager.js
function InterceptorManager() {
this.handlers = [];
}
@ -351,7 +351,7 @@ InterceptorManager.prototype.forEach = function forEach2(fn) {
};
var InterceptorManager_default = InterceptorManager;
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/mergeConfig.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/mergeConfig.js
var mergeKeys2 = (keys, globalsConfig, config2) => {
const config = {};
keys.forEach((prop) => {
@ -413,7 +413,7 @@ var mergeConfig_default = (globalsConfig, config2 = {}) => {
return config;
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/defaults.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/defaults.js
var defaults_default = {
baseURL: "",
header: {},
@ -428,7 +428,7 @@ var defaults_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/utils/clone.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/utils/clone.js
var clone = function() {
"use strict";
function _instanceof(obj, type) {
@ -625,7 +625,7 @@ var clone = function() {
}();
var clone_default = clone;
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/Request.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/Request.js
var Request = class {
/**
* @param {Object} arg - 全局配置
@ -763,10 +763,10 @@ var Request = class {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/index.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/index.js
var luch_request_default = Request;
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/util/route.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/util/route.js
var Router = class {
constructor() {
this.config = {
@ -866,7 +866,7 @@ var Router = class {
};
var route_default = new Router().route;
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/function/colorGradient.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/colorGradient.js
function colorGradient(startColor = "rgb(0, 0, 0)", endColor = "rgb(255, 255, 255)", step = 10) {
const startRGB = hexToRgb(startColor, false);
const startR = startRGB[0];
@ -978,7 +978,7 @@ var colorGradient_default = {
colorToRgba
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/function/test.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/test.js
function email(value) {
return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
}
@ -1152,7 +1152,7 @@ var test_default = {
string
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/function/debounce.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/debounce.js
var timeout = null;
function debounce(func2, wait = 500, immediate = false) {
if (timeout !== null)
@ -1172,7 +1172,7 @@ function debounce(func2, wait = 500, immediate = false) {
}
var debounce_default = debounce;
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/function/throttle.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/throttle.js
var timer;
var flag;
function throttle(func2, wait = 500, immediate = true) {
@ -1194,7 +1194,7 @@ function throttle(func2, wait = 500, immediate = true) {
}
var throttle_default = throttle;
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/function/digit.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/digit.js
var _boundaryCheckingState = true;
function strip(num, precision = 15) {
return +parseFloat(Number(num).toPrecision(precision));
@ -1258,7 +1258,7 @@ function round(num, ratio) {
return result;
}
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/function/index.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/index.js
function range2(min = 0, max = 0, value = 0) {
return Math.max(min, Math.min(max, Number(value)));
}
@ -1732,7 +1732,7 @@ var function_default = {
setConfig
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/config.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/config.js
var version = "3";
if (true) {
console.log(`
@ -1767,7 +1767,7 @@ var config_default = {
unit: "px"
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/actionSheet.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/actionSheet.js
var actionSheet_default = {
// action-sheet组件
actionSheet: {
@ -1785,7 +1785,7 @@ var actionSheet_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/album.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/album.js
var album_default = {
// album 组件
album: {
@ -1803,7 +1803,7 @@ var album_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/alert.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/alert.js
var alert_default = {
// alert警告组件
alert: {
@ -1818,7 +1818,7 @@ var alert_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/avatar.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/avatar.js
var avatar_default = {
// avatar 组件
avatar: {
@ -1839,7 +1839,7 @@ var avatar_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/avatarGroup.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/avatarGroup.js
var avatarGroup_default = {
// avatarGroup 组件
avatarGroup: {
@ -1855,7 +1855,7 @@ var avatarGroup_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/backtop.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/backtop.js
var backtop_default = {
// backtop组件
backtop: {
@ -1875,7 +1875,7 @@ var backtop_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/badge.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/badge.js
var badge_default = {
// 徽标数组件
badge: {
@ -1895,7 +1895,7 @@ var badge_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/button.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/button.js
var button_default = {
// button组件
button: {
@ -1930,7 +1930,7 @@ var button_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/calendar.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/calendar.js
var calendar_default = {
// calendar 组件
calendar: {
@ -1967,7 +1967,7 @@ var calendar_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/carKeyboard.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/carKeyboard.js
var carKeyboard_default = {
// 车牌号键盘
carKeyboard: {
@ -1975,7 +1975,7 @@ var carKeyboard_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/cell.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/cell.js
var cell_default = {
// cell组件的props
cell: {
@ -2003,7 +2003,7 @@ var cell_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/cellGroup.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/cellGroup.js
var cellGroup_default = {
// cell-group组件的props
cellGroup: {
@ -2013,7 +2013,7 @@ var cellGroup_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/checkbox.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/checkbox.js
var checkbox_default = {
// checkbox组件
checkbox: {
@ -2033,7 +2033,7 @@ var checkbox_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/checkboxGroup.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/checkboxGroup.js
var checkboxGroup_default = {
// checkbox-group组件
checkboxGroup: {
@ -2055,7 +2055,7 @@ var checkboxGroup_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/circleProgress.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/circleProgress.js
var circleProgress_default = {
// circleProgress 组件
circleProgress: {
@ -2063,7 +2063,7 @@ var circleProgress_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/code.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/code.js
var code_default = {
// code 组件
code: {
@ -2076,7 +2076,7 @@ var code_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/codeInput.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/codeInput.js
var codeInput_default = {
// codeInput 组件
codeInput: {
@ -2098,7 +2098,7 @@ var codeInput_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/col.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/col.js
var col_default = {
// col 组件
col: {
@ -2110,7 +2110,7 @@ var col_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/collapse.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/collapse.js
var collapse_default = {
// collapse 组件
collapse: {
@ -2120,7 +2120,7 @@ var collapse_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/collapseItem.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/collapseItem.js
var collapseItem_default = {
// collapseItem 组件
collapseItem: {
@ -2138,7 +2138,7 @@ var collapseItem_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/columnNotice.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/columnNotice.js
var columnNotice_default = {
// columnNotice 组件
columnNotice: {
@ -2155,7 +2155,7 @@ var columnNotice_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/countDown.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/countDown.js
var countDown_default = {
// u-count-down 计时器组件
countDown: {
@ -2166,7 +2166,7 @@ var countDown_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/countTo.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/countTo.js
var countTo_default = {
// countTo 组件
countTo: {
@ -2184,7 +2184,7 @@ var countTo_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/datetimePicker.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/datetimePicker.js
var datetimePicker_default = {
// datetimePicker 组件
datetimePicker: {
@ -2213,7 +2213,7 @@ var datetimePicker_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/divider.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/divider.js
var divider_default = {
// divider组件
divider: {
@ -2228,7 +2228,7 @@ var divider_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/empty.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/empty.js
var empty_default = {
// empty组件
empty: {
@ -2246,7 +2246,7 @@ var empty_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/form.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/form.js
var form_default = {
// form 组件
form: {
@ -2261,7 +2261,7 @@ var form_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/formItem.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/formItem.js
var formItem_default = {
// formItem 组件
formItem: {
@ -2276,7 +2276,7 @@ var formItem_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/gap.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/gap.js
var gap_default = {
// gap组件
gap: {
@ -2288,7 +2288,7 @@ var gap_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/grid.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/grid.js
var grid_default = {
// grid组件
grid: {
@ -2298,7 +2298,7 @@ var grid_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/gridItem.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/gridItem.js
var gridItem_default = {
// grid-item组件
gridItem: {
@ -2307,7 +2307,7 @@ var gridItem_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/icon.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/icon.js
var {
color
} = config_default;
@ -2334,7 +2334,7 @@ var icon_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/image.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/image.js
var image_default = {
// image组件
image: {
@ -2357,7 +2357,7 @@ var image_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/indexAnchor.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/indexAnchor.js
var indexAnchor_default = {
// indexAnchor 组件
indexAnchor: {
@ -2369,7 +2369,7 @@ var indexAnchor_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/indexList.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/indexList.js
var indexList_default = {
// indexList 组件
indexList: {
@ -2381,7 +2381,7 @@ var indexList_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/input.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/input.js
var input_default = {
// index 组件
input: {
@ -2422,7 +2422,7 @@ var input_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/keyboard.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/keyboard.js
var keyboard_default = {
// 键盘组件
keyboard: {
@ -2445,7 +2445,7 @@ var keyboard_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/line.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/line.js
var line_default = {
// line组件
line: {
@ -2458,7 +2458,7 @@ var line_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/lineProgress.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/lineProgress.js
var lineProgress_default = {
// lineProgress 组件
lineProgress: {
@ -2470,7 +2470,7 @@ var lineProgress_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/link.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/link.js
var {
color: color2
} = config_default;
@ -2487,7 +2487,7 @@ var link_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/list.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/list.js
var list_default = {
// list 组件
list: {
@ -2508,7 +2508,7 @@ var list_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/listItem.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/listItem.js
var listItem_default = {
// listItem 组件
listItem: {
@ -2516,7 +2516,7 @@ var listItem_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/loadingIcon.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/loadingIcon.js
var {
color: color3
} = config_default;
@ -2537,7 +2537,7 @@ var loadingIcon_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/loadingPage.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/loadingPage.js
var loadingPage_default = {
// loading-page组件
loadingPage: {
@ -2553,7 +2553,7 @@ var loadingPage_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/loadmore.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/loadmore.js
var loadmore_default = {
// loadmore 组件
loadmore: {
@ -2578,7 +2578,7 @@ var loadmore_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/modal.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/modal.js
var modal_default = {
// modal 组件
modal: {
@ -2601,7 +2601,7 @@ var modal_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/color.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/color.js
var color4 = {
primary: "#3c9cff",
info: "#909399",
@ -2617,7 +2617,7 @@ var color4 = {
};
var color_default = color4;
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/navbar.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/navbar.js
var navbar_default = {
// navbar 组件
navbar: {
@ -2640,7 +2640,7 @@ var navbar_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/noNetwork.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/noNetwork.js
var noNetwork_default = {
// noNetwork
noNetwork: {
@ -2650,7 +2650,7 @@ var noNetwork_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/noticeBar.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/noticeBar.js
var noticeBar_default = {
// noticeBar
noticeBar: {
@ -2670,7 +2670,7 @@ var noticeBar_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/notify.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/notify.js
var notify_default = {
// notify组件
notify: {
@ -2685,7 +2685,7 @@ var notify_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/numberBox.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/numberBox.js
var numberBox_default = {
// 步进器组件
numberBox: {
@ -2713,7 +2713,7 @@ var numberBox_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/numberKeyboard.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/numberKeyboard.js
var numberKeyboard_default = {
// 数字键盘
numberKeyboard: {
@ -2723,7 +2723,7 @@ var numberKeyboard_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/overlay.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/overlay.js
var overlay_default = {
// overlay组件
overlay: {
@ -2734,7 +2734,7 @@ var overlay_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/parse.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/parse.js
var parse_default = {
// parse
parse: {
@ -2749,7 +2749,7 @@ var parse_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/picker.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/picker.js
var picker_default = {
// picker
picker: {
@ -2771,7 +2771,7 @@ var picker_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/popup.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/popup.js
var popup_default = {
// popup组件
popup: {
@ -2794,7 +2794,7 @@ var popup_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/radio.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/radio.js
var radio_default = {
// radio组件
radio: {
@ -2814,7 +2814,7 @@ var radio_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/radioGroup.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/radioGroup.js
var radioGroup_default = {
// radio-group组件
radioGroup: {
@ -2837,7 +2837,7 @@ var radioGroup_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/rate.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/rate.js
var rate_default = {
// rate组件
rate: {
@ -2856,7 +2856,7 @@ var rate_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/readMore.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/readMore.js
var readMore_default = {
// readMore
readMore: {
@ -2871,7 +2871,7 @@ var readMore_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/row.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/row.js
var row_default = {
// row
row: {
@ -2881,7 +2881,7 @@ var row_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/rowNotice.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/rowNotice.js
var rowNotice_default = {
// rowNotice
rowNotice: {
@ -2895,7 +2895,7 @@ var rowNotice_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/scrollList.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/scrollList.js
var scrollList_default = {
// scrollList
scrollList: {
@ -2908,7 +2908,7 @@ var scrollList_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/search.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/search.js
var search_default = {
// search
search: {
@ -2938,7 +2938,7 @@ var search_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/section.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/section.js
var section_default = {
// u-section组件
section: {
@ -2955,7 +2955,7 @@ var section_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/skeleton.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/skeleton.js
var skeleton_default = {
// skeleton
skeleton: {
@ -2973,7 +2973,7 @@ var skeleton_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/slider.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/slider.js
var slider_default = {
// slider组件
slider: {
@ -2992,7 +2992,7 @@ var slider_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/statusBar.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/statusBar.js
var statusBar_default = {
// statusBar
statusBar: {
@ -3000,7 +3000,7 @@ var statusBar_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/steps.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/steps.js
var steps_default = {
// steps组件
steps: {
@ -3014,7 +3014,7 @@ var steps_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/stepsItem.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/stepsItem.js
var stepsItem_default = {
// steps-item组件
stepsItem: {
@ -3025,7 +3025,7 @@ var stepsItem_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/sticky.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/sticky.js
var sticky_default = {
// sticky组件
sticky: {
@ -3038,7 +3038,7 @@ var sticky_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/subsection.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/subsection.js
var subsection_default = {
// subsection组件
subsection: {
@ -3054,7 +3054,7 @@ var subsection_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swipeAction.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swipeAction.js
var swipeAction_default = {
// swipe-action组件
swipeAction: {
@ -3062,7 +3062,7 @@ var swipeAction_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swipeActionItem.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swipeActionItem.js
var swipeActionItem_default = {
// swipeActionItem 组件
swipeActionItem: {
@ -3076,7 +3076,7 @@ var swipeActionItem_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swiper.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swiper.js
var swiper_default = {
// swiper 组件
swiper: {
@ -3107,7 +3107,7 @@ var swiper_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swipterIndicator.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swipterIndicator.js
var swipterIndicator_default = {
// swiperIndicator 组件
swiperIndicator: {
@ -3119,7 +3119,7 @@ var swipterIndicator_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/switch.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/switch.js
var switch_default = {
// switch
switch: {
@ -3136,7 +3136,7 @@ var switch_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tabbar.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tabbar.js
var tabbar_default = {
// tabbar
tabbar: {
@ -3151,7 +3151,7 @@ var tabbar_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tabbarItem.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tabbarItem.js
var tabbarItem_default = {
//
tabbarItem: {
@ -3164,7 +3164,7 @@ var tabbarItem_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tabs.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tabs.js
var tabs_default = {
//
tabs: {
@ -3189,7 +3189,7 @@ var tabs_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tag.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tag.js
var tag_default = {
// tag 组件
tag: {
@ -3211,7 +3211,7 @@ var tag_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/text.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/text.js
var text_default = {
// text 组件
text: {
@ -3241,7 +3241,7 @@ var text_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/textarea.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/textarea.js
var textarea_default = {
// textarea 组件
textarea: {
@ -3270,7 +3270,7 @@ var textarea_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/toast.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/toast.js
var toast_default = {
// toast组件
toast: {
@ -3293,7 +3293,7 @@ var toast_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/toolbar.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/toolbar.js
var toolbar_default = {
// toolbar 组件
toolbar: {
@ -3306,7 +3306,7 @@ var toolbar_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tooltip.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tooltip.js
var tooltip_default = {
// tooltip 组件
tooltip: {
@ -3324,7 +3324,7 @@ var tooltip_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/transition.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/transition.js
var transition_default = {
// transition动画组件的props
transition: {
@ -3335,7 +3335,7 @@ var transition_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/upload.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/upload.js
var upload_default = {
// upload组件
upload: {
@ -3364,7 +3364,7 @@ var upload_default = {
}
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props.js
var {
color: color5
} = config_default;
@ -3459,7 +3459,7 @@ var props_default = {
...upload_default
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/zIndex.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/zIndex.js
var zIndex_default = {
toast: 10090,
noNetwork: 10080,
@ -3472,13 +3472,13 @@ var zIndex_default = {
indexListSticky: 965
};
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/function/platform.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/platform.js
var platform = "none";
platform = "vue3";
platform = "h5";
var platform_default = platform;
// ../../../../../Project/uniapp/TraceabilityAPP/node_modules/uview-plus/index.js
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/index.js
var pleaseSetTranspileDependencies = {};
var babelTest = pleaseSetTranspileDependencies == null ? void 0 : pleaseSetTranspileDependencies.test;
var $u = {

View File

@ -116,6 +116,15 @@
"navigationBarTextStyle": "black"
}
},
{
"path": "pages/addLand/select_address_n",
"style": {
"navigationBarTitleText": "选择位置",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#F4F4F4",
"navigationBarTextStyle": "black"
}
},
{
"path": "pages/equipment/index",
"style": {

View File

@ -43,10 +43,12 @@
suffix-icon-style="color: #b6b6b6;" border="none" v-model="county_name" readonly
style="pointer-events: none;"></up-input>
</up-form-item>
<up-form-item label="土地详细地址" prop="town_code" borderBottom required @click="location">
<up-form-item label="土地详细地址" prop="town_code" style="position: relative;" borderBottom required>
<up-input input-align="right" placeholder="请输入土地详细地址" suffixIcon="map"
suffix-icon-style="color: #b6b6b6;" border="none" v-model="data.formData.address">
</up-input>
<view style="position: absolute;right: 0;width: 50rpx; height: 100%; " @click="location">
</view>
</up-form-item>
</view>
@ -141,8 +143,8 @@
city_code: '',
county_code: '',
address: '',
lat:"",
lon:"",
lat: "",
lon: "",
master_name: '',
master_phone: '',
pic: ['https://img0.baidu.com/it/u=1717510975,3258230326&fm=253&fmt=auto?w=120&h=80',
@ -373,10 +375,10 @@ lon:"",
console.log(res)
data.formData.lat=res.latitude
data.formData.lon=res.longitude
data.formData.lat = res.latitude
data.formData.lon = res.longitude
data.formData.address = res.address.street + res
data.formData.address = res.address.street + res
.address.streetNum + res.address.poiName
uni.hideLoading();

View File

@ -0,0 +1,418 @@
<template>
<view class="" style="background-color: #fff;">
<u-sticky customNavHeight="0">
<view class="head_top">
<!-- <u-search placeholder="搜索小区、办公楼等" @custom="searchMap"></u-search>
<view style="height: 20rpx;"></view> -->
<u-tabs :list="tabsList" itemStyle="font-size: 32rpx;height: 74rpx;" :current="current"
@change="changeCurrent" lineColor="#FF6D20" lineWidth="105rpx" height="7rpx">
</u-tabs>
</view>
</u-sticky>
<view style="background-color: #f4f4f4;height: 30rpx;"></view>
<view class="address-box" v-if="current==0" style="padding: 0;">
<map style="width: 750rpx;height: 750rpx;" :longitude="longitude" :latitude="latitude" :markers="[markers]"
show-location @tap="handleMapTap"></map>
<view class="head_item" style="padding: 10rpx 20rpx;">
<view class="re-location">
<view style="width: 120rpx;"><text class="text">当前位置: </text></view>
<view style="flex: 1;">
<text
class="text">{{locationInfo.formatted_addresses?locationInfo.formatted_addresses.recommend:locationInfo.address}}</text>
</view>
</view>
<view class="re-btn" @click="reGetLocation">
<image class="re-address-img" src="@/static/images/re_address.png"></image><text
class="text">重新定位</text>
</view>
</view>
<u-button text="确认" @click="submitAddress"></u-button>
</view>
<view class="address-box" v-if="current==1">
<view class="head_item_tips">
<view><text class="text">泸州区县</text></view>
</view>
<view class="area">
<view class="area-item" :class="{'area-item-on': item.code==area_change}"
v-for="(item, index) in areaList" :key="index" @click="changeArea(item)">
<text class="text">{{item.name}}</text>
</view>
</view>
<view class="head_item_tips">
<view><text class="text">选择街道/镇</text></view>
</view>
<view class="street">
<view class="letter-item" v-for="key in mapKey" :key="key">
<view class="letter"><text class="text">{{key}}</text></view>
<view class="item-box">
<view class="street-item" v-for="item in mapList[key]" :key="item.code"
@click="changeStreet(item)">
<text class="text">{{item.name}}</text>
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
import {
getGeocoder,
merClassifly,
getProductslist
} from '@/api/store.js';
import {
getArea,
getStreet
} from "@/api/article.js";
import {
Toast
} from '@/libs/uniApi';
export default {
data() {
return {
tabsList: [{
name: '地图定位',
}, {
name: '泸州区县',
}],
current: 0,
latitude: '28.87',
longitude: '105.44',
markers: {
id: 1,
longitude: '28.87',
latitude: '105.44',
iconPath: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/cbbd5202311241523412538.png',
width: 28,
height: 28
},
locationInfo: {},
town: '',
street_id: '',
street: '',
areaList: [],
streetList: [],
mapList: {},
area_change: '',
street_change: '',
}
},
onLoad(options) {
this.getLoaction();
this.loadArea();
},
onShow() {},
computed: {
mapKey() {
return Object.keys(this.mapList).sort()
}
},
methods: {
changeCurrent(e) {
this.current = e.index;
},
getLoaction() {
this.street = '定位中'
this.locationInfo = {};
this.locationInfo.formatted_addresses = {};
this.locationInfo.formatted_addresses.recommend = '定位中'
uni.getLocation({
type: 'wgs84',
timeout: '4',
success: (res) => {
let latitude, longitude;
latitude = res.latitude.toString();
longitude = res.longitude.toString();
this.latitude = res.latitude.toFixed(6);
this.longitude = res.longitude.toFixed(6);
this.$store.commit('setLocation', {
lat: res.latitude.toFixed(6),
long: res.longitude.toFixed(6),
});
getGeocoder({
lat: latitude,
long: longitude
}).then(res => {
this.locationInfo = res.data;
this.town = res.data.address_reference.town.title
this.street_id = res.data.address_reference.town.id
this.street = res.data.address_reference.town.title;
}).catch(err => {
uni.showToast({
title: err,
icon: 'none'
})
this.street = '定位失败'
})
},
fail: (err) => {
console.log('定位失败');
this.isshow = false
Toast('定位失败,请检查定位权限是否开启')
this.street = '定位失败'
this.locationInfo.formatted_addresses.recommend = '定位失败'
// uni.showToast({
// title: "获取定位超时",
// icon: 'none',
// duration: 2000
// });
}
});
},
reGetLocation() {
this.getLoaction()
},
loadArea() {
getArea({
city_code: 510500
}).then((res) => {
this.areaList = res.data;
this.changeArea(this.areaList[0]);
})
},
loadStreet(area_code) {
this.street_change = '';
getStreet({
area_code
}).then((res) => {
this.streetList = res.data;
this.initPinyin();
})
},
initPinyin() {
this.mapList = {};
this.streetList.forEach((item) => {
let str = item.pinyin?.toUpperCase();
str = str ? str : '#';
if (this.mapList[str]) {
this.mapList[str].push(item);
} else {
this.mapList[str] = [];
this.mapList[str].push(item)
}
})
},
changeArea(item) {
this.area_change = item.code;
this.loadStreet(this.area_change);
},
// 选择位置
changeStreet(item) {
uni.navigateBack({
success: () => {
uni.$emit('changeAddress', {
area: this.area_change,
street: item
})
}
})
},
// 点击地图
handleMapTap(e) {
// console.log('点击地图', e);
// #ifdef H5
return Toast('H5暂不支持选择坐标');
// #endif
let longitude = e.detail.longitude;
let latitude = e.detail.latitude;
this.markers.longitude = longitude;
this.markers.latitude = latitude;
// console.log('修改成功', this.markers);
getGeocoder({
lat: latitude,
long: longitude
}).then(res => {
// console.log(res);
this.locationInfo = res.data;
}).catch(err => {
uni.showToast({
title: err,
icon: 'none'
})
this.locationInfo = {};
this.locationInfo.formatted_addresses = {};
this.locationInfo.formatted_addresses.recommend = '定位失败'
})
},
submitAddress() {
console.log(this.locationInfo);
try {
this.town = this.locationInfo.address_reference.town.title;
this.street_id = this.locationInfo.address_reference.town.id;
this.street = this.locationInfo.address_reference.town.title;
let obj = {
area: this.locationInfo.ad_info.adcode,
street: {
name: this.street,
code: this.street_id
},
latitude: this.latitude,
longitude: this.longitude
}
console.log({
...obj
});
uni.navigateBack({
success: () => {
uni.$emit('changeAddress', obj)
}
})
} catch (e) {
return Toast('地址有误,请重新选择')
}
},
searchMap() {
uni.request({
url: 'https://restapi.amap.com/v3/place/text?keywords=北京大学&city=beijing&offset=20&page=1&key=0799f37420c0784f1e6cba230a68bdb1&extensions=all',
success: (res) => {
console.log(res);
},
fail: (e) => {
console.log(e);
}
})
}
},
onPullDownRefresh() {
uni.stopPullDownRefresh()
}
}
</script>
<style>
/* page {
background-color: #fff;
} */
.text {
font-size: 28rpx;
white-space: normal;
}
.head_top {
background-color: #fff;
padding: 28rpx;
}
.address-box {
border-radius: 21rpx 21rpx 0rpx 0rpx;
padding: 30rpx 28rpx;
width: 750rpx;
}
.head_item {
width: 750rpx;
flex-direction: row;
justify-content: space-between;
padding-bottom: 28rpx;
font-size: 28rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
color: #333333;
}
.re-location {
flex-direction: row;
flex-wrap: nowrap;
width: 480rpx;
align-items: center;
}
.re-address-img {
width: 38.55rpx;
height: 38.55rpx;
margin-right: 10rpx;
}
.re-btn {
flex-direction: row;
padding-left: 10rpx;
width: 200rpx;
height: 100rpx;
align-items: center;
}
.head_item_tips {
height: 44rpx;
font-size: 32rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
color: #737373;
}
.address-list {
font-size: 28rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
color: #333333;
height: 80rpx;
line-height: 75rpx;
border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);
}
.area {
flex-direction: row;
flex-wrap: wrap;
padding-top: 30rpx;
justify-content: flex-start;
}
.area-item {
height: 64rpx;
/* width: 100px; */
background-color: #fff;
border-radius: 11rpx 11rpx 11rpx 11rpx;
border: 2rpx solid #B3B3B3;
flex-direction: row;
align-items: center;
justify-content: center;
padding: 0 20rpx;
font-size: 28rpx;
font-family: PingFang SC-Medium, PingFang SC;
font-weight: 500;
color: #737373;
margin-bottom: 22rpx;
margin-right: 22rpx;
}
.area-item-on {
color: #ff6d20;
border: 2rpx solid #ff6d20;
}
.street {
padding-top: 28rpx;
}
.letter-item {
flex-direction: row;
}
.letter {
margin-right: 28rpx;
font-size: 25rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 400;
width: 40rpx;
text-align: center;
color: #737373;
}
.item-box {
flex: 1;
}
.street-item {
width: 100%;
padding-bottom: 28rpx;
font-size: 28rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 400;
color: #333333;
}
</style>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -128,7 +128,7 @@
"uni-app": {
"control": "uni-v3",
"vueVersion": "3",
"compilerVersion": "3.96",
"compilerVersion": "3.8.12",
"nvueCompiler": "uni-app",
"renderer": "auto",
"nvue": {