hookehuyr

fix 详情页滚动到顶部

...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
2 VITE_PORT = 8006 2 VITE_PORT = 8006
3 3
4 # 反向代理服务器地址 4 # 反向代理服务器地址
5 -VITE_PROXY_TARGET = https://oa-dev.onwall.cn 5 +# VITE_PROXY_TARGET = https://oa-dev.onwall.cn
6 +VITE_PROXY_TARGET = https://bm.jiqun.com
6 # VITE_PROXY_TARGET = https://oa.onwall.cn 7 # VITE_PROXY_TARGET = https://oa.onwall.cn
7 8
8 # API请求前缀 9 # API请求前缀
......
...@@ -22,6 +22,7 @@ declare module '@vue/runtime-core' { ...@@ -22,6 +22,7 @@ declare module '@vue/runtime-core' {
22 RouterLink: typeof import('vue-router')['RouterLink'] 22 RouterLink: typeof import('vue-router')['RouterLink']
23 RouterView: typeof import('vue-router')['RouterView'] 23 RouterView: typeof import('vue-router')['RouterView']
24 SvgIcon: typeof import('./src/components/Floor/svgIcon.vue')['default'] 24 SvgIcon: typeof import('./src/components/Floor/svgIcon.vue')['default']
25 + VanBackTop: typeof import('vant/es')['BackTop']
25 VanButton: typeof import('vant/es')['Button'] 26 VanButton: typeof import('vant/es')['Button']
26 VanCol: typeof import('vant/es')['Col'] 27 VanCol: typeof import('vant/es')['Col']
27 VanConfigProvider: typeof import('vant/es')['ConfigProvider'] 28 VanConfigProvider: typeof import('vant/es')['ConfigProvider']
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 * @Author: hookehuyr hookehuyr@gmail.com 2 * @Author: hookehuyr hookehuyr@gmail.com
3 * @Date: 2022-05-31 12:06:19 3 * @Date: 2022-05-31 12:06:19
4 * @LastEditors: hookehuyr hookehuyr@gmail.com 4 * @LastEditors: hookehuyr hookehuyr@gmail.com
5 - * @LastEditTime: 2023-12-29 14:00:08 5 + * @LastEditTime: 2024-09-25 17:17:40
6 * @FilePath: /map-demo/src/main.js 6 * @FilePath: /map-demo/src/main.js
7 * @Description: 7 * @Description:
8 */ 8 */
...@@ -41,6 +41,7 @@ import { ...@@ -41,6 +41,7 @@ import {
41 Search, 41 Search,
42 ImagePreview, 42 ImagePreview,
43 Popover, 43 Popover,
44 + BackTop,
44 } from 'vant'; 45 } from 'vant';
45 import router from './router'; 46 import router from './router';
46 import App from './App.vue'; 47 import App from './App.vue';
...@@ -95,7 +96,8 @@ app ...@@ -95,7 +96,8 @@ app
95 .use(Checkbox) 96 .use(Checkbox)
96 .use(Search) 97 .use(Search)
97 .use(ConfigProvider) 98 .use(ConfigProvider)
98 - .use(ImagePreview); 99 + .use(ImagePreview)
100 + .use(BackTop);
99 101
100 app.use(VueVideoPlayer) 102 app.use(VueVideoPlayer)
101 app.use(VueViewer); 103 app.use(VueViewer);
......
1 <!-- 1 <!--
2 * @Date: 2024-09-15 22:08:49 2 * @Date: 2024-09-15 22:08:49
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-09-25 17:10:16 4 + * @LastEditTime: 2024-09-25 17:24:19
5 * @FilePath: /map-demo/src/views/bieyuan/info.vue 5 * @FilePath: /map-demo/src/views/bieyuan/info.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -71,6 +71,8 @@ ...@@ -71,6 +71,8 @@
71 <van-image-preview v-model:show="show_preview" :images="preview_images" @change="onChange" doubleScale> 71 <van-image-preview v-model:show="show_preview" :images="preview_images" @change="onChange" doubleScale>
72 <template v-slot:index>第{{ index + 1 }}张</template> 72 <template v-slot:index>第{{ index + 1 }}张</template>
73 </van-image-preview> 73 </van-image-preview>
74 +
75 + <van-back-top />
74 </div> 76 </div>
75 </template> 77 </template>
76 78
...@@ -430,4 +432,8 @@ const onChange = (newIndex) => { ...@@ -430,4 +432,8 @@ const onChange = (newIndex) => {
430 border-bottom: 1px solid #F3F3F3; 432 border-bottom: 1px solid #F3F3F3;
431 } 433 }
432 } 434 }
435 +
436 +.van-back-top {
437 + background-color: #DD7850;
438 +}
433 </style> 439 </style>
......