From 03627defbc56d0498e7778523da255eb972db6a4 Mon Sep 17 00:00:00 2001
From: guoyujie <guoyujie@ng.com>
Date: 星期四, 04 十二月 2025 10:25:03 +0800
Subject: [PATCH] 删除 安装包
---
qrcodeScaner/pages/login/login.vue | 109 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 109 insertions(+), 0 deletions(-)
diff --git a/qrcodeScaner/pages/login/login.vue b/qrcodeScaner/pages/login/login.vue
new file mode 100644
index 0000000..03ad647
--- /dev/null
+++ b/qrcodeScaner/pages/login/login.vue
@@ -0,0 +1,109 @@
+
+
+
+<template>
+ <view class="content" >
+ <image class="logo" src="/static/favicon.ico"></image>
+ <view class="text-area">
+ <text class="title">NorthGlass_Scaner 鍒濆鍖�</text>
+ </view>
+
+
+ <view class="text-area" >
+ <uni-easyinput
+ @blur="changeIP"
+ class='input_1'
+ style="text-align: center;"
+ placeholder="璇疯緭鍏ユ湇鍔″櫒ip"
+ :passwordIcon='false'
+ v-model="ipVal"
+ type="input" />
+ </view>
+
+ <view>
+ <!-- 鎻愮ず淇℃伅寮圭獥 -->
+ <uni-popup ref="message" type="message">
+ <uni-popup-message :type="msgType" :message="messageText" :duration="2000" />
+ </uni-popup>
+ </view>
+ </view>
+</template>
+
+<script setup>
+ import {onMounted, reactive,ref} from "vue"
+ import userInfo from '@/stores/userInfo'
+ import request from '@/utils/request'
+ import {ip,webPort} from '@/utils/config.js'
+
+ const store=userInfo()
+ let searchUserList = ref({
+ userName:null
+ })
+ let users = ref([])
+ const message = ref(null)
+ const type=ref('center')
+ const msgType=ref('success')
+ const messageText=ref('')
+ const viewShow = ref(false)
+ let ipVal = ref(null)
+
+ onMounted(async()=>{
+
+ /* if(ip===null){
+ return
+ }
+ uni.reLaunch({
+ url: `/pages/login/login`
+ }) */
+ })
+
+
+
+ //鎻愮ず鎵撳紑
+ const messageToggle = (type,msg) =>{
+ msgType.value = type
+ messageText.value = msg
+ message.value.open()
+ }
+
+
+ const changeIP =async () => {
+ const ipRegex = /^(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;
+ if(ipRegex.test(ipVal.value)){
+ await uni.setStorageSync('ip', ipVal.value);
+ plus.runtime.restart()
+
+ }else{
+ messageToggle('error','璇疯緭鍏P鑼冨洿锛�0.0.0.0~255.255.255.255')
+ }
+ }
+
+</script>
+
+<style>
+ /* .login{
+ width: 100px;height: 45px;margin: 0 auto;
+ } */
+ .content {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ margin-top: -30%;
+ }
+
+ .logo {
+ height: 200rpx;
+ width: 200rpx;
+ margin-top: 200rpx;
+ margin-left: auto;
+ margin-right: auto;
+ margin-bottom: 50rpx;
+ }
+
+ .text-area {
+ display: flex;
+ justify-content: center;
+ padding-bottom: 1rem;
+ }
+</style>
--
Gitblit v1.8.0