Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Five-菜鸟级
NodeJS_671036
提交
c91a8baf
N
NodeJS_671036
项目概览
Five-菜鸟级
/
NodeJS_671036
与 Fork 源项目一致
Fork自
inscode / NodeJS
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
NodeJS_671036
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
c91a8baf
编写于
3月 24, 2025
作者:
Q
qq_41923622
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Mon Mar 24 13:12:00 CST 2025 inscode
上级
1956ae11
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
26 addition
and
16 deletion
+26
-16
index.html
index.html
+2
-12
src/section/components/imgbox/index.ts
src/section/components/imgbox/index.ts
+22
-3
src/section/components/index.ts
src/section/components/index.ts
+2
-1
未找到文件。
index.html
浏览文件 @
c91a8baf
...
@@ -45,6 +45,7 @@
...
@@ -45,6 +45,7 @@
<div
class=
"section-wrapper"
>
<div
class=
"section-wrapper"
>
💓 💖
💓 💖
</div>
</div>
<div
v-scope=
"ImgBox({imgName:'DSCF8222.jpg'})"
></div>
</section>
</section>
<section
class=
"section-row"
>
<section
class=
"section-row"
>
<div
class=
"section-wrapper"
>
<div
class=
"section-wrapper"
>
...
@@ -209,18 +210,7 @@
...
@@ -209,18 +210,7 @@
</div>
</div>
</template>
</template>
<template
id=
"imgbox-template"
>
<template
id=
"imgbox-template"
>
<div
class=
"bounbottom-popupter-gift-list"
>
<img
:src=
"imgSrc"
:data-src=
"dataSrc"
/>
<div
class=
"gift-list-container"
>
<div
v-for=
"(item, index) in giftList"
:key=
"index"
:class=
"((item?'gift-list-item ': ' ')+(item.class?item.class:''))"
>
<div
class=
"gift-list-avatar"
><img
:src=
"item.avatar"
/></div>
<div
class=
"gift-list-content"
>
{{item.text}}
</div>
<div
class=
"gift-list-gift-img"
>
<img
:src=
"item.giftImg"
/>
<img
:src=
"item.giftImg2"
/>
</div>
</div>
</div>
</div>
</template>
</template>
<script
type=
"module"
src=
"/src/main.ts"
></script>
<script
type=
"module"
src=
"/src/main.ts"
></script>
...
...
src/section/components/imgbox/index.ts
浏览文件 @
c91a8baf
let
imgMap
=
{
let
img
Name
Map
=
{
"
DSCF7995.jpg
"
:
"
https://vercel-proxy.fivecc.cn/static-img/1775464/202503/1775464-20250324100029689-1902352921.jpg
"
,
"
DSCF7995.jpg
"
:
"
https://vercel-proxy.fivecc.cn/static-img/1775464/202503/1775464-20250324100029689-1902352921.jpg
"
,
"
DSCF8019.jpg
"
:
"
https://vercel-proxy.fivecc.cn/static-img/1775464/202503/1775464-20250324100053386-972327104.jpg
"
,
"
DSCF8019.jpg
"
:
"
https://vercel-proxy.fivecc.cn/static-img/1775464/202503/1775464-20250324100053386-972327104.jpg
"
,
"
DSCF8027.jpg
"
:
"
https://vercel-proxy.fivecc.cn/static-img/1775464/202503/1775464-20250324100058175-827552871.jpg
"
,
"
DSCF8027.jpg
"
:
"
https://vercel-proxy.fivecc.cn/static-img/1775464/202503/1775464-20250324100058175-827552871.jpg
"
,
...
@@ -36,9 +36,28 @@ let imgMap = {
...
@@ -36,9 +36,28 @@ let imgMap = {
"
DSCF8365.jpg
"
:
"
https://vercel-proxy.fivecc.cn/static-img/1775464/202503/1775464-20250324100709204-1857305680.jpg
"
"
DSCF8365.jpg
"
:
"
https://vercel-proxy.fivecc.cn/static-img/1775464/202503/1775464-20250324100709204-1857305680.jpg
"
}
}
export
function
ImgBox
(
props
:
any
){
const
observer
=
new
IntersectionObserver
((
entries
,
observer
)
=>
{
entries
.
forEach
(
entry
=>
{
if
(
entry
.
isIntersecting
)
{
const
img
=
entry
.
target
;
const
realSrc
=
img
.
dataset
.
src
;
const
imgObj
=
new
Image
();
imgObj
.
src
=
realSrc
;
imgObj
.
onload
=
()
=>
{
img
.
src
=
realSrc
;
observer
.
unobserve
(
img
);
};
}
});
});
export
function
ImgBox
(
props
:
any
=
{}){
console
.
log
(
"
yyy
"
,
this
)
let
imgSrc
=
imgNameMap
[
props
.
imgName
]
let
dataSrc
=
imgNameMap
[
props
.
imgName
]
return
{
return
{
$template
:
'
#imgbox-template
'
,
$template
:
'
#imgbox-template
'
,
imgSrc
:
''
imgSrc
:
imgSrc
,
dataSrc
:
dataSrc
,
}
}
}
}
\ No newline at end of file
src/section/components/index.ts
浏览文件 @
c91a8baf
import
{
CountDown
}
from
"
./countdown/index
"
import
{
CountDown
}
from
"
./countdown/index
"
import
{
WeddingCalendar
}
from
"
./wedding-calendar/index
"
import
{
WeddingCalendar
}
from
"
./wedding-calendar/index
"
import
{
ImgBox
}
from
"
./imgbox/index
"
export
default
{
export
default
{
CountDown
,
CountDown
,
WeddingCalendar
,
WeddingCalendar
,
ImgBox
,
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录