Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
founder_vue
Commits
c06df0a5
Commit
c06df0a5
authored
Jan 24, 2022
by
liyuhang19990520
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
全景720
parent
6de7b373
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
128 additions
and
15 deletions
+128
-15
public/index.html
+33
-15
src/router/modules/index.js
+18
-0
src/views/3Dceshi/index.vue
+77
-0
src/views/Home.vue
+0
-0
yarn.lock
+0
-0
No files found.
public/index.html
View file @
c06df0a5
<!--
* @Author: your name
* @Date: 2022-01-24 10:53:29
* @LastEditTime: 2022-01-24 11:14:02
* @LastEditors: your name
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \founder_vue\public\index.html
-->
<!DOCTYPE html>
<!DOCTYPE html>
<html
lang=
"en"
>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
<head>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<title><
%=
htmlWebpackPlugin
.
options
.
title
%
></title>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
</head>
<link
rel=
"stylesheet"
href=
"https://cdn.jsdelivr.net/npm/pannellum@2.5.6/build/pannellum.css"
>
<body
style=
"height: 100vh;"
>
<script
src=
"https://cdn.jsdelivr.net/npm/pannellum@2.5.6/build/pannellum.js"
></script>
<noscript>
<!-- Latest compiled and minified CSS -->
<strong>
We're sorry but
<
%=
htmlWebpackPlugin
.
options
.
title
%
>
doesn't work properly without JavaScript enabled. Please enable it to continue.
</strong>
<title>
</noscript>
<
%=
htmlWebpackPlugin
.
options
.
title
%
>
<div
id=
"app"
></div>
</title>
<!-- built files will be auto injected -->
</head>
</body>
</html>
<body
style=
"height: 100vh;"
>
<noscript>
<strong>
We're sorry but
<
%=
htmlWebpackPlugin
.
options
.
title
%
>
doesn't work properly without JavaScript enabled.
Please enable it to continue.
</strong>
</noscript>
<div
id=
"app"
></div>
<!-- built files will be auto injected -->
</body>
</html>
\ No newline at end of file
src/router/modules/index.js
View file @
c06df0a5
/*
* @Author: your name
* @Date: 2022-01-24 10:53:29
* @LastEditTime: 2022-01-24 11:15:56
* @LastEditors: your name
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \founder_vue\src\router\modules\index.js
*/
export
default
[
export
default
[
{
{
path
:
'/'
,
path
:
'/'
,
...
@@ -20,5 +28,14 @@ export default [
...
@@ -20,5 +28,14 @@ export default [
auth
:
"5"
auth
:
"5"
},
},
component
:
()
=>
import
(
"@/views/Home.vue"
)
component
:
()
=>
import
(
"@/views/Home.vue"
)
},
{
path
:
"/3dcs1"
,
name
:
"3dcs1"
,
meta
:
{
title
:
"3d图片测试"
,
auth
:
"5"
},
component
:
()
=>
import
(
"@/views/3Dceshi/index.vue"
)
}
}
]
]
\ No newline at end of file
src/views/3Dceshi/index.vue
0 → 100644
View file @
c06df0a5
<!--
* @Author: your name
* @Date: 2022-01-24 11:14:54
* @LastEditTime: 2022-01-24 12:52:57
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \founder_vue\src\views\3Dceshi\index.vue
-->
<
template
>
<div
id=
"panorama"
></div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{};
},
mounted
()
{
pannellum
.
viewer
(
"panorama"
,
{
default
:
{
firstScene
:
"circle"
,
author
:
"Matthew Petroff"
,
sceneFadeDuration
:
1000
,
autoLoad
:
true
,
},
scenes
:
{
circle
:
{
title
:
"Mason Circle"
,
hfov
:
110
,
pitch
:
-
3
,
yaw
:
117
,
type
:
"equirectangular"
,
URL
:
require
(
"../../assets/img/gyzm2.jpg"
),
panorama
:
require
(
"../../assets/img/gyzm2.jpg"
),
hotSpots
:
[
{
pitch
:
-
20.1
,
yaw
:
132.9
,
type
:
"scene"
,
text
:
"点击切换场景一"
,
sceneId
:
"house"
,
},
],
},
house
:
{
title
:
"Spring House or Dairy"
,
hfov
:
110
,
yaw
:
5
,
type
:
"equirectangular"
,
panorama
:
require
(
"../../assets/img/gyzm1.jpg"
),
hotSpots
:
[
{
pitch
:
-
0.6
,
yaw
:
37.1
,
type
:
"scene"
,
text
:
"点击切换场景二"
,
sceneId
:
"circle"
,
targetYaw
:
-
23
,
targetPitch
:
2
,
},
{
pitch
:
-
0.6
,
yaw
:
47.1
,
type
:
"scene"
,
text
:
"点击切换场景二"
,
sceneId
:
"circle"
,
targetYaw
:
-
23
,
targetPitch
:
2
,
},
],
},
},
});
},
};
</
script
>
\ No newline at end of file
src/views/Home.vue
View file @
c06df0a5
This diff is collapsed.
Click to expand it.
yarn.lock
View file @
c06df0a5
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment