This commit is contained in:
Iruka 2025-01-14 12:47:40 +08:00
parent 2542af9d06
commit a23bcab38b
2 changed files with 8 additions and 15 deletions

View File

@ -6,11 +6,11 @@ const config = {
// 应用信息
appInfo: {
// 应用名称
name: "及时雨智能灌溉管理系统v1.0",
name: "及时雨智能灌溉管理",
// 应用logo
logo: "/static/images/login/logo.png",
// 应用版本
version: "1.1.0",
// 应用logo
logo: "/static/logo.png",
// 官方网站
site_url: "http://jsyzhineng.com",
// 政策协议

View File

@ -1,8 +1,8 @@
<template>
<view class="login-container">
<view class="title">
<image src="../static/images/login/logo.png"></image>
<text>及时雨智能灌溉管理</text>
<image :src="appInfo.logo"></image>
<text>{{appInfo.name}}</text>
</view>
<!-- tabs标签 -->
<u-tabs :list="list" :activeStyle="{ color: '#39ac4f' }" @change="sectionChange" />
@ -61,13 +61,11 @@
<view class="bottom_text">
<view>浙ICP备2023018079号-2A</view>
<view>浙江及时雨智能灌溉设备有限责任公司</view>
<view>{{aa}}</view>
</view>
</view>
</template>
<script setup>
const aa = import.meta.env.VITE_APP_BASE_API
import {
ref,
watch,
@ -88,13 +86,14 @@
rsaDecrypt
} from "@/utils/rsa"
import config from '@/config.js'
const appInfo = config.appInfo;
import {
getCodePhone,
phoneLogin
} from "@/api/login";
const loginForm = ref({
loginName: "admin",
password: "admin123",
loginName: "",
password: "",
phone: "",
code: "",
uuid: ""
@ -103,12 +102,6 @@
const loginBtnDisabled = ref(true); //
onLoad(() => {
//
if (store.state.user.token.length > 0) {
// toIndex();
// return;
}
//
if (uni.getStorageSync("jsy_remember") === true) {
rememberPassword.value = true