Skip to content

Commit c4ffa2f

Browse files
author
潘卓然Y7000P
committed
【站点】【修复】【网站优化点击操作】
1 parent 2c0e277 commit c4ffa2f

7 files changed

Lines changed: 67 additions & 23 deletions

File tree

website/src/components/CardGroup/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
>
1313
<el-tag
1414
v-if="secondname"
15+
type="info"
1516
effect="light"
1617
>{{ secondname }}</el-tag>
1718
<el-divider

website/src/views/gallery/Gallery.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ export default {
108108
heightHash: [],
109109
scrollActive: [],
110110
modeChange: false,
111-
heightChange: false
111+
heightChange: false,
112+
scrolling: false
112113
};
113114
},
114115
watch: {
@@ -167,6 +168,7 @@ export default {
167168
if (!elm) return;
168169
169170
setTimeout(() => {
171+
self.scrolling = true;
170172
self.componentScrollBox.scrollTop = elm.offsetTop - 40;
171173
self.$forceUpdate();
172174
}, 100);
@@ -271,7 +273,7 @@ export default {
271273
this.componentScrollBox = this.componentScrollBar.$el.querySelector(
272274
".el-scrollbar__wrap"
273275
);
274-
this.throttledScrollHandler = throttle(300, this.handleScroll);
276+
this.throttledScrollHandler = throttle(1000, this.handleScroll);
275277
this.componentScrollBox.addEventListener(
276278
"scroll",
277279
this.throttledScrollHandler
@@ -320,8 +322,8 @@ export default {
320322
// float: right;
321323
width: 120px;
322324
padding: 16px 20px;
323-
background: #f4f7fb;
324-
border-left: solid 1px #e6e6e6;
325+
/* background: #f4f7fb;
326+
border-left: solid 1px #e6e6e6; */
325327
border-radius: 0px;
326328
327329
-webkit-box-sizing: unset;

website/src/views/gallery/GalleryAnchor.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
:color="getColor(item.anchor)"
77
:class="{'active': isActive(item.anchor)}"
88
>
9-
{{item.name}}
9+
<span @click="handleClick(item.anchor)">{{item.name}}</span>
1010
</el-timeline-item>
1111
</el-timeline>
1212
</template>
@@ -32,6 +32,15 @@ export default {
3232
getColor (key) {
3333
if (this.isActive(key)) return '#33dbe8'
3434
else return ''
35+
},
36+
handleClick (key) {
37+
let href = window.location.href.split("#");
38+
let localte = `#${key}`;
39+
40+
if (href.length >= 2) {
41+
let newHref = href[0] + "#" + href[1] + localte;
42+
window.location.href = newHref;
43+
}
3544
}
3645
},
3746
}

website/src/views/layout/components/Footer/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const CommonUrls = [
1414
[
1515
"https://github.com/MapGIS/WebClient-JavaScript",
1616
"https://gitee.com/mapgis_10",
17-
"./docs/cesium.index.html",
17+
"./docs/cesium/index.html",
1818
"/gallery/cesium",
1919
],
2020
]

website/src/views/layout/components/Header/Menu.vue

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,36 @@
2222
v-for="(l, j) in link"
2323
:key="j"
2424
>
25-
<a
25+
<div
26+
class="header-menu-link-text"
2627
v-if="isLink(menu.routes[i][j])"
27-
:href="menu.routes[i][j]"
28-
target="_blank"
2928
>
30-
<span :class="{'light-subtitle': light}">{{l}}</span>
31-
</a>
32-
<a
29+
<a
30+
class="header-menu-link-text"
31+
:href="menu.routes[i][j]"
32+
target="_blank"
33+
>
34+
<span :class="{'light-subtitle': light}">{{l}}</span>
35+
</a>
36+
</div>
37+
<div
38+
class="header-menu-link-text"
3339
v-else-if="isDocs(menu.routes[i][j])"
34-
:href="menu.routes[i][j]"
3540
>
36-
<span :class="{'light-subtitle': light}">{{l}}</span>
37-
</a>
41+
<a
42+
class="header-menu-link-text"
43+
:href="menu.routes[i][j]"
44+
>
45+
<span :class="{'light-subtitle': light}">{{l}}</span>
46+
</a>
47+
</div>
3848
<router-link
3949
v-else
4050
:to="menu.routes[i][j]"
4151
>
42-
<span :class="{'light-subtitle': light}">{{l}}</span>
52+
<div class="header-menu-link-text">
53+
<span :class="{'light-subtitle': light}">{{l}}</span>
54+
</div>
4355
</router-link>
4456
</div>
4557
</div>
@@ -55,7 +67,7 @@ export default {
5567
props: {
5668
icon: {
5769
type: String,
58-
},
70+
},
5971
title: {
6072
type: String,
6173
},
@@ -160,6 +172,11 @@ export default {
160172
rgba(49, 225, 230, 1)
161173
);
162174
}
175+
.header-menu-link-text {
176+
width: 160px;
177+
height: 30px;
178+
display: block;
179+
}
163180
}
164181
165182
.header-menu-wrapper-mobile {

website/src/views/layout/components/Header/config.js

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const Headers = [
5757
"MapGIS地图服务",
5858
"场景" /* "IGServer-X", "IGServer-S" */,
5959
],
60-
["三维空间分析", "轨迹模拟", "图形绘制", "工具", "查询"],
60+
["三维空间分析", "轨迹模拟", "图形绘制", "工具" /* "查询" */],
6161
[
6262
"客户端可视化",
6363
"客户端-Echarts",
@@ -79,7 +79,7 @@ export const Headers = [
7979
"/gallery/cesium#track",
8080
"/gallery/cesium#drawGraphic",
8181
"/gallery/cesium#measure",
82-
"/gallery/cesium#query",
82+
/* "/gallery/cesium#query", */
8383
],
8484
[
8585
"/gallery/cesium#clientView-heatmap",
@@ -92,13 +92,28 @@ export const Headers = [
9292
},
9393
{
9494
title: "开发API",
95-
links: [["向导"], ["客户端可视化", "客户端渲染"], ["Cesium", "TurfJs"]],
95+
links: [
96+
["客户端数据服务", "客户端可视化", "客户端渲染"],
97+
[
98+
"客户端事件管理",
99+
"客户端公共方法",
100+
"客户端视图管理",
101+
"客户端可视化分析",
102+
],
103+
["Cesium", "TurfJs"],
104+
],
96105
routes: [
97-
["./docs/cesium/index.html"],
98106
[
107+
"/docs/cesium/module-%25E5%25AE%25A2%25E6%2588%25B7%25E7%25AB%25AF%25E6%2595%25B0%25E6%258D%25AE%25E6%259C%258D%25E5%258A%25A1.html",
99108
"/docs/cesium/module-%25E5%25AE%25A2%25E6%2588%25B7%25E7%25AB%25AF%25E5%258F%25AF%25E8%25A7%2586%25E5%258C%2596.html",
100109
"/docs/cesium/module-%25E5%25AE%25A2%25E6%2588%25B7%25E7%25AB%25AF%25E6%25B8%25B2%25E6%259F%2593.html",
101110
],
111+
[
112+
"/docs/cesium/module-%25E5%25AE%25A2%25E6%2588%25B7%25E7%25AB%25AF%25E4%25BA%258B%25E4%25BB%25B6%25E7%25AE%25A1%25E7%2590%2586.html",
113+
"/docs/cesium/module-%25E5%25AE%25A2%25E6%2588%25B7%25E7%25AB%25AF%25E5%2585%25AC%25E5%2585%25B1%25E6%2596%25B9%25E6%25B3%2595.html",
114+
"/docs/cesium/module-%25E5%25AE%25A2%25E6%2588%25B7%25E7%25AB%25AF%25E8%25A7%2586%25E5%259B%25BE%25E7%25AE%25A1%25E7%2590%2586.html",
115+
"/docs/cesium/module-%25E5%25AE%25A2%25E6%2588%25B7%25E7%25AB%25AF%25E5%258F%25AF%25E8%25A7%2586%25E5%258C%2596%25E5%2588%2586%25E6%259E%2590.html",
116+
],
102117
["https://cesium.com/docs/cesiumjs-ref-doc/", "http://turfjs.org/"],
103118
],
104119
},

website/src/views/welcome/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const Gallerys = [
8787
icon: "./static/assets/gallery/oblique.png",
8888
title: "倾斜摄影",
8989
subtitle: "无缝对接主流三维数据,高效展示大雁塔的倾斜摄影",
90-
index: "/demo/cesium/mapgis/mapgis-oblique",
90+
index: "/demo/cesium/m3d/m3d-oblique",
9191
},
9292
{
9393
icon: "./static/assets/gallery/dem.png",
@@ -122,7 +122,7 @@ export const Gallerys = [
122122
{
123123
icon: "./static/assets/gallery/chinadata.png",
124124
title: "海量矢量数据",
125-
subtitle: "数据量的高效渲染,大比例尺地物",
125+
subtitle: "千万级别数据量的高效渲染,大比例尺地物",
126126
index: "/demo/mapboxgl/client-view/vectortile/lightstyle",
127127
},
128128
];

0 commit comments

Comments
 (0)