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: { appInfo: {
// 应用名称 // 应用名称
name: "及时雨智能灌溉管理系统v1.0", name: "及时雨智能灌溉管理",
// 应用logo
logo: "/static/images/login/logo.png",
// 应用版本 // 应用版本
version: "1.1.0", version: "1.1.0",
// 应用logo
logo: "/static/logo.png",
// 官方网站 // 官方网站
site_url: "http://jsyzhineng.com", site_url: "http://jsyzhineng.com",
// 政策协议 // 政策协议

View File

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