地图修改,首页路径

This commit is contained in:
978184212@qq.com 2026-08-13 15:33:15 +08:00
parent eb7c194ea9
commit 409d761bbc
3 changed files with 17 additions and 14 deletions

View File

@ -196,7 +196,7 @@ export default {
left: 50%;
transform: translate(-50%);
color: #999;
width: 52%;
width: 60%;
}
.login-paddingtop {
padding-top: 100upx;

View File

@ -80,7 +80,7 @@
<view class="bot_mid">
<view class="bot_mid_left"
:class="{'bot_mid_lefts':item.type == 2 || item.type == 0}">
{{ (item.value !== null && item.value !== undefined && item.value !== '' && !isNaN(item.value)) ? item.value + (item.unit || '') : '0' }}{{ item.unit }}
{{ (item.value !== null && item.value !== undefined && item.value !== '' && !isNaN(item.value)) ? item.value + (item.unit || '') : '0' }}
</view>
</view>
<view class="bot_rig" v-if="item.times">
@ -334,15 +334,18 @@
},
// banner
banlick(index){
if (index==0) {
uni.navigateTo({
url: '/packDetail/pages/vidio/soilindex'
})
} else {
uni.navigateTo({
url: '/packDetail/pages/Site/index'
})
}
// if (index==0) {
// uni.navigateTo({
// url: '/packDetail/pages/vidio/soilindex'
// })
// } else {
// uni.navigateTo({
// url: '/packDetail/pages/Site/index'
// })
// }
}
}
}

View File

@ -159,7 +159,7 @@
try {
this.mapCtx.includePoints({
points: validPoints,
padding: [80, 80, 80, 80], //
padding: [120, 120, 120, 120], //
success: () => {
console.log('地图视野调整成功');
},
@ -180,7 +180,7 @@
try {
this.mapCtx.includePoints({
points: validPoints,
padding: [80, 80, 80, 80]
padding: [150, 150, 150, 150]
});
} catch (e) {
console.error('第二次调整失败:', e);
@ -194,7 +194,7 @@
try {
this.mapCtx.includePoints({
points: validPoints,
padding: [120, 100, 100, 100]
padding: [180, 160, 160, 160]
});
} catch (e) {
console.error('第三次调整失败:', e);