样式修改

This commit is contained in:
978184212@qq.com 2025-11-20 09:49:16 +08:00
parent 6b37bb3300
commit 493684077e
4 changed files with 506 additions and 290 deletions

File diff suppressed because it is too large Load Diff

View File

@ -17,13 +17,13 @@
</view>
</view>
<view class="state">
<view class="" v-if="item.runStatus == 0">
<view class="" v-if="item.isOnline == 1">
在线
</view>
<view class="" v-else>
线
线
</view>
<image v-if="item.runStatus == 0" src="../../static/zhandian_icon_zaixian .png" mode="" class="zt"></image>
<image v-if="item.isOnline == 1" src="../../static/zhandian_icon_zaixian .png" mode="" class="zt"></image>
<image v-else src="../../static/zhandian_icon_lixian.png" mode="" class="zt"></image>
</view>
</view>

View File

@ -17,12 +17,12 @@
</view>
</view>
</view>
<view class="state">
<!-- <view class="state">
<view class="">
在线
</view>
<image src="../../static/zhandian_icon_zaixian .png" mode="" class="zt"></image>
</view>
</view> -->
</view>
<view class="botcontent">
<block v-for="(item,index) in it" :key="index">

View File

@ -166,54 +166,6 @@
})
}
},
// pointers
generatePointers() {
const iconConfig = {
// pestlight: {
// iconPath: '/static/zhandian_sahchong_dingwei.png',
// width: 15,
// height: 20
// },
orient: {
iconPath: '/static/zhandian_nongtian_dingwei.png',
width: 35,
height: 52
},
livestock: {
iconPath: '/static/zhandian_xuqin_dingwei.png',
width: 35,
height: 52
},
cusLocaltion: {
iconPath: '/static/qiyeIcon.png',
width: 35,
height: 52
}
}
this.list.forEach((item, i) => {
const config = iconConfig[item.stationType] || {}
item.iconPath = config.iconPath || ''
item.width = config.width || 0
item.height = config.height || 0
this.pointers.push({
id: i,
iconPath: item.iconPath,
latitude: Number(item.latitude),
longitude: Number(item.longitude),
width: item.width,
height: item.height,
customCallout: {
anchorY: 0, // Y
anchorX: 0, // X
display: 'ALWAYS' //
},
stationType: item.stationType,
stationName: item.stationName,
stationCode: item.stationCode,
joinCluster: true //
})
})
},
markertap(e) {
const index = e.detail.markerId
console.log(e.detail, 'index')
@ -231,9 +183,6 @@
})
}
},
todetails(item) {
console.log(item, '还是个然后')
},
qiyeChange() {
for (let i = 0; i < this.cusLocation.length; i++) {
const item = this.cusLocation[i];