|
|
@@ -0,0 +1,237 @@
|
|
|
+<script setup lang="ts">
|
|
|
+import router from '@/router'
|
|
|
+import { StaticUrl } from '@/config'
|
|
|
+
|
|
|
+const swiperList = ['https://www.keaitupian.cn/cjpic/frombd/2/253/1659552792/3869332496.jpg']
|
|
|
+
|
|
|
+const { opcity } = storeToRefs(useSysStore())
|
|
|
+definePage({
|
|
|
+ name: 'charge-site-detail',
|
|
|
+ islogin: true,
|
|
|
+ style: {
|
|
|
+ navigationBarTitleText: '站点详情',
|
|
|
+ navigationStyle: 'custom',
|
|
|
+ },
|
|
|
+})
|
|
|
+const activeFilter = ref('0')
|
|
|
+const filterOptions = [
|
|
|
+ { key: '0', label: '空闲(10)' },
|
|
|
+ { key: '1', label: '占用(8)' },
|
|
|
+ { key: '2', label: '离线(5)' },
|
|
|
+]
|
|
|
+// 处理筛选项点击的方法
|
|
|
+function handleFilterClick(filterKey: string) {
|
|
|
+ activeFilter.value = filterKey
|
|
|
+ console.log(`选择了: ${filterKey}`)
|
|
|
+}
|
|
|
+onMounted(() => {
|
|
|
+ opcity.value = 0
|
|
|
+})
|
|
|
+
|
|
|
+onPageScroll((e) => {
|
|
|
+ const calculatedOpacity = e.scrollTop / 100
|
|
|
+ opcity.value = Math.min(1, Math.max(0.1, calculatedOpacity))
|
|
|
+})
|
|
|
+</script>
|
|
|
+
|
|
|
+<template>
|
|
|
+ <view class="site-detail-page min-h-screen bg-#F6FAFF">
|
|
|
+ <wd-navbar
|
|
|
+ title="站点详情" :custom-style="`background-color: rgba(226, 255, 145, ${opcity})`" :bordered="false"
|
|
|
+ :z-index="999" safe-area-inset-top left-arrow fixed @click-left="router.back()"
|
|
|
+ />
|
|
|
+ <view class="site-detail-content relative">
|
|
|
+ <view>
|
|
|
+ <wd-swiper :list="swiperList" :height="260" :indicator="{ type: 'fraction' }" value-key="advertImg" />
|
|
|
+ </view>
|
|
|
+ <view class="absolute left-0 right-0 z-10 rounded-[32rpx_32rpx_0_0] bg-#FFF -bottom-100rpx">
|
|
|
+ <view class="mt-28rpx box-border px24rpx">
|
|
|
+ <view class="text-32rpx font-800">
|
|
|
+ 贵阳花果园购物中心充电站
|
|
|
+ </view>
|
|
|
+ <view class="mt-20rpx flex items-center gap-20rpx">
|
|
|
+ <view class="h-30rpx w-30rpx rounded-4rpx bg-#5BE7FF text-center text-24rpx text-#fff line-height-[30rpx]">
|
|
|
+ P
|
|
|
+ </view>
|
|
|
+ <view class="text-24rpx text-#AAA">
|
|
|
+ 充电减免2小时停车费,超出部分按每小时3元计算
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="box-border px24rpx">
|
|
|
+ <view
|
|
|
+ class="cardBg-set mt-20rpx box-border h-138rpx w-702rpx flex items-center justify-between rounded-16rpx"
|
|
|
+ :style="{ backgroundImage: `url(${StaticUrl}/site-detail-navBg.png)` }"
|
|
|
+ >
|
|
|
+ <view class="ml-24rpx">
|
|
|
+ <view class="text-28rpx text-#2B303A font-bold">
|
|
|
+ 距离您1.3km
|
|
|
+ </view>
|
|
|
+ <view class="mt-8rpx w-408rpx overflow-hidden text-ellipsis whitespace-nowrap text-24rpx text-#AAA">
|
|
|
+ 贵州省贵阳市观山湖区贵安新区群航贵州省贵阳市观山湖区贵
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="mr-24rpx">
|
|
|
+ <view>
|
|
|
+ <image class="h-40rpx w-40rpx" :src="`${StaticUrl}/site-detail-nav.png`" />
|
|
|
+ </view>
|
|
|
+ <view class="mt-8rpx text-24rpx">
|
|
|
+ 导航
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="h-100rpx" />
|
|
|
+ <view class="mt20rpx box-border px24rpx">
|
|
|
+ <view class="rounded-24rpx bg-#FFF p-24rpx">
|
|
|
+ <view class="flex items-center justify-between">
|
|
|
+ <view class="text-32rpx font-bold">
|
|
|
+ 费用信息
|
|
|
+ </view>
|
|
|
+ <view class="flex items-center" @click="router.push({ name: 'charge-detail' })">
|
|
|
+ <view class="text-24rpx text-#AAA">
|
|
|
+ 查看全部
|
|
|
+ </view>
|
|
|
+ <wd-icon name="chevron-right" size="22px" color="#AAAAAA" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="mt-24rpx rounded-16rpx bg-[linear-gradient(90deg,#FEE4C6_0%,rgba(251,235,198,0.23)_100%)] p-24rpx">
|
|
|
+ <view class="relative flex items-center justify-between">
|
|
|
+ <view class="text-28rpx font-bold">
|
|
|
+ 当前价
|
|
|
+ </view>
|
|
|
+ <view class="absolute -right-20rpx -top-20rpx">
|
|
|
+ <image class="h-52rpx w-125rpx" :src="`${StaticUrl}/site-price-tag.png`" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="mt-24rpx flex items-center justify-between">
|
|
|
+ <view>
|
|
|
+ <view class="flex items-center">
|
|
|
+ <text class="text-48rpx text-#FF6464 font-800">
|
|
|
+ 1.2026
|
|
|
+ </text>
|
|
|
+ <text class="text-24rpx">
|
|
|
+ 元/度
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
+ <view class="mt-12rpx text-28rpx">
|
|
|
+ 当前时段:
|
|
|
+ </view>
|
|
|
+ <view class="text-bold mt-16rpx text-28rpx">
|
|
|
+ 平13:00-17:00
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view>
|
|
|
+ <image class="h-182rpx w-88rpx" :src="`${StaticUrl}/site-price-icon.png`" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="mt-20rpx rounded-24rpx bg-#FFF p-24rpx">
|
|
|
+ <view class="flex items-center justify-between">
|
|
|
+ <view class="text-32rpx font-bold">
|
|
|
+ 充电终端
|
|
|
+ </view>
|
|
|
+ <view class="flex items-center">
|
|
|
+ <view class="text-24rpx text-#AAA">
|
|
|
+ 查看全部
|
|
|
+ </view>
|
|
|
+ <wd-icon name="chevron-right" size="22px" color="#AAAAAA" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="mt-28rpx flex items-center gap-20rpx">
|
|
|
+ <view
|
|
|
+ v-for="option in filterOptions" :key="option.key"
|
|
|
+ class="select-item h-60rpx w-152rpx text-28rpx line-height-[60rpx]" :class="[{ 'select-item-active': activeFilter === option.key },
|
|
|
+ ]" @click="handleFilterClick(option.key)"
|
|
|
+ >
|
|
|
+ {{ option.label }}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="mt-24rpx">
|
|
|
+ <view class="mb-20rpx flex items-center gap-20rpx rounded-16rpx bg-#F6F6F6 p-20rpx" @click="router.push({ name: 'charge-start' })">
|
|
|
+ <view
|
|
|
+ class="h-116rpx w-116rpx text-center line-height-[116rpx]"
|
|
|
+ :style="{ backgroundImage: `url(${StaticUrl}/site-status-kx.png)`, backgroundSize: 'cover', backgroundPosition: 'center' }"
|
|
|
+ >
|
|
|
+ <view class="text-24rpx font-bold">
|
|
|
+ 空闲
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view>
|
|
|
+ <view class="text-bold text-28rpx">
|
|
|
+ 101号直流充电桩
|
|
|
+ </view>
|
|
|
+ <view class="mt-4rpx text-24rpx text-#AAA">
|
|
|
+ 电类分类:直流设备
|
|
|
+ </view>
|
|
|
+ <view class="mt-4rpx text-24rpx text-#AAA">
|
|
|
+ 终端编号:52155648615
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="h-170rpx" />
|
|
|
+ <view class="fixed bottom-0 left-0 right-0 h-166rpx w-full rounded-[30rpx_30rpx_0_0] bg-#FFF">
|
|
|
+ <view
|
|
|
+ class="h-166rpx"
|
|
|
+ :style="{ backgroundImage: `url(${StaticUrl}/site-price-bg.png)`, backgroundSize: 'cover', backgroundPosition: 'center' }"
|
|
|
+ >
|
|
|
+ <view class="h-166rpx flex items-center justify-center gap-32rpx">
|
|
|
+ <view class="ml-248rpx">
|
|
|
+ <text class="text-bold text-#F5531A">
|
|
|
+ ¥
|
|
|
+ </text>
|
|
|
+ <text class="text-bold text-40rpx text-#F5531A">
|
|
|
+ 1.2099
|
|
|
+ </text>
|
|
|
+ <text class="text-24rpx text-#AAA">
|
|
|
+ 元/度
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
+ <view class="scan-qrcode">
|
|
|
+ 扫码充电
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+</template>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.cardBg-set {
|
|
|
+ background-size: cover;
|
|
|
+ background-position: center;
|
|
|
+}
|
|
|
+
|
|
|
+.select-item {
|
|
|
+ background: #FFFFFF;
|
|
|
+ border-radius: 16rpx;
|
|
|
+ color: #2B303A;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+
|
|
|
+.select-item-active {
|
|
|
+ background: #9ED605;
|
|
|
+ box-shadow: inset 0rpx 20rpx 40rpx 2rpx rgba(100, 255, 218, 0.26);
|
|
|
+ border-radius: 0rpx 16rpx 0rpx 16rpx;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #FFFFFF;
|
|
|
+}
|
|
|
+
|
|
|
+.scan-qrcode {
|
|
|
+ width: 220rpx;
|
|
|
+ height: 100rpx;
|
|
|
+ background: linear-gradient(90deg, #DBFC81 0%, #9ED605 100%);
|
|
|
+ box-shadow: inset 0rpx 6rpx 20rpx 2rpx #FFFFFF;
|
|
|
+ border-radius: 16rpx;
|
|
|
+ font-weight: 800;
|
|
|
+ font-size: 28rpx;
|
|
|
+ line-height: 112rpx;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+</style>
|