From 87697b7ac9b241cfcec5e3599b9e4691425ffebb Mon Sep 17 00:00:00 2001
From: shilei <965026003@qq.com>
Date: Thu, 31 Oct 2024 17:23:33 +0800
Subject: [PATCH] =?UTF-8?q?10.31=20=E4=BF=AE=E6=94=B9=E6=89=AB=E7=A0=81?=
=?UTF-8?q?=E7=A8=8B=E5=BA=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env | 7 +-
common/config/config.js | 23 +-
common/request/request.js | 9 +-
.../piaoyi-text-animate3.vue | 166 +++++
.../search-destination/search-destination.vue | 70 ++-
package.json | 19 +-
pages.json | 18 +-
pages/index/index.scss | 392 ++++++++++++
pages/index/index.vue | 588 ++++--------------
pages/index/recharge/recharge.vue | 14 +-
pages/order/chargorder/detailInf/detail.vue | 263 ++++++++
.../order/chargorder/detailInf/detailInf.vue | 329 +++++-----
pages/order/chargorder/order.vue | 18 +-
pages/userCenter/setting/setting.vue | 2 +-
pages/userCenter/userCenter.vue | 234 +++----
pagesCenter/accountBalance/accountBalance.vue | 45 +-
pagesCenter/billingPage/billingPage.vue | 12 +-
pagesCenter/login/enter.vue | 7 +-
pagesCenter/pay/index.vue | 2 +
sheep/platform/pay.js | 2 +-
20 files changed, 1392 insertions(+), 828 deletions(-)
create mode 100644 components/piaoyi-text-animate3/piaoyi-text-animate3.vue
create mode 100644 pages/index/index.scss
create mode 100644 pages/order/chargorder/detailInf/detail.vue
diff --git a/.env b/.env
index 6294f13..5984ec7 100644
--- a/.env
+++ b/.env
@@ -2,12 +2,13 @@
SHOPRO_VERSION = v1.8.3
# 后端接口 - 正式环境(通过 process.env.NODE_ENV 非 development)
-SHOPRO_BASE_URL = https://www.zzpower.net
+ SHOPRO_BASE_URL = https://www.zzpower.net
+# SHOPRO_BASE_URL = http://192.168.2.14:48080
# 后端接口 - 测试环境(通过 process.env.NODE_ENV = development)
-# SHOPRO_DEV_BASE_URL = http://192.168.2.12:48080
+ SHOPRO_DEV_BASE_URL = http://192.168.2.14:48080
# SHOPRO_DEV_BASE_URL = http://2a2b9f7b.r11.cpolar.top
- SHOPRO_DEV_BASE_URL = https://www.zzpower.net
+# SHOPRO_DEV_BASE_URL = https://www.zzpower.net
# 后端接口前缀(一般不建议调整)
SHOPRO_API_PATH = /app-api
diff --git a/common/config/config.js b/common/config/config.js
index b9057e1..a38f73f 100644
--- a/common/config/config.js
+++ b/common/config/config.js
@@ -5,8 +5,8 @@ const appname = "换电商用车";
const profiles = {
dev: {
- baseURL: "https://www.zzpower.net/",
- // baseURL: "http://192.168.2.12:48080/",
+ // baseURL: "https://www.zzpower.net/",
+ baseURL: "http://192.168.2.14:48080/",
// baseURL: "http://2a2b9f7b.r11.cpolar.top/",
api_miniapp: "service-miniapp/",
api_baseinfo: "service-baseinfo/",
@@ -14,6 +14,7 @@ const profiles = {
},
//服务器生产环境地址
prod: {
+ // baseURL: "http://192.168.2.14:48080/",
baseURL: "https://www.zzpower.net/",
api_miniapp: "service-miniapp/",
api_baseinfo: "service-baseinfo/",
@@ -30,24 +31,6 @@ const profiles = {
style:0,
},
- //
- qinou: {
- baseURL: "https://www.zzpower.net/",
- api_miniapp: "service-miniapp/",
- api_baseinfo: "service-baseinfo/",
- api_pay: "service-pay/",
- appIcon: "",
- facilitator: '',
- address: '',
- powerProtocol: '',
- iPhone: '17757285870',
- email: '',
- api_recognition:'service-openapi/',
- api_userinfo: "service-userinfo/",
- mqtt:'',
- style:1,
- },
-
};
// 服务器域名
diff --git a/common/request/request.js b/common/request/request.js
index 132347f..19011f6 100644
--- a/common/request/request.js
+++ b/common/request/request.js
@@ -27,9 +27,12 @@ const request = (options) => {
uni.removeStorageSync("teamId");
uni.removeStorageSync("realNameAuthFlag");
uni.removeStorageSync("version");
- uni.navigateBack({
- delta: 1
- });
+ // uni.navigateBack({
+ // delta: 1
+ // });
+ uni.reLaunch({
+ url: '/pagesCenter/login/enter'
+ })
}
});
diff --git a/components/piaoyi-text-animate3/piaoyi-text-animate3.vue b/components/piaoyi-text-animate3/piaoyi-text-animate3.vue
new file mode 100644
index 0000000..729eee9
--- /dev/null
+++ b/components/piaoyi-text-animate3/piaoyi-text-animate3.vue
@@ -0,0 +1,166 @@
+
+
+
+
+
+
+
+
+
diff --git a/components/search-destination/search-destination.vue b/components/search-destination/search-destination.vue
index c795b81..4388357 100644
--- a/components/search-destination/search-destination.vue
+++ b/components/search-destination/search-destination.vue
@@ -47,6 +47,41 @@
+
+
+
+
+
+
+ 导航
+
+
+
+
+
+
+ 营业中
+
+ {{searchStationName}}
+
+
+
+
+ {{searchAreaName}}
+
+
+ {{searchDistance == null? '--': searchDistance.toFixed(2) }}km
+
+
+
+
+ 查询详情
+
+
+
+
+
+
@@ -74,7 +109,7 @@
})
const popup_mean = ref(null)
-
+ const bottom_popup = ref(false)
const bdlongitude = ref()
const bdlatitude = ref()
const stationName = ref()
@@ -87,7 +122,7 @@
const searchStationName = ref()
const searchAreaName = ref()
- const searchDistance = ref()
+ const searchDistance = ref(null)
const showPoints = reactive({
pointList: []
@@ -131,6 +166,10 @@
}
+ const handle_close_popup = () => {
+ bottom_popup.value.close()
+ }
+
const handle_maps_now = async () => {
let data = {
latitude: latitude.value,
@@ -318,8 +357,8 @@
searchDistance.value = showInf[0].distance
searchNo.value = showInf[0].stationNo
searchID.value = showInf[0].id
- // popup_mean.value.open('bottom')
- showToast.value = !showToast.value
+ bottom_popup.value.open('bottom')
+ // showToast.value = !showToast.value
}
const handle_open = (showInf) => {
@@ -410,4 +449,27 @@
.scrollView {
height: calc(100vh - 100rpx);
}
+
+ .line_tops {
+ width: 20%;
+ height: 10rpx;
+ margin: 20rpx auto;
+ background: #e5e5e5;
+ border-radius: 5rpx;
+ }
+
+ .position_right_tops {
+ width: 100rpx;
+ height: 100rpx;
+ background: #2bbd69;
+ border-radius: 50%;
+ position: absolute;
+ right: 20rpx;
+ top: 10rpx;
+ color: #fff;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-evenly;
+ align-items: center;
+ }
\ No newline at end of file
diff --git a/package.json b/package.json
index 0fb2495..a4c4cd6 100644
--- a/package.json
+++ b/package.json
@@ -1,21 +1,18 @@
{
- "id": "zw-tabbar",
- "displayName": "zw-tabbar自定义tabbar",
- "version": "1.1",
- "description": "由于原生Tabbar不支持中间凸起显示大图标和灵活的自定义,所以弄了个通用组件方便使用。",
+ "id": "piaoyi-text-animate3",
+ "name": "动画特效-华为充电动画",
+ "displayName": "动画特效-华为充电动画",
+ "version": "1.0.0",
+ "description": "动画特效-华为充电动画,全端兼容,动图是压缩过的所以看起来模糊,实际效果是正常的",
"keywords": [
- "tabbar",
- "底部选项卡",
- "底部菜单"
+ "动画特效",
+ "华为充电动画",
+ "全端兼容"
],
"dcloudext": {
"category": [
"前端组件",
"通用组件"
]
- },
- "name": "zw-tabbar自定义tabbar",
- "scripts": {
- "dev:mp-weixin": "pnpm run dev -- --miniprogram mp-weixin"
}
}
\ No newline at end of file
diff --git a/pages.json b/pages.json
index c7ce654..f9ee339 100644
--- a/pages.json
+++ b/pages.json
@@ -31,8 +31,9 @@
{
"path": "pages/userCenter/userCenter",
"style": {
- "navigationBarTitleText": "个人中心",
- "navigationBarBackgroundColor": "#E4EFFF"
+ "navigationBarTitleText": "",
+ "navigationBarBackgroundColor": "#2cc06c",
+ "navigationBarTextStyle": "white"
}
},
{
@@ -129,6 +130,14 @@
"enablePullDownRefresh": false
}
+ },
+ {
+ "path": "pages/order/chargorder/detailInf/detail",
+ "style": {
+ "navigationBarTitleText": "充电单详情",
+ "enablePullDownRefresh": false
+ }
+
},
{
@@ -282,14 +291,15 @@
"backgroundColor": "#ffffff",
"color": "#999999",
"selectedColor": "#2a82e4",
- "list": [{
+ "list": [
+ {
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "static/tabbar/home.png",
"selectedIconPath": "static/tabbar/home_hl.png"
},
{
- "pagePath": "pages/userCenter/userCenter",
+ "pagePath": "pages/userCenter/about/about",
"text": "个人中心",
"iconPath": "static/tabbar/me.png",
"selectedIconPath": "static/tabbar/me_hl.png"
diff --git a/pages/index/index.scss b/pages/index/index.scss
new file mode 100644
index 0000000..c16a9c2
--- /dev/null
+++ b/pages/index/index.scss
@@ -0,0 +1,392 @@
+.mainBg {
+ width: 100vw;
+ position: fixed;
+ top: 0;
+ height: 100vh;
+ background: linear-gradient(180deg, #4C91FF 0%, #3698FD 11.35%, #73CBFD 21.65%, #94EBFF 37.35%, #EAF4F8 97.71%);
+ z-index: -1;
+ }
+
+ .change_version {
+ display: flex;
+ align-items: center;
+ color: #000;
+ }
+
+ .tab_headers {
+ line-height: 80rpx;
+ width: 100%;
+ text-align: center;
+ color: #fff;
+ font-size: 14px;
+ font-weight: 600;
+ }
+
+ .topNav {
+ position: absolute;
+ top: 180rpx;
+ left: 50%;
+ transform: translateX(-50%);
+ z-index: 999;
+ background: #fff;
+ width: 90%;
+ display: flex;
+ align-items: center;
+ border-radius: 15rpx;
+ }
+ .notice_position {
+ // width: 100%;
+ position: absolute;
+ top: 280rpx;
+ left: 50%;
+ transform: translateX(-50%);
+ z-index: 999;
+ width: 90%;
+ }
+
+ .posi_imgs {
+ position: absolute;
+ // background: #fff;
+ // padding: 5rpx;
+ right: 30rpx;
+ bottom: -10rpx;
+ z-index: 999;
+ }
+
+ .cu-bar {
+ color: #fff;
+
+ .search-form {
+ // width: 300rpx;
+ background-color: #E2E2E2;
+ margin: unset;
+ }
+
+ .searchPoint {
+ // width: 500rpx;
+ height: 36rpx;
+ }
+ }
+
+ .tabList {
+ .stateStyle {
+ padding: 8rpx 16rpx;
+ color: #808A96;
+ background-color: #E2E2E2;
+ margin-left: 16rpx;
+ font-size: 28rpx;
+ }
+ }
+
+
+
+
+ .titleName {
+ color: #333333;
+ font-weight: 400;
+ font-size: 36rpx;
+ // letter-spacing: 1px;
+ }
+
+ .addressInf {
+ width: 442rpx;
+ color: #666666;
+ font-size: 28rpx;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ overflow: hidden;
+ // margin:16rpx 0 0rpx 0;
+ }
+
+ .listInf {
+ width: 490rpx;
+ flex-direction: column;
+ justify-content: space-between;
+ height: 178rpx;
+ }
+
+ .mapBtn {
+ height: 178rpx;
+ align-items: flex-end;
+ // background-color: greenyellow;
+ }
+
+ .goMap {
+ width: 24rpx;
+ height: 24rpx;
+ background: url('/static/home/goMap.svg') no-repeat;
+ background-size: 100% 100%;
+ }
+
+ .moreLocal {
+ margin-left: 10rpx;
+ }
+
+ .regionName {
+ letter-spacing: 3rpx;
+ }
+
+ .stateImg {
+ width: 164rpx;
+ height: 164rpx;
+ background-color: #eee;
+ border-radius: 8rpx;
+
+ .titleImg {
+ border-radius: 8rpx;
+ }
+ }
+
+
+ .searchImg {
+ width: 72rpx;
+ height: 72rpx;
+ background: url('../../static/home/search.svg') no-repeat;
+ background-size: 100% 100%;
+ }
+
+ .chargeImg {
+ width: 72rpx;
+ height: 72rpx;
+ background: url('../../static/home/pay.svg') no-repeat;
+ background-size: 100% 100%;
+ }
+
+ .subscribeImg {
+ width: 72rpx;
+ height: 72rpx;
+ background: url('../../static/home/subscribe.svg') no-repeat;
+ background-size: 100% 100%;
+ position: relative;
+
+ .cu-tag {
+ background-color: #F2634F;
+ font-size: 24rpx;
+ font-weight: 400;
+ }
+
+ .cu-tag.badge {
+ border: 1px solid #fff;
+ right: -17rpx;
+ height: 34rpx;
+ }
+
+ }
+
+ .wrap {
+ width: 100%;
+ }
+
+
+ .stateFlex {
+ flex: 1;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ margin-left: 16rpx;
+ }
+
+ .cu-card>.cu-item {
+ margin: 0 32rpx 16rpx 32rpx;
+ }
+
+ .stateImg .cu-tag.badge {
+ width: 100rpx;
+ height: 40rpx;
+ top: 0rpx;
+ left: 0rpx;
+ right: 90rpx;
+ padding: 8rpx 0rpx;
+ background-image: linear-gradient(to right bottom, #A5C7FF, #2690FB);
+ border-radius: 4px;
+ font-size: 24rpx;
+ text-align: center;
+ }
+
+ .bg-blue {
+ background-image: linear-gradient(to right bottom, #A5C7FF, #2690FB);
+ }
+
+ .stateImg .cu-tag .bgPlane {
+ padding: 0rpx 8rpx;
+ background: rgba(255, 255, 255, 0);
+ }
+
+ .column {
+ display: flex;
+ flex-direction: column;
+ }
+
+ .card-nav {
+ padding: 32rpx;
+
+ .navStyle {
+ border-radius: 16rpx;
+ }
+ }
+
+ .swiperCard {
+ margin: 16rpx 32rpx 0rpx 32rpx;
+ position: relative;
+
+
+ }
+
+ .cu-bar .search-form {
+ background-color: #fff;
+ }
+
+ .cu-card .cu-item,
+ .radius {
+ border-radius: 16rpx;
+ }
+
+ .none-box {
+ width: 100vw;
+ display: flex;
+ justify-content: center;
+
+ .image-none {
+ width: 320rpx;
+ height: 452rpx;
+ }
+ }
+
+ .battery-num {
+ width: 20rpx;
+ height: 32rpx;
+ }
+
+ .bat-use {
+ font-size: 32rpx;
+ font-weight: 400;
+ letter-spacing: 1px;
+ color: #333333;
+ margin-left: 16rpx;
+ line-height: 28rpx;
+ }
+
+ .bat-total {
+ font-size: 28rpx;
+ font-weight: 400;
+ letter-spacing: 1px;
+ color: #333333;
+ line-height: 26rpx;
+ }
+
+ .card-box {
+ padding: 32rpx;
+ box-shadow: -2px 2px 8px 0px #7AA7D026;
+
+ }
+
+ .planeIcon {
+ width: 32rpx;
+ height: 32rpx;
+ margin-right: 12rpx;
+ }
+
+ .planeNum {
+ font-size: 28rpx;
+ line-height: 28rpx;
+ font-weight: 400;
+ color: #4C91FF;
+
+ }
+
+ .panel {
+ padding: 32rpx;
+ }
+
+ .notification {
+ margin-top: 16rpx;
+
+ ::v-deep .u-notice-bar {
+ border-radius: 16rpx;
+ }
+
+ ::v-deep .u-icon text {
+ color: #808080 !important;
+ }
+ }
+
+ .section {
+ // height: 100%;
+ }
+
+ .map_content {
+ position: relative;
+
+ .marker_map {
+ height: 100vh;
+ }
+ }
+
+ .circle {
+ width: 80rpx;
+ height: 80rpx;
+ border-radius: 40rpx;
+ // background-image: url("https://picsum.photos/40/40");
+ background-size: 100% 100%;
+ margin: 10rpx 20rpx;
+ }
+
+ .scan_views {
+ width: 100%;
+ position: absolute;
+ bottom: 100rpx;
+ left: 0;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+
+ .left_cicle,
+ .right_cicle {
+ width: 70rpx;
+ height: 70rpx;
+ border-radius: 50%;
+ background-color: #fff;
+ margin: 0 30rpx;
+ }
+
+ .scan_btns {
+ color: #fff;
+ font-size: 14px;
+ width: 240rpx;
+ line-height: 80rpx;
+ border-radius: 40rpx;
+ text-align: center;
+ background: linear-gradient(to right, #38d07a, #24b35f);
+ }
+ }
+
+ .public_flex {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+
+ .position_right_order {
+ position: absolute;
+ top: 360rpx;
+ right: 5%;
+ width: 80rpx;
+ // height: 400rpx;
+ padding: 20rpx 0;
+ background: #fff;
+ border-radius: 10rpx;
+ z-index: 999;
+ display: flex;
+ flex-direction: column;
+ font-size: 12px;
+ justify-content: space-evenly;
+ align-items: center;
+
+ >view {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ margin: 15rpx 0;
+ }
+ }
\ No newline at end of file
diff --git a/pages/index/index.vue b/pages/index/index.vue
index b4eae84..b02e1ee 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,70 +1,62 @@
-
-
-
-
-
-
- 切换版本
-
+
+
+
+
-
-
-
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+ 换电
+
+
+
+ 充电
-
-
+
+
+ 预约
-
-
-
-
-
-
-
- 换电单
-
-
-
- 充电单
-
-
-
- {{recordNum}}
-
- 预约单
-
-
-
-
+
-
+
+
+
+ 扫码充电/换电
+
+
+ 请登录
+
+
+
+
+
@@ -75,12 +67,8 @@
-
-
-
-
\ No newline at end of file
diff --git a/pages/index/recharge/recharge.vue b/pages/index/recharge/recharge.vue
index 4fdf52c..3aabff0 100644
--- a/pages/index/recharge/recharge.vue
+++ b/pages/index/recharge/recharge.vue
@@ -5,14 +5,14 @@
{{item.value == '自定义'?'': '¥'}}{{item.value}}
- 确认充值
+
{
+ console.log(res,'创建订单')
if (res.data.code == 0) {
handle_pay_money(res.data.data)
}
@@ -275,7 +276,7 @@
}
.textBlue {
- color: #4C91FF;
+ color: #27b764;
}
.style {
@@ -283,4 +284,11 @@
font-size: 15px;
text-align: center;
}
+
+ .bottom_submit {
+ background: linear-gradient(to right bottom, #34cb75, #27b764);
+ border-radius: 40rpx;
+ font-size: 14px;
+ color: #fff;
+ }
\ No newline at end of file
diff --git a/pages/order/chargorder/detailInf/detail.vue b/pages/order/chargorder/detailInf/detail.vue
new file mode 100644
index 0000000..ad983b1
--- /dev/null
+++ b/pages/order/chargorder/detailInf/detail.vue
@@ -0,0 +1,263 @@
+
+
+
+
+
+
+ 初始化
+
+
+ 充电中
+
+
+ 启动充电失败
+
+
+ 结束充电
+
+
+ 待支付
+
+
+ (已完成)支付完成
+
+
+ 支付失败
+
+
+ 已退款
+
+
+ 已挂起
+
+
+ 已关闭
+
+
+
+
+
+
+
+ {{detail.list.stationName==null?'--':detail.list.stationName}}
+
+
+ 场站编码
+ {{detail.list.stationNo==null?'--':detail.list.stationNo}}
+
+
+ 充电订单号
+ {{detail.list.chargeOrder==null?'--':detail.list.chargeOrder}}
+
+
+ 车牌号
+ {{detail.list.vehicleNo==null?'--':detail.list.vehicleNo}}
+
+
+ 车辆vin
+ {{detail.list.vin==null?'--':detail.list.vin}}
+
+
+
+ 总电量
+ {{detail.list.totalElectricity==null?'0':detail.list.totalElectricity}}kW·h
+
+
+
+ 平台服务费
+ {{detail.list.cloudTotalFee==null?'0':detail.list.cloudTotalFee / 100}}元
+
+
+ 电池服务费
+ {{detail.list.batTotalFee==null?'0':detail.list.batTotalFee / 100}}元
+
+
+ 充电服务总费用
+ {{detail.list.chargeTotalFee==null?'0':detail.list.chargeTotalFee / 100}}元
+
+
+
+ 费用合计
+ {{detail.list.totalFee==null?'0':detail.list.totalFee / 100}}元
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/order/chargorder/detailInf/detailInf.vue b/pages/order/chargorder/detailInf/detailInf.vue
index 265b0af..8e0e47c 100644
--- a/pages/order/chargorder/detailInf/detailInf.vue
+++ b/pages/order/chargorder/detailInf/detailInf.vue
@@ -1,164 +1,99 @@
-
-
-
-
-
- 初始化
-
-
- 充电中
-
-
- 启动充电失败
-
-
- 结束充电
-
-
- 待支付
-
-
- (已完成)支付完成
-
-
- 支付失败
-
-
- 已退款
-
-
- 已挂起
-
-
- 已关闭
-
-
-
+
+
+
+
+
+ 剩余时长(分)
+ {{detail.list.remainingChargingTime || 0 }}
+
+
+ 已充时长(分)
+ {{detail.list.chargingTime || 0}}
-
-
-
- {{detail.list.stationName==null?'--':detail.list.stationName}}
-
-
- 场站编码
- {{detail.list.stationNo==null?'--':detail.list.stationNo}}
-
-
- 充电订单号
- {{detail.list.chargeOrder==null?'--':detail.list.chargeOrder}}
-
-
- 车牌号
- {{detail.list.vehicleNo==null?'--':detail.list.vehicleNo}}
-
-
- 车辆vin
- {{detail.list.vin==null?'--':detail.list.vin}}
-
-
-
- 总电量
- {{detail.list.totalElectricity==null?'0':detail.list.totalElectricity}}kW·h
-
-
-
- 平台服务费
- {{detail.list.cloudTotalFee==null?'0':detail.list.cloudTotalFee / 100}}元
-
-
- 电池服务费
- {{detail.list.batTotalFee==null?'0':detail.list.batTotalFee / 100}}元
-
-
- 充电服务总费用
- {{detail.list.chargeTotalFee==null?'0':detail.list.chargeTotalFee / 100}}元
-
-
-
-
-
-
-
- 费用合计
- {{detail.list.totalFee==null?'0':detail.list.totalFee / 100}}元
-
-
+
+
+ 已充电量(度)
+ {{detail.list.chargingCapacity || 0}}
+
+
+ 充电费用(元)
+ {{detail.list.totalFee / 100 || 0}}
+
+
+ 更多详细信息
+
-
-
-
- {{detail.list.stationName==null?'--':detail.list.stationName}}
-
-
- 订单号
- {{charging_data.chargeOrder==null?'--':charging_data.chargeOrder}}
-
-
- 枪号
- {{ charging_data.chargerGunNo==null?'--':charging_data.chargerGunNo}}
-
-
- 当前soc
- {{ charging_data.currentSoc==null?'--':charging_data.currentSoc}}
-
-
- 当前电压
- {{ charging_data.currentVoltage==null?'--':charging_data.currentVoltage}}
-
-
-
- 当前电流
- {{ charging_data.currentElectrical==null?'--':charging_data.currentElectrical}}
-
-
-
- 剩余充电时间
-
- {{ charging_data.remainingChargingTime==null?'--':charging_data.remainingChargingTime}} (min)
-
-
-
- 充电时长
- {{ charging_data.chargingTime==null?'--':charging_data.chargingTime}} (min)
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{detail.list.stationName==null?'--':detail.list.stationName}}
+
+
+ 场站编码
+ {{detail.list.stationNo==null?'--':detail.list.stationNo}}
+
+
+ 充电订单号
+ {{detail.list.chargeOrder==null?'--':detail.list.chargeOrder}}
+
+
+ 车牌号
+ {{detail.list.vehicleNo==null?'--':detail.list.vehicleNo}}
+
+
+ 车辆vin
+ {{detail.list.vin==null?'--':detail.list.vin}}
+
+
+
+ 总电量
+
+ {{detail.list.totalElectricity==null?'0':detail.list.totalElectricity}}kW·h
+
+
+
+ 平台服务费
+
+ {{detail.list.cloudTotalFee==null?'0':detail.list.cloudTotalFee / 100}}元
+
+
+
+ 电池服务费
+ {{detail.list.batTotalFee==null?'0':detail.list.batTotalFee / 100}}元
+
+
+
+ 充电服务总费用
+
+ {{detail.list.chargeTotalFee==null?'0':detail.list.chargeTotalFee / 100}}元
+
+
+
+ 费用合计
+
+ {{detail.list.totalFee==null?'0':detail.list.totalFee / 100}}元
+
+
-
-
-
-
-
-
-
+
@@ -180,19 +115,35 @@
} from '@/stores/counter.js';
const isDetail = useCounterStore()
-
+ const now_ingtext = ref()
const detail = reactive({
- list: []
+ list: {
+ chargingTime: null,
+ chargingCapacity: null,
+ remainingChargingTime: null,
+ totalFee: null,
+ vehicleNo: null,
+ stationName: null,
+ stationNo: null,
+ chargeOrder: null,
+ vin: null,
+ totalElectricity: null,
+ cloudTotalFee: null,
+ batTotalFee: null,
+ chargeTotalFee: null
+ }
})
const timer = ref(null)
const isorderStatus = ref(false)
+ const more_popup = ref(false)
onLoad((options) => {
var station = JSON.parse(options.details);
detail.list = station
// console.log(detail.list, '订单详情');
- if (station.orderStatus == 1) {
- isorderStatus.value = true
- }
+ // if (station.orderStatus == 1) {
+ // isorderStatus.value = true
+ // }
+ queryRealTimeOrder()
timer.value = setInterval(() => {
queryRealTimeOrder()
}, 5000)
@@ -221,7 +172,8 @@
method: 'GET'
}).then(res => {
// console.log(res, '==========>');
- charging_data.value = res.data.data
+ detail.list = res.data.data
+
if (res.data.data.orderStatus == 1) {
isorderStatus.value = true
} else if (res.data.data.orderStatus == 3) {
@@ -245,6 +197,11 @@
})
}
+ const handle_more_info = () => {
+ console.log('1');
+ more_popup.value.open('bottom')
+ }
+
const finish_charg = async () => {
let config_url = ''
if (uni.getStorageSync("version") == '个人版') {
@@ -253,7 +210,7 @@
config_url = 'app-api/cloud/team/endCharge/'
}
await uni.$request({
- url: config.baseUrl + config_url + charging_data.value.id,
+ url: config.baseUrl + config_url + detail.list.id,
method: 'GET'
}).then(res => {
// console.log(res, '==========>');
@@ -288,7 +245,7 @@
const handle_pay = async () => {
await uni.request({ //刷新token
- url: config.baseUrl + "app-api/cloud/outCharge/createPayOrder/" + charging_data.value.id,
+ url: config.baseUrl + "app-api/cloud/outCharge/createPayOrder/" + detail.list.id,
method: 'GET',
header: {
'Content-Type': 'application/x-www-form-urlencoded',
@@ -313,8 +270,10 @@
\ No newline at end of file
diff --git a/pages/order/chargorder/order.vue b/pages/order/chargorder/order.vue
index 48bdccc..09dea7f 100644
--- a/pages/order/chargorder/order.vue
+++ b/pages/order/chargorder/order.vue
@@ -20,10 +20,7 @@
{{item.stationName}}
-
+
初始化
@@ -242,9 +239,16 @@
return m;
}
const goDetail = (e) => {
- uni.navigateTo({
- url: './detailInf/detailInf?details=' + JSON.stringify(e)
- })
+ if (e.orderStatus == 1) {
+ uni.navigateTo({
+ url: './detailInf/detailInf?details=' + JSON.stringify(e)
+ })
+ } else {
+ uni.navigateTo({
+ url: './detailInf/detail?details=' + JSON.stringify(e)
+ })
+ }
+
}
\ No newline at end of file
diff --git a/pagesCenter/accountBalance/accountBalance.vue b/pagesCenter/accountBalance/accountBalance.vue
index 8be4aa5..7585939 100644
--- a/pagesCenter/accountBalance/accountBalance.vue
+++ b/pagesCenter/accountBalance/accountBalance.vue
@@ -12,7 +12,8 @@
-
+
@@ -23,7 +24,7 @@
-
+
@@ -40,7 +41,8 @@
- {{item.payPrice / 100}}
+
+ {{tab_current == 0? (item.payPrice / 100): (item.price / 100) }}
实际到账余额:
{{item.totalPrice?item.totalPrice / 100: 0}}元
@@ -91,6 +93,11 @@
})
const tab_change = (e) => {
tab_current.value = e
+ if (e == 1) {
+ getPayList_consumption()
+ } else if (e == 0) {
+ getPayList(0)
+ }
}
const handle_bindType = async (type) => {
let data = {
@@ -128,6 +135,25 @@
})
}
+ const getPayList_consumption = async (type) => {
+ let param = {
+ pageNo: pageNo.value,
+ pageSize: 10
+ }
+ await uni.$request({
+ url: config.baseUrl +
+ `app-api/pay/wallet-transaction/page?bindType=1&pageNo=${param.pageNo}&pageSize=${param.pageSize}`
+ }).then(res => {
+ // console.log(res, '充值明细');
+ totalPages.value = res.data.data.total
+ if (type == 1) {
+ payData.value.concat(res.data.data.list)
+ } else {
+ payData.value = res.data.data.list
+ }
+ })
+ }
+
const getPayconsumption = async () => {
let param = {
pageNo: pageNo.value,
@@ -152,6 +178,8 @@
.content {
width: 100%;
background: #F7F8FA;
+ display: flex;
+ flex-direction: column;
}
.textBlue {
@@ -159,7 +187,7 @@
}
.bgColor {
- background-image: linear-gradient(to right bottom, #A5C7FF, #4C91FF);
+ background-image: linear-gradient(to right bottom, #42cc7d, #23b360);
}
.account {
@@ -245,6 +273,7 @@
.cu-card>.cu-item {
margin: 0 30rpx 30rpx 30rpx;
+ border-radius: 40rpx;
}
.noneImg {
@@ -257,9 +286,17 @@
align-items: center;
justify-content: center;
}
+
.tab_cls {
padding: 0 30rpx;
}
+
+ .content_pay {
+ margin-top: 15rpx;
+ flex: 1;
+ overflow: hidden;
+ overflow-y: scroll;
+ }