|
|
@@ -127,9 +127,9 @@ function refund() {
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
- <view class="min-h-screen from-[#E2FF91] to-[rgba(158,214,5,0)] bg-gradient-to-b">
|
|
|
+ <view class="min-h-screen" :style="{ backgroundImage: `linear-gradient(to bottom, ${useManualThemeStore().themeVars.colorTheme || '#9ED605'}, ${hexToRgba(useManualThemeStore().themeVars.colorTheme || '#9ED605', 0)})` }">
|
|
|
<wd-navbar
|
|
|
- title="" :custom-style="`background-color: rgba(226, 255, 145, ${opcity})`" :bordered="false"
|
|
|
+ title="" :custom-style="`background-color: ${hexToRgba(useManualThemeStore().themeVars.colorTheme as string, opcity)};`" :bordered="false"
|
|
|
:z-index="99" safe-area-inset-top left-arrow fixed @click-left="router.back()"
|
|
|
>
|
|
|
<template #left>
|
|
|
@@ -170,17 +170,16 @@ function refund() {
|
|
|
<view class="relative flex items-center justify-between">
|
|
|
<view class="flex items-center gap-16rpx">
|
|
|
<view class="h-40rpx w-40rpx">
|
|
|
- <image
|
|
|
- class="h-40rpx w-40rpx"
|
|
|
- :src="`${StaticUrl}/charge-mine-wallet.png`"
|
|
|
- mode="scaleToFill"
|
|
|
- />
|
|
|
+ <image class="h-40rpx w-40rpx" :src="`${StaticUrl}/charge-mine-wallet.png`" mode="scaleToFill" />
|
|
|
</view>
|
|
|
<view class="text-32rpx font-bold">
|
|
|
我的钱包
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="absolute right-[-24rpx] h-44rpx w-120rpx rounded-[22rpx_0_0_22rpx] bg-#9ED605 text-center text-28rpx text-#FFF line-height-[44rpx]" @click="refund">
|
|
|
+ <view
|
|
|
+ class="absolute right-[-24rpx] h-44rpx w-120rpx rounded-[22rpx_0_0_22rpx] bg-#9ED605 text-center text-28rpx text-#FFF line-height-[44rpx]"
|
|
|
+ @click="refund"
|
|
|
+ >
|
|
|
退还
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -223,14 +222,13 @@ function refund() {
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="h-100rpx w-100rpx">
|
|
|
- <image
|
|
|
- class="h-100rpx w-100rpx"
|
|
|
- :src="`${StaticUrl}/charge-mine-order.png`"
|
|
|
- mode="scaleToFill"
|
|
|
- />
|
|
|
+ <image class="h-100rpx w-100rpx" :src="`${StaticUrl}/charge-mine-order.png`" mode="scaleToFill" />
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="flex items-center gap-18rpx rounded-16rpx bg-#FFF px-24rpx py-28rpx" @click="router.push({ name: 'charge-voucher', params: { couponBalance: userAccountInfo?.couponBalance } })">
|
|
|
+ <view
|
|
|
+ class="flex items-center gap-18rpx rounded-16rpx bg-#FFF px-24rpx py-28rpx"
|
|
|
+ @click="router.push({ name: 'charge-voucher', params: { couponBalance: userAccountInfo?.couponBalance } })"
|
|
|
+ >
|
|
|
<view>
|
|
|
<view class="flex items-center gap-16rpx">
|
|
|
<text class="text-32rpx font-bold">
|
|
|
@@ -245,11 +243,7 @@ function refund() {
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="h-100rpx w-100rpx">
|
|
|
- <image
|
|
|
- class="h-100rpx w-100rpx"
|
|
|
- :src="`${StaticUrl}/charge-mine-voucher.png`"
|
|
|
- mode="scaleToFill"
|
|
|
- />
|
|
|
+ <image class="h-100rpx w-100rpx" :src="`${StaticUrl}/charge-mine-voucher.png`" mode="scaleToFill" />
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -258,49 +252,63 @@ function refund() {
|
|
|
我的车辆
|
|
|
</view>
|
|
|
<!-- 无车辆时显示添加提示 -->
|
|
|
- <view v-if="!defaultVehicle" class="flex items-center gap-10rpx" @click="router.push({ name: 'charge-plate-list' })">
|
|
|
+ <view
|
|
|
+ v-if="!defaultVehicle" class="flex items-center gap-10rpx"
|
|
|
+ @click="router.push({ name: 'charge-plate-list' })"
|
|
|
+ >
|
|
|
<view class="text-26rpx">
|
|
|
添加车辆,享更多权益
|
|
|
</view>
|
|
|
- <view class="h-50rpx w-50rpx rounded-50% bg-[linear-gradient(90deg,#DBFC81_0%,#9ED605_100%)] text-center text-30rpx text-#FFF font-bold line-height-[50rpx]">
|
|
|
+ <view
|
|
|
+ class="h-50rpx w-50rpx rounded-50% bg-[linear-gradient(90deg,#DBFC81_0%,#9ED605_100%)] text-center text-30rpx text-#FFF font-bold line-height-[50rpx]"
|
|
|
+ >
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 有车辆时显示车牌和管理入口 -->
|
|
|
- <view v-else class="flex items-center gap-50rpx text-26rpx text-#9ED605" @click="router.push({ name: 'charge-plate-list' })">
|
|
|
+ <view
|
|
|
+ v-else class="flex items-center gap-50rpx text-26rpx text-#9ED605"
|
|
|
+ @click="router.push({ name: 'charge-plate-list' })"
|
|
|
+ >
|
|
|
<view>{{ defaultVehicle.licensePlate }}</view>
|
|
|
<view>管理>></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="mt-24rpx flex items-center gap-20rpx">
|
|
|
<view
|
|
|
- v-for="option in filterOptions"
|
|
|
- :key="option.key"
|
|
|
+ v-for="option in filterOptions" :key="option.key"
|
|
|
class="select-item h-60rpx w-152rpx text-28rpx line-height-[60rpx]" :class="[
|
|
|
option.widthClass,
|
|
|
{ 'select-item-active': activeFilter === option.key },
|
|
|
- ]"
|
|
|
- @click="handleFilterClick(option.key)"
|
|
|
+ ]" @click="handleFilterClick(option.key)"
|
|
|
>
|
|
|
{{ option.label }}
|
|
|
</view>
|
|
|
</view>
|
|
|
<view :class="[loading ? 'pt-24rpx' : '']">
|
|
|
- <wd-skeleton theme="paragraph" animation="gradient" :loading="loading" :row-col="[{ height: '100px', width: '100%' }, { height: '100px', width: '100%' }, { height: '100px', width: '100%' }]">
|
|
|
- <view v-for="item in stationList" :key="item.stationId" class="relative mt-24rpx rounded-16rpx bg-#FFFFFF p-24rpx" @click="router.push({ name: 'charge-site-detail', params: { stationId: String(item.stationId) } })">
|
|
|
- <image
|
|
|
- class="absolute right-0 top-0 h-52rpx w-186rpx"
|
|
|
- :src="`${StaticUrl}/charge-firm-tag.png`"
|
|
|
- />
|
|
|
+ <wd-skeleton
|
|
|
+ theme="paragraph" animation="gradient" :loading="loading"
|
|
|
+ :row-col="[{ height: '100px', width: '100%' }, { height: '100px', width: '100%' }, { height: '100px', width: '100%' }]"
|
|
|
+ >
|
|
|
+ <view
|
|
|
+ v-for="item in stationList" :key="item.stationId"
|
|
|
+ class="relative mt-24rpx rounded-16rpx bg-#FFFFFF p-24rpx"
|
|
|
+ @click="router.push({ name: 'charge-site-detail', params: { stationId: String(item.stationId) } })"
|
|
|
+ >
|
|
|
+ <image class="absolute right-0 top-0 h-52rpx w-186rpx" :src="`${StaticUrl}/charge-firm-tag.png`" />
|
|
|
<view class="text-32rpx text-#2B303A font-bold">
|
|
|
{{ item.stationName }}
|
|
|
</view>
|
|
|
<view class="mt-20rpx text-24rpx text-#aaa">
|
|
|
{{ item.tips || '暂无提示' }}
|
|
|
</view>
|
|
|
- <view class="mt-24rpx flex items-center rounded-16rpx bg-[linear-gradient(90deg,rgba(170,255,235,0.3)_0%,rgba(175,247,252,0.2)_43.57%,rgba(139,232,252,0)_100%)] p-20rpx">
|
|
|
+ <view
|
|
|
+ class="mt-24rpx flex items-center rounded-16rpx bg-[linear-gradient(90deg,rgba(170,255,235,0.3)_0%,rgba(175,247,252,0.2)_43.57%,rgba(139,232,252,0)_100%)] p-20rpx"
|
|
|
+ >
|
|
|
<view class="flex items-center gap-16rpx">
|
|
|
- <view class="h-40rpx w-40rpx rounded-8rpx bg-[linear-gradient(180deg,#4FEF86_0%,#00AA3A_100%)] text-center text-28rpx text-#FFF font-bold line-height-[40rpx]">
|
|
|
+ <view
|
|
|
+ class="h-40rpx w-40rpx rounded-8rpx bg-[linear-gradient(180deg,#4FEF86_0%,#00AA3A_100%)] text-center text-28rpx text-#FFF font-bold line-height-[40rpx]"
|
|
|
+ >
|
|
|
快
|
|
|
</view>
|
|
|
<view class="flex items-center">
|
|
|
@@ -310,7 +318,9 @@ function refund() {
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="ml-40rpx flex items-center gap-16rpx">
|
|
|
- <view class="h-40rpx w-40rpx rounded-8rpx bg-[linear-gradient(180deg,#8EB1FF_0%,#3071FF_100%)] text-center text-28rpx text-#FFF font-bold line-height-[40rpx]">
|
|
|
+ <view
|
|
|
+ class="h-40rpx w-40rpx rounded-8rpx bg-[linear-gradient(180deg,#8EB1FF_0%,#3071FF_100%)] text-center text-28rpx text-#FFF font-bold line-height-[40rpx]"
|
|
|
+ >
|
|
|
慢
|
|
|
</view>
|
|
|
<view class="flex items-center">
|
|
|
@@ -319,7 +329,9 @@ function refund() {
|
|
|
</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="ml-150rpx h-44rpx w-148rpx flex items-center border-2rpx border-#3EB6F8 rounded-34rpx border-solid line-height-[44rpx]">
|
|
|
+ <view
|
|
|
+ class="ml-150rpx h-44rpx w-148rpx flex items-center border-2rpx border-#3EB6F8 rounded-34rpx border-solid line-height-[44rpx]"
|
|
|
+ >
|
|
|
<view class="w-44rpx rounded-[34rpx_0rpx_0rpx_34rpx] bg-#3EB6F8 text-center">
|
|
|
<wd-icon name="location" size="16px" color="#FFF" />
|
|
|
</view>
|
|
|
@@ -338,10 +350,7 @@ function refund() {
|
|
|
元/度
|
|
|
</text>
|
|
|
</view>
|
|
|
- <image
|
|
|
- class="absolute h-60rpx w-365rpx -top-30rpx"
|
|
|
- :src="`${StaticUrl}/to-charge-tag.png`"
|
|
|
- />
|
|
|
+ <image class="absolute h-60rpx w-365rpx -top-30rpx" :src="`${StaticUrl}/to-charge-tag.png`" />
|
|
|
</view>
|
|
|
<view class="text-24rpx text-#2B303A">
|
|
|
{{ item.peakValue }}:{{ item.peakTime }}
|
|
|
@@ -364,17 +373,19 @@ function refund() {
|
|
|
padding: 24rpx;
|
|
|
margin-top: 24rpx;
|
|
|
}
|
|
|
-.select-item{
|
|
|
-background: #FFFFFF;
|
|
|
-border-radius: 16rpx;
|
|
|
-color: #2B303A;
|
|
|
-text-align: 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;
|
|
|
+
|
|
|
+.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;
|
|
|
}
|
|
|
</style>
|