|
@ -2,7 +2,7 @@
|
|||
"version" : "1.0",
|
||||
"configurations" : [
|
||||
{
|
||||
"playground" : "custom",
|
||||
"playground" : "standard",
|
||||
"type" : "uni-app:app-android"
|
||||
},
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name" : "养殖溯源",
|
||||
"appid" : "__UNI__D087881",
|
||||
"appid" : "__UNI__9B6D67A",
|
||||
"description" : "",
|
||||
"versionName" : "1.0.2",
|
||||
"versionCode" : 102,
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"hash": "8ba23d55",
|
||||
"browserHash": "9b7bcd37",
|
||||
"hash": "0135f122",
|
||||
"browserHash": "87492cc7",
|
||||
"optimized": {
|
||||
"uview-plus": {
|
||||
"src": "../../uview-plus/index.js",
|
||||
"file": "uview-plus.js",
|
||||
"fileHash": "5cac3687",
|
||||
"fileHash": "d1af0ff5",
|
||||
"needsInterop": false
|
||||
}
|
||||
},
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/mixin/mixin.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/mixin/mixin.js
|
||||
var mixin_default = {
|
||||
// 定义每个组件都可能需要用到的外部样式以及类名
|
||||
props: {
|
||||
|
@ -129,10 +129,10 @@ var mixin_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/mixin/mpMixin.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/mixin/mpMixin.js
|
||||
var mpMixin_default = {};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/utils.js
|
||||
// ../../../../里海数字乡村/cultivationApp/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";
|
||||
}
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/helpers/buildURL.js
|
||||
// ../../../../里海数字乡村/cultivationApp/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;
|
||||
}
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/helpers/isAbsoluteURL.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/luch-request/helpers/isAbsoluteURL.js
|
||||
function isAbsoluteURL(url2) {
|
||||
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
||||
}
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/helpers/combineURLs.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/luch-request/helpers/combineURLs.js
|
||||
function combineURLs(baseURL, relativeURL) {
|
||||
return relativeURL ? `${baseURL.replace(/\/+$/, "")}/${relativeURL.replace(/^\/+/, "")}` : baseURL;
|
||||
}
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/buildFullPath.js
|
||||
// ../../../../里海数字乡村/cultivationApp/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;
|
||||
}
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/settle.js
|
||||
// ../../../../里海数字乡村/cultivationApp/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) {
|
|||
}
|
||||
}
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/adapters/index.js
|
||||
// ../../../../里海数字乡村/cultivationApp/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) => {
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/dispatchRequest.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/luch-request/core/dispatchRequest.js
|
||||
var dispatchRequest_default = (config) => adapters_default(config);
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/InterceptorManager.js
|
||||
// ../../../../里海数字乡村/cultivationApp/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;
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/mergeConfig.js
|
||||
// ../../../../里海数字乡村/cultivationApp/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;
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/defaults.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/luch-request/core/defaults.js
|
||||
var defaults_default = {
|
||||
baseURL: "",
|
||||
header: {},
|
||||
|
@ -428,7 +428,7 @@ var defaults_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/utils/clone.js
|
||||
// ../../../../里海数字乡村/cultivationApp/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;
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/Request.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/luch-request/core/Request.js
|
||||
var Request = class {
|
||||
/**
|
||||
* @param {Object} arg - 全局配置
|
||||
|
@ -763,10 +763,10 @@ var Request = class {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/index.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/luch-request/index.js
|
||||
var luch_request_default = Request;
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/util/route.js
|
||||
// ../../../../里海数字乡村/cultivationApp/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;
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/colorGradient.js
|
||||
// ../../../../里海数字乡村/cultivationApp/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
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/test.js
|
||||
// ../../../../里海数字乡村/cultivationApp/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
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/debounce.js
|
||||
// ../../../../里海数字乡村/cultivationApp/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;
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/throttle.js
|
||||
// ../../../../里海数字乡村/cultivationApp/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;
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/digit.js
|
||||
// ../../../../里海数字乡村/cultivationApp/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;
|
||||
}
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/index.js
|
||||
// ../../../../里海数字乡村/cultivationApp/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
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/config.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/config.js
|
||||
var version = "3";
|
||||
if (true) {
|
||||
console.log(`
|
||||
|
@ -1767,7 +1767,7 @@ var config_default = {
|
|||
unit: "px"
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/actionSheet.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/actionSheet.js
|
||||
var actionSheet_default = {
|
||||
// action-sheet组件
|
||||
actionSheet: {
|
||||
|
@ -1785,7 +1785,7 @@ var actionSheet_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/album.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/album.js
|
||||
var album_default = {
|
||||
// album 组件
|
||||
album: {
|
||||
|
@ -1803,7 +1803,7 @@ var album_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/alert.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/alert.js
|
||||
var alert_default = {
|
||||
// alert警告组件
|
||||
alert: {
|
||||
|
@ -1818,7 +1818,7 @@ var alert_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/avatar.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/avatar.js
|
||||
var avatar_default = {
|
||||
// avatar 组件
|
||||
avatar: {
|
||||
|
@ -1839,7 +1839,7 @@ var avatar_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/avatarGroup.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/avatarGroup.js
|
||||
var avatarGroup_default = {
|
||||
// avatarGroup 组件
|
||||
avatarGroup: {
|
||||
|
@ -1855,7 +1855,7 @@ var avatarGroup_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/backtop.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/backtop.js
|
||||
var backtop_default = {
|
||||
// backtop组件
|
||||
backtop: {
|
||||
|
@ -1875,7 +1875,7 @@ var backtop_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/badge.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/badge.js
|
||||
var badge_default = {
|
||||
// 徽标数组件
|
||||
badge: {
|
||||
|
@ -1895,7 +1895,7 @@ var badge_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/button.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/button.js
|
||||
var button_default = {
|
||||
// button组件
|
||||
button: {
|
||||
|
@ -1930,7 +1930,7 @@ var button_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/calendar.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/calendar.js
|
||||
var calendar_default = {
|
||||
// calendar 组件
|
||||
calendar: {
|
||||
|
@ -1967,7 +1967,7 @@ var calendar_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/carKeyboard.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/carKeyboard.js
|
||||
var carKeyboard_default = {
|
||||
// 车牌号键盘
|
||||
carKeyboard: {
|
||||
|
@ -1975,7 +1975,7 @@ var carKeyboard_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/cell.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/cell.js
|
||||
var cell_default = {
|
||||
// cell组件的props
|
||||
cell: {
|
||||
|
@ -2003,7 +2003,7 @@ var cell_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/cellGroup.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/cellGroup.js
|
||||
var cellGroup_default = {
|
||||
// cell-group组件的props
|
||||
cellGroup: {
|
||||
|
@ -2013,7 +2013,7 @@ var cellGroup_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/checkbox.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/checkbox.js
|
||||
var checkbox_default = {
|
||||
// checkbox组件
|
||||
checkbox: {
|
||||
|
@ -2033,7 +2033,7 @@ var checkbox_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/checkboxGroup.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/checkboxGroup.js
|
||||
var checkboxGroup_default = {
|
||||
// checkbox-group组件
|
||||
checkboxGroup: {
|
||||
|
@ -2055,7 +2055,7 @@ var checkboxGroup_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/circleProgress.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/circleProgress.js
|
||||
var circleProgress_default = {
|
||||
// circleProgress 组件
|
||||
circleProgress: {
|
||||
|
@ -2063,7 +2063,7 @@ var circleProgress_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/code.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/code.js
|
||||
var code_default = {
|
||||
// code 组件
|
||||
code: {
|
||||
|
@ -2076,7 +2076,7 @@ var code_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/codeInput.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/codeInput.js
|
||||
var codeInput_default = {
|
||||
// codeInput 组件
|
||||
codeInput: {
|
||||
|
@ -2098,7 +2098,7 @@ var codeInput_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/col.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/col.js
|
||||
var col_default = {
|
||||
// col 组件
|
||||
col: {
|
||||
|
@ -2110,7 +2110,7 @@ var col_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/collapse.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/collapse.js
|
||||
var collapse_default = {
|
||||
// collapse 组件
|
||||
collapse: {
|
||||
|
@ -2120,7 +2120,7 @@ var collapse_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/collapseItem.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/collapseItem.js
|
||||
var collapseItem_default = {
|
||||
// collapseItem 组件
|
||||
collapseItem: {
|
||||
|
@ -2138,7 +2138,7 @@ var collapseItem_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/columnNotice.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/columnNotice.js
|
||||
var columnNotice_default = {
|
||||
// columnNotice 组件
|
||||
columnNotice: {
|
||||
|
@ -2155,7 +2155,7 @@ var columnNotice_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/countDown.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/countDown.js
|
||||
var countDown_default = {
|
||||
// u-count-down 计时器组件
|
||||
countDown: {
|
||||
|
@ -2166,7 +2166,7 @@ var countDown_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/countTo.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/countTo.js
|
||||
var countTo_default = {
|
||||
// countTo 组件
|
||||
countTo: {
|
||||
|
@ -2184,7 +2184,7 @@ var countTo_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/datetimePicker.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/datetimePicker.js
|
||||
var datetimePicker_default = {
|
||||
// datetimePicker 组件
|
||||
datetimePicker: {
|
||||
|
@ -2213,7 +2213,7 @@ var datetimePicker_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/divider.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/divider.js
|
||||
var divider_default = {
|
||||
// divider组件
|
||||
divider: {
|
||||
|
@ -2228,7 +2228,7 @@ var divider_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/empty.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/empty.js
|
||||
var empty_default = {
|
||||
// empty组件
|
||||
empty: {
|
||||
|
@ -2246,7 +2246,7 @@ var empty_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/form.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/form.js
|
||||
var form_default = {
|
||||
// form 组件
|
||||
form: {
|
||||
|
@ -2261,7 +2261,7 @@ var form_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/formItem.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/formItem.js
|
||||
var formItem_default = {
|
||||
// formItem 组件
|
||||
formItem: {
|
||||
|
@ -2276,7 +2276,7 @@ var formItem_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/gap.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/gap.js
|
||||
var gap_default = {
|
||||
// gap组件
|
||||
gap: {
|
||||
|
@ -2288,7 +2288,7 @@ var gap_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/grid.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/grid.js
|
||||
var grid_default = {
|
||||
// grid组件
|
||||
grid: {
|
||||
|
@ -2298,7 +2298,7 @@ var grid_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/gridItem.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/gridItem.js
|
||||
var gridItem_default = {
|
||||
// grid-item组件
|
||||
gridItem: {
|
||||
|
@ -2307,7 +2307,7 @@ var gridItem_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/icon.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/icon.js
|
||||
var {
|
||||
color
|
||||
} = config_default;
|
||||
|
@ -2334,7 +2334,7 @@ var icon_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/image.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/image.js
|
||||
var image_default = {
|
||||
// image组件
|
||||
image: {
|
||||
|
@ -2357,7 +2357,7 @@ var image_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/indexAnchor.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/indexAnchor.js
|
||||
var indexAnchor_default = {
|
||||
// indexAnchor 组件
|
||||
indexAnchor: {
|
||||
|
@ -2369,7 +2369,7 @@ var indexAnchor_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/indexList.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/indexList.js
|
||||
var indexList_default = {
|
||||
// indexList 组件
|
||||
indexList: {
|
||||
|
@ -2381,7 +2381,7 @@ var indexList_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/input.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/input.js
|
||||
var input_default = {
|
||||
// index 组件
|
||||
input: {
|
||||
|
@ -2422,7 +2422,7 @@ var input_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/keyboard.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/keyboard.js
|
||||
var keyboard_default = {
|
||||
// 键盘组件
|
||||
keyboard: {
|
||||
|
@ -2445,7 +2445,7 @@ var keyboard_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/line.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/line.js
|
||||
var line_default = {
|
||||
// line组件
|
||||
line: {
|
||||
|
@ -2458,7 +2458,7 @@ var line_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/lineProgress.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/lineProgress.js
|
||||
var lineProgress_default = {
|
||||
// lineProgress 组件
|
||||
lineProgress: {
|
||||
|
@ -2470,7 +2470,7 @@ var lineProgress_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/link.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/link.js
|
||||
var {
|
||||
color: color2
|
||||
} = config_default;
|
||||
|
@ -2487,7 +2487,7 @@ var link_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/list.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/list.js
|
||||
var list_default = {
|
||||
// list 组件
|
||||
list: {
|
||||
|
@ -2508,7 +2508,7 @@ var list_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/listItem.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/listItem.js
|
||||
var listItem_default = {
|
||||
// listItem 组件
|
||||
listItem: {
|
||||
|
@ -2516,7 +2516,7 @@ var listItem_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/loadingIcon.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/loadingIcon.js
|
||||
var {
|
||||
color: color3
|
||||
} = config_default;
|
||||
|
@ -2537,7 +2537,7 @@ var loadingIcon_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/loadingPage.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/loadingPage.js
|
||||
var loadingPage_default = {
|
||||
// loading-page组件
|
||||
loadingPage: {
|
||||
|
@ -2553,7 +2553,7 @@ var loadingPage_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/loadmore.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/loadmore.js
|
||||
var loadmore_default = {
|
||||
// loadmore 组件
|
||||
loadmore: {
|
||||
|
@ -2578,7 +2578,7 @@ var loadmore_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/modal.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/modal.js
|
||||
var modal_default = {
|
||||
// modal 组件
|
||||
modal: {
|
||||
|
@ -2601,7 +2601,7 @@ var modal_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/color.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/color.js
|
||||
var color4 = {
|
||||
primary: "#3c9cff",
|
||||
info: "#909399",
|
||||
|
@ -2617,7 +2617,7 @@ var color4 = {
|
|||
};
|
||||
var color_default = color4;
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/navbar.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/navbar.js
|
||||
var navbar_default = {
|
||||
// navbar 组件
|
||||
navbar: {
|
||||
|
@ -2640,7 +2640,7 @@ var navbar_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/noNetwork.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/noNetwork.js
|
||||
var noNetwork_default = {
|
||||
// noNetwork
|
||||
noNetwork: {
|
||||
|
@ -2650,7 +2650,7 @@ var noNetwork_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/noticeBar.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/noticeBar.js
|
||||
var noticeBar_default = {
|
||||
// noticeBar
|
||||
noticeBar: {
|
||||
|
@ -2670,7 +2670,7 @@ var noticeBar_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/notify.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/notify.js
|
||||
var notify_default = {
|
||||
// notify组件
|
||||
notify: {
|
||||
|
@ -2685,7 +2685,7 @@ var notify_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/numberBox.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/numberBox.js
|
||||
var numberBox_default = {
|
||||
// 步进器组件
|
||||
numberBox: {
|
||||
|
@ -2713,7 +2713,7 @@ var numberBox_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/numberKeyboard.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/numberKeyboard.js
|
||||
var numberKeyboard_default = {
|
||||
// 数字键盘
|
||||
numberKeyboard: {
|
||||
|
@ -2723,7 +2723,7 @@ var numberKeyboard_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/overlay.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/overlay.js
|
||||
var overlay_default = {
|
||||
// overlay组件
|
||||
overlay: {
|
||||
|
@ -2734,7 +2734,7 @@ var overlay_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/parse.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/parse.js
|
||||
var parse_default = {
|
||||
// parse
|
||||
parse: {
|
||||
|
@ -2749,7 +2749,7 @@ var parse_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/picker.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/picker.js
|
||||
var picker_default = {
|
||||
// picker
|
||||
picker: {
|
||||
|
@ -2771,7 +2771,7 @@ var picker_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/popup.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/popup.js
|
||||
var popup_default = {
|
||||
// popup组件
|
||||
popup: {
|
||||
|
@ -2794,7 +2794,7 @@ var popup_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/radio.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/radio.js
|
||||
var radio_default = {
|
||||
// radio组件
|
||||
radio: {
|
||||
|
@ -2814,7 +2814,7 @@ var radio_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/radioGroup.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/radioGroup.js
|
||||
var radioGroup_default = {
|
||||
// radio-group组件
|
||||
radioGroup: {
|
||||
|
@ -2837,7 +2837,7 @@ var radioGroup_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/rate.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/rate.js
|
||||
var rate_default = {
|
||||
// rate组件
|
||||
rate: {
|
||||
|
@ -2856,7 +2856,7 @@ var rate_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/readMore.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/readMore.js
|
||||
var readMore_default = {
|
||||
// readMore
|
||||
readMore: {
|
||||
|
@ -2871,7 +2871,7 @@ var readMore_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/row.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/row.js
|
||||
var row_default = {
|
||||
// row
|
||||
row: {
|
||||
|
@ -2881,7 +2881,7 @@ var row_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/rowNotice.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/rowNotice.js
|
||||
var rowNotice_default = {
|
||||
// rowNotice
|
||||
rowNotice: {
|
||||
|
@ -2895,7 +2895,7 @@ var rowNotice_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/scrollList.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/scrollList.js
|
||||
var scrollList_default = {
|
||||
// scrollList
|
||||
scrollList: {
|
||||
|
@ -2908,7 +2908,7 @@ var scrollList_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/search.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/search.js
|
||||
var search_default = {
|
||||
// search
|
||||
search: {
|
||||
|
@ -2938,7 +2938,7 @@ var search_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/section.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/section.js
|
||||
var section_default = {
|
||||
// u-section组件
|
||||
section: {
|
||||
|
@ -2955,7 +2955,7 @@ var section_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/skeleton.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/skeleton.js
|
||||
var skeleton_default = {
|
||||
// skeleton
|
||||
skeleton: {
|
||||
|
@ -2973,7 +2973,7 @@ var skeleton_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/slider.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/slider.js
|
||||
var slider_default = {
|
||||
// slider组件
|
||||
slider: {
|
||||
|
@ -2992,7 +2992,7 @@ var slider_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/statusBar.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/statusBar.js
|
||||
var statusBar_default = {
|
||||
// statusBar
|
||||
statusBar: {
|
||||
|
@ -3000,7 +3000,7 @@ var statusBar_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/steps.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/steps.js
|
||||
var steps_default = {
|
||||
// steps组件
|
||||
steps: {
|
||||
|
@ -3014,7 +3014,7 @@ var steps_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/stepsItem.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/stepsItem.js
|
||||
var stepsItem_default = {
|
||||
// steps-item组件
|
||||
stepsItem: {
|
||||
|
@ -3025,7 +3025,7 @@ var stepsItem_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/sticky.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/sticky.js
|
||||
var sticky_default = {
|
||||
// sticky组件
|
||||
sticky: {
|
||||
|
@ -3038,7 +3038,7 @@ var sticky_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/subsection.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/subsection.js
|
||||
var subsection_default = {
|
||||
// subsection组件
|
||||
subsection: {
|
||||
|
@ -3054,7 +3054,7 @@ var subsection_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swipeAction.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/swipeAction.js
|
||||
var swipeAction_default = {
|
||||
// swipe-action组件
|
||||
swipeAction: {
|
||||
|
@ -3062,7 +3062,7 @@ var swipeAction_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swipeActionItem.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/swipeActionItem.js
|
||||
var swipeActionItem_default = {
|
||||
// swipeActionItem 组件
|
||||
swipeActionItem: {
|
||||
|
@ -3076,7 +3076,7 @@ var swipeActionItem_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swiper.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/swiper.js
|
||||
var swiper_default = {
|
||||
// swiper 组件
|
||||
swiper: {
|
||||
|
@ -3107,7 +3107,7 @@ var swiper_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swipterIndicator.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/swipterIndicator.js
|
||||
var swipterIndicator_default = {
|
||||
// swiperIndicator 组件
|
||||
swiperIndicator: {
|
||||
|
@ -3119,7 +3119,7 @@ var swipterIndicator_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/switch.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/switch.js
|
||||
var switch_default = {
|
||||
// switch
|
||||
switch: {
|
||||
|
@ -3136,7 +3136,7 @@ var switch_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tabbar.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/tabbar.js
|
||||
var tabbar_default = {
|
||||
// tabbar
|
||||
tabbar: {
|
||||
|
@ -3151,7 +3151,7 @@ var tabbar_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tabbarItem.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/tabbarItem.js
|
||||
var tabbarItem_default = {
|
||||
//
|
||||
tabbarItem: {
|
||||
|
@ -3164,7 +3164,7 @@ var tabbarItem_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tabs.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/tabs.js
|
||||
var tabs_default = {
|
||||
//
|
||||
tabs: {
|
||||
|
@ -3189,7 +3189,7 @@ var tabs_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tag.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/tag.js
|
||||
var tag_default = {
|
||||
// tag 组件
|
||||
tag: {
|
||||
|
@ -3211,7 +3211,7 @@ var tag_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/text.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/text.js
|
||||
var text_default = {
|
||||
// text 组件
|
||||
text: {
|
||||
|
@ -3241,7 +3241,7 @@ var text_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/textarea.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/textarea.js
|
||||
var textarea_default = {
|
||||
// textarea 组件
|
||||
textarea: {
|
||||
|
@ -3270,7 +3270,7 @@ var textarea_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/toast.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/toast.js
|
||||
var toast_default = {
|
||||
// toast组件
|
||||
toast: {
|
||||
|
@ -3293,7 +3293,7 @@ var toast_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/toolbar.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/toolbar.js
|
||||
var toolbar_default = {
|
||||
// toolbar 组件
|
||||
toolbar: {
|
||||
|
@ -3306,7 +3306,7 @@ var toolbar_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tooltip.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/tooltip.js
|
||||
var tooltip_default = {
|
||||
// tooltip 组件
|
||||
tooltip: {
|
||||
|
@ -3324,7 +3324,7 @@ var tooltip_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/transition.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/transition.js
|
||||
var transition_default = {
|
||||
// transition动画组件的props
|
||||
transition: {
|
||||
|
@ -3335,7 +3335,7 @@ var transition_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/upload.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props/upload.js
|
||||
var upload_default = {
|
||||
// upload组件
|
||||
upload: {
|
||||
|
@ -3364,7 +3364,7 @@ var upload_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/props.js
|
||||
var {
|
||||
color: color5
|
||||
} = config_default;
|
||||
|
@ -3459,7 +3459,7 @@ var props_default = {
|
|||
...upload_default
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/zIndex.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/config/zIndex.js
|
||||
var zIndex_default = {
|
||||
toast: 10090,
|
||||
noNetwork: 10080,
|
||||
|
@ -3472,13 +3472,13 @@ var zIndex_default = {
|
|||
indexListSticky: 965
|
||||
};
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/platform.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/libs/function/platform.js
|
||||
var platform = "none";
|
||||
platform = "vue3";
|
||||
platform = "h5";
|
||||
var platform_default = platform;
|
||||
|
||||
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/index.js
|
||||
// ../../../../里海数字乡村/cultivationApp/node_modules/uview-plus/index.js
|
||||
var pleaseSetTranspileDependencies = {};
|
||||
var babelTest = pleaseSetTranspileDependencies == null ? void 0 : pleaseSetTranspileDependencies.test;
|
||||
var $u = {
|
||||
|
|
54
pages.json
|
@ -12,7 +12,7 @@
|
|||
"path": "pages/index/massif",
|
||||
|
||||
"style": {
|
||||
"navigationBarTitleText": "地块",
|
||||
"navigationBarTitleText": "首页",
|
||||
"navigationStyle": "custom",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor": "#F4F4F4",
|
||||
|
@ -108,29 +108,29 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/addLand/addLand",
|
||||
"path": "pages/addPlant/addPlant",
|
||||
"style": {
|
||||
"navigationBarTitleText": "添加土地信息",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor": "#F4F4F4",
|
||||
"navigationBarTextStyle": "black"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/addLand/select_address_n",
|
||||
"style": {
|
||||
"navigationBarTitleText": "选择位置",
|
||||
"navigationBarTitleText": "添加养殖场信息",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor": "#F4F4F4",
|
||||
"navigationBarTextStyle": "black"
|
||||
}
|
||||
},
|
||||
// {
|
||||
// "path": "pages/addPlant/select_address_n",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "选择位置",
|
||||
// "enablePullDownRefresh": false,
|
||||
// "navigationBarBackgroundColor": "#F4F4F4",
|
||||
// "navigationBarTextStyle": "black"
|
||||
// }
|
||||
// },
|
||||
{
|
||||
"path": "pages/equipment/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的设备",
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationBarBackgroundColor": "#35D190",
|
||||
"navigationBarBackgroundColor": "#feb048",
|
||||
"navigationBarTextStyle": "white"
|
||||
}
|
||||
},
|
||||
|
@ -175,6 +175,20 @@
|
|||
"style": {
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/index/manager",
|
||||
"style" :
|
||||
{
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/plantAdmin/house",
|
||||
"style" :
|
||||
{
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -187,27 +201,27 @@
|
|||
"backgroundColor": "#F8F8F8"
|
||||
},
|
||||
"tabBar": {
|
||||
"color": "#FFFFFF",
|
||||
"selectedColor": "#34D190",
|
||||
"color": "#999999",
|
||||
"selectedColor": "#feb048",
|
||||
"borderStyle": "white",
|
||||
"backgroundColor": "#FFFFFF",
|
||||
"iconWidth": "40px",
|
||||
// "iconWidth": "40px",
|
||||
"list": [{
|
||||
"pagePath": "pages/index/massif",
|
||||
"text": "",
|
||||
"text": "首页",
|
||||
"iconPath": "static/main/index/sy.png",
|
||||
"selectedIconPath": "static/main/index/sydj.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/index/index",
|
||||
"text": "",
|
||||
"pagePath": "pages/index/manager",
|
||||
"text": "管理",
|
||||
"iconPath": "static/main/index/dk.png",
|
||||
"selectedIconPath": "static/main/index/dkdj.png"
|
||||
},
|
||||
|
||||
{
|
||||
"pagePath": "pages/index/personal",
|
||||
"text": "",
|
||||
"text": "我的",
|
||||
"iconPath": "static/main/index/wd.png",
|
||||
"selectedIconPath": "static/main/index/wddj.png"
|
||||
}
|
||||
|
|
|
@ -1,374 +1,3 @@
|
|||
<template>
|
||||
<view class="box">
|
||||
|
||||
<view class="" style="height: var(--status-bar-height);">
|
||||
|
||||
</view>
|
||||
|
||||
<Myindex style="float: right;"></Myindex>
|
||||
|
||||
|
||||
|
||||
<view class="content">
|
||||
<view class="tit" style="margin: 0;">
|
||||
您好!
|
||||
</view>
|
||||
<view class="tit">
|
||||
欢迎进入吟龙土壤墒情监测溯系统!
|
||||
</view>
|
||||
|
||||
<view class="input-card">
|
||||
<view class="card-head">
|
||||
<view class="triangle top" />
|
||||
<view class="triangle bottom" />
|
||||
<view class="code-login" @click="changeLoginType(0)" :class="{act:loginType==2}">
|
||||
<span>验证码登录</span>
|
||||
<view class="line" :style="{transform: 'translateX('+lineX+'rpx)'}" />
|
||||
|
||||
</view>
|
||||
<view class="password-login" @click="changeLoginType(350)" :class="{act:loginType==1}">
|
||||
密码登录
|
||||
</view>
|
||||
</view>
|
||||
<view class="login-content">
|
||||
<view class="code">
|
||||
|
||||
<view class="" v-if="loginType==1" style="margin-bottom: 20rpx;">
|
||||
<view class="" style="display: flex;margin-bottom: 10rpx;">
|
||||
<up-image :src="u('sj')" width="30rpx" height="44rpx"
|
||||
style="margin-right: 20rpx;"></up-image>账号
|
||||
</view>
|
||||
<u-input placeholder="请输入用户账号"
|
||||
customStyle="background:#F5F5F5;height:80rpx;padding-left:40rpx;border:none"
|
||||
shape='circle' border="surround" v-model="formData.account"></u-input>
|
||||
|
||||
<view class="" style="display: flex;margin-top: 30rpx;margin-bottom: 10rpx;">
|
||||
<up-image :src="u('mm')" width="30rpx" height="44rpx"
|
||||
style="margin-right: 20rpx;"></up-image>密码
|
||||
</view>
|
||||
<u-input :password="!pwdShow" shape='circle'
|
||||
customStyle="background:#F5F5F5;height:80rpx;padding-left:40rpx;border:none"
|
||||
placeholder="请输入密码" border="surround" v-model="formData.password">
|
||||
</u-input>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
<view class="" v-else>
|
||||
|
||||
<view class="" style="display: flex;margin-bottom: 10rpx;">
|
||||
<up-image :src="u('sj')" width="30rpx" height="44rpx"
|
||||
style="margin-right: 20rpx;"></up-image>手机号
|
||||
</view>
|
||||
|
||||
<u-input placeholder="请输入账号"
|
||||
customStyle="background:#F5F5F5;height:80rpx;padding-left:40rpx;border:none"
|
||||
shape='circle' border="surround" v-model="formData.account"></u-input>
|
||||
|
||||
<view class="" style="display: flex;margin-top: 30rpx;margin-bottom: 10rpx;">
|
||||
<up-image :src="u('yzm')" width="30rpx" height="44rpx"
|
||||
style="margin-right: 20rpx;"></up-image>验证码
|
||||
</view>
|
||||
<view class="" style="position: relative;">
|
||||
<u-input type="number" shape='circle'
|
||||
customStyle="background:#F5F5F5;height:80rpx;padding-left:40rpx;border:none;margin-bottom:15rpx"
|
||||
placeholder="请输入验证码" border="surround" v-model="formData.code"></u-input>
|
||||
|
||||
|
||||
<view class="get-code" :style="{color: countDown?'grey':''}" @click="getCode"><text
|
||||
class="lineY"></text>
|
||||
获取验证码 <text v-if='countDown'>{{countDown}}s</text> </view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<view class="" style="font-size: 26rpx;">
|
||||
<text>还没有账号?点击</text> <text @click="resgiter"
|
||||
style="color: #35D190;text-decoration: underline;">注册</text>
|
||||
</view>
|
||||
|
||||
<view class="sub-btn">
|
||||
<u-button @click="submitFn" type="primary"
|
||||
customStyle="border:none;height:90rpx;border-radius: 50rpx;" color="#34D190"
|
||||
text="登录"></u-button>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- <>old -->
|
||||
|
||||
<!-- <view class="login-type" v-for="(item,i) in arr1.list" :key="i" @click="aclick(i)">
|
||||
{{item.name}}
|
||||
<view class="line" v-if="i==num" />
|
||||
</view>
|
||||
<view class="" style="margin: 30rpx 0;">
|
||||
<u-input placeholder="请输入账号"
|
||||
customStyle="background:#F5F5F5;height:80rpx;padding-left:40rpx;border:none" shape='circle'
|
||||
border="surround" v-model="formData.account"></u-input>
|
||||
</view>
|
||||
|
||||
<view class="yanzm" v-if="num==0">
|
||||
<u-input type="number" shape='circle'
|
||||
customStyle="background:#F5F5F5;height:80rpx;padding-left:40rpx;border:none;width:120rpx;"
|
||||
placeholder="请输入验证码" border="surround" v-model="formData.code"></u-input>
|
||||
|
||||
<view @tap="getCode" class="code" v-if="!isshow">{{tips}}</view>
|
||||
<view class="code" v-else>{{countDown}}s</view>
|
||||
|
||||
</view>
|
||||
<view class="" v-if="num==1">
|
||||
<u-input :password="!pwdShow" shape='circle'
|
||||
customStyle="background:#F5F5F5;height:80rpx;;padding-left:40rpx;border:none"
|
||||
placeholder="请输入密码" border="surround" v-model="formData.password">
|
||||
<template #suffix>
|
||||
<u-icon :name="pwdShow?'eye-off':'eye-fill'" @click="pwdShow=!pwdShow" size="25"></u-icon>
|
||||
</template>
|
||||
</u-input>
|
||||
</view>
|
||||
<view class="resgiter" @click="resgiter">
|
||||
用户注册
|
||||
</view>
|
||||
<view class="sub-btn">
|
||||
<u-button @click="submitFn" type="primary" customStyle="border:none;height:90rpx" color="#34D190"
|
||||
text="登录"></u-button>
|
||||
</view> -->
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
<view class="agreement">
|
||||
<text>登录代表您已经同意</text> <text style="color:#2D94FE ;">服务协议、隐私政策</text>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<style lang="scss" scoped>
|
||||
.box {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-image: url('/static/main/login/bg.png');
|
||||
background-size: 100% 100%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.content {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 700rpx;
|
||||
|
||||
.tit {
|
||||
color: white;
|
||||
font-size: 44rpx;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
.input-card {
|
||||
width: 700rpx;
|
||||
box-sizing: border-box;
|
||||
|
||||
.card-head {
|
||||
background-color: #fff;
|
||||
display: flex;
|
||||
position: relative;
|
||||
|
||||
|
||||
.triangle {
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-left: 12rpx solid transparent;
|
||||
border-right: 12rpx solid transparent;
|
||||
left: 50%;
|
||||
}
|
||||
|
||||
.top {
|
||||
border-top: 50rpx solid #31BE89;
|
||||
top: -1rpx;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.bottom {
|
||||
border-bottom: 50rpx solid white;
|
||||
bottom: -1rpx;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.code-login {
|
||||
width: 50%;
|
||||
height: 50px;
|
||||
background-color: #35D190;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 20rpx;
|
||||
transition: 500ms;
|
||||
color: white;
|
||||
|
||||
.line {
|
||||
width: 100rpx;
|
||||
background-color: #35D190;
|
||||
height: 3px;
|
||||
border-radius: 100rpx;
|
||||
transition: 500ms;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.password-login {
|
||||
width: 50%;
|
||||
height: 50px;
|
||||
background-color: #35D190;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 20rpx;
|
||||
transition: 500ms;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.act {
|
||||
background-color: white;
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
.login-content {
|
||||
background-color: #fff;
|
||||
padding: 10rpx 40rpx;
|
||||
transform: translateY(-1rpx);
|
||||
color: #7A7A7A;
|
||||
|
||||
.code {
|
||||
|
||||
.get-code {
|
||||
color: $theme-main-color;
|
||||
font-size: 28rpx;
|
||||
position: absolute;
|
||||
right: 30rpx;
|
||||
top: 20rpx;
|
||||
|
||||
.lineY {
|
||||
width: 1px;
|
||||
height: 20rpx;
|
||||
background-color: $theme-main-color;
|
||||
display: inline-block;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
.password {}
|
||||
|
||||
|
||||
.sub-btn {
|
||||
margin-top: 80rpx;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
// box-sizing: b;
|
||||
}
|
||||
|
||||
// .login-type {
|
||||
// display: flex;
|
||||
// display: inline-block;
|
||||
// margin-right: 50rpx;
|
||||
// flex-direction: column;
|
||||
// // align-items: center;
|
||||
// justify-content: flex-start;
|
||||
|
||||
// .line {
|
||||
// border-top: 3px solid #34D190;
|
||||
// margin: 0 auto;
|
||||
// margin-top: 10rpx;
|
||||
// width: 60rpx;
|
||||
// }
|
||||
// }
|
||||
|
||||
// .yanzm {
|
||||
// display: flex;
|
||||
// justify-content: space-between;
|
||||
|
||||
// .u-input {
|
||||
|
||||
// margin-right: 60rpx;
|
||||
// }
|
||||
|
||||
|
||||
// }
|
||||
|
||||
// .code {
|
||||
// width: 120rpx;
|
||||
// height: 80rpx;
|
||||
// background-color: #34D190;
|
||||
// line-height: 80rpx;
|
||||
// text-align: center;
|
||||
// border-radius: 20rpx 20rpx;
|
||||
// font-size: 20rpx;
|
||||
// padding: 0rpx 20rpx;
|
||||
// color: #fff;
|
||||
// margin-top: 10rpx;
|
||||
|
||||
// }
|
||||
|
||||
|
||||
|
||||
// .resgiter {
|
||||
// font-size: 30rpx;
|
||||
// margin-top: 40rpx;
|
||||
|
||||
// }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.agreement {
|
||||
position: absolute;
|
||||
bottom: 100rpx;
|
||||
margin: 0 auto;
|
||||
font-size: 24rpx;
|
||||
color: white;
|
||||
width: auto;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 700rpx;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
</style>
|
||||
<script setup>
|
||||
import Myindex from '@/components/return/index.vue';
|
||||
import {
|
||||
|
@ -395,8 +24,8 @@
|
|||
const tips = ref('获取验证码')
|
||||
const countDown = ref(0); // 倒计时秒数
|
||||
const formData = reactive({
|
||||
account: "",
|
||||
password: "",
|
||||
account: "19130550023",
|
||||
password: "a123456",
|
||||
code: '',
|
||||
scene: "2",
|
||||
terminal: ''
|
||||
|
@ -548,3 +177,373 @@
|
|||
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<view class="box">
|
||||
|
||||
<view class="" style="height: var(--status-bar-height);">
|
||||
|
||||
</view>
|
||||
|
||||
<Myindex style="float: right;"></Myindex>
|
||||
|
||||
|
||||
|
||||
<view class="content">
|
||||
<view class="tit" style="margin: 0;">
|
||||
您好!
|
||||
</view>
|
||||
<view class="tit">
|
||||
欢迎进入吟龙土壤墒情监测溯系统!
|
||||
</view>
|
||||
|
||||
<view class="input-card">
|
||||
<view class="card-head">
|
||||
<view class="triangle top" />
|
||||
<view class="triangle bottom" />
|
||||
<view class="code-login" @click="changeLoginType(0)" :class="{act:loginType==2}">
|
||||
<span>验证码登录</span>
|
||||
<view class="line" :style="{transform: 'translateX('+lineX+'rpx)'}" />
|
||||
|
||||
</view>
|
||||
<view class="password-login" @click="changeLoginType(350)" :class="{act:loginType==1}">
|
||||
密码登录
|
||||
</view>
|
||||
</view>
|
||||
<view class="login-content">
|
||||
<view class="code">
|
||||
|
||||
<view class="" v-if="loginType==1" style="margin-bottom: 20rpx;">
|
||||
<view class="" style="display: flex;margin-bottom: 10rpx;">
|
||||
<up-image :src="u('sj')" width="30rpx" height="44rpx"
|
||||
style="margin-right: 20rpx;"></up-image>账号
|
||||
</view>
|
||||
<u-input placeholder="请输入用户账号"
|
||||
customStyle="background:#F5F5F5;height:80rpx;padding-left:40rpx;border:none"
|
||||
shape='circle' border="surround" v-model="formData.account"></u-input>
|
||||
|
||||
<view class="" style="display: flex;margin-top: 30rpx;margin-bottom: 10rpx;">
|
||||
<up-image :src="u('mm')" width="30rpx" height="44rpx"
|
||||
style="margin-right: 20rpx;"></up-image>密码
|
||||
</view>
|
||||
<u-input :password="!pwdShow" shape='circle'
|
||||
customStyle="background:#F5F5F5;height:80rpx;padding-left:40rpx;border:none"
|
||||
placeholder="请输入密码" border="surround" v-model="formData.password">
|
||||
</u-input>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
<view class="" v-else>
|
||||
|
||||
<view class="" style="display: flex;margin-bottom: 10rpx;">
|
||||
<up-image :src="u('sj')" width="30rpx" height="44rpx"
|
||||
style="margin-right: 20rpx;"></up-image>手机号
|
||||
</view>
|
||||
|
||||
<u-input placeholder="请输入账号"
|
||||
customStyle="background:#F5F5F5;height:80rpx;padding-left:40rpx;border:none"
|
||||
shape='circle' border="surround" v-model="formData.account"></u-input>
|
||||
|
||||
<view class="" style="display: flex;margin-top: 30rpx;margin-bottom: 10rpx;">
|
||||
<up-image :src="u('yzm')" width="30rpx" height="44rpx"
|
||||
style="margin-right: 20rpx;"></up-image>验证码
|
||||
</view>
|
||||
<view class="" style="position: relative;">
|
||||
<u-input type="number" shape='circle'
|
||||
customStyle="background:#F5F5F5;height:80rpx;padding-left:40rpx;border:none;margin-bottom:15rpx"
|
||||
placeholder="请输入验证码" border="surround" v-model="formData.code"></u-input>
|
||||
<view class="get-code" :style="{color: countDown?'#feb048':''}" @click="getCode"><text
|
||||
class="lineY"></text>
|
||||
获取验证码 <text v-if='countDown'>{{countDown}}s</text> </view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<view class="" style="font-size: 26rpx;">
|
||||
<text>还没有账号?点击</text> <text @click="resgiter"
|
||||
style="color: #feb048;text-decoration: underline;">注册</text>
|
||||
</view>
|
||||
|
||||
<view class="sub-btn">
|
||||
<u-button @click="submitFn" type="primary"
|
||||
customStyle="border:none;height:90rpx;border-radius: 50rpx;" color="#feb048"
|
||||
text="登录"></u-button>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- <>old -->
|
||||
|
||||
<!-- <view class="login-type" v-for="(item,i) in arr1.list" :key="i" @click="aclick(i)">
|
||||
{{item.name}}
|
||||
<view class="line" v-if="i==num" />
|
||||
</view>
|
||||
<view class="" style="margin: 30rpx 0;">
|
||||
<u-input placeholder="请输入账号"
|
||||
customStyle="background:#F5F5F5;height:80rpx;padding-left:40rpx;border:none" shape='circle'
|
||||
border="surround" v-model="formData.account"></u-input>
|
||||
</view>
|
||||
|
||||
<view class="yanzm" v-if="num==0">
|
||||
<u-input type="number" shape='circle'
|
||||
customStyle="background:#F5F5F5;height:80rpx;padding-left:40rpx;border:none;width:120rpx;"
|
||||
placeholder="请输入验证码" border="surround" v-model="formData.code"></u-input>
|
||||
|
||||
<view @tap="getCode" class="code" v-if="!isshow">{{tips}}</view>
|
||||
<view class="code" v-else>{{countDown}}s</view>
|
||||
|
||||
</view>
|
||||
<view class="" v-if="num==1">
|
||||
<u-input :password="!pwdShow" shape='circle'
|
||||
customStyle="background:#F5F5F5;height:80rpx;;padding-left:40rpx;border:none"
|
||||
placeholder="请输入密码" border="surround" v-model="formData.password">
|
||||
<template #suffix>
|
||||
<u-icon :name="pwdShow?'eye-off':'eye-fill'" @click="pwdShow=!pwdShow" size="25"></u-icon>
|
||||
</template>
|
||||
</u-input>
|
||||
</view>
|
||||
<view class="resgiter" @click="resgiter">
|
||||
用户注册
|
||||
</view>
|
||||
<view class="sub-btn">
|
||||
<u-button @click="submitFn" type="primary" customStyle="border:none;height:90rpx" color="#feb048"
|
||||
text="登录"></u-button>
|
||||
</view> -->
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
<view class="agreement">
|
||||
<text>登录代表您已经同意</text> <text style="color:#2D94FE ;">服务协议、隐私政策</text>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<style lang="scss" scoped>
|
||||
.box {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-image: url('/static/main/login/bg.png');
|
||||
background-size: 100% 100%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.content {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 700rpx;
|
||||
|
||||
.tit {
|
||||
color: white;
|
||||
font-size: 44rpx;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
.input-card {
|
||||
width: 700rpx;
|
||||
box-sizing: border-box;
|
||||
|
||||
.card-head {
|
||||
background-color: #fff;
|
||||
display: flex;
|
||||
position: relative;
|
||||
|
||||
|
||||
.triangle {
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-left: 12rpx solid transparent;
|
||||
border-right: 12rpx solid transparent;
|
||||
left: 50%;
|
||||
}
|
||||
|
||||
.top {
|
||||
border-top: 50rpx solid #ffae48;
|
||||
top: -1rpx;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.bottom {
|
||||
border-bottom: 50rpx solid white;
|
||||
bottom: -1rpx;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.code-login {
|
||||
width: 50%;
|
||||
height: 50px;
|
||||
background-color: #feb048;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 20rpx;
|
||||
transition: 500ms;
|
||||
color: white;
|
||||
|
||||
.line {
|
||||
width: 100rpx;
|
||||
background-color: #feb048;
|
||||
height: 3px;
|
||||
border-radius: 100rpx;
|
||||
transition: 500ms;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.password-login {
|
||||
width: 50%;
|
||||
height: 50px;
|
||||
background-color: #feb048;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 20rpx;
|
||||
transition: 500ms;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.act {
|
||||
background-color: white;
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
.login-content {
|
||||
background-color: #fff;
|
||||
padding: 10rpx 40rpx;
|
||||
transform: translateY(-1rpx);
|
||||
color: #7A7A7A;
|
||||
|
||||
.code {
|
||||
|
||||
.get-code {
|
||||
color: $theme-main-color;
|
||||
font-size: 28rpx;
|
||||
position: absolute;
|
||||
right: 30rpx;
|
||||
top: 20rpx;
|
||||
|
||||
.lineY {
|
||||
width: 1px;
|
||||
height: 20rpx;
|
||||
background-color: $theme-main-color;
|
||||
display: inline-block;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
.password {}
|
||||
|
||||
|
||||
.sub-btn {
|
||||
margin-top: 80rpx;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
// box-sizing: b;
|
||||
}
|
||||
|
||||
// .login-type {
|
||||
// display: flex;
|
||||
// display: inline-block;
|
||||
// margin-right: 50rpx;
|
||||
// flex-direction: column;
|
||||
// // align-items: center;
|
||||
// justify-content: flex-start;
|
||||
|
||||
// .line {
|
||||
// border-top: 3px solid #feb048;
|
||||
// margin: 0 auto;
|
||||
// margin-top: 10rpx;
|
||||
// width: 60rpx;
|
||||
// }
|
||||
// }
|
||||
|
||||
// .yanzm {
|
||||
// display: flex;
|
||||
// justify-content: space-between;
|
||||
|
||||
// .u-input {
|
||||
|
||||
// margin-right: 60rpx;
|
||||
// }
|
||||
|
||||
|
||||
// }
|
||||
|
||||
// .code {
|
||||
// width: 120rpx;
|
||||
// height: 80rpx;
|
||||
// background-color: #feb048;
|
||||
// line-height: 80rpx;
|
||||
// text-align: center;
|
||||
// border-radius: 20rpx 20rpx;
|
||||
// font-size: 20rpx;
|
||||
// padding: 0rpx 20rpx;
|
||||
// color: #fff;
|
||||
// margin-top: 10rpx;
|
||||
|
||||
// }
|
||||
|
||||
|
||||
|
||||
// .resgiter {
|
||||
// font-size: 30rpx;
|
||||
// margin-top: 40rpx;
|
||||
|
||||
// }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.agreement {
|
||||
position: absolute;
|
||||
bottom: 100rpx;
|
||||
margin: 0 auto;
|
||||
font-size: 24rpx;
|
||||
color: white;
|
||||
width: auto;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 700rpx;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
|
||||
<view class="sub-btn">
|
||||
<u-button @click="submitFn" type="primary"
|
||||
customStyle="border:none;height:90rpx;border-radius: 100rpx;" color="#34D190"
|
||||
customStyle="border:none;height:90rpx;border-radius: 100rpx;" color="#feb048"
|
||||
text="注册"></u-button>
|
||||
</view>
|
||||
|
||||
|
@ -164,7 +164,8 @@
|
|||
.box {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: $theme-main-color;
|
||||
background-image: url('/static/main/login/bg.png');
|
||||
background-size: 100% 100%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
|
@ -200,7 +201,7 @@
|
|||
text-align: center;
|
||||
|
||||
.line {
|
||||
border-top: 3px solid #34D190;
|
||||
border-top: 3px solid #feb048;
|
||||
margin-top: 10rpx;
|
||||
width: 60rpx;
|
||||
}
|
||||
|
@ -221,7 +222,7 @@
|
|||
.code {
|
||||
width: 120rpx;
|
||||
height: 80rpx;
|
||||
background-color: #34D190;
|
||||
background-color: #feb048;
|
||||
line-height: 80rpx;
|
||||
text-align: center;
|
||||
border-radius: 20rpx 20rpx;
|
||||
|
|
|
@ -1,563 +0,0 @@
|
|||
<template>
|
||||
<view class="content">
|
||||
|
||||
<view class="card">
|
||||
<up-form labelWidth='100' :model="data.formData" ref="form1">
|
||||
<!-- <up-form-item label="姓名" prop="name"><u-input v-model="data.formData.name" /></up-form-item>
|
||||
<up-form-item label="简介" prop="intro"><u-input v-model="data.formData.intro" /></up-form-item> -->
|
||||
|
||||
<view class="c-title">土地信息</view>
|
||||
<view class="c-box">
|
||||
<up-form-item label="土地名称" prop="title" borderBottom required>
|
||||
<up-input input-align="right" placeholder="请输入土地名称" border="none"
|
||||
v-model="data.formData.title"></up-input>
|
||||
</up-form-item>
|
||||
<up-form-item label="土地面积" prop="area" borderBottom required>
|
||||
<up-input input-align="right" placeholder="请输入土地面积" border="none"
|
||||
v-model="data.formData.area"></up-input>
|
||||
</up-form-item>
|
||||
<up-form-item label="土地负责人" prop="master_name" borderBottom required>
|
||||
<up-input input-align="right" placeholder="请输入土地负责人名称" border="none"
|
||||
v-model="data.formData.master_name"></up-input>
|
||||
</up-form-item>
|
||||
<up-form-item label="负责人电话" prop="master_phone" borderBottom required>
|
||||
<up-input input-align="right" placeholder="请输入负责人电话" type="number" border="none"
|
||||
v-model="data.formData.master_phone"></up-input>
|
||||
</up-form-item>
|
||||
</view>
|
||||
|
||||
<view class="c-title">地址信息</view>
|
||||
<view class="c-box">
|
||||
<up-form-item label="所在省份" prop="province_code" borderBottom required @click="isshow1">
|
||||
<up-input input-align="right" placeholder="请选择所在省份" suffixIcon="arrow-down"
|
||||
suffix-icon-style="color: #b6b6b6;" border="none" v-model="province_name" readonly
|
||||
style="pointer-events: none;"></up-input>
|
||||
</up-form-item>
|
||||
<up-form-item label="所在城市" prop="city_code" borderBottom required @click="isshow2">
|
||||
<up-input input-align="right" placeholder="请选择所在城市" suffixIcon="arrow-down"
|
||||
suffix-icon-style="color: #b6b6b6;" border="none" v-model="city_name" readonly
|
||||
style="pointer-events: none;"></up-input>
|
||||
</up-form-item>
|
||||
<up-form-item label="所在区县" prop="county_code" borderBottom required @click="isshow3">
|
||||
<up-input input-align="right" placeholder="请选择所在区县" suffixIcon="arrow-down"
|
||||
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" 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>
|
||||
|
||||
|
||||
<view class="card-li">
|
||||
<view class="c-title">土地图片</view>
|
||||
<view class="c-box c-box-p">
|
||||
<view class="code-img1">
|
||||
<view class="" v-if="pic.length>0"
|
||||
style="display: flex;flex-direction: row;flex-wrap: wrap;margin-bottom: 30rpx;">
|
||||
<view class="" v-for="(item,i) in pic" style="margin-right: 30rpx;">
|
||||
<view class="">
|
||||
<u-icon name="close" size="15" style="margin-left:120.85rpx;"
|
||||
@click="delimg(i)"></u-icon>
|
||||
<u-image :src="item" width="150.85rpx" height="150.85rpx"></u-image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="code-img">
|
||||
<view class="" @click="updateImgFn">
|
||||
<view class="carime-icon">
|
||||
<u-image src="/static/img/DJSC.png" width="91.12rpx" height="91.12rpx"></u-image>
|
||||
<view class="">
|
||||
点击上传图片
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</up-form>
|
||||
<u-action-sheet :show="show" keyName="name" closeOnClickOverlay :actions="columns" title="请选择"
|
||||
@close="show = false" @select="leavaType1">
|
||||
|
||||
</u-action-sheet>
|
||||
<u-action-sheet :show="show1" keyName="name" :actions="columns1" title="请选择" @close="show1 = false"
|
||||
@select="leavaType2">
|
||||
</u-action-sheet>
|
||||
<u-action-sheet :show="show2" keyName="name" :actions="columns2" title="请选择" @close="show2 = false"
|
||||
@select="leavaType3">
|
||||
</u-action-sheet>
|
||||
<u-action-sheet :show="show3" keyName="name" :actions="columns3" title="请选择" @close="show3 = false"
|
||||
@select="leavaType4">
|
||||
</u-action-sheet>
|
||||
<u-action-sheet :show="show4" keyName="name" :actions="columns4" title="请选择" @close="show4 = false"
|
||||
@select="leavaType5">
|
||||
</u-action-sheet>
|
||||
<u-action-sheet :show="show5" keyName="name" :actions="columns5" title="请选择" @close="show5 = false"
|
||||
@select="leavaType6">
|
||||
</u-action-sheet>
|
||||
<u-button class="btn" @click="submit">提交</u-button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {
|
||||
ref,
|
||||
reactive,
|
||||
onMounted,
|
||||
unref,
|
||||
computed,
|
||||
watch
|
||||
} from 'vue';
|
||||
import {
|
||||
onLoad,
|
||||
onReady
|
||||
} from '@dcloudio/uni-app';
|
||||
import {
|
||||
Uploads
|
||||
} from "@/api/upload.js"
|
||||
import {
|
||||
addland,
|
||||
province,
|
||||
city,
|
||||
county,
|
||||
towns,
|
||||
villages,
|
||||
groups
|
||||
} from '@/api/api.js'
|
||||
|
||||
const form1 = ref(null);
|
||||
const data = reactive({
|
||||
formData: {
|
||||
title: '',
|
||||
area: '',
|
||||
province_code: '',
|
||||
city_code: '',
|
||||
county_code: '',
|
||||
address: '',
|
||||
lat: "",
|
||||
lon: "",
|
||||
master_name: '',
|
||||
master_phone: '',
|
||||
pic: ['https://img0.baidu.com/it/u=1717510975,3258230326&fm=253&fmt=auto?w=120&h=80',
|
||||
'https://img0.baidu.com/it/u=1717510975,3258230326&fm=253&fmt=auto?w=120&h=80'
|
||||
]
|
||||
},
|
||||
rules: {
|
||||
// name: [{
|
||||
// required: true,
|
||||
// message: '请输入姓名',
|
||||
// // 可以单个或者同时写两个触发验证方式
|
||||
// trigger: ['change', 'blur'],
|
||||
// }],
|
||||
// intro: [{
|
||||
// min: 5,
|
||||
// message: '简介不能少于5个字',
|
||||
// trigger: 'change'
|
||||
// }],
|
||||
title: [{
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请填写土地名称',
|
||||
trigger: ['blur', 'change']
|
||||
}],
|
||||
area: [{
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请填写土地面积',
|
||||
trigger: ['blur', 'change']
|
||||
}],
|
||||
province_code: [{
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请请选择所在省份',
|
||||
trigger: 'change'
|
||||
}],
|
||||
city_code: [{
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请选择所在城市',
|
||||
trigger: 'change'
|
||||
}],
|
||||
county_code: [{
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请选择所在区县',
|
||||
trigger: 'change'
|
||||
}],
|
||||
address: [{
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请输入土地详细地址',
|
||||
trigger: ['blur', 'change']
|
||||
}],
|
||||
master_name: [{
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请输入土地负责人名称',
|
||||
trigger: ['blur', 'change']
|
||||
}],
|
||||
master_phone: [{
|
||||
required: true,
|
||||
message: '请输入手机号',
|
||||
trigger: ['change', 'blur'],
|
||||
},
|
||||
{
|
||||
validator: (rule, value, callback) => {
|
||||
// 上面有说,返回true表示校验通过,返回false表示不通过
|
||||
// uni.$u.test.mobile()就是返回true或者false的
|
||||
return uni.$u.test.mobile(value);
|
||||
},
|
||||
message: '手机号码不正确',
|
||||
// 触发器可以同时用blur和change
|
||||
trigger: ['change', 'blur'],
|
||||
}
|
||||
],
|
||||
|
||||
}
|
||||
});
|
||||
const pic = reactive([]);
|
||||
const province_name = ref(null)
|
||||
const city_name = ref(null)
|
||||
const county_name = ref(null)
|
||||
|
||||
const show = ref(false)
|
||||
const show1 = ref(false)
|
||||
const show2 = ref(false)
|
||||
const columns = reactive([])
|
||||
const columns1 = reactive([])
|
||||
const columns2 = reactive([])
|
||||
|
||||
|
||||
const provincen = () => {
|
||||
province().then((res) => {
|
||||
columns.splice(0, columns.length, ...res.data.map((step, index) => {
|
||||
return {
|
||||
name: step.province_name,
|
||||
id: step.province_code,
|
||||
};
|
||||
}));
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
const cityn = (id) => {
|
||||
|
||||
city({
|
||||
province_code: id
|
||||
}).then((res) => {
|
||||
columns1.splice(0, columns.length, ...res.data.map((step, index) => {
|
||||
return {
|
||||
name: step.city_name,
|
||||
id: step.city_code,
|
||||
};
|
||||
}));
|
||||
|
||||
});
|
||||
}
|
||||
const countyn = (id) => {
|
||||
county({
|
||||
city_code: id
|
||||
|
||||
}).then((res) => {
|
||||
columns2.splice(0, columns.length, ...res.data.map((step, index) => {
|
||||
return {
|
||||
name: step.county_name,
|
||||
id: step.county_code,
|
||||
|
||||
};
|
||||
}));
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
//图片删除
|
||||
const delimg = (i) => {
|
||||
pic.splice(i, 1);
|
||||
}
|
||||
|
||||
//图片上传
|
||||
const updateImgFn = async () => {
|
||||
|
||||
uni.chooseImage({
|
||||
count: 1,
|
||||
sizeType: ['original', 'compressed'],
|
||||
sourceType: ['album', 'camera'],
|
||||
success: (res) => {
|
||||
Uploads(res.tempFilePaths[0], 'img').then(res => {
|
||||
// console.log(res)
|
||||
if (res.code == 1) {
|
||||
pic.push(res.data.url)
|
||||
console.log(data.formData)
|
||||
|
||||
uni.$u.toast('上传成功')
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}).catch(err => {
|
||||
//console.log('err', err);
|
||||
// uni.$u.toast('上传失败')
|
||||
})
|
||||
},
|
||||
fail: function(err) {
|
||||
//console.log('choose失败');
|
||||
uni.$u.toast('添加失败')
|
||||
}
|
||||
});
|
||||
// let res = await Uploads()
|
||||
// data.formData.pic = res.data.image
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 地址 省 市 街道 乡村 小队
|
||||
|
||||
const isshow1 = () => {
|
||||
show.value = true
|
||||
}
|
||||
const isshow2 = () => {
|
||||
|
||||
show1.value = true
|
||||
}
|
||||
const isshow3 = () => {
|
||||
show2.value = true
|
||||
}
|
||||
const isshow4 = () => {
|
||||
show3.value = true
|
||||
}
|
||||
const isshow5 = () => {
|
||||
show4.value = true
|
||||
|
||||
}
|
||||
const isshow6 = () => {
|
||||
show5.value = true
|
||||
}
|
||||
|
||||
const leavaType1 = (e) => {
|
||||
|
||||
province_name.value = e.name
|
||||
data.formData.province_code = e.id
|
||||
cityn(e.id)
|
||||
|
||||
}
|
||||
const leavaType2 = (e) => {
|
||||
city_name.value = e.name
|
||||
data.formData.city_code = e.id
|
||||
countyn(e.id)
|
||||
}
|
||||
|
||||
const leavaType3 = (e) => {
|
||||
county_name.value = e.name
|
||||
data.formData.county_code = e.id
|
||||
|
||||
}
|
||||
const location = () => {
|
||||
|
||||
uni.showLoading({
|
||||
title: '获取位置中'
|
||||
})
|
||||
uni.getLocation({
|
||||
type: 'gcj02',
|
||||
geocode: true,
|
||||
isHighAccuracy: true,
|
||||
success: async (res) => {
|
||||
console.log(res)
|
||||
|
||||
|
||||
data.formData.lat = res.latitude
|
||||
data.formData.lon = res.longitude
|
||||
|
||||
data.formData.address = res.address.street + res
|
||||
.address.streetNum + res.address.poiName
|
||||
|
||||
uni.hideLoading();
|
||||
|
||||
console.log(data.formData)
|
||||
},
|
||||
fail: (err) => {
|
||||
// uni.hideLoading();
|
||||
console.log(err)
|
||||
console.log("erer")
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
onReady(() => {
|
||||
form1.value.setRules(data.rules);
|
||||
|
||||
});
|
||||
|
||||
|
||||
const submit = async () => {
|
||||
try {
|
||||
const valid = await form1.value.validate();
|
||||
if (valid) {
|
||||
// console.log('表单通过', data.formData);
|
||||
if (pic.length == 0) {
|
||||
|
||||
uni.$u.toast('请上传图片')
|
||||
return
|
||||
}
|
||||
data.formData.pic = JSON.stringify(pic)
|
||||
|
||||
|
||||
// 表单验证通过,执行提交操作
|
||||
addland(data.formData).then((res) => {
|
||||
console.log(res)
|
||||
if (res.code == 1) {
|
||||
uni.navigateBack({
|
||||
delta: 1
|
||||
})
|
||||
uni.$u.toast(res.msg)
|
||||
// console.log('提交通过');
|
||||
}
|
||||
})
|
||||
} else {
|
||||
// 表单验证不通过
|
||||
console.log('表单验证未通过');
|
||||
}
|
||||
} catch (error) {
|
||||
// 捕获验证过程中的错误
|
||||
console.error(error);
|
||||
}
|
||||
}
|
||||
|
||||
onLoad((options) => {
|
||||
|
||||
provincen()
|
||||
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
page {
|
||||
background-color: #f7fffc;
|
||||
|
||||
}
|
||||
|
||||
.card {
|
||||
background-color: #f7fffc;
|
||||
padding: 0;
|
||||
padding-bottom: 80rpx;
|
||||
|
||||
.c-title {
|
||||
font-weight: bold;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 30rpx;
|
||||
padding-bottom: 15rpx;
|
||||
|
||||
&:before {
|
||||
content: '';
|
||||
display: inline-block;
|
||||
height: 0.8rem;
|
||||
width: 6rpx;
|
||||
margin-top: 0.2rem;
|
||||
margin-right: 10rpx;
|
||||
background-color: #35d190;
|
||||
border-radius: 6rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.c-box {
|
||||
background-color: #fff;
|
||||
padding-left: 30rpx;
|
||||
padding-right: 20rpx;
|
||||
padding-bottom: 20rpx;
|
||||
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.c-box-p {
|
||||
padding: 20rpx;
|
||||
}
|
||||
|
||||
.btn {
|
||||
margin: 20rpx auto;
|
||||
width: 694rpx;
|
||||
height: 80rpx;
|
||||
border-radius: 80rpx;
|
||||
background-color: #4ad69b;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
.card-li-tit {
|
||||
position: relative;
|
||||
|
||||
span {
|
||||
position: absolute;
|
||||
left: -9px;
|
||||
color: #f56c6c;
|
||||
line-height: 20px;
|
||||
font-size: 20px;
|
||||
top: 3px;
|
||||
}
|
||||
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.confim-btn {
|
||||
margin: 0 auto;
|
||||
width: 196.26rpx;
|
||||
height: 66.59rpx;
|
||||
/* border: ; */
|
||||
border: #00A15E 1px solid;
|
||||
color: #00A15E;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 42.06rpx 42.06rpx 42.06rpx 42.06rpx;
|
||||
}
|
||||
|
||||
.up-img {
|
||||
width: 341.71rpx
|
||||
}
|
||||
|
||||
.today-btn {
|
||||
width: 588.79rpx;
|
||||
background-color: #00A15E;
|
||||
color: white;
|
||||
position: fixed;
|
||||
bottom: 40rpx;
|
||||
/* transform: ; */
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
background: linear-gradient(to right, #00A15E, #4CC593);
|
||||
/* margin: 0 auto; */
|
||||
}
|
||||
|
||||
.code-img {
|
||||
background-color: #F4F4F4;
|
||||
height: 350.47rpx;
|
||||
position: relative;
|
||||
|
||||
.carime-icon {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
|
@ -1,504 +0,0 @@
|
|||
<template>
|
||||
<view class="content">
|
||||
|
||||
<view class="card">
|
||||
|
||||
<u--form labelPosition="top" labelWidth='100' :model="formData" :rules="rules" ref="form">
|
||||
<u-form-item label="土地名称" prop="formData.title" borderBottom ref='item1' required>
|
||||
<up-input placeholder="请输入土地名称" border="surround" v-model="formData.title"></up-input>
|
||||
</u-form-item>
|
||||
<u-form-item label="土地面积" prop="formData.area" borderBottom required>
|
||||
<up-input placeholder="请输入土地面积" border="surround" v-model="formData.area"></up-input>
|
||||
</u-form-item>
|
||||
<u-form-item label="所在省份" prop="formData.province_code" borderBottom required>
|
||||
<up-input placeholder="请选择所在省份" border="surround" v-model="province_name" disabled="true"
|
||||
@click="isshow1"></up-input>
|
||||
</u-form-item>
|
||||
<u-form-item label="所在城市" prop="formData.city_code" borderBottom required>
|
||||
<up-input placeholder="请选择所在城市" border="surround" v-model="city_name" @click="isshow2"
|
||||
disabled="true"></up-input>
|
||||
</u-form-item>
|
||||
<u-form-item label="所在区县" prop="formData.county_code" borderBottom required>
|
||||
<up-input placeholder="请选择所在区县" border="surround" v-model="county_name" @click="isshow3"
|
||||
disabled="true"></up-input>
|
||||
</u-form-item>
|
||||
<u-form-item label="所在镇街" prop="formData.town_code" borderBottom required>
|
||||
<up-input placeholder="请选择所在镇街" border="surround" v-model="town_name" @click="isshow4"
|
||||
disabled="true"></up-input>
|
||||
</u-form-item>
|
||||
<u-form-item label="所在乡村" prop="formData.village_code" borderBottom required>
|
||||
<up-input placeholder="请选择所在乡村" border="surround" v-model="village_name" @click="isshow5"
|
||||
disabled="true"></up-input>
|
||||
</u-form-item>
|
||||
<u-form-item label="所在小队" prop="formData.group_code" borderBottom required>
|
||||
<up-input placeholder="请选择所在小队" border="surround" v-model="group_name" @click="isshow6"
|
||||
disabled="true"></up-input>
|
||||
</u-form-item>
|
||||
<u-form-item label="土地负责人" prop="formData.master_name" borderBottom required>
|
||||
<up-input placeholder="请输入土地负责人" border="surround" v-model="formData.master_name"></up-input>
|
||||
</u-form-item>
|
||||
<u-form-item label="负责人电话" prop="formData.master_phone" borderBottom required>
|
||||
<up-input placeholder="请输入负责人电话" type="number" border="surround"
|
||||
v-model="formData.master_phone"></up-input>
|
||||
</u-form-item>
|
||||
<view class="card-li">
|
||||
<view class="card-li-tit">
|
||||
土地图片
|
||||
</view>
|
||||
<view class="code-img">
|
||||
<view class="" @click="updateImgFn">
|
||||
<view class="" v-if="formData.pic">
|
||||
<u-image :src="formData.buy_cert" width="637.85rpx" height="350.47rpx"></u-image>
|
||||
</view>
|
||||
<view class="carime-icon" v-else>
|
||||
<u-image src="/static/img/DJSC.png" width="91.12rpx" height="91.12rpx"></u-image>
|
||||
<view class="">
|
||||
点击上传图片
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</u--form>
|
||||
</view>
|
||||
|
||||
|
||||
<u-action-sheet :show="show" keyName="name" closeOnClickOverlay :actions="columns" title="请选择"
|
||||
@close="show = false" @select="leavaType1">
|
||||
|
||||
</u-action-sheet>
|
||||
<u-action-sheet :show="show1" keyName="name" :actions="columns1" title="请选择" @close="show1 = false"
|
||||
@select="leavaType2">
|
||||
</u-action-sheet>
|
||||
<u-action-sheet :show="show2" keyName="name" :actions="columns2" title="请选择" @close="show2 = false"
|
||||
@select="leavaType3">
|
||||
</u-action-sheet>
|
||||
<u-action-sheet :show="show3" keyName="name" :actions="columns3" title="请选择" @close="show3 = false"
|
||||
@select="leavaType4">
|
||||
</u-action-sheet>
|
||||
<u-action-sheet :show="show4" keyName="name" :actions="columns4" title="请选择" @close="show4 = false"
|
||||
@select="leavaType5">
|
||||
</u-action-sheet>
|
||||
<u-action-sheet :show="show5" keyName="name" :actions="columns5" title="请选择" @close="show5 = false"
|
||||
@select="leavaType6">
|
||||
</u-action-sheet>
|
||||
<!-- <view class="up-img confim-btn">
|
||||
+上传播种图片
|
||||
</view> -->
|
||||
<view class="confirm">
|
||||
<view class="confirm-btn" style="color: white;background-color: #0AA565;" @click="addFn">
|
||||
完成添加
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<!-- <view class="today-btn confim-btn" @tap="sowFn">
|
||||
今日播种
|
||||
</view> -->
|
||||
|
||||
|
||||
</view>
|
||||
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import uplodeImg from "@/utils/uplodeImg.js"
|
||||
import {
|
||||
reactive,
|
||||
ref
|
||||
} from "vue";
|
||||
import {
|
||||
onLoad,
|
||||
onReady
|
||||
} from "@dcloudio/uni-app"
|
||||
|
||||
|
||||
import {
|
||||
addland,
|
||||
province,
|
||||
city,
|
||||
county,
|
||||
towns,
|
||||
villages,
|
||||
groups
|
||||
} from '@/api/api.js'
|
||||
|
||||
const form = ref(null);
|
||||
const formData = ref({
|
||||
title: '',
|
||||
area: '',
|
||||
province_code: '',
|
||||
city_code: '',
|
||||
county_code: '',
|
||||
code: '',
|
||||
village_code: '',
|
||||
group_code: '',
|
||||
master_name: '',
|
||||
master_phone: ''
|
||||
})
|
||||
const rules = reactive({
|
||||
title: {
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请填写土地名称',
|
||||
trigger: ['blur']
|
||||
},
|
||||
area: {
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请填写土地面积',
|
||||
trigger: ['blur', 'change']
|
||||
},
|
||||
province_code: {
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请请选择所在省份',
|
||||
trigger: ['blur', 'change']
|
||||
},
|
||||
city_code: {
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请选择所在城市',
|
||||
trigger: ['blur', 'change']
|
||||
},
|
||||
county_code: {
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请选择所在区县',
|
||||
trigger: ['blur', 'change']
|
||||
},
|
||||
town_code: {
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请选择所在镇街',
|
||||
trigger: ['blur', 'change']
|
||||
},
|
||||
village_code: {
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请选择所在乡村',
|
||||
trigger: ['blur', 'change']
|
||||
},
|
||||
group_code: {
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请选择小队',
|
||||
trigger: ['blur', 'change']
|
||||
},
|
||||
master_name: {
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请天下负责人',
|
||||
trigger: ['blur', 'change']
|
||||
},
|
||||
master_phone: [{
|
||||
required: true,
|
||||
message: '请输入手机号',
|
||||
trigger: ['change', 'blur'],
|
||||
},
|
||||
{
|
||||
// 自定义验证函数,见上说明
|
||||
validator: (rule, value, callback) => {
|
||||
// 上面有说,返回true表示校验通过,返回false表示不通过
|
||||
// this.$u.test.mobile()就是返回true或者false的
|
||||
// return this.$u.test.mobile(value);
|
||||
},
|
||||
message: '手机号码不正确',
|
||||
// 触发器可以同时用blur和change
|
||||
trigger: ['change', 'blur'],
|
||||
}
|
||||
],
|
||||
})
|
||||
|
||||
|
||||
const province_name = ref(null)
|
||||
const city_name = ref(null)
|
||||
const county_name = ref(null)
|
||||
const town_name = ref(null)
|
||||
const village_name = ref(null)
|
||||
const group_name = ref(null)
|
||||
const show = ref(false)
|
||||
const show1 = ref(false)
|
||||
const show2 = ref(false)
|
||||
const show3 = ref(false)
|
||||
const show4 = ref(false)
|
||||
const show5 = ref(false)
|
||||
const columns = reactive([])
|
||||
const columns1 = reactive([])
|
||||
const columns2 = reactive([])
|
||||
const columns3 = reactive([])
|
||||
const columns4 = reactive([])
|
||||
const columns5 = reactive([])
|
||||
const provincen = () => {
|
||||
province().then((res) => {
|
||||
columns.splice(0, columns.length, ...res.data.map((step, index) => {
|
||||
return {
|
||||
name: step.province_name,
|
||||
id: step.province_code,
|
||||
};
|
||||
}));
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
const cityn = (id) => {
|
||||
console.log(id)
|
||||
city({
|
||||
province_code: id
|
||||
}).then((res) => {
|
||||
columns1.splice(0, columns.length, ...res.data.map((step, index) => {
|
||||
return {
|
||||
name: step.city_name,
|
||||
id: step.city_code,
|
||||
};
|
||||
}));
|
||||
|
||||
});
|
||||
}
|
||||
const countyn = (id) => {
|
||||
county({
|
||||
city_code: id
|
||||
|
||||
}).then((res) => {
|
||||
columns2.splice(0, columns.length, ...res.data.map((step, index) => {
|
||||
return {
|
||||
name: step.county_name,
|
||||
id: step.county_code,
|
||||
|
||||
};
|
||||
}));
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
const townsn = (id) => {
|
||||
towns({
|
||||
county_code: id
|
||||
}).then((res) => {
|
||||
columns3.splice(0, columns.length, ...res.data.map((step, index) => {
|
||||
return {
|
||||
name: step.town_name,
|
||||
id: step.town_code,
|
||||
|
||||
};
|
||||
}));
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
const villagesn = (id) => {
|
||||
villages({
|
||||
town_code: id
|
||||
}).then((res) => {
|
||||
columns4.splice(0, columns.length, ...res.data.map((step, index) => {
|
||||
return {
|
||||
name: step.village_name,
|
||||
id: step.village_code,
|
||||
|
||||
};
|
||||
}));
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
const groupsn = () => {
|
||||
groups().then((res) => {
|
||||
columns5.splice(0, columns.length, ...res.data.map((step, index) => {
|
||||
return {
|
||||
name: step.group_name,
|
||||
id: step.group_code,
|
||||
};
|
||||
}));
|
||||
|
||||
});
|
||||
}
|
||||
// 地址 省 市 街道 乡村 小队
|
||||
|
||||
const isshow1 = () => {
|
||||
show.value = true
|
||||
}
|
||||
const isshow2 = () => {
|
||||
|
||||
show1.value = true
|
||||
}
|
||||
const isshow3 = () => {
|
||||
show2.value = true
|
||||
}
|
||||
const isshow4 = () => {
|
||||
show3.value = true
|
||||
}
|
||||
const isshow5 = () => {
|
||||
show4.value = true
|
||||
|
||||
}
|
||||
const isshow6 = () => {
|
||||
show5.value = true
|
||||
}
|
||||
|
||||
const leavaType1 = (e) => {
|
||||
console.log('Received value:', e)
|
||||
province_name.value = e.name
|
||||
formData.province_code = e.id
|
||||
cityn(e.id)
|
||||
|
||||
}
|
||||
const leavaType2 = (e) => {
|
||||
city_name.value = e.name
|
||||
formData.city_code = e.id
|
||||
countyn(e.id)
|
||||
}
|
||||
|
||||
const leavaType3 = (e) => {
|
||||
county_name.value = e.name
|
||||
formData.county_code = e.id
|
||||
townsn(e.id)
|
||||
}
|
||||
const leavaType4 = (e) => {
|
||||
town_name.value = e.name
|
||||
formData.town_code = e.id
|
||||
villagesn(e.id)
|
||||
}
|
||||
const leavaType5 = (e) => {
|
||||
village_name.value = e.name
|
||||
formData.village_code = e.id
|
||||
groupsn()
|
||||
}
|
||||
const leavaType6 = (e) => {
|
||||
group_name.value = e.name
|
||||
formData.group_code = e.id
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const navgo = (url) => {
|
||||
uni.navigateTo({
|
||||
url
|
||||
})
|
||||
}
|
||||
const addFn = () => {
|
||||
console.log('11111');
|
||||
form.value.validate((valid) => {
|
||||
console.log(valid);
|
||||
if (valid) {
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: "表单验证通过"
|
||||
})
|
||||
|
||||
addland(this.formData).then((res) => {
|
||||
console.log(res)
|
||||
})
|
||||
} else {
|
||||
uni.$u.toast('校验失败')
|
||||
}
|
||||
})
|
||||
// form.value.validate().then(res => {
|
||||
// console.log(6)
|
||||
// }).catch(errors => {
|
||||
// uni.$u.toast('校验失败')
|
||||
// })
|
||||
// console.log()
|
||||
// return
|
||||
// this.$refs.form.validate(valid).then(res => {
|
||||
// console.log(valid)
|
||||
// uni.$u.toast('校验通过')
|
||||
// }).catch(errors => {
|
||||
// uni.$u.toast('校验失败')
|
||||
// })
|
||||
// navgo('/pages/index/index')
|
||||
}
|
||||
|
||||
const updateImgFn = async () => {
|
||||
let res = await uplodeImg()
|
||||
formData.buy_cert = res.data.image
|
||||
}
|
||||
onLoad((options) => {
|
||||
|
||||
provincen()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang='scss' scoped>
|
||||
.tit {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.card-li {
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.confim-btn {
|
||||
margin: 0 auto;
|
||||
width: 196.26rpx;
|
||||
height: 66.59rpx;
|
||||
/* border: ; */
|
||||
border: #00A15E 1px solid;
|
||||
color: #00A15E;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 42.06rpx 42.06rpx 42.06rpx 42.06rpx;
|
||||
}
|
||||
|
||||
.up-img {
|
||||
width: 341.71rpx
|
||||
}
|
||||
|
||||
.today-btn {
|
||||
width: 588.79rpx;
|
||||
background-color: #00A15E;
|
||||
color: white;
|
||||
position: fixed;
|
||||
bottom: 40rpx;
|
||||
/* transform: ; */
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
background: linear-gradient(to right, #00A15E, #4CC593);
|
||||
/* margin: 0 auto; */
|
||||
}
|
||||
|
||||
.code-img {
|
||||
background-color: #F4F4F4;
|
||||
height: 350.47rpx;
|
||||
position: relative;
|
||||
margin-bottom: 100rpx;
|
||||
|
||||
.carime-icon {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.confirm {
|
||||
position: fixed;
|
||||
height: 84.11rpx;
|
||||
display: flex;
|
||||
bottom: 30rpx;
|
||||
width: 750rpx;
|
||||
|
||||
.confirm-btn {
|
||||
width: 315.42rpx;
|
||||
height: 84.11rpx;
|
||||
border: #00A15E 1px solid;
|
||||
margin: 0 auto;
|
||||
border-radius: 80rpx;
|
||||
text-align: center;
|
||||
line-height: 84rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -1,403 +0,0 @@
|
|||
<template>
|
||||
<view class="content">
|
||||
|
||||
<view class="card">
|
||||
<u-form labelPosition="top" labelWidth='100' :model="data.formData" ref="form1">
|
||||
<!-- <u-form-item label="姓名" prop="name"><u-input v-model="data.formData.name" /></u-form-item>
|
||||
<u-form-item label="简介" prop="intro"><u-input v-model="data.formData.intro" /></u-form-item> -->
|
||||
|
||||
<u-form-item label="土地名称" prop="title" borderBottom ref='item1' required>
|
||||
<up-input placeholder="请输入土地名称" border="surround" v-model="data.formData.title"></up-input>
|
||||
</u-form-item>
|
||||
<u-form-item label="土地面积" prop="area" borderBottom required>
|
||||
<up-input placeholder="请输入土地面积" border="surround" v-model="data.formData.area"></up-input>
|
||||
</u-form-item>
|
||||
<u-form-item label="所在省份" prop="province_code" borderBottom required>
|
||||
<up-input placeholder="请选择所在省份" border="surround" v-model="province_name" disabled="true"
|
||||
@click="isshow1"></up-input>
|
||||
</u-form-item>
|
||||
<u-form-item label="所在城市" prop="city_code" borderBottom required>
|
||||
<up-input placeholder="请选择所在城市" border="surround" v-model="city_name" @click="isshow2"
|
||||
disabled="true"></up-input>
|
||||
</u-form-item>
|
||||
<u-form-item label="所在区县" prop="county_code" borderBottom required>
|
||||
<up-input placeholder="请选择所在区县" border="surround" v-model="county_name" @click="isshow3"
|
||||
disabled="true"></up-input>
|
||||
</u-form-item>
|
||||
<u-form-item label="所在镇街" prop="town_code" borderBottom required>
|
||||
<up-input placeholder="请选择所在镇街" border="surround" v-model="town_name" @click="isshow4"
|
||||
disabled="true"></up-input>
|
||||
</u-form-item>
|
||||
<u-form-item label="所在乡村" prop="village_code" borderBottom required>
|
||||
<up-input placeholder="请选择所在乡村" border="surround" v-model="village_name" @click="isshow5"
|
||||
disabled="true"></up-input>
|
||||
</u-form-item>
|
||||
<u-form-item label="所在小队" prop="group_code" borderBottom required>
|
||||
<up-input placeholder="请选择所在小队" border="surround" v-model="group_name" @click="isshow6"
|
||||
disabled="true"></up-input>
|
||||
</u-form-item>
|
||||
<u-form-item label="土地负责人" prop="master_name" borderBottom required>
|
||||
<up-input placeholder="请输入土地负责人" border="surround" v-model="data.formData.master_name"></up-input>
|
||||
</u-form-item>
|
||||
<u-form-item label="负责人电话" prop="master_phone" borderBottom required>
|
||||
<up-input placeholder="请输入负责人电话" type="number" border="surround"
|
||||
v-model="data.formData.master_phone"></up-input>
|
||||
</u-form-item>
|
||||
<view class="card-li">
|
||||
<view class="card-li-tit">
|
||||
土地图片
|
||||
</view>
|
||||
<view class="code-img">
|
||||
<view class="" @click="updateImgFn">
|
||||
<view class="" v-if="data.formData.pic">
|
||||
<u-image :src="data.formData.pic" width="637.85rpx" height="350.47rpx"></u-image>
|
||||
</view>
|
||||
<view class="carime-icon" v-else>
|
||||
<u-image src="/static/img/DJSC.png" width="91.12rpx" height="91.12rpx"></u-image>
|
||||
<view class="">
|
||||
点击上传图片
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</u-form>
|
||||
<u-action-sheet :show="show" keyName="name" closeOnClickOverlay :actions="columns" title="请选择"
|
||||
@close="show = false" @select="leavaType1">
|
||||
|
||||
</u-action-sheet>
|
||||
<u-action-sheet :show="show1" keyName="name" :actions="columns1" title="请选择" @close="show1 = false"
|
||||
@select="leavaType2">
|
||||
</u-action-sheet>
|
||||
<u-action-sheet :show="show2" keyName="name" :actions="columns2" title="请选择" @close="show2 = false"
|
||||
@select="leavaType3">
|
||||
</u-action-sheet>
|
||||
<u-action-sheet :show="show3" keyName="name" :actions="columns3" title="请选择" @close="show3 = false"
|
||||
@select="leavaType4">
|
||||
</u-action-sheet>
|
||||
<u-action-sheet :show="show4" keyName="name" :actions="columns4" title="请选择" @close="show4 = false"
|
||||
@select="leavaType5">
|
||||
</u-action-sheet>
|
||||
<u-action-sheet :show="show5" keyName="name" :actions="columns5" title="请选择" @close="show5 = false"
|
||||
@select="leavaType6">
|
||||
</u-action-sheet>
|
||||
<u-button @click="submit">提交</u-button>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {
|
||||
ref,
|
||||
reactive,
|
||||
onMounted,
|
||||
unref,
|
||||
computed,
|
||||
watch
|
||||
} from 'vue';
|
||||
import {
|
||||
onLoad,
|
||||
onReady
|
||||
} from '@dcloudio/uni-app';
|
||||
import {
|
||||
addland,
|
||||
province,
|
||||
city,
|
||||
county,
|
||||
towns,
|
||||
villages,
|
||||
groups
|
||||
} from '@/api/api.js'
|
||||
|
||||
const form1 = ref();
|
||||
const data = reactive({
|
||||
formData: {
|
||||
title: '',
|
||||
area: '',
|
||||
province_code: '',
|
||||
city_code: '',
|
||||
county_code: '',
|
||||
town_code: '',
|
||||
village_code: '',
|
||||
group_code: '',
|
||||
master_name: '',
|
||||
master_phone: ''
|
||||
},
|
||||
rules: {
|
||||
// name: [{
|
||||
// required: true,
|
||||
// message: '请输入姓名',
|
||||
// // 可以单个或者同时写两个触发验证方式
|
||||
// trigger: ['change', 'blur'],
|
||||
// }],
|
||||
// intro: [{
|
||||
// min: 5,
|
||||
// message: '简介不能少于5个字',
|
||||
// trigger: 'change'
|
||||
// }],
|
||||
title: [{
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请填写土地名称',
|
||||
trigger: ['blur', 'change']
|
||||
}],
|
||||
area: [{
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请填写土地面积',
|
||||
trigger: ['blur', 'change']
|
||||
}],
|
||||
province_code: [{
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请请选择所在省份',
|
||||
trigger: 'change'
|
||||
}],
|
||||
city_code: [{
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请选择所在城市',
|
||||
trigger: 'change'
|
||||
}],
|
||||
county_code: [{
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请选择所在区县',
|
||||
trigger: 'change'
|
||||
}],
|
||||
town_code: [{
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请选择所在镇街',
|
||||
trigger: 'change'
|
||||
}],
|
||||
village_code: [{
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请选择所在乡村',
|
||||
trigger: 'change'
|
||||
}],
|
||||
group_code: [{
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请选择小队',
|
||||
trigger: 'change'
|
||||
}],
|
||||
master_name: [{
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请天下负责人',
|
||||
trigger: ['blur', 'change']
|
||||
}],
|
||||
master_phone: [{
|
||||
required: true,
|
||||
message: '请输入手机号',
|
||||
trigger: ['change', 'blur'],
|
||||
},
|
||||
{
|
||||
// 自定义验证函数,见上说明
|
||||
validator: (rule, value, callback) => {
|
||||
// 上面有说,返回true表示校验通过,返回false表示不通过
|
||||
// this.$u.test.mobile()就是返回true或者false的
|
||||
// return this.$u.test.mobile(value);
|
||||
},
|
||||
message: '手机号码不正确',
|
||||
// 触发器可以同时用blur和change
|
||||
trigger: ['change', 'blur'],
|
||||
}
|
||||
],
|
||||
|
||||
}
|
||||
});
|
||||
const province_name = ref(null)
|
||||
const city_name = ref(null)
|
||||
const county_name = ref(null)
|
||||
const town_name = ref(null)
|
||||
const village_name = ref(null)
|
||||
const group_name = ref(null)
|
||||
const show = ref(false)
|
||||
const show1 = ref(false)
|
||||
const show2 = ref(false)
|
||||
const show3 = ref(false)
|
||||
const show4 = ref(false)
|
||||
const show5 = ref(false)
|
||||
const columns = reactive([])
|
||||
const columns1 = reactive([])
|
||||
const columns2 = reactive([])
|
||||
const columns3 = reactive([])
|
||||
const columns4 = reactive([])
|
||||
const columns5 = reactive([])
|
||||
const provincen = () => {
|
||||
province().then((res) => {
|
||||
columns.splice(0, columns.length, ...res.data.map((step, index) => {
|
||||
return {
|
||||
name: step.province_name,
|
||||
id: step.province_code,
|
||||
};
|
||||
}));
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
const cityn = (id) => {
|
||||
console.log(id)
|
||||
city({
|
||||
province_code: id
|
||||
}).then((res) => {
|
||||
columns1.splice(0, columns.length, ...res.data.map((step, index) => {
|
||||
return {
|
||||
name: step.city_name,
|
||||
id: step.city_code,
|
||||
};
|
||||
}));
|
||||
|
||||
});
|
||||
}
|
||||
const countyn = (id) => {
|
||||
county({
|
||||
city_code: id
|
||||
|
||||
}).then((res) => {
|
||||
columns2.splice(0, columns.length, ...res.data.map((step, index) => {
|
||||
return {
|
||||
name: step.county_name,
|
||||
id: step.county_code,
|
||||
|
||||
};
|
||||
}));
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
const townsn = (id) => {
|
||||
towns({
|
||||
county_code: id
|
||||
}).then((res) => {
|
||||
columns3.splice(0, columns.length, ...res.data.map((step, index) => {
|
||||
return {
|
||||
name: step.town_name,
|
||||
id: step.town_code,
|
||||
|
||||
};
|
||||
}));
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
const villagesn = (id) => {
|
||||
villages({
|
||||
town_code: id
|
||||
}).then((res) => {
|
||||
columns4.splice(0, columns.length, ...res.data.map((step, index) => {
|
||||
return {
|
||||
name: step.village_name,
|
||||
id: step.village_code,
|
||||
|
||||
};
|
||||
}));
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
const groupsn = () => {
|
||||
groups().then((res) => {
|
||||
columns5.splice(0, columns.length, ...res.data.map((step, index) => {
|
||||
return {
|
||||
name: step.group_name,
|
||||
id: step.group_code,
|
||||
};
|
||||
}));
|
||||
|
||||
});
|
||||
}
|
||||
// 地址 省 市 街道 乡村 小队
|
||||
|
||||
const isshow1 = () => {
|
||||
show.value = true
|
||||
}
|
||||
const isshow2 = () => {
|
||||
|
||||
show1.value = true
|
||||
}
|
||||
const isshow3 = () => {
|
||||
show2.value = true
|
||||
}
|
||||
const isshow4 = () => {
|
||||
show3.value = true
|
||||
}
|
||||
const isshow5 = () => {
|
||||
show4.value = true
|
||||
|
||||
}
|
||||
const isshow6 = () => {
|
||||
show5.value = true
|
||||
}
|
||||
|
||||
const leavaType1 = (e) => {
|
||||
console.log('Received value:', e)
|
||||
province_name.value = e.name
|
||||
data.formData.province_code = e.id
|
||||
cityn(e.id)
|
||||
|
||||
}
|
||||
const leavaType2 = (e) => {
|
||||
city_name.value = e.name
|
||||
data.formData.city_code = e.id
|
||||
countyn(e.id)
|
||||
}
|
||||
|
||||
const leavaType3 = (e) => {
|
||||
county_name.value = e.name
|
||||
data.formData.county_code = e.id
|
||||
townsn(e.id)
|
||||
}
|
||||
const leavaType4 = (e) => {
|
||||
town_name.value = e.name
|
||||
data.formData.town_code = e.id
|
||||
villagesn(e.id)
|
||||
}
|
||||
const leavaType5 = (e) => {
|
||||
village_name.value = e.name
|
||||
data.formData.village_code = e.id
|
||||
|
||||
}
|
||||
const leavaType6 = (e) => {
|
||||
console.log(e)
|
||||
group_name.value = e.name
|
||||
data.formData.group_code = e.id.toString()
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
onReady(() => {
|
||||
form1.value.setRules(data.rules);
|
||||
});
|
||||
|
||||
const submit = (e) => {
|
||||
|
||||
form1.value.validate(valid => {
|
||||
console.log(valid)
|
||||
if (valid) {
|
||||
uni.showToast({
|
||||
title: "验证通过",
|
||||
icon: 'none'
|
||||
});
|
||||
console.log('验证通过');
|
||||
} else {
|
||||
console.log('验证失败');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
onLoad((options) => {
|
||||
|
||||
provincen()
|
||||
groupsn()
|
||||
})
|
||||
</script>
|
|
@ -1,418 +0,0 @@
|
|||
<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>
|
|
@ -398,11 +398,11 @@
|
|||
|
||||
<style lang='scss' scoped>
|
||||
page {
|
||||
background-color: #f7fffc;
|
||||
background-color: #fffcf5;
|
||||
}
|
||||
|
||||
.card {
|
||||
background-color: #f7fffc;
|
||||
background-color: #fffcf5;
|
||||
padding: 0;
|
||||
padding-bottom: 80rpx;
|
||||
|
||||
|
@ -420,7 +420,7 @@
|
|||
width: 6rpx;
|
||||
margin-top: 0.2rem;
|
||||
margin-right: 10rpx;
|
||||
background-color: #35d190;
|
||||
background-color: #feb048;
|
||||
border-radius: 6rpx;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -374,6 +374,6 @@
|
|||
width: 3px;
|
||||
/* 左边框的宽度 */
|
||||
height: 30rpx;
|
||||
background-color: #34D08D;
|
||||
background-color: #FFB049;
|
||||
}
|
||||
</style>
|
|
@ -408,12 +408,12 @@
|
|||
|
||||
<style lang='scss' scoped>
|
||||
page {
|
||||
background-color: #f7fffc;
|
||||
background-color: #fffcf5;
|
||||
|
||||
}
|
||||
|
||||
.card {
|
||||
background-color: #f7fffc;
|
||||
background-color: #fffcf5;
|
||||
padding: 0;
|
||||
padding-bottom: 80rpx;
|
||||
|
||||
|
@ -431,7 +431,7 @@
|
|||
width: 6rpx;
|
||||
margin-top: 0.2rem;
|
||||
margin-right: 10rpx;
|
||||
background-color: #35d190;
|
||||
background-color: #feb048;
|
||||
border-radius: 6rpx;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -271,11 +271,11 @@
|
|||
|
||||
<style lang='scss' scoped>
|
||||
page {
|
||||
background-color: #f7fffc;
|
||||
background-color: #fffcf5;
|
||||
}
|
||||
|
||||
.card {
|
||||
background-color: #f7fffc;
|
||||
background-color: #fffcf5;
|
||||
padding: 0;
|
||||
padding-bottom: 80rpx;
|
||||
|
||||
|
@ -293,7 +293,7 @@
|
|||
width: 6rpx;
|
||||
margin-top: 0.2rem;
|
||||
margin-right: 10rpx;
|
||||
background-color: #35d190;
|
||||
background-color: #feb048;
|
||||
border-radius: 6rpx;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -395,11 +395,11 @@
|
|||
|
||||
<style lang='scss' scoped>
|
||||
page {
|
||||
background-color: #f7fffc;
|
||||
background-color: #fffcf5;
|
||||
}
|
||||
|
||||
.card {
|
||||
background-color: #f7fffc;
|
||||
background-color: #fffcf5;
|
||||
padding: 0;
|
||||
padding-bottom: 80rpx;
|
||||
|
||||
|
@ -417,7 +417,7 @@
|
|||
width: 6rpx;
|
||||
margin-top: 0.2rem;
|
||||
margin-right: 10rpx;
|
||||
background-color: #35d190;
|
||||
background-color: #feb048;
|
||||
border-radius: 6rpx;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -300,12 +300,12 @@
|
|||
|
||||
<style lang='scss' scoped>
|
||||
page {
|
||||
background-color: #f7fffc;
|
||||
background-color: #fffcf5;
|
||||
|
||||
}
|
||||
|
||||
.card {
|
||||
background-color: #f7fffc;
|
||||
background-color: #fffcf5;
|
||||
padding: 0;
|
||||
padding-bottom: 80rpx;
|
||||
|
||||
|
@ -323,7 +323,7 @@
|
|||
width: 6rpx;
|
||||
margin-top: 0.2rem;
|
||||
margin-right: 10rpx;
|
||||
background-color: #35d190;
|
||||
background-color: #feb048;
|
||||
border-radius: 6rpx;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -394,11 +394,11 @@
|
|||
|
||||
<style lang='scss' scoped>
|
||||
page {
|
||||
background-color: #f7fffc;
|
||||
background-color: #fffcf5;
|
||||
}
|
||||
|
||||
.card {
|
||||
background-color: #f7fffc;
|
||||
background-color: #fffcf5;
|
||||
padding: 0;
|
||||
padding-bottom: 80rpx;
|
||||
|
||||
|
@ -416,7 +416,7 @@
|
|||
width: 6rpx;
|
||||
margin-top: 0.2rem;
|
||||
margin-right: 10rpx;
|
||||
background-color: #35d190;
|
||||
background-color: #feb048;
|
||||
border-radius: 6rpx;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view class="">
|
||||
<view class="" style="height: var(--status-bar-height);background-color: #35D190;">
|
||||
<view class="" style="height: var(--status-bar-height);background-color: #feb048;">
|
||||
|
||||
</view>
|
||||
<view class="header">
|
||||
|
@ -228,13 +228,10 @@
|
|||
}
|
||||
|
||||
.header {
|
||||
background-color: #34D190;
|
||||
background-color: #feb048;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 10rpx 0 10rpx 20rpx;
|
||||
// padding-top: 10rpx;
|
||||
// padding-left: 20rpx;
|
||||
// padding-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.tits {
|
||||
|
@ -253,7 +250,7 @@
|
|||
width: 3px;
|
||||
/* 左边框的宽度 */
|
||||
height: 30rpx;
|
||||
background-color: #34D08D;
|
||||
background-color: #FFB049;
|
||||
}
|
||||
|
||||
// old
|
||||
|
@ -294,7 +291,7 @@
|
|||
box-shadow: 1rpx 1rpx 10rpx 1rpx rgba(0, 0, 0, 0.1);
|
||||
border-radius: 200rpx;
|
||||
position: relative;
|
||||
color: #35D190;
|
||||
color: #feb048;
|
||||
font-size: 28rpx;
|
||||
margin-top: 20rpx;
|
||||
|
||||
|
@ -318,7 +315,7 @@
|
|||
width: 2px;
|
||||
/* 左边框的宽度 */
|
||||
height: 20rpx;
|
||||
background-color: #34D08D;
|
||||
background-color: #FFB049;
|
||||
}
|
||||
|
||||
// width: 100%;
|
||||
|
@ -346,7 +343,7 @@
|
|||
|
||||
.border-bgc {
|
||||
height: 200rpx;
|
||||
background-color: #34D190;
|
||||
background-color: #feb048;
|
||||
border-radius: 0 0 40rpx 40rpx;
|
||||
position: absolute;
|
||||
width: 750rpx;
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
<u--image :src="u('qhtd')" width="38.55rpx" @click="scanFn" height="38.55rpx"
|
||||
style="margin-right: 20rpx;"></u--image>
|
||||
{{dataobj.title}}
|
||||
|
||||
</view>
|
||||
<view v-else></view>
|
||||
|
||||
<view class="" style="display: flex;align-items: center;">
|
||||
<view class="nav">
|
||||
|
@ -26,7 +26,7 @@
|
|||
height="38.55rpx"></u--image>
|
||||
</view>
|
||||
<view class="" style="margin-left: 20rpx;">
|
||||
<!-- <u-icon name="plus-circle" color="white" @click="navto('/pages/addLand/addLand')"
|
||||
<!-- <u-icon name="plus-circle" color="white" @click="navto('/pages/addPlant/addPlant')"
|
||||
:size="28"></u-icon> -->
|
||||
</view>
|
||||
</view>
|
||||
|
@ -43,31 +43,31 @@
|
|||
<view class="">
|
||||
<view class="" style="height:var(--status-bar-height) ;">
|
||||
</view>
|
||||
<view class="nav-con" style="margin-bottom: 80rpx;">
|
||||
<view class="nav-con">
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="content" v-if="true">
|
||||
<!-- 土地信息 -->
|
||||
<!-- 养殖场信息 -->
|
||||
<view class="">
|
||||
<view class="empty-land" v-if="Object.keys(dataobj).length<=0">
|
||||
<text>没有土地信息?</text>
|
||||
<text @click="navto('/pages/addLand/addLand')">去新增》</text>
|
||||
<text>没有养殖场信息?</text>
|
||||
<text @click="navto('/pages/addPlant/addPlant')">去新增》</text>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="land-info">
|
||||
<view class="land-area">
|
||||
土地面积
|
||||
<view class="land-title">养殖场规模</view>
|
||||
<view class="">
|
||||
{{dataobj.total_area|| "--"}}亩
|
||||
{{dataobj.total_area|| "--"}}
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="plant-area">
|
||||
种植面积
|
||||
<view class="land-title">养殖种类</view>
|
||||
<view class="">
|
||||
{{dataobj.total_area-dataobj.residual_area||"--"}}亩
|
||||
{{dataobj.total_area-dataobj.residual_area||"--"}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -85,7 +85,7 @@
|
|||
</view>
|
||||
<view class="live-tit" style="color: #1A1A1A;">
|
||||
<view class="tit" style="">
|
||||
苗情检测视频
|
||||
养殖场监控数据
|
||||
</view>
|
||||
<view class="" style="font-size: 24rpx;color: #ACACAC;display: flex;align-items: center;">
|
||||
<u-icon name="clock" style="margin-right: 5rpx;"></u-icon> 刷新时间:{{getNowTimeFn()}}
|
||||
|
@ -99,17 +99,15 @@
|
|||
|
||||
<view class="">
|
||||
<view class="tit">
|
||||
土壤检测信息
|
||||
智能监测数据
|
||||
</view>
|
||||
<view class="area-check">
|
||||
<view class="area-li" v-for="(item,index) in soilList" key="index"
|
||||
:style="{backgroundImage:`url(${bgc(item.icon)})`}">
|
||||
|
||||
|
||||
<view class="">
|
||||
{{item.name}}
|
||||
</view>
|
||||
<view class="" style="color:#73DFB2">
|
||||
<view class="" style="color:#ffb351">
|
||||
{{ item.num?item.num+item.unit:'--' }}
|
||||
</view>
|
||||
</view>
|
||||
|
@ -117,93 +115,7 @@
|
|||
</view>
|
||||
|
||||
|
||||
<view class="">
|
||||
<view class="tit">
|
||||
环境检测信息
|
||||
</view>
|
||||
<view class="area-check">
|
||||
<view class="area-li" v-for="(item,index) in environmentList" key="index"
|
||||
:style="{backgroundImage:`url(${bgc(item.icon)})`}">
|
||||
|
||||
|
||||
<view class="">
|
||||
{{item.name}}
|
||||
</view>
|
||||
<view class="" style="color:#73DFB2">
|
||||
|
||||
{{ item.num?item.num+item.unit:'--' }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- old -->
|
||||
<!-- <view class="card" v-if="Object.keys(dataobj).length>0">
|
||||
<view class="" @click="navgo">
|
||||
<view class="" style="margin: 10rpx 0;">
|
||||
土地名称: {{dataobj.title}}
|
||||
</view>
|
||||
|
||||
<view class="" style="margin: 10rpx 0;">
|
||||
土地面积: {{dataobj.total_area}}亩
|
||||
</view>
|
||||
<view class="" style="margin: 10rpx 0;">
|
||||
种植面积: {{dataobj.total_area-dataobj.residual_area}}亩
|
||||
</view>
|
||||
</view>
|
||||
<view class="changeLand" @click="show=true">
|
||||
切换土地
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="card" v-else>
|
||||
<view class="">
|
||||
<view class="">
|
||||
暂无信息
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
</view>
|
||||
<!-- <view class="add-thing" v-if="(dataobj.total_area-dataobj.residual_area)==0" @click="palnt(dataobj.id)">
|
||||
新增种植
|
||||
</view>
|
||||
<view class="" v-else>
|
||||
<view class="add-thing" @click="showPicker1=true" v-if="columns2[0]&&columns2[0].length>0">
|
||||
记农事
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- 苗情监测 -->
|
||||
<!-- <view class="">
|
||||
<view class="live-video soil-monitor">
|
||||
<view class="head">
|
||||
<view class="tit">
|
||||
苗情监测数据
|
||||
</view>
|
||||
<view class="flushed-time">
|
||||
<u-icon name="clock"></u-icon>
|
||||
<text>刷新时间: {{getNowTimeFn()}} </text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="video" @click="navto(' /pages/live/live')">
|
||||
<u-swiper :list="dataobj.pic" width="100%" height="300rpx"></u-swiper>
|
||||
</view>
|
||||
|
||||
|
||||
</view> -->
|
||||
<!-- 土壤监测 -->
|
||||
<!-- -->
|
||||
|
||||
<!-- 组件 -->
|
||||
|
||||
<u-loading-page :loading="showLoading"></u-loading-page>
|
||||
|
||||
|
||||
|
@ -212,11 +124,11 @@
|
|||
</u-action-sheet>
|
||||
</view>
|
||||
<view class="empty" v-else>
|
||||
<view class="addLand">
|
||||
<view class="addPlant">
|
||||
<view class="">
|
||||
你还没有土地信息
|
||||
你还没有养殖场信息
|
||||
</view>
|
||||
<view class="addBtn" @click="navto('/pages/addLand/addLand')">
|
||||
<view class="addBtn" @click="navto('/pages/addPlant/addPlant')">
|
||||
去添加
|
||||
</view>
|
||||
</view>
|
||||
|
@ -296,47 +208,34 @@
|
|||
// 土壤监测数据
|
||||
const url = ref('https://ceshi-worker-task.lihaink.cn//uploads//images//20231121//202311211336582b7920656.jpg')
|
||||
const soilList = reactive([{
|
||||
icon: "trwd",
|
||||
name: "土壤温度",
|
||||
icon: "huan_jing_wen_du",
|
||||
name: "空气温度",
|
||||
num: 0,
|
||||
unit: "℃",
|
||||
|
||||
}, {
|
||||
icon: "trsd",
|
||||
name: "土壤湿度",
|
||||
icon: "huan_jing_shi_du",
|
||||
name: "空气湿度",
|
||||
num: 0,
|
||||
unit: "%RH",
|
||||
unit: "%",
|
||||
|
||||
}, {
|
||||
icon: "trddl",
|
||||
name: "土壤导电率",
|
||||
icon: "dan_qi",
|
||||
name: "氮气",
|
||||
num: 0,
|
||||
unit: "μS/cm",
|
||||
unit: "ppm",
|
||||
|
||||
}, {
|
||||
icon: "trph",
|
||||
name: "土壤PH值",
|
||||
icon: "jia_wan",
|
||||
name: "甲烷",
|
||||
num: 0,
|
||||
unit: "PH",
|
||||
unit: "ppm",
|
||||
|
||||
}, {
|
||||
icon: "trhdl",
|
||||
name: "土壤含氮量",
|
||||
}, {
|
||||
icon: "zao_yin",
|
||||
name: "噪音",
|
||||
num: 0,
|
||||
unit: "mg/kg",
|
||||
|
||||
}, {
|
||||
icon: "trhll",
|
||||
name: "土壤含磷量",
|
||||
num: 0,
|
||||
unit: "mg/kg",
|
||||
|
||||
}, {
|
||||
icon: "trhjl",
|
||||
name: "土壤含钾量",
|
||||
num: 0,
|
||||
unit: "mg/kg",
|
||||
|
||||
unit: "db",
|
||||
},
|
||||
|
||||
])
|
||||
|
@ -374,60 +273,7 @@
|
|||
const show = ref(false)
|
||||
const showLoading = ref(false)
|
||||
const columns = reactive([]);
|
||||
// 环境监测数据
|
||||
const environmentList = reactive([{
|
||||
icon: "FS",
|
||||
name: "风速",
|
||||
num: 0,
|
||||
unit: "%",
|
||||
|
||||
}, {
|
||||
icon: "FX",
|
||||
name: "风向",
|
||||
num: 0,
|
||||
unit: "%",
|
||||
|
||||
}, {
|
||||
icon: "WD1",
|
||||
name: "温度",
|
||||
num: 0,
|
||||
unit: "℃",
|
||||
|
||||
}, {
|
||||
icon: "SD",
|
||||
name: "湿度",
|
||||
num: 0,
|
||||
unit: "%RH",
|
||||
|
||||
}, {
|
||||
icon: 'eyht',
|
||||
name: "二氧化碳",
|
||||
num: 0,
|
||||
unit: "ppm",
|
||||
|
||||
}, {
|
||||
icon: "QY",
|
||||
name: "气压",
|
||||
num: 0,
|
||||
unit: "KPa",
|
||||
|
||||
}, {
|
||||
icon: "YL",
|
||||
name: "雨量",
|
||||
num: 0,
|
||||
unit: "mm",
|
||||
|
||||
}, {
|
||||
icon: "GZ",
|
||||
name: "光照量",
|
||||
num: 0,
|
||||
unit: "Lux",
|
||||
|
||||
},
|
||||
|
||||
])
|
||||
onShow(() => {
|
||||
getlist()
|
||||
getlist1()
|
||||
getlist2()
|
||||
|
||||
|
@ -436,44 +282,6 @@
|
|||
return `/static/main/index/${icon}.png`
|
||||
}
|
||||
|
||||
//列表获取
|
||||
const getlist = () => {
|
||||
lindexist({
|
||||
land_id: tdId.value
|
||||
}).then((res) => {
|
||||
|
||||
if (res.code == 1) {
|
||||
if (Object.keys(res.data).length > 0) {
|
||||
getlist3(res.data.id)
|
||||
|
||||
Object.assign(dataobj, res.data);
|
||||
|
||||
if (res.data && res.data.monitor && res.data.monitor.soil_monitor_data) {
|
||||
soilList[0].num = res.data.monitor.soil_monitor_data.temperature
|
||||
soilList[1].num = res.data.monitor.soil_monitor_data.moisture
|
||||
soilList[2].num = res.data.monitor.soil_monitor_data.conductivity
|
||||
soilList[3].num = res.data.monitor.soil_monitor_data.ph
|
||||
soilList[4].num = res.data.monitor.soil_monitor_data.n_content
|
||||
soilList[5].num = res.data.monitor.soil_monitor_data.p_content
|
||||
soilList[6].num = res.data.monitor.soil_monitor_data.k_content
|
||||
}
|
||||
if (res.data && res.data.monitor && res.data.monitor.air_monitor_data) {
|
||||
environmentList[0].num = res.data.monitor.air_monitor_data.wind_speed
|
||||
environmentList[1].num = res.data.monitor.air_monitor_data.wind_direction
|
||||
environmentList[2].num = res.data.monitor.air_monitor_data.temperature
|
||||
environmentList[3].num = res.data.monitor.air_monitor_data.moisture
|
||||
environmentList[4].num = res.data.monitor.air_monitor_data.co2_content
|
||||
environmentList[5].num = res.data.monitor.air_monitor_data.pressure
|
||||
environmentList[6].num = res.data.monitor.air_monitor_data.rainfall
|
||||
environmentList[7].num = res.data.monitor.air_monitor_data.light_intensity
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
const getlist1 = () => {
|
||||
landlist({
|
||||
|
@ -585,8 +393,6 @@
|
|||
// console.log(e)
|
||||
tdId.value = e.id
|
||||
|
||||
getlist()
|
||||
|
||||
show.value = false
|
||||
showLoading.value = true
|
||||
setTimeout(() => {
|
||||
|
@ -631,7 +437,7 @@
|
|||
}
|
||||
|
||||
.top {
|
||||
background-color: #34D190;
|
||||
background-color: #feb048;
|
||||
position: fixed;
|
||||
z-index: 999999;
|
||||
width: 750rpx;
|
||||
|
@ -703,7 +509,7 @@
|
|||
height: 60rpx;
|
||||
line-height: 60rpx;
|
||||
font-size: 25rpx;
|
||||
background-color: #34D190;
|
||||
background-color: #feb048;
|
||||
text-align: center;
|
||||
border-radius: 30rpx;
|
||||
color: #fff;
|
||||
|
@ -718,7 +524,9 @@
|
|||
|
||||
.nav-con {
|
||||
display: flex;
|
||||
|
||||
width: 100vw;
|
||||
height: 44px;
|
||||
align-items: center;
|
||||
padding-top: 20rpx;
|
||||
padding-bottom: 10rpx;
|
||||
}
|
||||
|
@ -764,10 +572,11 @@
|
|||
// background-color: red;
|
||||
background-image: url('/static/main/index/tdmj.png');
|
||||
background-size: 100% 100%;
|
||||
text-align: center;
|
||||
color: #de8f20;
|
||||
padding-top: 20rpx;
|
||||
box-shadow: 1rpx 1rpx 10rpx 1rpx rgba(0, 0, 0, 0.1);
|
||||
|
||||
padding-left: 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.plant-area {
|
||||
|
@ -775,10 +584,11 @@
|
|||
height: 120rpx;
|
||||
background-image: url('/static/main/index/zzmj.png');
|
||||
background-size: 100% 100%;
|
||||
text-align: center;
|
||||
color: #cf6143;
|
||||
padding-top: 20rpx;
|
||||
box-shadow: 1rpx 1rpx 10rpx 1rpx rgba(0, 0, 0, 0.1);
|
||||
|
||||
padding-left: 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -841,7 +651,7 @@
|
|||
width: 3px;
|
||||
/* 左边框的宽度 */
|
||||
height: 30rpx;
|
||||
background-color: #34D08D;
|
||||
background-color: #FFB049;
|
||||
}
|
||||
|
||||
|
||||
|
@ -905,7 +715,7 @@
|
|||
background-color: $theme-bg-color;
|
||||
position: relative;
|
||||
|
||||
.addLand {
|
||||
.addPlant {
|
||||
width: auto;
|
||||
height: 100rpx;
|
||||
color: grey;
|
||||
|
@ -930,7 +740,7 @@
|
|||
.empty-land {
|
||||
width: 690rpx;
|
||||
height: 135rpx;
|
||||
color: #74A0EA;
|
||||
color: #cf5042;
|
||||
text-align: center;
|
||||
background-image: url('../../static/main/index/xz.png');
|
||||
background-size: 100% 100%;
|
||||
|
|
|
@ -403,7 +403,7 @@
|
|||
width: 3px;
|
||||
/* 左边框的宽度 */
|
||||
height: 30rpx;
|
||||
background-color: #34D08D;
|
||||
background-color: #FFB049;
|
||||
}
|
||||
|
||||
.code-btn {
|
||||
|
|
|
@ -382,6 +382,6 @@
|
|||
width: 3px;
|
||||
/* 左边框的宽度 */
|
||||
height: 30rpx;
|
||||
background-color: #34D08D;
|
||||
background-color: #FFB049;
|
||||
}
|
||||
</style>
|
|
@ -505,6 +505,6 @@
|
|||
width: 3px;
|
||||
/* 左边框的宽度 */
|
||||
height: 30rpx;
|
||||
background-color: #34D08D;
|
||||
background-color: #FFB049;
|
||||
}
|
||||
</style>
|
|
@ -47,7 +47,7 @@
|
|||
</u-input>
|
||||
|
||||
</u-form-item>
|
||||
<u-button style="margin-top: 28rpx;background-color:#34D190;color: #fff;"
|
||||
<u-button style="margin-top: 28rpx;background-color:#feb048;color: #fff;"
|
||||
customStyle="border-radius: 50rpx;height:100rpx" @click="submit">提交</u-button>
|
||||
</u--form>
|
||||
</view>
|
||||
|
|
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 1023 B After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 420 KiB After Width: | Height: | Size: 56 KiB |