hookehuyr

fix 详情页滚动到顶部

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