登录注册、修改密码 以及登录页面新增验证码功能
This commit is contained in:
parent
423451c68c
commit
f0f7c6987a
24
App.vue
24
App.vue
|
@ -1,23 +1,14 @@
|
|||
<script>
|
||||
import {
|
||||
userInfoStore
|
||||
} from '@/store/userInfo'
|
||||
import {
|
||||
userInfoAPI
|
||||
} from "@/api/plant.js"
|
||||
|
||||
|
||||
export default {
|
||||
onLaunch: function() {
|
||||
const userInfo = userInfoStore()
|
||||
userInfoAPI({
|
||||
user_id: 307,
|
||||
user_type: 3
|
||||
}).then(res => {
|
||||
userInfo.saveUserInfo(res.data)
|
||||
})
|
||||
uni.setStorageSync("SY_TOKEN", "dfdf4564557445df4df")
|
||||
|
||||
|
||||
},
|
||||
onShow: function() {
|
||||
console.log('App Show')
|
||||
|
||||
},
|
||||
onHide: function() {
|
||||
console.log('App Hide')
|
||||
|
@ -32,15 +23,16 @@
|
|||
.card {
|
||||
position: relative;
|
||||
width: 693.93rpx;
|
||||
margin: auto;
|
||||
margin: 0 auto;
|
||||
background-color: #fff;
|
||||
box-sizing: border-box;
|
||||
padding: 20rpx;
|
||||
padding: 20rpx 20rpx;
|
||||
border-radius: 21.03rpx 21.03rpx 21.03rpx 21.03rpx;
|
||||
margin-bottom: 40rpx;
|
||||
font-size: 29.79rpx;
|
||||
|
||||
.card-li {
|
||||
|
||||
margin-bottom: 17rpx;
|
||||
}
|
||||
|
||||
|
|
19
api/file.js
19
api/file.js
|
@ -4,3 +4,22 @@ import syhttp from "@/utils/syhttp.js";
|
|||
* 我的公司
|
||||
*/
|
||||
export const uplodeImgAPI = (data) => syhttp.post('/user/imageUpload', data)
|
||||
|
||||
//登录
|
||||
export const login = (data) => syhttp.post('/login/account', data)
|
||||
|
||||
|
||||
//验证码
|
||||
|
||||
export const xinregister = (data) => syhttp.post('/index/code', data)
|
||||
|
||||
|
||||
//用户注册
|
||||
export const logregister = (data) => syhttp.post('/login/register', data)
|
||||
|
||||
//修改密码
|
||||
export const changePassword = (data) => syhttp.post('/user/changePassword', data)
|
||||
|
||||
//退出登录
|
||||
|
||||
export const logout = (data) => syhttp.get('/login/logout', data)
|
|
@ -6,7 +6,6 @@ let env = "dev"
|
|||
|
||||
let HTTP_REQUEST_URL
|
||||
let HEADER
|
||||
|
||||
if (env == 'dev') {
|
||||
BASE_URL = 'http://ceshi-suyuan.lihaink.cn/'
|
||||
} else if (env = 'prod') {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name" : "test",
|
||||
"name" : "种植溯源",
|
||||
"appid" : "__UNI__D087881",
|
||||
"description" : "",
|
||||
"versionName" : "1.0.1",
|
||||
|
@ -20,7 +20,8 @@
|
|||
"modules" : {
|
||||
"Geolocation" : {},
|
||||
"Maps" : {},
|
||||
"LivePusher" : {}
|
||||
"LivePusher" : {},
|
||||
"VideoPlayer" : {}
|
||||
},
|
||||
/* 应用发布信息 */
|
||||
"distribute" : {
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"hash": "25035236",
|
||||
"browserHash": "1466e902",
|
||||
"hash": "ecd04c7b",
|
||||
"browserHash": "62a01527",
|
||||
"optimized": {
|
||||
"uview-plus": {
|
||||
"src": "../../uview-plus/index.js",
|
||||
"file": "uview-plus.js",
|
||||
"fileHash": "a0f19e5d",
|
||||
"fileHash": "87057957",
|
||||
"needsInterop": false
|
||||
}
|
||||
},
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/mixin/mixin.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/mixin/mixin.js
|
||||
var mixin_default = {
|
||||
// 定义每个组件都可能需要用到的外部样式以及类名
|
||||
props: {
|
||||
|
@ -129,10 +129,10 @@ var mixin_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/mixin/mpMixin.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/mixin/mpMixin.js
|
||||
var mpMixin_default = {};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/utils.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/utils.js
|
||||
var { toString } = Object.prototype;
|
||||
function isArray(val) {
|
||||
return toString.call(val) === "[object Array]";
|
||||
|
@ -188,7 +188,7 @@ function isUndefined(val) {
|
|||
return typeof val === "undefined";
|
||||
}
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/helpers/buildURL.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/helpers/buildURL.js
|
||||
function encode(val) {
|
||||
return encodeURIComponent(val).replace(/%40/gi, "@").replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
||||
}
|
||||
|
@ -231,17 +231,17 @@ function buildURL(url2, params) {
|
|||
return url2;
|
||||
}
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/helpers/isAbsoluteURL.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/helpers/isAbsoluteURL.js
|
||||
function isAbsoluteURL(url2) {
|
||||
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
||||
}
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/helpers/combineURLs.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/helpers/combineURLs.js
|
||||
function combineURLs(baseURL, relativeURL) {
|
||||
return relativeURL ? `${baseURL.replace(/\/+$/, "")}/${relativeURL.replace(/^\/+/, "")}` : baseURL;
|
||||
}
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/buildFullPath.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/buildFullPath.js
|
||||
function buildFullPath(baseURL, requestedURL) {
|
||||
if (baseURL && !isAbsoluteURL(requestedURL)) {
|
||||
return combineURLs(baseURL, requestedURL);
|
||||
|
@ -249,7 +249,7 @@ function buildFullPath(baseURL, requestedURL) {
|
|||
return requestedURL;
|
||||
}
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/settle.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/settle.js
|
||||
function settle(resolve, reject, response) {
|
||||
const { validateStatus: validateStatus2 } = response.config;
|
||||
const status = response.statusCode;
|
||||
|
@ -260,7 +260,7 @@ function settle(resolve, reject, response) {
|
|||
}
|
||||
}
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/adapters/index.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/adapters/index.js
|
||||
var mergeKeys = (keys, config2) => {
|
||||
const config = {};
|
||||
keys.forEach((prop) => {
|
||||
|
@ -323,10 +323,10 @@ var adapters_default = (config) => new Promise((resolve, reject) => {
|
|||
}
|
||||
});
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/dispatchRequest.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/dispatchRequest.js
|
||||
var dispatchRequest_default = (config) => adapters_default(config);
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/InterceptorManager.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/InterceptorManager.js
|
||||
function InterceptorManager() {
|
||||
this.handlers = [];
|
||||
}
|
||||
|
@ -351,7 +351,7 @@ InterceptorManager.prototype.forEach = function forEach2(fn) {
|
|||
};
|
||||
var InterceptorManager_default = InterceptorManager;
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/mergeConfig.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/mergeConfig.js
|
||||
var mergeKeys2 = (keys, globalsConfig, config2) => {
|
||||
const config = {};
|
||||
keys.forEach((prop) => {
|
||||
|
@ -413,7 +413,7 @@ var mergeConfig_default = (globalsConfig, config2 = {}) => {
|
|||
return config;
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/defaults.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/defaults.js
|
||||
var defaults_default = {
|
||||
baseURL: "",
|
||||
header: {},
|
||||
|
@ -428,7 +428,7 @@ var defaults_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/utils/clone.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/utils/clone.js
|
||||
var clone = function() {
|
||||
"use strict";
|
||||
function _instanceof(obj, type) {
|
||||
|
@ -625,7 +625,7 @@ var clone = function() {
|
|||
}();
|
||||
var clone_default = clone;
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/Request.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/Request.js
|
||||
var Request = class {
|
||||
/**
|
||||
* @param {Object} arg - 全局配置
|
||||
|
@ -763,10 +763,10 @@ var Request = class {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/index.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/index.js
|
||||
var luch_request_default = Request;
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/util/route.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/util/route.js
|
||||
var Router = class {
|
||||
constructor() {
|
||||
this.config = {
|
||||
|
@ -866,7 +866,7 @@ var Router = class {
|
|||
};
|
||||
var route_default = new Router().route;
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/function/colorGradient.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/function/colorGradient.js
|
||||
function colorGradient(startColor = "rgb(0, 0, 0)", endColor = "rgb(255, 255, 255)", step = 10) {
|
||||
const startRGB = hexToRgb(startColor, false);
|
||||
const startR = startRGB[0];
|
||||
|
@ -978,7 +978,7 @@ var colorGradient_default = {
|
|||
colorToRgba
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/function/test.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/function/test.js
|
||||
function email(value) {
|
||||
return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
|
||||
}
|
||||
|
@ -1152,7 +1152,7 @@ var test_default = {
|
|||
string
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/function/debounce.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/function/debounce.js
|
||||
var timeout = null;
|
||||
function debounce(func2, wait = 500, immediate = false) {
|
||||
if (timeout !== null)
|
||||
|
@ -1172,7 +1172,7 @@ function debounce(func2, wait = 500, immediate = false) {
|
|||
}
|
||||
var debounce_default = debounce;
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/function/throttle.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/function/throttle.js
|
||||
var timer;
|
||||
var flag;
|
||||
function throttle(func2, wait = 500, immediate = true) {
|
||||
|
@ -1194,7 +1194,7 @@ function throttle(func2, wait = 500, immediate = true) {
|
|||
}
|
||||
var throttle_default = throttle;
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/function/digit.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/function/digit.js
|
||||
var _boundaryCheckingState = true;
|
||||
function strip(num, precision = 15) {
|
||||
return +parseFloat(Number(num).toPrecision(precision));
|
||||
|
@ -1258,7 +1258,7 @@ function round(num, ratio) {
|
|||
return result;
|
||||
}
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/function/index.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/function/index.js
|
||||
function range2(min = 0, max = 0, value = 0) {
|
||||
return Math.max(min, Math.min(max, Number(value)));
|
||||
}
|
||||
|
@ -1732,7 +1732,7 @@ var function_default = {
|
|||
setConfig
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/config.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/config.js
|
||||
var version = "3";
|
||||
if (true) {
|
||||
console.log(`
|
||||
|
@ -1767,7 +1767,7 @@ var config_default = {
|
|||
unit: "px"
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/actionSheet.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/actionSheet.js
|
||||
var actionSheet_default = {
|
||||
// action-sheet组件
|
||||
actionSheet: {
|
||||
|
@ -1785,7 +1785,7 @@ var actionSheet_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/album.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/album.js
|
||||
var album_default = {
|
||||
// album 组件
|
||||
album: {
|
||||
|
@ -1803,7 +1803,7 @@ var album_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/alert.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/alert.js
|
||||
var alert_default = {
|
||||
// alert警告组件
|
||||
alert: {
|
||||
|
@ -1818,7 +1818,7 @@ var alert_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/avatar.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/avatar.js
|
||||
var avatar_default = {
|
||||
// avatar 组件
|
||||
avatar: {
|
||||
|
@ -1839,7 +1839,7 @@ var avatar_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/avatarGroup.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/avatarGroup.js
|
||||
var avatarGroup_default = {
|
||||
// avatarGroup 组件
|
||||
avatarGroup: {
|
||||
|
@ -1855,7 +1855,7 @@ var avatarGroup_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/backtop.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/backtop.js
|
||||
var backtop_default = {
|
||||
// backtop组件
|
||||
backtop: {
|
||||
|
@ -1875,7 +1875,7 @@ var backtop_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/badge.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/badge.js
|
||||
var badge_default = {
|
||||
// 徽标数组件
|
||||
badge: {
|
||||
|
@ -1895,7 +1895,7 @@ var badge_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/button.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/button.js
|
||||
var button_default = {
|
||||
// button组件
|
||||
button: {
|
||||
|
@ -1930,7 +1930,7 @@ var button_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/calendar.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/calendar.js
|
||||
var calendar_default = {
|
||||
// calendar 组件
|
||||
calendar: {
|
||||
|
@ -1967,7 +1967,7 @@ var calendar_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/carKeyboard.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/carKeyboard.js
|
||||
var carKeyboard_default = {
|
||||
// 车牌号键盘
|
||||
carKeyboard: {
|
||||
|
@ -1975,7 +1975,7 @@ var carKeyboard_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/cell.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/cell.js
|
||||
var cell_default = {
|
||||
// cell组件的props
|
||||
cell: {
|
||||
|
@ -2003,7 +2003,7 @@ var cell_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/cellGroup.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/cellGroup.js
|
||||
var cellGroup_default = {
|
||||
// cell-group组件的props
|
||||
cellGroup: {
|
||||
|
@ -2013,7 +2013,7 @@ var cellGroup_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/checkbox.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/checkbox.js
|
||||
var checkbox_default = {
|
||||
// checkbox组件
|
||||
checkbox: {
|
||||
|
@ -2033,7 +2033,7 @@ var checkbox_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/checkboxGroup.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/checkboxGroup.js
|
||||
var checkboxGroup_default = {
|
||||
// checkbox-group组件
|
||||
checkboxGroup: {
|
||||
|
@ -2055,7 +2055,7 @@ var checkboxGroup_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/circleProgress.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/circleProgress.js
|
||||
var circleProgress_default = {
|
||||
// circleProgress 组件
|
||||
circleProgress: {
|
||||
|
@ -2063,7 +2063,7 @@ var circleProgress_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/code.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/code.js
|
||||
var code_default = {
|
||||
// code 组件
|
||||
code: {
|
||||
|
@ -2076,7 +2076,7 @@ var code_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/codeInput.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/codeInput.js
|
||||
var codeInput_default = {
|
||||
// codeInput 组件
|
||||
codeInput: {
|
||||
|
@ -2098,7 +2098,7 @@ var codeInput_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/col.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/col.js
|
||||
var col_default = {
|
||||
// col 组件
|
||||
col: {
|
||||
|
@ -2110,7 +2110,7 @@ var col_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/collapse.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/collapse.js
|
||||
var collapse_default = {
|
||||
// collapse 组件
|
||||
collapse: {
|
||||
|
@ -2120,7 +2120,7 @@ var collapse_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/collapseItem.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/collapseItem.js
|
||||
var collapseItem_default = {
|
||||
// collapseItem 组件
|
||||
collapseItem: {
|
||||
|
@ -2138,7 +2138,7 @@ var collapseItem_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/columnNotice.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/columnNotice.js
|
||||
var columnNotice_default = {
|
||||
// columnNotice 组件
|
||||
columnNotice: {
|
||||
|
@ -2155,7 +2155,7 @@ var columnNotice_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/countDown.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/countDown.js
|
||||
var countDown_default = {
|
||||
// u-count-down 计时器组件
|
||||
countDown: {
|
||||
|
@ -2166,7 +2166,7 @@ var countDown_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/countTo.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/countTo.js
|
||||
var countTo_default = {
|
||||
// countTo 组件
|
||||
countTo: {
|
||||
|
@ -2184,7 +2184,7 @@ var countTo_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/datetimePicker.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/datetimePicker.js
|
||||
var datetimePicker_default = {
|
||||
// datetimePicker 组件
|
||||
datetimePicker: {
|
||||
|
@ -2213,7 +2213,7 @@ var datetimePicker_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/divider.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/divider.js
|
||||
var divider_default = {
|
||||
// divider组件
|
||||
divider: {
|
||||
|
@ -2228,7 +2228,7 @@ var divider_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/empty.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/empty.js
|
||||
var empty_default = {
|
||||
// empty组件
|
||||
empty: {
|
||||
|
@ -2246,7 +2246,7 @@ var empty_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/form.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/form.js
|
||||
var form_default = {
|
||||
// form 组件
|
||||
form: {
|
||||
|
@ -2261,7 +2261,7 @@ var form_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/formItem.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/formItem.js
|
||||
var formItem_default = {
|
||||
// formItem 组件
|
||||
formItem: {
|
||||
|
@ -2276,7 +2276,7 @@ var formItem_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/gap.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/gap.js
|
||||
var gap_default = {
|
||||
// gap组件
|
||||
gap: {
|
||||
|
@ -2288,7 +2288,7 @@ var gap_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/grid.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/grid.js
|
||||
var grid_default = {
|
||||
// grid组件
|
||||
grid: {
|
||||
|
@ -2298,7 +2298,7 @@ var grid_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/gridItem.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/gridItem.js
|
||||
var gridItem_default = {
|
||||
// grid-item组件
|
||||
gridItem: {
|
||||
|
@ -2307,7 +2307,7 @@ var gridItem_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/icon.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/icon.js
|
||||
var {
|
||||
color
|
||||
} = config_default;
|
||||
|
@ -2334,7 +2334,7 @@ var icon_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/image.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/image.js
|
||||
var image_default = {
|
||||
// image组件
|
||||
image: {
|
||||
|
@ -2357,7 +2357,7 @@ var image_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/indexAnchor.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/indexAnchor.js
|
||||
var indexAnchor_default = {
|
||||
// indexAnchor 组件
|
||||
indexAnchor: {
|
||||
|
@ -2369,7 +2369,7 @@ var indexAnchor_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/indexList.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/indexList.js
|
||||
var indexList_default = {
|
||||
// indexList 组件
|
||||
indexList: {
|
||||
|
@ -2381,7 +2381,7 @@ var indexList_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/input.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/input.js
|
||||
var input_default = {
|
||||
// index 组件
|
||||
input: {
|
||||
|
@ -2422,7 +2422,7 @@ var input_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/keyboard.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/keyboard.js
|
||||
var keyboard_default = {
|
||||
// 键盘组件
|
||||
keyboard: {
|
||||
|
@ -2445,7 +2445,7 @@ var keyboard_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/line.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/line.js
|
||||
var line_default = {
|
||||
// line组件
|
||||
line: {
|
||||
|
@ -2458,7 +2458,7 @@ var line_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/lineProgress.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/lineProgress.js
|
||||
var lineProgress_default = {
|
||||
// lineProgress 组件
|
||||
lineProgress: {
|
||||
|
@ -2470,7 +2470,7 @@ var lineProgress_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/link.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/link.js
|
||||
var {
|
||||
color: color2
|
||||
} = config_default;
|
||||
|
@ -2487,7 +2487,7 @@ var link_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/list.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/list.js
|
||||
var list_default = {
|
||||
// list 组件
|
||||
list: {
|
||||
|
@ -2508,7 +2508,7 @@ var list_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/listItem.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/listItem.js
|
||||
var listItem_default = {
|
||||
// listItem 组件
|
||||
listItem: {
|
||||
|
@ -2516,7 +2516,7 @@ var listItem_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/loadingIcon.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/loadingIcon.js
|
||||
var {
|
||||
color: color3
|
||||
} = config_default;
|
||||
|
@ -2537,7 +2537,7 @@ var loadingIcon_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/loadingPage.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/loadingPage.js
|
||||
var loadingPage_default = {
|
||||
// loading-page组件
|
||||
loadingPage: {
|
||||
|
@ -2553,7 +2553,7 @@ var loadingPage_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/loadmore.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/loadmore.js
|
||||
var loadmore_default = {
|
||||
// loadmore 组件
|
||||
loadmore: {
|
||||
|
@ -2578,7 +2578,7 @@ var loadmore_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/modal.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/modal.js
|
||||
var modal_default = {
|
||||
// modal 组件
|
||||
modal: {
|
||||
|
@ -2601,7 +2601,7 @@ var modal_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/color.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/color.js
|
||||
var color4 = {
|
||||
primary: "#3c9cff",
|
||||
info: "#909399",
|
||||
|
@ -2617,7 +2617,7 @@ var color4 = {
|
|||
};
|
||||
var color_default = color4;
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/navbar.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/navbar.js
|
||||
var navbar_default = {
|
||||
// navbar 组件
|
||||
navbar: {
|
||||
|
@ -2640,7 +2640,7 @@ var navbar_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/noNetwork.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/noNetwork.js
|
||||
var noNetwork_default = {
|
||||
// noNetwork
|
||||
noNetwork: {
|
||||
|
@ -2650,7 +2650,7 @@ var noNetwork_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/noticeBar.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/noticeBar.js
|
||||
var noticeBar_default = {
|
||||
// noticeBar
|
||||
noticeBar: {
|
||||
|
@ -2670,7 +2670,7 @@ var noticeBar_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/notify.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/notify.js
|
||||
var notify_default = {
|
||||
// notify组件
|
||||
notify: {
|
||||
|
@ -2685,7 +2685,7 @@ var notify_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/numberBox.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/numberBox.js
|
||||
var numberBox_default = {
|
||||
// 步进器组件
|
||||
numberBox: {
|
||||
|
@ -2713,7 +2713,7 @@ var numberBox_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/numberKeyboard.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/numberKeyboard.js
|
||||
var numberKeyboard_default = {
|
||||
// 数字键盘
|
||||
numberKeyboard: {
|
||||
|
@ -2723,7 +2723,7 @@ var numberKeyboard_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/overlay.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/overlay.js
|
||||
var overlay_default = {
|
||||
// overlay组件
|
||||
overlay: {
|
||||
|
@ -2734,7 +2734,7 @@ var overlay_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/parse.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/parse.js
|
||||
var parse_default = {
|
||||
// parse
|
||||
parse: {
|
||||
|
@ -2749,7 +2749,7 @@ var parse_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/picker.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/picker.js
|
||||
var picker_default = {
|
||||
// picker
|
||||
picker: {
|
||||
|
@ -2771,7 +2771,7 @@ var picker_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/popup.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/popup.js
|
||||
var popup_default = {
|
||||
// popup组件
|
||||
popup: {
|
||||
|
@ -2794,7 +2794,7 @@ var popup_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/radio.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/radio.js
|
||||
var radio_default = {
|
||||
// radio组件
|
||||
radio: {
|
||||
|
@ -2814,7 +2814,7 @@ var radio_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/radioGroup.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/radioGroup.js
|
||||
var radioGroup_default = {
|
||||
// radio-group组件
|
||||
radioGroup: {
|
||||
|
@ -2837,7 +2837,7 @@ var radioGroup_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/rate.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/rate.js
|
||||
var rate_default = {
|
||||
// rate组件
|
||||
rate: {
|
||||
|
@ -2856,7 +2856,7 @@ var rate_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/readMore.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/readMore.js
|
||||
var readMore_default = {
|
||||
// readMore
|
||||
readMore: {
|
||||
|
@ -2871,7 +2871,7 @@ var readMore_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/row.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/row.js
|
||||
var row_default = {
|
||||
// row
|
||||
row: {
|
||||
|
@ -2881,7 +2881,7 @@ var row_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/rowNotice.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/rowNotice.js
|
||||
var rowNotice_default = {
|
||||
// rowNotice
|
||||
rowNotice: {
|
||||
|
@ -2895,7 +2895,7 @@ var rowNotice_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/scrollList.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/scrollList.js
|
||||
var scrollList_default = {
|
||||
// scrollList
|
||||
scrollList: {
|
||||
|
@ -2908,7 +2908,7 @@ var scrollList_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/search.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/search.js
|
||||
var search_default = {
|
||||
// search
|
||||
search: {
|
||||
|
@ -2938,7 +2938,7 @@ var search_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/section.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/section.js
|
||||
var section_default = {
|
||||
// u-section组件
|
||||
section: {
|
||||
|
@ -2955,7 +2955,7 @@ var section_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/skeleton.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/skeleton.js
|
||||
var skeleton_default = {
|
||||
// skeleton
|
||||
skeleton: {
|
||||
|
@ -2973,7 +2973,7 @@ var skeleton_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/slider.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/slider.js
|
||||
var slider_default = {
|
||||
// slider组件
|
||||
slider: {
|
||||
|
@ -2992,7 +2992,7 @@ var slider_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/statusBar.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/statusBar.js
|
||||
var statusBar_default = {
|
||||
// statusBar
|
||||
statusBar: {
|
||||
|
@ -3000,7 +3000,7 @@ var statusBar_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/steps.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/steps.js
|
||||
var steps_default = {
|
||||
// steps组件
|
||||
steps: {
|
||||
|
@ -3014,7 +3014,7 @@ var steps_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/stepsItem.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/stepsItem.js
|
||||
var stepsItem_default = {
|
||||
// steps-item组件
|
||||
stepsItem: {
|
||||
|
@ -3025,7 +3025,7 @@ var stepsItem_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/sticky.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/sticky.js
|
||||
var sticky_default = {
|
||||
// sticky组件
|
||||
sticky: {
|
||||
|
@ -3038,7 +3038,7 @@ var sticky_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/subsection.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/subsection.js
|
||||
var subsection_default = {
|
||||
// subsection组件
|
||||
subsection: {
|
||||
|
@ -3054,7 +3054,7 @@ var subsection_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swipeAction.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swipeAction.js
|
||||
var swipeAction_default = {
|
||||
// swipe-action组件
|
||||
swipeAction: {
|
||||
|
@ -3062,7 +3062,7 @@ var swipeAction_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swipeActionItem.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swipeActionItem.js
|
||||
var swipeActionItem_default = {
|
||||
// swipeActionItem 组件
|
||||
swipeActionItem: {
|
||||
|
@ -3076,7 +3076,7 @@ var swipeActionItem_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swiper.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swiper.js
|
||||
var swiper_default = {
|
||||
// swiper 组件
|
||||
swiper: {
|
||||
|
@ -3107,7 +3107,7 @@ var swiper_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swipterIndicator.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swipterIndicator.js
|
||||
var swipterIndicator_default = {
|
||||
// swiperIndicator 组件
|
||||
swiperIndicator: {
|
||||
|
@ -3119,7 +3119,7 @@ var swipterIndicator_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/switch.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/switch.js
|
||||
var switch_default = {
|
||||
// switch
|
||||
switch: {
|
||||
|
@ -3136,7 +3136,7 @@ var switch_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tabbar.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tabbar.js
|
||||
var tabbar_default = {
|
||||
// tabbar
|
||||
tabbar: {
|
||||
|
@ -3151,7 +3151,7 @@ var tabbar_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tabbarItem.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tabbarItem.js
|
||||
var tabbarItem_default = {
|
||||
//
|
||||
tabbarItem: {
|
||||
|
@ -3164,7 +3164,7 @@ var tabbarItem_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tabs.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tabs.js
|
||||
var tabs_default = {
|
||||
//
|
||||
tabs: {
|
||||
|
@ -3189,7 +3189,7 @@ var tabs_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tag.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tag.js
|
||||
var tag_default = {
|
||||
// tag 组件
|
||||
tag: {
|
||||
|
@ -3211,7 +3211,7 @@ var tag_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/text.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/text.js
|
||||
var text_default = {
|
||||
// text 组件
|
||||
text: {
|
||||
|
@ -3241,7 +3241,7 @@ var text_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/textarea.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/textarea.js
|
||||
var textarea_default = {
|
||||
// textarea 组件
|
||||
textarea: {
|
||||
|
@ -3270,7 +3270,7 @@ var textarea_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/toast.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/toast.js
|
||||
var toast_default = {
|
||||
// toast组件
|
||||
toast: {
|
||||
|
@ -3293,7 +3293,7 @@ var toast_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/toolbar.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/toolbar.js
|
||||
var toolbar_default = {
|
||||
// toolbar 组件
|
||||
toolbar: {
|
||||
|
@ -3306,7 +3306,7 @@ var toolbar_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tooltip.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tooltip.js
|
||||
var tooltip_default = {
|
||||
// tooltip 组件
|
||||
tooltip: {
|
||||
|
@ -3324,7 +3324,7 @@ var tooltip_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/transition.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/transition.js
|
||||
var transition_default = {
|
||||
// transition动画组件的props
|
||||
transition: {
|
||||
|
@ -3335,7 +3335,7 @@ var transition_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/upload.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props/upload.js
|
||||
var upload_default = {
|
||||
// upload组件
|
||||
upload: {
|
||||
|
@ -3364,7 +3364,7 @@ var upload_default = {
|
|||
}
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/props.js
|
||||
var {
|
||||
color: color5
|
||||
} = config_default;
|
||||
|
@ -3459,7 +3459,7 @@ var props_default = {
|
|||
...upload_default
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/zIndex.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/config/zIndex.js
|
||||
var zIndex_default = {
|
||||
toast: 10090,
|
||||
noNetwork: 10080,
|
||||
|
@ -3472,13 +3472,13 @@ var zIndex_default = {
|
|||
indexListSticky: 965
|
||||
};
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/function/platform.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/libs/function/platform.js
|
||||
var platform = "none";
|
||||
platform = "vue3";
|
||||
platform = "h5";
|
||||
var platform_default = platform;
|
||||
|
||||
// ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/index.js
|
||||
// E:/新建文件夹/TraceabilityAPP/node_modules/uview-plus/index.js
|
||||
var pleaseSetTranspileDependencies = {};
|
||||
var babelTest = pleaseSetTranspileDependencies == null ? void 0 : pleaseSetTranspileDependencies.test;
|
||||
var $u = {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -8,10 +8,7 @@
|
|||
@import "./libs/css/vue.scss";
|
||||
/* #endif */
|
||||
|
||||
// nvue的特有样式
|
||||
/* #ifdef APP-NVUE */
|
||||
@import "./libs/css/nvue.scss";
|
||||
/* #endif */
|
||||
|
||||
|
||||
// 小程序特有的样式
|
||||
/* #ifdef MP */
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"dependencies": {
|
||||
"pinia": "^2.0.14",
|
||||
"uview-plus": "^3.1.38"
|
||||
}
|
||||
}
|
||||
|
|
14
pages.json
14
pages.json
|
@ -126,7 +126,12 @@
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
, {
|
||||
"path": "pages/Login/resgier",
|
||||
"style": {
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -148,12 +153,7 @@
|
|||
"iconPath": "static/tabs-icon/home.png",
|
||||
"selectedIconPath": "static/img/DK.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/index/massif",
|
||||
"text": "地块",
|
||||
"iconPath": "static/img/SJ (1).png",
|
||||
"selectedIconPath": "static/img/SJ (1).png"
|
||||
},
|
||||
|
||||
{
|
||||
"pagePath": "pages/index/personal",
|
||||
"text": "我的",
|
||||
|
|
|
@ -7,23 +7,36 @@
|
|||
欢迎进入吟龙土壤墒情监测溯系统!
|
||||
</view>
|
||||
<view class="input-card">
|
||||
<view class="login-type">
|
||||
账号登录
|
||||
<view class="line" />
|
||||
<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;">
|
||||
<up-input placeholder="请输入账号"
|
||||
<u-input placeholder="请输入账号"
|
||||
customStyle="background:#F5F5F5;height:80rpx;padding-left:40rpx;border:none" shape='circle'
|
||||
border="surround" v-model="formData.account"></up-input>
|
||||
border="surround" v-model="formData.account"></u-input>
|
||||
</view>
|
||||
<view class="">
|
||||
<up-input type="password" shape='circle'
|
||||
customStyle="background:#F5F5F5;height:80rpx;padding-left:40rpx;border:none" placeholder="请输入密码"
|
||||
border="surround" v-model="formData.password"></up-input>
|
||||
|
||||
<view class="yanzm" v-if="num==0">
|
||||
<u-input type="password" 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 type="password" shape='circle'
|
||||
customStyle="background:#F5F5F5;height:80rpx;;padding-left:40rpx;border:none"
|
||||
placeholder="请输入密码" border="surround" v-model="formData.password"></u-input>
|
||||
</view>
|
||||
<view class="resgiter">
|
||||
用户注册
|
||||
</view>
|
||||
<view class="sub-btn">
|
||||
<up-button @click="submitFn" type="primary" customStyle="border:none;height:90rpx" color="#34D190"
|
||||
text="登录"></up-button>
|
||||
<u-button @click="submitFn" type="primary" customStyle="border:none;height:90rpx" color="#34D190"
|
||||
text="登录"></u-button>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
@ -35,18 +48,136 @@
|
|||
|
||||
<script setup>
|
||||
import {
|
||||
login,
|
||||
|
||||
xinregister
|
||||
} from '@/api/file.js';
|
||||
import {
|
||||
onMounted,
|
||||
reactive,
|
||||
ref
|
||||
} from 'vue';
|
||||
const submitFn = () => {
|
||||
|
||||
uni.switchTab({
|
||||
url: "/pages/index/index"
|
||||
})
|
||||
}
|
||||
import {
|
||||
userInfoStore
|
||||
} from '@/store/userInfo'
|
||||
|
||||
const num = ref(0)
|
||||
const isshow = ref(false)
|
||||
const tips = ref('获取验证码')
|
||||
const countDown = ref(60); // 倒计时秒数
|
||||
const formData = reactive({
|
||||
account: "",
|
||||
password: ""
|
||||
password: "",
|
||||
code: '',
|
||||
scene: "",
|
||||
terminal: ''
|
||||
|
||||
})
|
||||
const arr1 = reactive({
|
||||
list: [{
|
||||
name: '验证码登录',
|
||||
id: 1
|
||||
},
|
||||
{
|
||||
name: '账号登录',
|
||||
id: 2
|
||||
},
|
||||
]
|
||||
})
|
||||
//判断安卓 ios
|
||||
const checkUserAgent = () => {
|
||||
uni.getSystemInfo({
|
||||
success: function(res) {
|
||||
const platform = res.platform.toLowerCase();
|
||||
if (platform === 'android') {
|
||||
formData.terminal = 6
|
||||
} else if (platform === 'ios') {
|
||||
formData.terminal = 5
|
||||
} else {
|
||||
console.log('当前设备不是 Android 也不是 iOS');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
};
|
||||
//倒计时
|
||||
const startCountDown = () => {
|
||||
const timer = setInterval(() => {
|
||||
countDown.value -= 1; // 更新倒计时秒数
|
||||
isshow.value = true
|
||||
if (countDown.value === 0) {
|
||||
clearInterval(timer); // 倒计时结束,清除定时器
|
||||
isshow.value = false
|
||||
countDown.value = 60
|
||||
|
||||
}
|
||||
}, 1000);
|
||||
};
|
||||
|
||||
const getCode = () => {
|
||||
let data = {
|
||||
phone: formData.account,
|
||||
scene: 101
|
||||
}
|
||||
xinregister(data).then((res) => {
|
||||
console.log(res)
|
||||
if (res.code == 1) {
|
||||
uni.$u.toast('验证码已发送');
|
||||
// 通知验证码组件内部开始倒计时
|
||||
startCountDown()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
const submitFn = () => {
|
||||
|
||||
if (!formData.account) return uni.$u.toast('账号不能为空');
|
||||
if (!formData.password && formData.scene == 1) return uni.$u.toast('密码不能为空');
|
||||
if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(formData.account)) return uni.$u.toast(
|
||||
'请输入正确的手机号码'
|
||||
);
|
||||
console.log(formData)
|
||||
if (!formData.code && formData.scene == 2) return uni.$u.toast('验证码不能为空');
|
||||
login(formData).then((res) => {
|
||||
|
||||
if (res.code == 1) {
|
||||
const userInfo = userInfoStore()
|
||||
userInfo.saveUserInfo(res.data)
|
||||
|
||||
uni.setStorageSync("SY_TOKEN", res.data.token)
|
||||
uni.setStorageSync("SY_USER", res.data)
|
||||
uni.reLaunch({
|
||||
url: '/pages/index/index'
|
||||
})
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
const codeChange = (text) => {
|
||||
tips.value = text
|
||||
|
||||
}
|
||||
const aclick = (i) => {
|
||||
num.value = i
|
||||
|
||||
console.log(i)
|
||||
if (i == 1) {
|
||||
formData.scene = 1
|
||||
formData.password = ''
|
||||
} else {
|
||||
formData.code = ''
|
||||
formData.scene = 2
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
checkUserAgent()
|
||||
formData.scene = 2
|
||||
})
|
||||
</script>
|
||||
|
||||
|
@ -80,22 +211,55 @@
|
|||
|
||||
.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-left: 30rpx;
|
||||
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;
|
||||
|
||||
}
|
||||
|
||||
.sub-btn {
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
|
||||
.resgiter {
|
||||
font-size: 20rpx;
|
||||
margin-top: 40rpx;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -62,9 +62,7 @@
|
|||
</template>
|
||||
|
||||
<script setup>
|
||||
import {
|
||||
addFishAPI
|
||||
} from "@/api/aquatic.js"
|
||||
|
||||
import uplodeImg from "@/utils/uplodeImg.js"
|
||||
import {
|
||||
reactive,
|
||||
|
|
|
@ -134,6 +134,7 @@
|
|||
const updateImgFn = async () => {
|
||||
if (mode.value == 'detail') return
|
||||
let res = await uplodeImg()
|
||||
console.log(res,'1111111')
|
||||
formData.buy_cert = res.data.image
|
||||
}
|
||||
const mode = ref('add')
|
||||
|
|
|
@ -1,436 +1,140 @@
|
|||
<template>
|
||||
<view class="" style="position: relative;">
|
||||
<view class="top">
|
||||
<view class="" style="height:var(--status-bar-height) ;">
|
||||
</view>
|
||||
<view class="nav">
|
||||
<view class="">
|
||||
<u-icon name="scan" @click="scanFn" color="white" :size="30"></u-icon>
|
||||
</view>
|
||||
<view class="" style="margin-left: 20rpx;">
|
||||
<u-icon name="coupon-fill" color="white" @click="showModal=true" :size="28"></u-icon>
|
||||
</view>
|
||||
<view class="" style="margin-left: 20rpx;">
|
||||
<u-icon name="plus-circle" color="white" @click="navto('/pages/addLand/addLand')"
|
||||
:size="28"></u-icon>
|
||||
</view>
|
||||
<view class="content">
|
||||
|
||||
<view class="serch">
|
||||
<u-search bgColor="white" :show-action="false" placeholder="搜索你的土地信息" v-model="keyword"
|
||||
shape="round"></u-search>
|
||||
</view>
|
||||
</view>
|
||||
<view class="card" v-for="(item,index) in [1,1,1]" :key="index" @click="navgo('/pages/landDetail/index')">
|
||||
<view class="tit card-li">
|
||||
<view class="">
|
||||
<view class="" style="height:var(--status-bar-height) ;">
|
||||
土地名称
|
||||
</view>
|
||||
<view class="nav">
|
||||
<view class="" style="color: #00A15E;">
|
||||
已种植
|
||||
</view>
|
||||
<view class="" style="color: #00A15E;">
|
||||
未种植
|
||||
</view>
|
||||
</view>
|
||||
<view class="content" v-if="true">
|
||||
<!-- 土地信息 -->
|
||||
<view class="">
|
||||
<view class="card">
|
||||
<view class="">
|
||||
<view class="">
|
||||
土地名称: 土地信息1
|
||||
</view>
|
||||
<view class="" style="margin: 10rpx 0;">
|
||||
农作物: 洋芋
|
||||
</view>
|
||||
<view class="card-li">
|
||||
<view class="">
|
||||
面积: 20亩
|
||||
</view>
|
||||
</view>
|
||||
<view class="changeLand" @click="show=true">
|
||||
切换土地
|
||||
</view>
|
||||
|
||||
</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--image :src="url" width="100%" height="300rpx"></u--image>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 土壤监测 -->
|
||||
<view class="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 class="monitor-content">
|
||||
<view class="monitor-card" v-for="(item,index) in soilList" :key="index">
|
||||
<view class="name">
|
||||
<view class="">
|
||||
<u--image :src="item.icon" width="38.55rpx" height="38.55rpx"></u--image>
|
||||
</view>
|
||||
<view class="" style="margin-left: 10rpx;">
|
||||
{{item.name}}
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="num">
|
||||
<text style="font-size: 70rpx;">{{item.num}}</text>
|
||||
<text>{{item.unit}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 环境监测 -->
|
||||
<view class="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 class="monitor-content">
|
||||
<view class="monitor-card" v-for="(item,index) in environmentList" :key="index">
|
||||
<view class="name">
|
||||
<view class="">
|
||||
<u--image :src="item.icon" width="38.55rpx" height="38.55rpx"></u--image>
|
||||
</view>
|
||||
<view class="" style="margin-left: 10rpx;">
|
||||
{{item.name}}
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="num">
|
||||
<text style="font-size: 70rpx;">{{item.num}}</text>
|
||||
<text>{{item.unit}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 组件 -->
|
||||
|
||||
<u-loading-page :loading="showLoading"></u-loading-page>
|
||||
<u-picker :show="show" :columns="columns" @cancel="show=false" @confirm="confirm"></u-picker>
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
<view class="empty" v-else>
|
||||
<view class="addLand">
|
||||
<view class="">
|
||||
你还没有土地信息
|
||||
</view>
|
||||
<view class="addBtn" @click="navto('/pages/addLand/addLand')">
|
||||
去添加
|
||||
<view class="card-li tit">
|
||||
<view class="" style="font-weight: normal;">
|
||||
农作物: 洋芋
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<!-- 组件 -->
|
||||
<view style="height: 170rpx;">
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="">
|
||||
<u-modal title="绑定设备" :show="showModal" @confirm='bindFn' @cancel="showModal=false" :showCancelButton='true'
|
||||
:closeOnClickOverlay="true" @close="showModal=false" :title="title">
|
||||
<view class="slot-content">
|
||||
<view class="" style="display: flex;align-items: center;">
|
||||
设备编号: <up-input style="margin-left: 20rpx;" placeholder="请输入设备编号" border="surround"
|
||||
v-model="equipmentId"></up-input>
|
||||
</view>
|
||||
</view>
|
||||
</u-modal>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {
|
||||
ref,
|
||||
reactive,
|
||||
ref
|
||||
} from 'vue';
|
||||
import {
|
||||
onLoad
|
||||
} from "@dcloudio/uni-app"
|
||||
const showModal = ref(false)
|
||||
onMounted
|
||||
} from "vue"
|
||||
|
||||
|
||||
// 土壤监测数据
|
||||
const url = ref('https://ceshi-worker-task.lihaink.cn//uploads//images//20231121//202311211336582b7920656.jpg')
|
||||
const soilList = reactive([{
|
||||
icon: "/static/img/sj.png",
|
||||
name: "土壤温度",
|
||||
num: 20,
|
||||
unit: "%",
|
||||
const keyword = ref();
|
||||
|
||||
}, {
|
||||
icon: "/static/img/sj.png",
|
||||
name: "土壤湿度",
|
||||
num: 20,
|
||||
unit: "%",
|
||||
|
||||
}, {
|
||||
icon: "/static/img/sj.png",
|
||||
name: "土壤导电率",
|
||||
num: 20,
|
||||
unit: "%",
|
||||
|
||||
}, {
|
||||
icon: "/static/img/sj.png",
|
||||
name: "土壤PH值",
|
||||
num: 20,
|
||||
unit: "",
|
||||
|
||||
}, {
|
||||
icon: "/static/img/sj.png",
|
||||
name: "土壤含氮量",
|
||||
num: 20,
|
||||
unit: "",
|
||||
|
||||
}, {
|
||||
icon: "/static/img/sj.png",
|
||||
name: "土壤含磷量",
|
||||
num: 20,
|
||||
unit: "",
|
||||
|
||||
}, {
|
||||
icon: "/static/img/sj.png",
|
||||
name: "土壤含钾量",
|
||||
num: 20,
|
||||
unit: "",
|
||||
|
||||
},
|
||||
|
||||
])
|
||||
|
||||
// 绑定设备
|
||||
const equipmentId = ref("")
|
||||
const bindFn = () => {
|
||||
showModal.value = false
|
||||
}
|
||||
// 扫码
|
||||
const scanFn = () => {
|
||||
uni.scanCode({
|
||||
const props = defineProps({
|
||||
userInfo: Object
|
||||
})
|
||||
// 获取位置
|
||||
const getPositionFn = () => {
|
||||
uni.getLocation({
|
||||
type: 'gcj02',
|
||||
geocode: true,
|
||||
isHighAccuracy: true,
|
||||
success: function(res) {
|
||||
console.log('条码类型:' + res.scanType);
|
||||
console.log('条码内容:' + res.result);
|
||||
uni.request({
|
||||
url: `https://restapi.amap.com/v3/geocode/regeo?output=JSON&location=${res.longitude},${res.latitude}&key=b0c21bc6b220aa882bad8ffb6bce8829&radius=1000&extensions=all`,
|
||||
success: (res) => {
|
||||
console.log(res)
|
||||
}
|
||||
})
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
const show = ref(false)
|
||||
const showLoading = ref(false)
|
||||
const columns = reactive([
|
||||
['中国', '美国', '日本']
|
||||
]);
|
||||
// 环境监测数据
|
||||
const environmentList = reactive([{
|
||||
icon: "/static/img/sj.png",
|
||||
name: "风速",
|
||||
num: 20,
|
||||
unit: "%",
|
||||
const userInfo = reactive(props.userInfo)
|
||||
|
||||
}, {
|
||||
icon: "/static/img/sj.png",
|
||||
name: "风向",
|
||||
num: 20,
|
||||
unit: "%",
|
||||
|
||||
}, {
|
||||
icon: "/static/img/sj.png",
|
||||
name: "温度",
|
||||
num: 20,
|
||||
unit: "%",
|
||||
|
||||
}, {
|
||||
icon: "/static/img/sj.png",
|
||||
name: "湿度",
|
||||
num: 20,
|
||||
unit: "",
|
||||
|
||||
}, {
|
||||
icon: "/static/img/sj.png",
|
||||
name: "二氧化碳",
|
||||
num: 20,
|
||||
unit: "",
|
||||
|
||||
}, {
|
||||
icon: "/static/img/sj.png",
|
||||
name: "气压",
|
||||
num: 20,
|
||||
unit: "",
|
||||
|
||||
}, {
|
||||
icon: "/static/img/sj.png",
|
||||
name: "雨量",
|
||||
num: 20,
|
||||
unit: "",
|
||||
|
||||
}, {
|
||||
icon: "/static/img/sj.png",
|
||||
name: "光照量",
|
||||
num: 20,
|
||||
unit: "",
|
||||
|
||||
},
|
||||
|
||||
])
|
||||
|
||||
const confirm = (e) => {
|
||||
console.log(e)
|
||||
show.value = false
|
||||
showLoading.value = true
|
||||
setTimeout(() => {
|
||||
showLoading.value = false
|
||||
}, 1000)
|
||||
}
|
||||
const getNowTimeFn = () => {
|
||||
const now = new Date();
|
||||
const hour = now.getHours();
|
||||
const minute = now.getMinutes();
|
||||
const formattedHour = hour < 10 ? '0' + hour : hour;
|
||||
const formattedMinute = minute < 10 ? '0' + minute : minute;
|
||||
const currentTime = formattedHour + ':' + formattedMinute;
|
||||
return currentTime
|
||||
}
|
||||
const navto = (url) => {
|
||||
const navgo = (url) => {
|
||||
uni.navigateTo({
|
||||
url
|
||||
})
|
||||
}
|
||||
getNowTimeFn()
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.top {
|
||||
background-color: #34D190;
|
||||
position: fixed;
|
||||
z-index: 999999;
|
||||
width: 750rpx;
|
||||
|
||||
onMounted(() => {
|
||||
console.log('22222222')
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.content {
|
||||
|
||||
min-height: 100vh;
|
||||
position: relative;
|
||||
|
||||
background-color: #EAF2EF;
|
||||
padding-top: 180rpx;
|
||||
|
||||
|
||||
|
||||
|
||||
.serch {
|
||||
width: 100%;
|
||||
height: 100rpx;
|
||||
background-color: #EAF2EF;
|
||||
position: absolute;
|
||||
position: fixed;
|
||||
top:0;
|
||||
|
||||
padding-top: 70rpx;
|
||||
|
||||
z-index: 8888 !important;
|
||||
|
||||
}
|
||||
|
||||
.nav {
|
||||
height: 70rpx;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
box-sizing: border-box;
|
||||
align-items: center;
|
||||
padding-right: 40rpx;
|
||||
.border-bgc {
|
||||
height: 200rpx;
|
||||
background-color: #34D190;
|
||||
border-radius: 0 0 40rpx 40rpx;
|
||||
position: absolute;
|
||||
width: 750rpx;
|
||||
|
||||
}
|
||||
|
||||
.card {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
.changeLand {
|
||||
width: 200rpx;
|
||||
height: 70rpx;
|
||||
line-height: 70rpx;
|
||||
text-align: center;
|
||||
border-radius: 30rpx;
|
||||
background-color: $theme-main-color;
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
min-height: 92vh;
|
||||
background-color: $theme-bg-color;
|
||||
padding: 0 30rpx;
|
||||
padding-top: 20rpx;
|
||||
position: relative;
|
||||
width: 693.93rpx;
|
||||
margin: auto;
|
||||
background-color: #fff;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
border-radius: 21.03rpx 21.03rpx 21.03rpx 21.03rpx;
|
||||
margin-bottom: 40rpx;
|
||||
|
||||
|
||||
.soil-monitor {
|
||||
margin-top: 40rpx;
|
||||
|
||||
.head {
|
||||
|
||||
.tit {
|
||||
display: flex;
|
||||
font-size: 33.29rpx;
|
||||
color: black;
|
||||
}
|
||||
font-weight: bold;
|
||||
|
||||
.flushed-time {
|
||||
display: flex;
|
||||
font-size: 26.29rpx;
|
||||
color: #737373;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.monitor-content {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
|
||||
.monitor-card {
|
||||
margin-top: 20rpx;
|
||||
background-color: white;
|
||||
padding: 30rpx 20rpx;
|
||||
border-radius: 30rpx;
|
||||
width: 332.94rpx;
|
||||
box-sizing: border-box;
|
||||
height: 212.03rpx;
|
||||
|
||||
.name {
|
||||
font-size: 29.79rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.num {
|
||||
margin-top: 30rpx;
|
||||
color: $theme-main-color;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.video {
|
||||
margin-top: 20rpx;
|
||||
width: 100%;
|
||||
height: 300rpx;
|
||||
}
|
||||
|
||||
.empty {
|
||||
height: 100vh;
|
||||
background-color: $theme-bg-color;
|
||||
position: relative;
|
||||
|
||||
.addLand {
|
||||
width: auto;
|
||||
height: 100rpx;
|
||||
color: grey;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
|
||||
.addBtn {
|
||||
margin-top: 20rpx;
|
||||
width: 250rpx;
|
||||
height: 70rpx;
|
||||
border: 1px solid $theme-main-color;
|
||||
line-height: 70rpx;
|
||||
border-radius: 50rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -1,120 +1,438 @@
|
|||
<template>
|
||||
<view class="">
|
||||
<view class="content">
|
||||
|
||||
<view class="" style="height: 30rpx;">
|
||||
|
||||
<template>
|
||||
<view class="" style="position: relative;">
|
||||
<view class="top">
|
||||
<view class="" style="height:var(--status-bar-height) ;">
|
||||
</view>
|
||||
<view class="serch">
|
||||
<u-search bgColor="white" :show-action="false" placeholder="搜索你的土地信息" v-model="keyword"
|
||||
shape="round"></u-search>
|
||||
</view>
|
||||
<view class="card" v-for="(item,index) in [1,1,1]" :key="index" @click="navgo('/pages/landDetail/index')">
|
||||
<view class="tit card-li">
|
||||
<view class="nav">
|
||||
<view class="">
|
||||
土地名称
|
||||
<u-icon name="scan" @click="scanFn" color="white" :size="30"></u-icon>
|
||||
</view>
|
||||
<view class="" style="color: #00A15E;">
|
||||
已种植
|
||||
<view class="" style="margin-left: 20rpx;">
|
||||
<u-icon name="coupon-fill" color="white" @click="showModal=true" :size="28"></u-icon>
|
||||
</view>
|
||||
<view class="" style="color: #00A15E;">
|
||||
未种植
|
||||
<view class="" style="margin-left: 20rpx;">
|
||||
<u-icon name="plus-circle" color="white" @click="navto('/pages/addLand/addLand')"
|
||||
:size="28"></u-icon>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view class="card-li">
|
||||
<view class="">
|
||||
<view class="" style="height:var(--status-bar-height) ;">
|
||||
</view>
|
||||
<view class="nav">
|
||||
</view>
|
||||
</view>
|
||||
<view class="content" v-if="true">
|
||||
<!-- 土地信息 -->
|
||||
<view class="">
|
||||
<view class="card">
|
||||
<view class="">
|
||||
<view class="">
|
||||
土地名称: 土地信息1
|
||||
</view>
|
||||
<view class="" style="margin: 10rpx 0;">
|
||||
农作物: 洋芋
|
||||
</view>
|
||||
<view class="">
|
||||
面积: 20亩
|
||||
</view>
|
||||
</view>
|
||||
<view class="card-li tit">
|
||||
<view class="" style="font-weight: normal;">
|
||||
农作物: 洋芋
|
||||
<view class="changeLand" @click="show=true">
|
||||
切换土地
|
||||
</view>
|
||||
|
||||
</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--image :src="url" width="100%" height="300rpx"></u--image>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 土壤监测 -->
|
||||
<view class="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 class="monitor-content">
|
||||
<view class="monitor-card" v-for="(item,index) in soilList" :key="index">
|
||||
<view class="name">
|
||||
<view class="">
|
||||
<u--image :src="item.icon" width="38.55rpx" height="38.55rpx"></u--image>
|
||||
</view>
|
||||
<view class="" style="margin-left: 10rpx;">
|
||||
{{item.name}}
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="num">
|
||||
<text style="font-size: 70rpx;">{{item.num}}</text>
|
||||
<text>{{item.unit}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 环境监测 -->
|
||||
<view class="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 class="monitor-content">
|
||||
<view class="monitor-card" v-for="(item,index) in environmentList" :key="index">
|
||||
<view class="name">
|
||||
<view class="">
|
||||
<u--image :src="item.icon" width="38.55rpx" height="38.55rpx"></u--image>
|
||||
</view>
|
||||
<view class="" style="margin-left: 10rpx;">
|
||||
{{item.name}}
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="num">
|
||||
<text style="font-size: 70rpx;">{{item.num}}</text>
|
||||
<text>{{item.unit}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 组件 -->
|
||||
|
||||
<u-loading-page :loading="showLoading"></u-loading-page>
|
||||
<u-picker :show="show" :columns="columns" @cancel="show=false" @confirm="confirm"></u-picker>
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
<view class="empty" v-else>
|
||||
<view class="addLand">
|
||||
<view class="">
|
||||
你还没有土地信息
|
||||
</view>
|
||||
<view class="addBtn" @click="navto('/pages/addLand/addLand')">
|
||||
去添加
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view style="height: 170rpx;">
|
||||
<!-- 组件 -->
|
||||
|
||||
<view class="">
|
||||
<u-modal title="绑定设备" :show="showModal" @confirm='bindFn' @cancel="showModal=false" :showCancelButton='true'
|
||||
:closeOnClickOverlay="true" @close="showModal=false" :title="title">
|
||||
<view class="slot-content">
|
||||
<view class="" style="display: flex;align-items: center;">
|
||||
设备编号: <up-input style="margin-left: 20rpx;" placeholder="请输入设备编号" border="surround"
|
||||
v-model="equipmentId"></up-input>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
</u-modal>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {
|
||||
reactive
|
||||
} from "vue"
|
||||
const props = defineProps({
|
||||
userInfo: Object
|
||||
})
|
||||
// 获取位置
|
||||
const getPositionFn = () => {
|
||||
uni.getLocation({
|
||||
type: 'gcj02',
|
||||
geocode: true,
|
||||
isHighAccuracy: true,
|
||||
success: function(res) {
|
||||
uni.request({
|
||||
url: `https://restapi.amap.com/v3/geocode/regeo?output=JSON&location=${res.longitude},${res.latitude}&key=b0c21bc6b220aa882bad8ffb6bce8829&radius=1000&extensions=all`,
|
||||
success: (res) => {
|
||||
console.log(res)
|
||||
reactive,
|
||||
ref
|
||||
} from 'vue';
|
||||
import {
|
||||
onLoad
|
||||
} from "@dcloudio/uni-app"
|
||||
const showModal = ref(false)
|
||||
|
||||
|
||||
// 土壤监测数据
|
||||
const url = ref('https://ceshi-worker-task.lihaink.cn//uploads//images//20231121//202311211336582b7920656.jpg')
|
||||
const soilList = reactive([{
|
||||
icon: "/static/img/sj.png",
|
||||
name: "土壤温度",
|
||||
num: 20,
|
||||
unit: "%",
|
||||
|
||||
}, {
|
||||
icon: "/static/img/sj.png",
|
||||
name: "土壤湿度",
|
||||
num: 20,
|
||||
unit: "%",
|
||||
|
||||
}, {
|
||||
icon: "/static/img/sj.png",
|
||||
name: "土壤导电率",
|
||||
num: 20,
|
||||
unit: "%",
|
||||
|
||||
}, {
|
||||
icon: "/static/img/sj.png",
|
||||
name: "土壤PH值",
|
||||
num: 20,
|
||||
unit: "",
|
||||
|
||||
}, {
|
||||
icon: "/static/img/sj.png",
|
||||
name: "土壤含氮量",
|
||||
num: 20,
|
||||
unit: "",
|
||||
|
||||
}, {
|
||||
icon: "/static/img/sj.png",
|
||||
name: "土壤含磷量",
|
||||
num: 20,
|
||||
unit: "",
|
||||
|
||||
}, {
|
||||
icon: "/static/img/sj.png",
|
||||
name: "土壤含钾量",
|
||||
num: 20,
|
||||
unit: "",
|
||||
|
||||
},
|
||||
|
||||
])
|
||||
|
||||
// 绑定设备
|
||||
const equipmentId = ref("")
|
||||
const bindFn = () => {
|
||||
showModal.value = false
|
||||
}
|
||||
})
|
||||
// 扫码
|
||||
const scanFn = () => {
|
||||
uni.scanCode({
|
||||
success: function(res) {
|
||||
console.log('条码类型:' + res.scanType);
|
||||
console.log('条码内容:' + res.result);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
const userInfo = reactive(props.userInfo)
|
||||
const show = ref(false)
|
||||
const showLoading = ref(false)
|
||||
const columns = reactive([
|
||||
['中国', '美国', '日本']
|
||||
]);
|
||||
// 环境监测数据
|
||||
const environmentList = reactive([{
|
||||
icon: "/static/img/sj.png",
|
||||
name: "风速",
|
||||
num: 20,
|
||||
unit: "%",
|
||||
|
||||
const navgo = (url) => {
|
||||
}, {
|
||||
icon: "/static/img/sj.png",
|
||||
name: "风向",
|
||||
num: 20,
|
||||
unit: "%",
|
||||
|
||||
}, {
|
||||
icon: "/static/img/sj.png",
|
||||
name: "温度",
|
||||
num: 20,
|
||||
unit: "%",
|
||||
|
||||
}, {
|
||||
icon: "/static/img/sj.png",
|
||||
name: "湿度",
|
||||
num: 20,
|
||||
unit: "",
|
||||
|
||||
}, {
|
||||
icon: "/static/img/sj.png",
|
||||
name: "二氧化碳",
|
||||
num: 20,
|
||||
unit: "",
|
||||
|
||||
}, {
|
||||
icon: "/static/img/sj.png",
|
||||
name: "气压",
|
||||
num: 20,
|
||||
unit: "",
|
||||
|
||||
}, {
|
||||
icon: "/static/img/sj.png",
|
||||
name: "雨量",
|
||||
num: 20,
|
||||
unit: "",
|
||||
|
||||
}, {
|
||||
icon: "/static/img/sj.png",
|
||||
name: "光照量",
|
||||
num: 20,
|
||||
unit: "",
|
||||
|
||||
},
|
||||
|
||||
])
|
||||
|
||||
const confirm = (e) => {
|
||||
console.log(e)
|
||||
show.value = false
|
||||
showLoading.value = true
|
||||
setTimeout(() => {
|
||||
showLoading.value = false
|
||||
}, 1000)
|
||||
}
|
||||
const getNowTimeFn = () => {
|
||||
const now = new Date();
|
||||
const hour = now.getHours();
|
||||
const minute = now.getMinutes();
|
||||
const formattedHour = hour < 10 ? '0' + hour : hour;
|
||||
const formattedMinute = minute < 10 ? '0' + minute : minute;
|
||||
const currentTime = formattedHour + ':' + formattedMinute;
|
||||
return currentTime
|
||||
}
|
||||
const navto = (url) => {
|
||||
uni.navigateTo({
|
||||
url
|
||||
})
|
||||
}
|
||||
getNowTimeFn()
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.serch {
|
||||
width: 695rpx;
|
||||
margin: 0 auto;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.content {
|
||||
min-height: 100vh;
|
||||
position: relative;
|
||||
// padding: 0 20rpx;
|
||||
// padding-top: 50rpx;
|
||||
background-color: #EAF2EF;
|
||||
padding: 0;
|
||||
|
||||
.border-bgc {
|
||||
height: 200rpx;
|
||||
<style lang="scss" scoped>
|
||||
.top {
|
||||
background-color: #34D190;
|
||||
border-radius: 0 0 40rpx 40rpx;
|
||||
position: absolute;
|
||||
position: fixed;
|
||||
z-index: 999999;
|
||||
width: 750rpx;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.nav {
|
||||
height: 70rpx;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
box-sizing: border-box;
|
||||
align-items: center;
|
||||
padding-right: 40rpx;
|
||||
}
|
||||
|
||||
.card {
|
||||
position: relative;
|
||||
width: 693.93rpx;
|
||||
margin: auto;
|
||||
background-color: #fff;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
.changeLand {
|
||||
width: 200rpx;
|
||||
height: 70rpx;
|
||||
line-height: 70rpx;
|
||||
text-align: center;
|
||||
border-radius: 30rpx;
|
||||
background-color: $theme-main-color;
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
min-height: 92vh;
|
||||
background-color: $theme-bg-color;
|
||||
padding: 0 30rpx;
|
||||
padding-top: 20rpx;
|
||||
box-sizing: border-box;
|
||||
border-radius: 21.03rpx 21.03rpx 21.03rpx 21.03rpx;
|
||||
margin-bottom: 40rpx;
|
||||
}
|
||||
|
||||
.soil-monitor {
|
||||
margin-top: 40rpx;
|
||||
|
||||
.head {
|
||||
|
||||
.tit {
|
||||
display: flex;
|
||||
font-size: 33.29rpx;
|
||||
font-weight: bold;
|
||||
|
||||
justify-content: space-between;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.flushed-time {
|
||||
display: flex;
|
||||
font-size: 26.29rpx;
|
||||
color: #737373;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.monitor-content {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
|
||||
.monitor-card {
|
||||
margin-top: 20rpx;
|
||||
background-color: white;
|
||||
padding: 30rpx 20rpx;
|
||||
border-radius: 30rpx;
|
||||
width: 332.94rpx;
|
||||
box-sizing: border-box;
|
||||
height: 212.03rpx;
|
||||
|
||||
.name {
|
||||
font-size: 29.79rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.num {
|
||||
margin-top: 30rpx;
|
||||
color: $theme-main-color;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.video {
|
||||
margin-top: 20rpx;
|
||||
width: 100%;
|
||||
height: 300rpx;
|
||||
}
|
||||
|
||||
.empty {
|
||||
height: 100vh;
|
||||
background-color: $theme-bg-color;
|
||||
position: relative;
|
||||
|
||||
.addLand {
|
||||
width: auto;
|
||||
height: 100rpx;
|
||||
color: grey;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
|
||||
.addBtn {
|
||||
margin-top: 20rpx;
|
||||
width: 250rpx;
|
||||
height: 70rpx;
|
||||
border: 1px solid $theme-main-color;
|
||||
line-height: 70rpx;
|
||||
border-radius: 50rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -1,18 +1,19 @@
|
|||
<template>
|
||||
<view class="head">
|
||||
<view class="avater">
|
||||
<u--image @click="previewImageFn" :src="url" width="130.28rpx" height="130.28rpx" shape="circle"></u--image>
|
||||
<u--image @click="previewImageFn" :src="userinfo.avatar" width="130.28rpx" height="130.28rpx"
|
||||
shape="circle"></u--image>
|
||||
</view>
|
||||
<view class="">
|
||||
<view class="head-li">
|
||||
姓名: 咋还归纳
|
||||
姓名: {{userinfo.nickname}}
|
||||
</view>
|
||||
<view class="head-li">
|
||||
电话: 15884967541
|
||||
电话: {{userinfo.mobile}}
|
||||
</view>
|
||||
<view class="head-li">
|
||||
<!-- <view class="head-li">
|
||||
公司: 里海弄农业科技有限公司
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="content">
|
||||
|
@ -44,18 +45,24 @@
|
|||
reactive,
|
||||
ref
|
||||
} from 'vue';
|
||||
const url = ref('https://ceshi-worker-task.lihaink.cn//uploads//images//20231121//202311211336582b7920656.jpg')
|
||||
import { logout } from '@/api/file.js'
|
||||
|
||||
const userinfo = uni.getStorageSync("SY_USER")
|
||||
|
||||
|
||||
|
||||
|
||||
const previewImageFn = () => {
|
||||
uni.previewImage({
|
||||
urls: [
|
||||
"https://ceshi-worker-task.lihaink.cn//uploads//images//20231121//202311211336582b7920656.jpg"
|
||||
userinfo.avatar
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
const cardLiList = reactive([{
|
||||
text: "片区经s理"
|
||||
text: "片区经理"
|
||||
},
|
||||
{
|
||||
text: "安全设置",
|
||||
|
@ -65,9 +72,18 @@
|
|||
])
|
||||
|
||||
const loginOutFn = () => {
|
||||
|
||||
logout().then((res)=>{
|
||||
|
||||
if(res.code==1){
|
||||
uni.$u.toast('退出登录');
|
||||
uni.navigateTo({
|
||||
url: "/pages/Login/login"
|
||||
})
|
||||
uni.clearStorageSync()
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
const navto = (url) => {
|
||||
uni.navigateTo({
|
||||
|
|
|
@ -2,7 +2,9 @@
|
|||
<view class="box">
|
||||
<view class="content">
|
||||
<view class="video" @click="navto('/pages/live/live')">
|
||||
<u--image :src="url" width="100%" height="300rpx"></u--image>
|
||||
<!-- <u--image :src="url" width="100%" height="300rpx"></u--image> -->
|
||||
<u-swiper :list="list"></u-swiper>
|
||||
|
||||
</view>
|
||||
<view class="time">
|
||||
<u-icon name="clock"></u-icon>
|
||||
|
@ -67,6 +69,36 @@
|
|||
ref,
|
||||
reactive
|
||||
} from "vue"
|
||||
|
||||
const list = reactive([{
|
||||
|
||||
id: 1,
|
||||
url: 'https://ceshi-worker-task.lihaink.cn//uploads//images//20231121//202311211336582b7920656.jpg',
|
||||
|
||||
|
||||
},
|
||||
{
|
||||
|
||||
id: 1,
|
||||
url: 'https://ceshi-worker-task.lihaink.cn//uploads//images//20231121//202311211336582b7920656.jpg',
|
||||
|
||||
|
||||
},
|
||||
{
|
||||
|
||||
id: 1,
|
||||
url: 'https://ceshi-worker-task.lihaink.cn//uploads//images//20231121//202311211336582b7920656.jpg',
|
||||
|
||||
|
||||
},
|
||||
{
|
||||
|
||||
id: 1,
|
||||
url: 'https://ceshi-worker-task.lihaink.cn//uploads//images//20231121//202311211336582b7920656.jpg',
|
||||
|
||||
|
||||
}
|
||||
])
|
||||
const dataList = reactive([{
|
||||
type: '0'
|
||||
}, {
|
||||
|
@ -174,6 +206,7 @@
|
|||
.content {
|
||||
width: 693.93rpx;
|
||||
margin: auto;
|
||||
padding-top: 20rpx;
|
||||
}
|
||||
|
||||
// padding: 20rpx;
|
||||
|
|
|
@ -1,15 +1,102 @@
|
|||
<template>
|
||||
<div>
|
||||
监控页面
|
||||
</div>
|
||||
</template>
|
||||
<view class="container">
|
||||
<view :style="'width: '+ windowWidth +'px; height: '+ boxStyle.height +'px;z-inde:-1;'">
|
||||
|
||||
<view class="root">
|
||||
<video ref="videoPlayer" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/media/af4b9202306121644508620.mp4" controls @ended="playNext" :object-fit="object_fit"
|
||||
:style="'width: '+ windowWidth +'px; height: '+ boxStyle.height +'px;z-inde:-1;'"></video>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
rtmpSources: ["https://lihai001.oss-cn-chengdu.aliyuncs.com/media/af4b9202306121644508620.mp4"],
|
||||
currentIndex: 0,
|
||||
room: {},
|
||||
wHeight: 0, //获取的屏幕高度🌟💗
|
||||
boxStyle: { //视频,图片封面样式🌟💗
|
||||
'height': 0,
|
||||
'width': 0,
|
||||
},
|
||||
object_fit: 'contain', //视频样式默认包含🌟
|
||||
windowWidth: '',
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
currentSrc() {
|
||||
return this.rtmpSources[this.currentIndex];
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.platform = uni.getSystemInfoSync().platform
|
||||
this.windowWidth = uni.getSystemInfoSync().screenWidth //获取屏幕宽度
|
||||
this.boxStyle.width = this.windowWidth + 'px' //给宽度加px
|
||||
this.wHeight = uni.getSystemInfoSync().screenHeight; //获取屏幕高度
|
||||
this.boxStyle.height = this.wHeight; //改变视频高度
|
||||
|
||||
},
|
||||
mounted() {
|
||||
|
||||
// 初始化时播放第一个源
|
||||
this.$nextTick(() => {
|
||||
this.playCurrent();
|
||||
});
|
||||
},
|
||||
|
||||
methods: {
|
||||
playCurrent() {
|
||||
|
||||
if (this.$refs.videoPlayer) {
|
||||
this.$refs.videoPlayer.load();
|
||||
this.$refs.videoPlayer.play();
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
playNext() {
|
||||
if (this.rtmpSources.length > 0) {
|
||||
this.currentIndex++;
|
||||
if (this.currentIndex >= this.rtmpSources.length) {
|
||||
this.currentIndex = 0; // 回到第一个源
|
||||
}
|
||||
|
||||
this.playCurrent();
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
get() {
|
||||
let that = this
|
||||
console.log(this.room)
|
||||
playbackDetail({
|
||||
app_name: 'shop',
|
||||
live_stream_id: this.room.live_stream_id
|
||||
}).then((res) => {
|
||||
console.log(res.data, '1111')
|
||||
|
||||
this.rtmpSources = res.data.playback_url;
|
||||
|
||||
|
||||
})
|
||||
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
|
@ -43,6 +43,9 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
changePassword
|
||||
} from '@/api/file.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
@ -88,44 +91,32 @@
|
|||
submit() {
|
||||
this.$refs.formRef.validate().then(async (e) => {
|
||||
if (e) {
|
||||
if (this.formData.password == this.formData.old_password) return Toast('新密码不能与原密码一致');
|
||||
if (this.formData.password !== this.formData.password_confirm) return Toast(
|
||||
if (this.formData.password == this.formData.old_password) return uni.$u.toast('新密码不能与原密码一致');
|
||||
if (this.formData.password !== this.formData.password_confirm) return uni.$u.toast(
|
||||
'两次新密码不一致');
|
||||
try {
|
||||
|
||||
await changePassword({
|
||||
...this.formData
|
||||
});
|
||||
Toast('修改成功');
|
||||
uni.$u.toast('修改成功');
|
||||
this.$u.sleep(500).then(() => {
|
||||
uni.showLoading({
|
||||
mask: true,
|
||||
title: '加载中'
|
||||
})
|
||||
// 密码修改后重新加密缓存
|
||||
let nowData = encrypt.decode('ACT');
|
||||
nowData.password = this.formData.password;
|
||||
encrypt.encode('ACT', nowData);
|
||||
// #ifdef APP-PLUS
|
||||
return uni.switchTab({
|
||||
url: '/pages/oaHome/oaHome',
|
||||
|
||||
|
||||
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index',
|
||||
success: () => {
|
||||
uni.$emit('initOaTask'); // 更新任务
|
||||
|
||||
uni.hideLoading()
|
||||
}
|
||||
})
|
||||
// #endif
|
||||
return uni.reLaunch({
|
||||
url: '/pages/oaHome/oaHome',
|
||||
success: () => {
|
||||
uni.$emit('initOaTask'); // 更新任务
|
||||
uni.hideLoading()
|
||||
}
|
||||
|
||||
})
|
||||
})
|
||||
} catch (e) {
|
||||
// console.log(e);
|
||||
Toast(e.msg || '修改失败')
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
@ -8,7 +8,10 @@ export const userInfoStore = defineStore('counter', {
|
|||
}),
|
||||
getters: {},
|
||||
actions: {
|
||||
|
||||
saveUserInfo(userInfo) {
|
||||
console.log(userInfo,'1111111')
|
||||
|
||||
this.userInfo = userInfo
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ function baseRequest(url, method, data, {
|
|||
icon: 'none',
|
||||
})
|
||||
}
|
||||
reject(res.data);
|
||||
reslove(res.data);
|
||||
} else if (res.data.code == 1) {
|
||||
// store.commit("SET_REQUEST");
|
||||
reslove(res.data);
|
||||
|
|
|
@ -24,6 +24,7 @@ let uplodeImg = () => {
|
|||
icon: 'success',
|
||||
duration: 1000,
|
||||
})
|
||||
console.log(res)
|
||||
reslove(JSON.parse(res.data))
|
||||
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue