This commit is contained in:
xiaozhiyong
2023-08-31 09:29:38 +08:00
parent 5dfc59b640
commit 7028fde296
4 changed files with 62 additions and 73 deletions

View File

@@ -2,7 +2,7 @@
<view class="site-list">
<view class="container" v-if="siteList.length">
<list>
<view class="item" v-for="item,index in siteList" :key="index">
<view class="item" v-for="(item,index) in siteList" :key="index">
<image
:src="item.siteImages || 'https://static.czb365.com/1647787216992.jpg?x-oss-process=image/resize,m_lfit,h_420,w_630/format,png'">
</image>
@@ -10,7 +10,7 @@
<view>
<view>{{item.address || ''}}</view> <text>{{item.juli | adjust}}km</text>
</view>
<view>0# 7.94</view>
<view>{{item.oilProductCode}} {{item.enterprisePrice | adjust}}</view>
<view>
<view @click="lookPosition(item)">查看位置</view>
<view @click="jump(item)">查看详情</view>
@@ -41,7 +41,7 @@
filters: {
adjust(val) {
if (!val) return '--'
val = +val/1000
val = +val
return val.toFixed(2)
}
},
@@ -56,9 +56,7 @@
},
jump(item) {
let obj = {
siteId: item.id,
longitude: item.longitude,
latitude: item.latitude,
siteId: item.siteId,
}
let itemS = JSON.stringify(obj)
// return