diff --git a/BagStation/pages/components/price-tab.vue b/BagStation/pages/components/price-tab.vue
index 4bfb7e2..26c3587 100644
--- a/BagStation/pages/components/price-tab.vue
+++ b/BagStation/pages/components/price-tab.vue
@@ -32,6 +32,11 @@
{{itemy}}
+
+
+ {{siteInfo.activityContent}}
+
+
@@ -43,6 +48,12 @@
channelList: {
type: Array,
default () {}
+ },
+ siteInfo:{
+ type: Object,
+ default: () => {
+ return {}
+ }
}
},
data() {
@@ -128,7 +139,7 @@
}
-
diff --git a/BagStation/pages/stationDetail/stationDetail.vue b/BagStation/pages/stationDetail/stationDetail.vue
index 8231a16..d87d189 100644
--- a/BagStation/pages/stationDetail/stationDetail.vue
+++ b/BagStation/pages/stationDetail/stationDetail.vue
@@ -61,7 +61,7 @@
+ :channel-list="siteInfo.oilSiteChannelDetailsVos" :siteInfo="siteInfo">
diff --git a/components/site-item/site-item.vue b/components/site-item/site-item.vue
index 20a61f8..87194a4 100644
--- a/components/site-item/site-item.vue
+++ b/components/site-item/site-item.vue
@@ -1,25 +1,34 @@
-
-
-
-
+
+
+
+
+
+
+
+
+ {{siteItem.juli|distanceFilter}}
+
+
- {{siteItem.siteName}}
+ {{siteItem.siteName}}
- {{siteItem.listTag|channelCodeFamt}}
+ {{siteItem.listTag|channelCodeFamt}}
距离最近
-
-
- {{siteItem.address}}
-
+
+
+ {{siteItem.address}}
+
-
-
+
+
{{item.oilProductCode}}
@@ -36,25 +45,24 @@
省¥{{(siteItem.oilSitePrice - siteItem.sitePrice)|moneyFormat}}
-
-
-
- ¥{{siteItem.oilSitePrice|moneyFormat}}/L
+
+
+
+ ¥{{siteItem.oilSitePrice|moneyFormat}}/L
-
-
-
+
+
+ 活动
+
+ {{siteItem.activityContent}}
+
+
-
-
-
-
- {{siteItem.juli|distanceFilter}}
-
-
+
+
@@ -70,46 +78,46 @@
type: Boolean,
default: false
},
- listHeight:{
- type:Number,
- default:0
+ listHeight: {
+ type: Number,
+ default: 0
}
},
data() {
return {
starUrl: this.global.starUrl,
- defaultLogo:'https://publicxingyou.oss-cn-hangzhou.aliyuncs.com/mp-oil/logo_default.png',
- audioUrl:''
+ defaultLogo: 'https://publicxingyou.oss-cn-hangzhou.aliyuncs.com/mp-oil/logo_default.png',
+ audioUrl: ''
}
- },
+ },
created() {
- console.log(this.siteItem,'-----------------')
+ console.log(this.siteItem, '-----------------')
},
methods: {
},
filters: {
- channelCodeFamt(value) {
- console.log(value)
- if (!value) {
- return '未知'
- // 渠道编码 ( XOIL:星油 WJY:万金油 LV:老吕(找油网) TY:团油 YDJY:一点加油(壳牌))
- // switch (value) {
- // case 'XOIL':
- // return '星油'
- // case 'WJY':
- // return '万金油'
- // case 'LV':
- // return '老吕(找油网)'
- // case 'TY':
- // return '团油'
- // case 'YDJY':
- // return '一点加油(壳牌)'
- // }
- } else {
- return value
- }
- },
+ channelCodeFamt(value) {
+ console.log(value)
+ if (!value) {
+ return '未知'
+ // 渠道编码 ( XOIL:星油 WJY:万金油 LV:老吕(找油网) TY:团油 YDJY:一点加油(壳牌))
+ // switch (value) {
+ // case 'XOIL':
+ // return '星油'
+ // case 'WJY':
+ // return '万金油'
+ // case 'LV':
+ // return '老吕(找油网)'
+ // case 'TY':
+ // return '团油'
+ // case 'YDJY':
+ // return '一点加油(壳牌)'
+ // }
+ } else {
+ return value
+ }
+ },
distanceFilter(value) {
if (value) {
return value > 1000 ? ((value / 1000).toFixed(2) + 'km') : (value + 'm')
@@ -126,20 +134,42 @@
}
-