From 5a138037433e909041e4333931a91510d5f06cc2 Mon Sep 17 00:00:00 2001
From: ISFP_T <68358856@qq.com>
Date: Tue, 3 Feb 2026 17:47:55 +0800
Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8Dbug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
config/api/device.js | 31 -
config/api/order.js | 51 +-
config/console.js | 2 +-
locale/en-US.js | 4 +-
locale/zh-CN.js | 4 +-
pages.json | 5 +-
pages/device/goods.vue | 2 +-
pages/device/orderDetail.vue | 93 ++-
pages/device/orderList.vue | 5 +-
pages/order/index.vue | 3 -
pages/order/payment.vue | 1167 +++++++++++++++++++++-------------
pages/order/success.vue | 668 +++++++++----------
12 files changed, 1181 insertions(+), 854 deletions(-)
diff --git a/config/api/device.js b/config/api/device.js
index 2a9d99f..daa379e 100644
--- a/config/api/device.js
+++ b/config/api/device.js
@@ -60,34 +60,3 @@ export const rentPowerBank = (deviceNo, phone) => {
}
})
}
-
-// 确认支付并弹出风扇
-export const confirmPaymentAndRent = (orderId) => {
- console.log(`确认支付并弹出风扇, orderId: ${orderId}`)
- return request({
- url: `/app/device/confirmPaymentAndRent?orderId=${orderId}`,
- method: 'GET'
- })
-}
-
-// 强制打开空格子
-export const forcefOpenEmptyGrid = (deviceNo) => {
- console.log(`强制打开空格子, deviceNo: ${deviceNo}`)
- return request({
- url: `/app/device/forcef/${deviceNo}`,
- method: 'post'
- })
-}
-
-// 发送租借指令
-export const sendRentCommand = (data) => {
- return request({
- url: '/app/device/sendRentCommand',
- method: 'post',
- data,
- headers: {
- 'Content-Type': 'application/x-www-form-urlencoded'
- }
- })
-}
-
diff --git a/config/api/order.js b/config/api/order.js
index 0e86fa2..b8883c7 100644
--- a/config/api/order.js
+++ b/config/api/order.js
@@ -51,7 +51,6 @@ export const createOrder = (data) => {
// 查询订单
export const queryById = (id) => {
- console.log(`查询订单详情, orderId: ${id}`)
return request({
url: `/app/order/${id}`,
method: 'get',
@@ -61,7 +60,6 @@ export const queryById = (id) => {
// 用户查询商品订单详情
export const getProductOrderDetail = (id) => {
- console.log(`查询商品订单详情, orderId: ${id}`)
return request({
url: `/app/product/order/${id}`,
method: 'get',
@@ -80,7 +78,6 @@ export const cancelOrder = (data) => {
// 结束订单
export const overOrderById = (orderId) => {
- console.log(`调用结束订单API, orderId: ${orderId}`)
return request({
url: `/app/order/close/${orderId}`,
method: 'get',
@@ -98,7 +95,6 @@ export const getOrderByOrderNo = (orderNo) => {
// 充电宝未弹出反馈(快捷反馈)
export const reportDeviceNoEject = (data) => {
- console.log('充电宝未弹出反馈:', data)
return request({
url: '/app/order/report-no-eject',
method: 'post',
@@ -108,7 +104,6 @@ export const reportDeviceNoEject = (data) => {
// 充电宝转为自用
export const convertToOwned = (orderId) => {
- console.log('充电宝转为自用,订单ID:', orderId)
return request({
url: `/app/order/convert-to-owned/${orderId}`,
method: 'post'
@@ -117,7 +112,6 @@ export const convertToOwned = (orderId) => {
// 不想还了转为自用(按最高费用)
export const closeWithMaxFee = (orderNo) => {
- console.log('不想还了转为自用,订单号:', orderNo)
return request({
url: `/app/order/closeWithMaxFee/${orderNo}`,
method: 'post'
@@ -156,9 +150,36 @@ export const getWxPaymentStatus = (orderNo) => {
})
}
+// ==================== Antom 支付相关接口 ====================
+
+// 创建 Antom H5 支付订单
+export const createAntomPayment = (orderNo, paymentType, osType) => {
+ return request({
+ url: `/app/antom-payment/create/${orderNo}?paymentType=${paymentType}&osType=${osType}`,
+ method: 'get'
+ })
+}
+
+// 获取 Antom 可用支付方式列表
+export const getAntomPaymentMethods = (orderNo, osType) => {
+ return request({
+ url: `/app/antom-payment/consult/${orderNo}?osType=${osType}`,
+ method: 'get',
+ hideLoading: true
+ })
+}
+
+// Antom 支付结果查询
+export const getAntomPaymentStatus = (orderNo, osType) => {
+ return request({
+ url: `/app/antom-payment/inquiry/${orderNo}?osType=${osType}`,
+ method: 'get',
+ hideLoading: true
+ })
+}
+
// 通过订单号获取支付分订单信息
export const getOrderByOrderNoScore = (orderNo) => {
- console.log('通过订单号获取支付分订单信息', orderNo);
return request({
url: `/app/wx-payment/score/create/${orderNo}`,
method: 'get',
@@ -168,7 +189,6 @@ export const getOrderByOrderNoScore = (orderNo) => {
// 通过订单号获取支付分订单状态
export const getOrderByOrderNoScorePayStatus = (orderNo) => {
- console.log('通过订单号获取支付分订单状态', orderNo);
return request({
url: `/app/wx-payment/score/status/${orderNo}`,
method: 'get',
@@ -178,7 +198,6 @@ export const getOrderByOrderNoScorePayStatus = (orderNo) => {
// 更新订单套餐信息
export const updateOrderPackage = (data) => {
- console.log('更新订单套餐信息:', data)
return request({
url: '/app/device/updateOrderPackage',
method: 'post',
@@ -188,7 +207,6 @@ export const updateOrderPackage = (data) => {
// 用户端删除商品订单(逻辑删除)
export const deleteProductOrder = (id) => {
- console.log('删除商品订单,订单ID:', id)
return request({
url: `/app/product/order/${id}`,
method: 'delete'
@@ -197,22 +215,9 @@ export const deleteProductOrder = (id) => {
// 用户端取消商品订单支付
export const cancelProductOrder = (OutOrderNo) => {
- console.log('取消商品订单支付,订单ID:', OutOrderNo)
return request({
url: `/app/product/order/${OutOrderNo}/cancel`,
method: 'put'
})
}
-/*
- * 弃用
- */
-export const getPotionsDetail = (data) => {
- console.log(data);
- return request({
- url: '/device/position/positionDetails',
- method: 'get',
- data
- })
-}
-
diff --git a/config/console.js b/config/console.js
index 4fcc19e..f131f71 100644
--- a/config/console.js
+++ b/config/console.js
@@ -6,7 +6,7 @@
// 配置项:true 表示打印日志,false 表示不打印日志
export const CONSOLE_CONFIG = {
// 是否启用 console.log
- enableLog: true,
+ enableLog: false,
// 是否启用 console.warn
enableWarn: true,
// 是否启用 console.error
diff --git a/locale/en-US.js b/locale/en-US.js
index 2e51b48..85f5361 100644
--- a/locale/en-US.js
+++ b/locale/en-US.js
@@ -157,6 +157,7 @@ export default {
order: {
myOrders: 'My Orders',
+ myDeviceOrders:'Customize Orders',
noOrderRecord: 'No order records',
getOrderListFailed: 'Failed to get order list',
confirmCancelContent: 'Are you sure to cancel this order?',
@@ -799,10 +800,11 @@ export default {
goods: {
title: 'Product Details',
+ goodsTitle:'Customize Details',
productName: 'FengDianZhe Shared Fan + Power Bank + Hand Warmer Series - Cherry Blossom Pink',
perUnit: '/pc',
buyNow: 'Buy Now',
- productDetail: 'Product Details',
+ productDetail: 'Customize Details',
features: {
battery: '8000Ahm',
batteryDesc: 'Large Capacity Battery',
diff --git a/locale/zh-CN.js b/locale/zh-CN.js
index 4f7f7fe..8fc2d8f 100644
--- a/locale/zh-CN.js
+++ b/locale/zh-CN.js
@@ -157,6 +157,7 @@ export default {
order: {
myOrders: '我的订单',
+ myDeviceOrders:'我的定制',
noOrderRecord: '暂无订单记录',
getOrderListFailed: '获取订单列表失败',
confirmCancelContent: '确定要取消此订单吗?',
@@ -799,10 +800,11 @@ export default {
goods: {
title: '商品详情',
+ goodsTitle:'定制详情',
productName: '风电者共享风扇 + 充电宝 + 暖手宝系列-樱花粉',
perUnit: '/个',
buyNow: '立即购买',
- productDetail: '商品详情',
+ productDetail: '定制详情',
features: {
battery: '8000Ahm',
batteryDesc: '大容量电池',
diff --git a/pages.json b/pages.json
index b53139f..f7ec95d 100644
--- a/pages.json
+++ b/pages.json
@@ -126,7 +126,7 @@
{
"path": "pages/device/orderDetail",
"style": {
- "navigationBarTitleText": "订单详情",
+ "navigationBarTitleText": "定制详情",
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black"
}
@@ -276,7 +276,8 @@
"style": {
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#ffffff",
- "navigationBarTextStyle": "black"
+ "navigationBarTextStyle": "black",
+ "navigationStyle": "custom"
}
},
{
diff --git a/pages/device/goods.vue b/pages/device/goods.vue
index 0ad2ba5..315e5fb 100644
--- a/pages/device/goods.vue
+++ b/pages/device/goods.vue
@@ -364,7 +364,7 @@
onMounted(() => {
uni.setNavigationBarTitle({
- title: t('goods.title')
+ title: t('goods.goodsTitle')
})
// 初始化地区数据
initRegionData()
diff --git a/pages/device/orderDetail.vue b/pages/device/orderDetail.vue
index a364654..44e90b2 100644
--- a/pages/device/orderDetail.vue
+++ b/pages/device/orderDetail.vue
@@ -114,7 +114,7 @@
删除订单
-
+
再次定制
@@ -124,7 +124,7 @@
联系客服
-
+
再次定制
@@ -133,7 +133,7 @@
@@ -622,8 +695,8 @@
display: flex;
justify-content: space-between;
margin-bottom: 20rpx;
- font-size: 26rpx;
- height: 40rpx;
+ font-size: 28rpx;
+ height: 50rpx;
&:last-child {
margin-bottom: 0;
diff --git a/pages/device/orderList.vue b/pages/device/orderList.vue
index c20138a..3d5191a 100644
--- a/pages/device/orderList.vue
+++ b/pages/device/orderList.vue
@@ -54,9 +54,6 @@
import{
createProductOrder
}from "@/config/api/product.js"
- import {
- confirmPaymentAndRent
- } from '../../config/api/device.js';
import {
updateUserBalance
} from '../../config/api/user.js';
@@ -288,7 +285,7 @@
// 设置页面标题并监听订单完成事件
onMounted(() => {
uni.setNavigationBarTitle({
- title: t('order.myOrders')
+ title: t('order.myDeviceOrders')
})
// 监听订单完成事件
diff --git a/pages/order/index.vue b/pages/order/index.vue
index a5d95e4..d855add 100644
--- a/pages/order/index.vue
+++ b/pages/order/index.vue
@@ -49,9 +49,6 @@
cancelOrder,
createWxPayment
} from '../../config/api/order.js';
- import {
- confirmPaymentAndRent
- } from '../../config/api/device.js';
import {
updateUserBalance
} from '../../config/api/user.js';
diff --git a/pages/order/payment.vue b/pages/order/payment.vue
index 014a76f..107a4ef 100644
--- a/pages/order/payment.vue
+++ b/pages/order/payment.vue
@@ -1,461 +1,738 @@
-
-
-
-
- {{ orderStatus.text }}
- {{ orderStatus.desc }}
-
-
-
-
- {{ $t('payment.orderInfo') }}
-
- {{ $t('order.orderNo') }}
- {{ orderInfo.orderNo || '-' }}
-
-
- {{ $t('order.deviceNo') }}
- {{ orderInfo.deviceNo || '-' }}
-
-
- {{ $t('payment.createTime') }}
- {{ orderInfo.createTime || '-' }}
-
-
- {{ $t('payment.contactPhone') }}
- {{ orderInfo.phone || '-' }}
-
-
-
-
-
- {{ $t('payment.feeInfo') }}
-
- {{ $t('payment.deposit') }}
- ¥{{ orderInfo.deposit || '99.00' }}
-
-
- {{ $t('payment.package') }}
- {{ packageInfo.price }}{{ $t('unit.yuan') }}/{{ packageInfo.time }}{{ $t('time.hour') }}
-
-
- {{ $t('payment.total') }}
- ¥{{ totalAmount }}
-
-
-
+
+
+
+
+
+ 💳
+
+
+ {{ orderStatus.text }}
+ {{ orderStatus.desc }}
+
-
-
-
-
-
- {{ $t('payment.total') }}:
- ¥{{ totalAmount }}
-
- {{ $t('payment.payNow') }}
-
-
+
+
+
+
+ {{ $t('order.orderNo') }}
+ {{ orderInfo.orderNo || '-' }}
+
+
+ {{ $t('order.deviceNo') }}
+ {{ orderInfo.deviceNo || '-' }}
+
+
+ {{ $t('payment.createTime') }}
+ {{ orderInfo.createTime || '-' }}
+
+
+
+
+
+
+
+ {{ $t('payment.deposit') }}
+ ¥{{ orderInfo.deposit || '99.00' }}
+
+
+
+ {{ $t('payment.total') }}
+ ¥{{ totalAmount }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ method?.logo?.logoName }}
+
+
+
+
+
+
+
+
+
+ {{ $t('payment.total') }}:
+ ¥{{ totalAmount }}
+
+
+ {{ $t('payment.payNow') }}
+
+
+
\ No newline at end of file
diff --git a/pages/order/success.vue b/pages/order/success.vue
index 3386f75..a376e0d 100644
--- a/pages/order/success.vue
+++ b/pages/order/success.vue
@@ -1,346 +1,350 @@
-
-
-
-
- {{ $t('success.paymentSuccess') }}
- {{ $t('success.paymentSuccessDesc') }}
-
-
-
-
- {{ $t('success.orderInfo') }}
-
- {{ $t('order.orderNo') }}
- {{ orderInfo.orderNo || '-' }}
-
-
- {{ $t('order.deviceNo') }}
- {{ orderInfo.deviceNo || '-' }}
-
-
- {{ $t('success.paymentAmount') }}
- ¥{{ orderInfo.amount || '0.00' }}
-
-
- {{ $t('success.paymentTime') }}
- {{ orderInfo.payTime || '-' }}
-
-
+
+
+
+
+ {{ $t('success.paymentSuccess') }}
+ {{ $t('success.paymentSuccessDesc') }}
+
-
-
- {{ deviceMessage }}
-
-
-
-
+
+
+ {{ $t('success.orderInfo') }}
+
+ {{ $t('order.orderNo') }}
+ {{ orderInfo.orderNo || '-' }}
+
+
+ {{ $t('order.deviceNo') }}
+ {{ orderInfo.deviceNo || '-' }}
+
+
+ {{ $t('success.paymentAmount') }}
+ ¥{{ orderInfo.amount || '0.00' }}
+
+
+ {{ $t('success.paymentTime') }}
+ {{ orderInfo.payTime || '-' }}
+
+
-
-
-
-
-
-
+
+
+ {{ deviceMessage }}
+
+
+
+
+
+
+
+
+
+
+
-
\ No newline at end of file