|
@@ -61,7 +61,7 @@ function switchTab(tab: string) {
|
|
|
// 计算样式的方法
|
|
// 计算样式的方法
|
|
|
function getTabStyle(tab: string) {
|
|
function getTabStyle(tab: string) {
|
|
|
return activeTab.value === tab
|
|
return activeTab.value === tab
|
|
|
- ? { background: '#9ED605', color: '#FFF' }
|
|
|
|
|
|
|
+ ? { background: 'var(--them-color)', color: '#FFF' }
|
|
|
: {}
|
|
: {}
|
|
|
}
|
|
}
|
|
|
async function getDeviceInfo(connectorCode: string) {
|
|
async function getDeviceInfo(connectorCode: string) {
|
|
@@ -92,9 +92,9 @@ async function scanCode() {
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
<template>
|
|
|
- <view class="charge-detail-page min-h-screen bg-[linear-gradient(90deg,#F1FECC_0%,#EAFEFA_100%)]">
|
|
|
|
|
|
|
+ <view class="charge-detail-page min-h-screen bg-[linear-gradient(181deg,var(--them-color)_0%,#F5F7FB_100%)]">
|
|
|
<wd-navbar
|
|
<wd-navbar
|
|
|
- title="充电详情" custom-style="background: linear-gradient(90deg, #F1FECC 0%, #EAFEFA 100%);"
|
|
|
|
|
|
|
+ title="充电详情" custom-style="background: var(--them-color);"
|
|
|
:bordered="false" :z-index="999" safe-area-inset-top left-arrow fixed @click-left="router.back()"
|
|
:bordered="false" :z-index="999" safe-area-inset-top left-arrow fixed @click-left="router.back()"
|
|
|
/>
|
|
/>
|
|
|
<view :style="{ paddingTop: `${(Number(statusBarHeight) || 44) + MenuButtonHeight + 12}px` }" />
|
|
<view :style="{ paddingTop: `${(Number(statusBarHeight) || 44) + MenuButtonHeight + 12}px` }" />
|
|
@@ -104,7 +104,7 @@ async function scanCode() {
|
|
|
<view class="text-32rpx font-bold">
|
|
<view class="text-32rpx font-bold">
|
|
|
{{ priceDetail?.stationName }}
|
|
{{ priceDetail?.stationName }}
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="mt-16rpx text-24rpx text-#AAA">
|
|
|
|
|
|
|
+ <view class="mt-16rpx text-24rpx text-#fff">
|
|
|
{{ priceDetail?.tips || '--' }}
|
|
{{ priceDetail?.tips || '--' }}
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -114,7 +114,7 @@ async function scanCode() {
|
|
|
</view>
|
|
</view>
|
|
|
<view class="items-centerrounded-16rpx mt-20rpx flex bg-#FFF p-20rpx">
|
|
<view class="items-centerrounded-16rpx mt-20rpx flex bg-#FFF p-20rpx">
|
|
|
<view class="w-230rpx text-center">
|
|
<view class="w-230rpx text-center">
|
|
|
- <view class="text-32rpx text-#9ED605 font-bold">
|
|
|
|
|
|
|
+ <view class="text-32rpx text-[var(--them-color)] font-bold">
|
|
|
{{ connectorsDetail?.idleCount }}
|
|
{{ connectorsDetail?.idleCount }}
|
|
|
</view>
|
|
</view>
|
|
|
<view class="text-24rpx font-500">
|
|
<view class="text-24rpx font-500">
|
|
@@ -123,7 +123,7 @@ async function scanCode() {
|
|
|
</view>
|
|
</view>
|
|
|
<view class="h-76rpx w-2rpx bg-#F0F0F0" />
|
|
<view class="h-76rpx w-2rpx bg-#F0F0F0" />
|
|
|
<view class="w-230rpx text-center">
|
|
<view class="w-230rpx text-center">
|
|
|
- <view class="text-32rpx text-#9ED605 font-bold">
|
|
|
|
|
|
|
+ <view class="text-32rpx text-[var(--them-color)] font-bold">
|
|
|
{{ connectorsDetail?.occupiedCount }}
|
|
{{ connectorsDetail?.occupiedCount }}
|
|
|
</view>
|
|
</view>
|
|
|
<view class="text-24rpx font-500">
|
|
<view class="text-24rpx font-500">
|
|
@@ -132,7 +132,7 @@ async function scanCode() {
|
|
|
</view>
|
|
</view>
|
|
|
<view class="h-76rpx w-2rpx bg-#F0F0F0" />
|
|
<view class="h-76rpx w-2rpx bg-#F0F0F0" />
|
|
|
<view class="w-230rpx text-center">
|
|
<view class="w-230rpx text-center">
|
|
|
- <view class="text-32rpx text-#9ED605 font-bold">
|
|
|
|
|
|
|
+ <view class="text-32rpx text-[var(--them-color)] font-bold">
|
|
|
{{ connectorsDetail?.offlineCount }}
|
|
{{ connectorsDetail?.offlineCount }}
|
|
|
</view>
|
|
</view>
|
|
|
<view class="text-24rpx font-500">
|
|
<view class="text-24rpx font-500">
|
|
@@ -160,7 +160,7 @@ async function scanCode() {
|
|
|
<view
|
|
<view
|
|
|
v-for="item in priceDetail?.priceList" :key="item.timePeriod"
|
|
v-for="item in priceDetail?.priceList" :key="item.timePeriod"
|
|
|
class="mt-20rpx rounded-16rpx bg-#FFF p-24rpx"
|
|
class="mt-20rpx rounded-16rpx bg-#FFF p-24rpx"
|
|
|
- :style="{ border: item.currentPeriod ? '2rpx solid #9ED605' : '' }"
|
|
|
|
|
|
|
+ :style="{ border: item.currentPeriod ? '2rpx solid var(--them-color)' : '' }"
|
|
|
>
|
|
>
|
|
|
<view class="relative flex items-center justify-between">
|
|
<view class="relative flex items-center justify-between">
|
|
|
<view class="flex items-center gap-20rpx">
|
|
<view class="flex items-center gap-20rpx">
|
|
@@ -175,7 +175,7 @@ async function scanCode() {
|
|
|
</view>
|
|
</view>
|
|
|
<view
|
|
<view
|
|
|
v-if="item.currentPeriod"
|
|
v-if="item.currentPeriod"
|
|
|
- class="absolute h-40rpx w-152rpx rounded-[0_16rpx_0_16rpx] bg-[linear-gradient(99deg,#D2F670_0%,#9ED605_100%)] text-center text-28rpx text-#FFF font-600 -right-24rpx -top-24rpx"
|
|
|
|
|
|
|
+ class="absolute h-40rpx w-152rpx rounded-[0_16rpx_0_16rpx] bg-[linear-gradient(181deg,var(--them-color)_0%,#F5F7FB_100%)] text-center text-28rpx text-#FFF font-600 -right-24rpx -top-24rpx"
|
|
|
>
|
|
>
|
|
|
当前时段
|
|
当前时段
|
|
|
</view>
|
|
</view>
|
|
@@ -229,7 +229,7 @@ async function scanCode() {
|
|
|
</view>
|
|
</view>
|
|
|
<view class="h-180rpx" />
|
|
<view class="h-180rpx" />
|
|
|
<view
|
|
<view
|
|
|
- class="fixed bottom-66rpx left-24rpx h-100rpx w-702rpx rounded-16rpx bg-[linear-gradient(90deg,#DBFC81_0%,#9ED605_100%)] text-center text-28rpx font-800 line-height-[100rpx] shadow-[inset_0rpx_6rpx_20rpx_2rpx_#FFFFFF]"
|
|
|
|
|
|
|
+ class="fixed bottom-66rpx left-24rpx h-100rpx w-702rpx rounded-16rpx bg-[var(--them-color)] text-center text-28rpx font-800 line-height-[100rpx] shadow-[inset_0rpx_6rpx_20rpx_2rpx_#FFFFFF]"
|
|
|
@click="scanCode"
|
|
@click="scanCode"
|
|
|
>
|
|
>
|
|
|
扫码充电
|
|
扫码充电
|