This commit is contained in:
dt_2916866708
2024-02-29 09:05:38 +08:00
commit 83d0c894b2
478 changed files with 73907 additions and 0 deletions

View File

@@ -0,0 +1,91 @@
.stationItem_bottom_label {
margin-right: 15rpx;
/* padding: 10rpx 15rpx;
border: solid 1rpx #48B8BAFF;
box-sizing: border-box;
border-radius: 32rpx; */
}
.stationItem_bottom_label:last-child {
margin-right: 0;
}
.stationItem_bottom_label_container {}
.stationItem_bottom_label text {
font-size: 24rpx;
color: #000000;
}
.stationItem_bottom_label_logo {
padding: 2rpx 8rpx;
opacity: 1;
border: 2rpx solid #48B8BA;
border-radius: 30rpx;
font-size: 20rpx;
color: #48B8BA;
margin-right: 8rpx;
}
.stationItem_bottom_price {
font-size: 32rpx;
color: #121836;
}
.is_stop_row {
font-size: 24rpx;
color: #CACACA;
margin-bottom: 18rpx;
}
.is_stop_row image {
/* width: 35rpx; */
/* height: 35rpx; */
margin-right: 14rpx;
}
.stationItem_bottom {
margin-top: 30rpx;
}
.stationItem_address {
font-size: 24rpx;
color: #CACACA;
}
.stationItem_distance {
font-size: 24rpx;
color: #121836;
}
.stationItem_top_label_container {
margin-top: 10rpx;
}
.stationItem_top_label {
font-size: 22rpx;
color: #FFFFFF;
padding: 5rpx 17rpx;
border-radius: 20rpx 20rpx 20rpx 20rpx;
margin-right: 12rpx;
}
.stationItem_top_title {
font-size: 30rpx;
font-weight: 400;
color: #000000;
}
.stationItem {
position: relative;
width: 690rpx;
margin: 0 auto;
min-height: 234rpx;
background: #FFFFFF;
box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(0, 0, 0, 0.08);
border-radius: 15rpx 15rpx 15rpx 15rpx;
margin-top: 60rpx;
padding: 25rpx 30rpx;
box-sizing: border-box !important;
}

View File

@@ -0,0 +1,81 @@
<template>
<view v-if="data" @click="goDetails" class="stationItem">
<!-- 上半部分 -->
<view class="stationItem_top">
<view class="stationItem_top_title">{{data.name}}</view>
<view class="flex ac">
<view class=" stationItem_top_label_container oneflex flex">
<view v-for="(item,index) in data.tags" :key="index" :style="{background:item.color}"
class="stationItem_top_label"> {{item.label}}</view>
</view>
<view class="stationItem_distance flex">
<uni-icons style="margin-right: 10rpx;" type="paperplane-filled" color="#121836"
size="15"></uni-icons>
{{data.distance}}KM
</view>
</view>
</view>
<!-- 下半部分 -->
<view class="stationItem_bottom">
<view class="is_stop_row flex ac">
<image style="width: 35rpx;height:40rpx;" src="../../static/stop.png"></image>
{{data.parkFee}}
</view>
<view class=" flex ">
<view class="stationItem_bottom_label_container oneflex flex">
<view class="stationItem_bottom_label flex ac">
<view class="stationItem_bottom_label_logo flex ac jc"></view>
<text>{{data.fastChargingIdleRatio}}</text>
</view>
<view class="stationItem_bottom_label flex ac">
<view style="border: 2rpx solid #36658DFF;color: #36658DFF;" class="stationItem_bottom_label_logo flex ac jc"></view>
<text>{{data.slowChargingIdleRatio}}</text>
</view>
<view class="stationItem_bottom_label flex ac">
<view style="border: 2rpx solid #F67A22FF;color: #F67A22FF;" class="stationItem_bottom_label_logo flex ac jc">其他</view>
<text class="flex">{{data.otherIdleRatio}} </text>
</view>
</view>
<view class="stationItem_bottom_price">{{ tool.getnum(data.unitPrice,3) }}/</view>
</view>
</view>
</view>
</template>
<script>
export default {
name: "stationItem",
props: {
data: {
type: Object,
default: () => {}
}
},
data() {
return {
};
},
created() {
console.log(this.data.tags, 'data.tags')
},
methods: {
goDetails() {
let {stationLng,stationLat,id,tags} = this.data;
let location = uni.getStorageSync('location') || {
longitude: 116.38,
latitude: 39.90,
} ;
uni.navigateTo({
url: `/ChargingStation/pages/index/index?data=${JSON.stringify({
stationLng:location.longitude ,
stationLat:location.latitude,id,tags})}`
});
}
}
}
</script>
<style scoped>
@import 'index.css';
</style>