@意见反馈/技术支持/伊网/安企网
发布时间:2017-05-15, 09:07:44 分类:默认分类
1.感谢你的宝贵意见
2.技术支持Email: winwin@lizhenqiu.com
3.或在下方评论留下内容
发布时间:2017-05-15, 09:07:44 分类:默认分类
发布时间:2025-05-06, 15:00:22 | 评论:19 | 分类:PHP
发布时间:2025-04-16, 22:58:10 | 评论:1 | 分类:HTML
<!DOCTYPE html>
<html><meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<head><script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.8.0/proj4.js"></script>
<title>地理定位示例</title>
<!-- <a href="weixin://profile/gh_be8239e7bb8d">点击查看微信公众号</a> -->
<script>
function getLocation() {
// const result = [22.763269,108.311295];//convertToCGCS2000(longitude, latitude);
// // alert("您的位置坐标为:" + result[1] + ", " + result[0]);
// return gggs(result[1], result[0]);
// let url='https://apis.map.qq.com/tools/poimarker?type=0&marker=coord:' +result[0]+ ',' +result[1]+ ';title:111111111;addr:22222222&key=P4CQI&referer=myapp';
// location.href = url;
// return showPosition(22.766076958488213);
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
} else {
alert("浏览器不支持地理定位功能。");
}
}
function showPosition(position) {
console.log(position)
// var latitude = position.coords.latitude;
// var longitude = position.coords.longitude;
return gggs(position.coords.longitude, position.coords.latitude,(result) => {
let url='https://apis.map.qq.com/tools/poimarker?type=0&marker=coord:' +result.lat+ ',' +result.lng+ ';title:111111111;addr:22222222&key=P4CLBQI&referer=myapp';
location.href = url;
// console.log("回调函数中的数据:", position.coords.latitude, position.coords.longitude);
// 在这里处理回调函数中的数据
});
// const result = [22.763269,108.311295];//convertToCGCS2000(longitude, latitude);
// alert("您的位置坐标为:" + result[1] + ", " + result[0]);
// return gggs(result[1], result[0]);
let url='https://apis.map.qq.com/tools/poimarker?type=0&marker=coord:' +result[1]+ ',' +result[0]+ ';title:111111111;addr:22222222&key=P4QI&referer=myapp';
location.href = url;
// window.open(url, '_blank');
// alert("您的位置坐标为:" + latitude + ", " + longitude);
}
// 定义坐标系
// proj4.defs("EPSG:4326", "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs");
// proj4.defs("EPSG:4490", "+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs");
// 转换函数
// function convertToCGCS2000(longitude, latitude) {
// const wgs84 = proj4.defs("EPSG:4326");
// const cgcs2000 = proj4.defs("EPSG:4490");
// return proj4(wgs84, cgcs2000, [longitude, latitude]);
// }
// 示例
// const result = convertToCGCS2000(116.3975, 39.9087);
// console.log("CGCS2000 坐标:", result);
function gggs(longitude, latitude,callback) {
const url = "https://api.ttxsm.com/mpweb/common/index/test_";
const headers = {
"Content-Type": "application/json"
};
const data = {
longitude: longitude,
latitude: latitude
};
const request = new XMLHttpRequest();
request.open("POST", url, true);
request.setRequestHeader("Content-Type", "application/json");
request.onreadystatechange = () => {
if (request.readyState === 4) {
if (request.status === 200) {
const response = JSON.parse(request.responseText);
console.log("响应数据:", response.data);
callback(response.data);
// 在这里处理响应数据
} else {
console.error("请求失败:", request.status, request.statusText);
// 在这里处理请求失败的情况
}
}
};
request.send(JSON.stringify(data));
}
</script>
</head>
<body>
<button onclick="getLocation()">获取位置信息</button>
</body>
</html>
发布时间:2025-04-16, 22:53:54 | 评论:0 | 分类:Linux
// your_alias 换成 证书详情中的别名,your_keystore.keystore 改成自己的证书文件名
keytool -export -alias your_alias -file certificate.cer -keystore your_keystore.keystore
keytool -list -v -keystore xxxx.keystore
发布时间:2025-03-05, 22:16:40 | 评论:0 | 分类:Vue
new Router({
mode: 'hash', // history
routes: [],
...
})
new Router({
mode: 'hash',
...
})
new Router({
mode: 'history',
...
})
location / {
try_files $uri $uri/ /index.html; #解决页面刷新404问题
}
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
// vue.config.js
module.exports = {
publicPath: '/h5/',
...
}
// router
const createRouter = () => new Router({
mode: 'history',
base: '/h5',
...
})
// vite.config.ts
export default defineConfig({
base:'/h5/',
...
})
// router
const router = createRouter({
history: createWebHistory('/h5'),
routes: []
});
import HomeView from '../views/HomeView.vue'
import { createRouter, createWebHistory } from 'vue-router'
// import { createRouter, createWebHashHistory } from 'vue-router';
const router = createRouter({
// history: createWebHashHistory(import.meta.env.BASE_URL),
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
name: 'home',
component: HomeView,
},
{
path: '/rouacc',
name: 'rouacc',
component: () => import('@/views/rouacc.vue'),
},
{
path: '/menu',
name: 'menu',
component: () => import('@/views/menu.vue'),
},
{
path: '/about',
name: 'about',
// route level code-splitting
// this generates a separate chunk (About.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import('../views/AboutView.vue'),
},
],
})
export default router
import { createRouter, createWebHistory } from 'vue-router';
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
name: 'home',
component: HomeView,
},
// 其他路由
],
});
import { createRouter, createWebHashHistory } from 'vue-router';
const router = createRouter({
history: createWebHashHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
name: 'home',
component: HomeView,
},
// 其他路由
],
});
发布时间:2025-03-03, 14:30:54 | 评论:0 | 分类:默认分类
regedit
\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Bluetooth\Audio\AVRCP\CT
DisableAbsoluteVolume
发布时间:2025-02-25, 18:44:27 | 评论:1 | 分类:HTML
/* prevent pull-to-refresh for Safari 16+ */
@media screen and (pointer: coarse) {
@supports (-webkit-backdrop-filter: blur(1px)) and (overscroll-behavior-y: none) {
html {
min-height: 100.3%;
overscroll-behavior-y: none;
}
}
}
/* prevent pull-to-refresh for Safari 9~15 */
@media screen and (pointer: coarse) {
@supports (-webkit-backdrop-filter: blur(1px)) and (not (overscroll-behavior-y: none)) {
html {
height: 100%;
overflow: hidden;
}
body {
margin: 0px;
max-height: 100%; /* or `height: calc(100% - 16px);` if body has default margin */
overflow: auto;
-webkit-overflow-scrolling: touch;
}
/* in this case to disable pinch-zoom, set `touch-action: pan-x pan-y;` on `body` instead of `html` */
}
}
/* prevent pull-to-refresh for Chrome 63+ */
body{
overscroll-behavior-y: none;
}
/* currently there is NO SIMPLE WAY to prevent BackForwardNavigationGestures for Safari */
/* prevent "overscroll history navigation" for Chrome 63+ */
body{
overscroll-behavior-x: none;
}
/* prevent pinch-zoom for Chrome 36+, Safari 13+ */
html {
touch-action: pan-x pan-y;
min-height: 100%; /* for Safari */
}
// prevent pinch-zoom for iOS Safari 9~12
if (window.GestureEvent && !('touchAction' in document.documentElement.style)) {
document.documentElement.addEventListener('gesturestart', (e)=>{e.preventDefault()}, {passive: false, capture:true});
}
<!-- prevent pinch-zoom for Chrome, old Safari -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
if (window.GestureEvent || (navigator.maxTouchPoints & 0xFF) > 0) {
document.body.addEventListener('click', (e) => {
if (!isInteractiveElement(e.target))
e.preventDefault();
});
}
function isInteractiveElement(e) {
let {nodeName} = e;
if (nodeName === 'A' && e.hasAttribute('href') ||
['BUTTON', 'INPUT', 'SELECT', 'TEXTAREA'].includes(nodeName) && !e.disabled ||
nodeName === 'LABEL' && (e.htmlFor || e.querySelector('input,select,textarea') !== null) ||
['IMG', 'OBJECT'].includes(nodeName) && e.useMap ||
['AUDIO', 'VIDEO'].includes(nodeName) && e.controls ||
['SUMMARY', 'IFRAME', 'EMBED'].includes(nodeName)) {
return true;
}
return e.hasAttribute('tabindex') && e.tabIndex > -1;
}
-webkit-user-select: none;
-webkit-touch-callout: none;
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
<video playsinline></video>
发布时间:2025-02-25, 18:36:21 | 评论:1 | 分类:Linux
warning: `app` (bin "app") generated 1 warning
Finished `release` profile [optimized] target(s) in 4.52s
Info Verifying wix package
Downloading https://github.com/wixtoolset/wix3/releases/download/wix3141rtm/wix314-binaries.zip
Error failed to bundle project: `https://github.com/wixtoolset/wix3/releases/download/wix3141rtm/wix314-binaries.zip: Network Error: Network Error: Error encountered in the status line: unexpected end of file`
C:\Users\${User}\AppData\Local\tarui\WixTools314
--WixTools314
--doc
--sdk
--x86
--candle.exe
--...
Downloading https://github.com/tauri-apps/binary-releases/releases/download/nsis-3/nsis-3.zip
Error failed to bundle project: `https://github.com/tauri-apps/binary-releases/releases/download/nsis-3/nsis-3.zip: Connection Failed: Connect error: 由于连接方在一段时间后没有正确
答复或连接的主机没有反应,连接尝试失败。 (os error 10060)`
--NSIS
--Plugins
--Debug
--DebugUnicode
--Release
--ReleaseUnicode
--x86-ansi
--x86-unicode
--ApplicationID.dll
--nsis_tauri_utils.dll
--...
Downloading https://github.com/tauri-apps/nsis-tauri-utils/releases/download/nsis_tauri_utils-v0.4.0/nsis_tauri_utils.dll
Error failed to bundle project: `https://github.com/tauri-apps/nsis-tauri-utils/releases/download/nsis_tauri_utils-v0.4.0/nsis_tauri_utils.dll: Network Error: Network Error: Error encountered in the status line: unexpected end of file`
Running light to produce X:\Tauri\tauri-shop-admin\src-tauri\target\release\bundle\msi\tauri-shop-admin_0.1.0_x64_en-US.msi
Warn NSIS directory contains mis-hashed files. Redownloading them.
Downloading https://github.com/tauri-apps/nsis-tauri-utils/releases/download/nsis_tauri_utils-v0.4.1/nsis_tauri_utils.dll
failed to bundle project: `https://github.com/tauri-apps/nsis-tauri-utils/releases/download/nsis_tauri_utils-v0.4.1/nsis_tauri_utils.dll: Connection Failed: Connect error: 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。 (os error 10060)`
Error failed to bundle project: `https://github.com/tauri-apps/nsis-tauri-utils/releases/download/nsis_tauri_utils-v0.4.1/nsis_tauri_utils.dll: Connection Failed: Connect error: 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。 (os error 10060)`
ELIFECYCLE Command failed with exit code 1.
C:\Users\用户名\AppData\Local\tauri>
├─NSIS
│ ├─Bin
│ ├─Contrib
│ ├─Docs
│ ├─Examples
│ ├─Include
│ ├─Plugins
│ │ ├─x86-ansi
│ │ └─x86-unicode 下载的插件放这里
│ └─Stubs
└─WixTools
C:\Users\li\AppData\Local\tauri
发布时间:2025-02-14, 10:44:38 | 评论:1 | 分类:Vue
<el-image-viewer/>
<template>
<div class="img-viewer-box">
<el-image-viewer
v-if="state.visible"
:url-list="props.imgs"
@close="close"
/>
</div>
</template>
<script lang="ts" setup>
import { ref, reactive } from 'vue'
import { useVModel } from '@vueuse/core'
const props = defineProps<{
modelValue: boolean
imgs: string[]
}>()
const emits = defineEmits<{
(e: 'update:modelValue', data: boolean)
}>()
const state = reactive({
imgList: [],
// 相当于是set 与 get
visible: useVModel(props, 'modelValue', emits),
})
// 点击关闭的时候,连同小图一起关闭
function close() {
state.visible = false
}
</script>
<style scoped></style>
<!-- 增加用于显示预览图片 -->
<ImgPreview v-model="state.visible.modal" :imgs="[state.imageUrl]" />
发布时间:2025-02-14, 10:42:15 | 评论:0 | 分类:Vue
var img = new Image();
img.src = 'img.jpg';
img.onload = function() {
if (img.width > img.height) {
console.log('横图');
} else {
console.log('竖图');
}
};
img {
aspect-ratio: 1/1; /* 宽高比为1:1 */
position: relative;
}
img::before {
content: '';
display: block;
padding-bottom: 100%; /* 内容区高度为0,生成一个占位符,避免图片被撑宽 */
}
/* 竖图 */
img[aspect-ratio="1/1"]::before {
padding-bottom: 133%; /* 内容区高度为0,生成一个占位符,占比为4:3 */
}
/* 横图 */
img[aspect-ratio="1/1"]::before {
padding-bottom: 75%; /* 内容区高度为0,生成一个占位符,占比为3:4 */
}
/* 竖图 */
@media (max-aspect-ratio: 3/4) {
img {
width: 100%;
height: auto;
}
}
/* 横图 */
@media (min-aspect-ratio: 4/3) {
img {
width: auto;
height: 100%;
}
}
发布时间:2025-02-14, 10:34:58 | 评论:0 | 分类:Vue
git clone https://github.com/ElemeFE/element.git
npm install
npm run dist
npm init
npm login
npm config set registry https://registry.npmjs.org
npm publish
发布时间:2024-12-13, 03:32:23 | 评论:2 | 分类:Linux
{
"name": "htafxt",
"version": "8.3.229",
"author": "海天 <2500152288@qq.com>",
"description": "合规监测系统",
"homepage": "http://lizhenqiu.com",
"main": "main.js",
"scripts": {
"start": "electron . --arg1 development",
"build": "electron-builder --linux"
},
"build": {
"productName": "合规监测系统",
"appId": "org.simulatedgreg.electron-vue",
"copyright": "合规监测系统",
"directories": {
"output": "build"
},
"publish": [
{
"provider": "generic",
"url": "http://192.168.1.80:181"
}
],
"files": [
"../dist",
"alg.jpg",
"anflogo.png",
"preload.js",
"main.js"
],
"linux": {
"category": "Office",
"icon": "anflogo256.png",
"target": [
"deb"
]
},
"nsis": {
"oneClick": false,
"allowElevation": true,
"allowToChangeInstallationDirectory": true,
"installerIcon": "Gxht256.ico",
"uninstallerIcon": "Gxht256.ico",
"installerHeaderIcon": "Gxht256.ico",
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"shortcutName": "合规监测系统"
}
},
"dependencies": {
"electron-dl": "^3.5.0",
"electron-log": "^4.4.8",
"electron-reload": "^2.0.0-alpha.1",
"electron-updater": "^6.1.1",
"node-machine-id": "^1.1.12"
},
"devDependencies": {
"electron": "^21.4.4",
"electron-builder": "^25.1.8",
"electron-dl": "^3.5.0",
"electron-log": "^4.4.8",
"electron-reload": "^2.0.0-alpha.1",
"electron-updater": "^6.1.1",
"node-machine-id": "^1.1.12"
}
}
cd Linux && npm run build
{
"license": "aaa", // 根据实际情况填写
"author": "作者名 <邮箱地址>", // 如 "张三 <1111@qq.com>"
"homepage": "", // 可以填写网址,如公司官网网址或者app对应网页的地址等
}
"scripts": {
// 可选 --x64 --ia32 --arm64 --armv7l等
"electron:linux": "vue-cli-service electron:build -l --x64", // 打包linux下amd64位的包
"electron:arm": "vue-cli-service electron:build -l --arm64" // 打包linux下arm64位的包
},
pluginOptions: {
electronBuilder: {
builderOptions: {
...
linux: {
icon: './public/app.png', // 注意linux下图片的尺寸最好是256*256
// target: 'deb', // 这个字段也可以是数组格式,具体可以参考electron-builder官网
},
...
}
}
}
docker pull electronuserland/builder
docker run --rm -ti -v C:\project\vue\:/project -w /project electronuserland/builder
npm install
npm config set registry https://registry.npm.taobao.org
npm config set electron_mirror https://npm.taobao.org/mirrors/electron/
npm config set electron-builder-binaries_mirror_mirror https://npm.taobao.org/mirrors/electron-builder-binaries_mirror/
npm config set electron_mirror https://mirrors.huaweicloud.com/electron/
npm config set electron-builder-binaries_mirror https://mirrors.huaweicloud.com/electron-builder-binaries/
/tmp/.mount_综合tnTpHu/chrome-sandbox is owned by root and has mode 4755.
error while loading shared libraries: libz.so: cannot open shared object file: No such file or directory.
libzadc-dev: /usr/lib/arrch64-linux-gnu/genwqe/libz.so
zlib1g-dev: /usr/lib/arrch64-linux-gnu/libz.so
...
发布时间:2024-12-11, 19:59:32 | 评论:8 | 分类:Go
go get github.com/akavel/rsrc
C:\Users\li\go\pkg\mod\github.com\akavel\rsrc@v0.10.2
go build
.\rsrc -ico ".\icon.ico" -o ".\rsrc.syso"
发布时间:2024-12-11, 19:43:59 | 评论:1 | 分类:Go
package main
import (
"fmt"
"os"
"setbg2/setbg"
"strconv"
"strings"
"time"
"github.com/energye/systray"
)
//只运行一个实例
var tempFile string
func checkPid() error {
pid := os.Getpid()
tempDir := strings.TrimRight(strings.ReplaceAll(os.TempDir(), "\\", "/"), "/")
tempFile = fmt.Sprintf("%s/.googleindexing.lock", tempDir)
// 读取锁文件内容
tmpBuf, err := os.ReadFile(tempFile)
if err == nil {
// 文件已存在,尝试获取并终止旧进程
tmpPidStr := string(tmpBuf)
tmpPid, err := strconv.Atoi(tmpPidStr)
if err == nil && tmpPid > 1 {
pro, err := os.FindProcess(tmpPid)
if err == nil {
// 终止旧进程
if err := pro.Kill(); err != nil {
return fmt.Errorf("failed to kill old process: %w", err)
}
}
}
}
// 写入当前进程PID到锁文件
if err := os.WriteFile(tempFile, []byte(strconv.Itoa(pid)), 0644); err != nil {
return fmt.Errorf("failed to write PID file: %w", err)
}
return nil
}
func init() {
if err := checkPid(); err != nil {
fmt.Fprintf(os.Stderr, "Error during PID check: %v\n", err)
os.Exit(1)
}
}
// var tempFile string
// func checkPid() {
// pid := os.Getpid()
// tempFile = strings.TrimRight(strings.ReplaceAll(os.TempDir(), "\\", "/"), "/") + "/.googleindexing.lock"
// tmpBuf, err := os.ReadFile(tempFile)
// if err == nil {
// // 文件已存在
// tmpPid, _ := strconv.Atoi(string(tmpBuf))
// pro, err := os.FindProcess(tmpPid)
// if err == nil {
// if tmpPid > 1 {
// // 启动新的,结束旧的
// _ = pro.Kill()
// }
// }
// }
// _ = os.WriteFile(tempFile, []byte(strconv.Itoa(pid)), os.ModePerm)
// }
// // 在初始化的时候就判断 PID,并做相应的判断
// func init() {
// checkPid()
// }
//end
发布时间:2024-12-01, 16:24:19 | 评论:1 | 分类:HTML
var point = new BMapGL.Point(116.404, 39.915);
var marker = new BMapGL.Marker(point); // 创建标注
map.addOverlay(marker); // 将标注添加到地图中
import drugMarkerIcon from ‘@/assets/map/drug_mark_icon@2x.png' // 以import的方式导入图片文件
var point = new BMapGL.Point(116.404, 39.915)
var myIcon = new BMapGL.Icon(drugMarkerIcon, new BMapGL.Size(28, 34))
var marker = new BMapGL.Marker(point, { icon: myIcon }) // 创建标注
this.map.addOverlay(marker) // 将标注添加到地图中
marker.addEventListener('click', function () { //监听标注点击事件
alert('您点击了标注')
})
let point = new BMap.Point('经度', '维度')
let mk = new BMap.Marker(point) // 创建一个图像标注实例,enableDragging:是否启用拖拽,默认为false, icon 自定义图标
var label = new BMap.Label(item.address, {
offset: new BMap.Size(0, 25),
});
mk.setLabel(label); // 为marker定义标签
this.map.addOverlay(mk) // 将覆盖物添加到地图中
lizhenqiu blog is powered by lizhenqiu.com Version 6.9 Processed in 0.014785 second(s) w3c
本博客的所有原创作品采用“知识共享”署名-非商业性使用-相同方式共享2.5协议进行许可
本站由七牛提供云存储,阿里云提供计算与安全服务,又拍云提供CDN加速,百度智能云
桂公网安备 45010302000998号 桂ICP备15007619号-1 中国互联网举报中心 建议使用谷歌浏览器(Google Chrome)浏览
确定要清除编辑框内容吗?
该删除操作将不可恢复。
删除 取消
激活Windows
转到"设置"以激活Windows。