更新
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user