Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
A
app-web2
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ling
app-web2
Commits
69cbdeac
提交
69cbdeac
authored
2月 02, 2023
作者:
ling
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Integrated home page
上级
03b22efa
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
110 行增加
和
94 行删除
+110
-94
h5Index.vue
components/h5Index.vue
+2
-2
pcIndex.vue
components/pcIndex.vue
+96
-0
nuxt.config.js
nuxt.config.js
+5
-0
index.vue
pages/index.vue
+7
-92
没有找到文件。
pages/m_i
ndex.vue
→
components/h5I
ndex.vue
浏览文件 @
69cbdeac
...
...
@@ -153,7 +153,7 @@
<
script
>
export
default
{
name
:
"
IndexPage
"
,
name
:
"
H5Index
"
,
data
()
{
return
{
isiOS
:
null
,
...
...
@@ -167,7 +167,7 @@ export default {
},
};
</
script
>
<
style
>
<
style
scoped
>
body
{
margin
:
0
;
padding
:
0
;
...
...
components/pcIndex.vue
0 → 100644
浏览文件 @
69cbdeac
<
template
>
<div
class=
"body"
>
<div
class=
"download_component"
style=
"display: block"
>
<div
class=
"float_logo"
></div>
<div
class=
"download_web"
>
<div
class=
"header_box"
>
<div
class=
"qrcode_box"
>
<vue-qr
:text=
"url"
:size=
"220"
></vue-qr>
</div>
<div
class=
"title_img"
></div>
</div>
<img
class=
"mian_img"
src=
"../assets/images/web-main-img.png.webp"
/>
</div>
</div>
</div>
</
template
>
<
script
>
import
VueQr
from
"vue-qr"
;
export
default
{
name
:
"IndexPage"
,
components
:
{
VueQr
},
computed
:
{
url
()
{
return
location
.
href
;
},
},
};
</
script
>
<
style
>
body
{
margin
:
0
;
padding
:
0
;
}
</
style
>
<
style
scoped
>
.body
{
width
:
100%
;
height
:
100%
;
}
.download_component
{
width
:
100%
;
height
:
100%
;
}
.float_logo
{
background
:
url(../assets/images/web-float-logo.png.webp)
;
position
:
fixed
;
left
:
0
;
top
:
0
;
background-size
:
100%
100%
;
width
:
184px
;
height
:
195px
;
z-index
:
1
;
}
.download_web
{
width
:
100%
;
height
:
100vh
;
margin
:
0
auto
;
background
:
url(../assets/images/web-bg.jpg.webp)
top
center
no-repeat
;
background-size
:
cover
;
background-position
:
center
bottom
;
overflow
:
auto
;
}
.header_box
{
padding-top
:
50px
;
display
:
flex
;
justify-content
:
center
;
}
.qrcode_box
{
margin-top
:
35px
;
width
:
236px
;
height
:
238px
;
margin-right
:
87px
;
border-radius
:
10px
;
box-shadow
:
0
5px
12px
0
rgb
(
0
0
0
/
13%
);
background-color
:
#fff
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.title_img
{
background
:
url(../assets/images/web-title-img.png.webp)
;
margin-top
:
17px
;
width
:
326px
;
height
:
270px
;
background-size
:
100%
100%
;
}
.mian_img
{
height
:
calc
(
100%
-
390px
);
width
:
auto
;
position
:
absolute
;
bottom
:
0
;
left
:
50%
;
transform
:
translateX
(
-50%
);
}
</
style
>
nuxt.config.js
浏览文件 @
69cbdeac
...
...
@@ -2,6 +2,11 @@ export default {
// Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode
ssr
:
false
,
server
:
{
port
:
3000
,
host
:
'0.0.0.0'
,
},
// Target: https://go.nuxtjs.dev/config-target
target
:
'static'
,
...
...
pages/index.vue
浏览文件 @
69cbdeac
<
template
>
<div
v-if=
"isDisplay"
class=
"body"
>
<div
class=
"download_component"
style=
"display: block"
>
<div
class=
"float_logo"
></div>
<div
class=
"download_web"
>
<div
class=
"header_box"
>
<div
class=
"qrcode_box"
>
<vue-qr
:text=
"url"
:size=
"220"
></vue-qr>
</div>
<div
class=
"title_img"
></div>
</div>
<img
class=
"mian_img"
src=
"../assets/images/web-main-img.png.webp"
/>
</div>
</div>
<div>
<PcIndex
v-if=
"isPc"
></PcIndex>
<h5Index
v-else
></h5Index>
</div>
</
template
>
<
script
>
import
VueQr
from
"vue-qr"
;
export
default
{
name
:
"IndexPage"
,
components
:
{
VueQr
},
beforeRouteEnter
(
to
,
from
,
next
)
{
next
((
vm
)
=>
{
if
(
/Mobi|Android|iPhone/i
.
test
(
navigator
.
userAgent
))
{
vm
.
$router
.
push
({
name
:
"m_index"
});
}
else
{
vm
.
isDisplay
=
true
;
vm
.
isPc
=
false
;
}
});
},
data
()
{
return
{
is
Display
:
fals
e
,
is
Pc
:
tru
e
,
};
},
computed
:
{
url
()
{
return
location
.
href
;
},
},
};
</
script
>
<
style
>
body
{
margin
:
0
;
padding
:
0
;
}
</
style
>
<
style
scoped
>
.body
{
width
:
100%
;
height
:
100%
;
}
.download_component
{
width
:
100%
;
height
:
100%
;
}
.float_logo
{
background
:
url(../assets/images/web-float-logo.png.webp)
;
position
:
fixed
;
left
:
0
;
top
:
0
;
background-size
:
100%
100%
;
width
:
184px
;
height
:
195px
;
z-index
:
1
;
}
.download_web
{
width
:
100%
;
height
:
100vh
;
margin
:
0
auto
;
background
:
url(../assets/images/web-bg.jpg.webp)
top
center
no-repeat
;
background-size
:
cover
;
background-position
:
center
bottom
;
overflow
:
auto
;
}
.header_box
{
padding-top
:
50px
;
display
:
flex
;
justify-content
:
center
;
}
.qrcode_box
{
margin-top
:
35px
;
width
:
236px
;
height
:
238px
;
margin-right
:
87px
;
border-radius
:
10px
;
box-shadow
:
0
5px
12px
0
rgb
(
0
0
0
/
13%
);
background-color
:
#fff
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.title_img
{
background
:
url(../assets/images/web-title-img.png.webp)
;
margin-top
:
17px
;
width
:
326px
;
height
:
270px
;
background-size
:
100%
100%
;
}
.mian_img
{
height
:
calc
(
100%
-
390px
);
width
:
auto
;
position
:
absolute
;
bottom
:
0
;
left
:
50%
;
transform
:
translateX
(
-50%
);
}
</
style
>
</
script
>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论