样式修改
This commit is contained in:
parent
6b37bb3300
commit
493684077e
File diff suppressed because it is too large
Load Diff
|
|
@ -17,13 +17,13 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="state">
|
<view class="state">
|
||||||
<view class="" v-if="item.runStatus == 0">
|
<view class="" v-if="item.isOnline == 1">
|
||||||
在线
|
在线
|
||||||
</view>
|
</view>
|
||||||
<view class="" v-else>
|
<view class="" v-else>
|
||||||
下线
|
离线
|
||||||
</view>
|
</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>
|
<image v-else src="../../static/zhandian_icon_lixian.png" mode="" class="zt"></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -17,12 +17,12 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="state">
|
<!-- <view class="state">
|
||||||
<view class="">
|
<view class="">
|
||||||
在线
|
在线
|
||||||
</view>
|
</view>
|
||||||
<image src="../../static/zhandian_icon_zaixian .png" mode="" class="zt"></image>
|
<image src="../../static/zhandian_icon_zaixian .png" mode="" class="zt"></image>
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="botcontent">
|
<view class="botcontent">
|
||||||
<block v-for="(item,index) in it" :key="index">
|
<block v-for="(item,index) in it" :key="index">
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
markertap(e) {
|
||||||
const index = e.detail.markerId
|
const index = e.detail.markerId
|
||||||
console.log(e.detail, 'index')
|
console.log(e.detail, 'index')
|
||||||
|
|
@ -231,9 +183,6 @@
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
todetails(item) {
|
|
||||||
console.log(item, '还是个然后')
|
|
||||||
},
|
|
||||||
qiyeChange() {
|
qiyeChange() {
|
||||||
for (let i = 0; i < this.cusLocation.length; i++) {
|
for (let i = 0; i < this.cusLocation.length; i++) {
|
||||||
const item = this.cusLocation[i];
|
const item = this.cusLocation[i];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue