mirror of
https://gitee.com/ice-gl/icegl-three-vue-tres.git
synced 2025-04-05 06:22:43 +08:00
refactor: 优化 作者栏的展示 / 基于小程序uniapp的js脚本
This commit is contained in:
parent
e3799c2311
commit
7e4e80adb0
14
index.html
14
index.html
@ -4,7 +4,7 @@
|
||||
* @Autor: 地虎降天龙
|
||||
* @Date: 2024-03-07 09:46:12
|
||||
* @LastEditors: 地虎降天龙
|
||||
* @LastEditTime: 2025-03-14 09:03:31
|
||||
* @LastEditTime: 2025-03-18 09:39:59
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
@ -21,13 +21,15 @@
|
||||
<script>
|
||||
var _hmt = _hmt || [];
|
||||
(function () {
|
||||
const hm = document.createElement("script");
|
||||
hm.src = "https://hm.baidu.com/hm.js?3c442b1ada04ec23771dfc94ea581c10";
|
||||
const s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
const hm = document.createElement("script")
|
||||
hm.src = "https://hm.baidu.com/hm.js?3c442b1ada04ec23771dfc94ea581c10"
|
||||
const s = document.getElementsByTagName("script")[0]
|
||||
s.parentNode.insertBefore(hm, s)
|
||||
})()
|
||||
</script>
|
||||
|
||||
<script src="./plugins/uniAppView/lib/jweixin-1.6.0.js"></script>
|
||||
<script src="./plugins/uniAppView/lib/uni.webview.0.1.52.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
@ -4,17 +4,23 @@
|
||||
* @Autor: 地虎降天龙
|
||||
* @Date: 2023-11-03 16:02:49
|
||||
* @LastEditors: 地虎降天龙
|
||||
* @LastEditTime: 2025-03-18 08:44:36
|
||||
* @LastEditTime: 2025-03-18 09:14:35
|
||||
-->
|
||||
<template>
|
||||
<FDivider titlePlacement="left">{{ props.onePlugin.title + ' - ' + props.onePlugin.name }}</FDivider>
|
||||
<FDivider titlePlacement="left">{{ onePlugin.title + ' - ' + onePlugin.name }}</FDivider>
|
||||
<FSpace vertical>
|
||||
<a target="_blank" :href="props.onePlugin.website" style="text-decoration: none; color: black">
|
||||
<FText v-if="props.onePlugin.author" class="text-right ml-[10px] w-95/100 mt-[-24px] block position-relative" style="color: #0f1222" size="small">
|
||||
<span style="text-decoration: none; color: black">
|
||||
<FText
|
||||
v-if="props.onePlugin.author"
|
||||
class="mt-[-24px] position-absolute right-[12px]"
|
||||
@click="toAuthorPage(onePlugin.website)"
|
||||
style="color: #0f1222;cursor: pointer"
|
||||
size="small"
|
||||
>
|
||||
<UserOutlined class="position-relative top-[2px]" /> 作者:
|
||||
{{ props.onePlugin.author }}
|
||||
</FText>
|
||||
</a>
|
||||
</span>
|
||||
<div class="p-2 ml-13" style="" v-html="props.onePlugin.intro"></div>
|
||||
</FSpace>
|
||||
<div class="flex flex-wrap flex-justify-start content-start mt-6 pl-6">
|
||||
@ -76,6 +82,10 @@ const props = withDefaults(
|
||||
const { menuSetup } = useModel('forPreview')
|
||||
let publicPath = process.env.BASE_URL
|
||||
|
||||
const toAuthorPage = (url: string) => {
|
||||
window.open(url, '_blank')
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
await loadJweixin()
|
||||
await loadWebView()
|
||||
|
@ -4,7 +4,7 @@
|
||||
* @Autor: 地虎降天龙
|
||||
* @Date: 2023-11-18 22:17:49
|
||||
* @LastEditors: 地虎降天龙
|
||||
* @LastEditTime: 2025-03-09 11:18:33
|
||||
* @LastEditTime: 2025-03-18 09:04:16
|
||||
-->
|
||||
<template>
|
||||
<div class="absolute menuSelf">
|
||||
@ -187,7 +187,7 @@ const goto = (value: string) => {
|
||||
if (value.value === 'tvtPluginUrl') {
|
||||
window.open('https://www.icegl.cn/tvtstore', '_blank')
|
||||
} else {
|
||||
tabListRef.value[value.value]?.scrollIntoView({ behavior: 'smooth', block: 'center', inline: 'nearest' })
|
||||
tabListRef.value[value.value]?.scrollIntoView({ behavior: 'smooth', block: 'start' })
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user