fix: 移除调试日志并修复订单确认接口参数
修复订单管理页面中确认收货接口的参数错误,将`id`改为`order_id`以匹配后端接口 同时移除首页无用的调试日志输出
Showing
2 changed files
with
6 additions
and
6 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2025-06-28 10:33:00 | 2 | * @Date: 2025-06-28 10:33:00 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2025-07-28 14:48:15 | 4 | + * @LastEditTime: 2025-07-28 15:54:33 |
| 5 | * @FilePath: /jgdl/src/pages/index/index.vue | 5 | * @FilePath: /jgdl/src/pages/index/index.vue |
| 6 | * @Description: 捡个电驴首页 | 6 | * @Description: 捡个电驴首页 |
| 7 | --> | 7 | --> |
| ... | @@ -148,7 +148,7 @@ const onNewCarClick = () => { | ... | @@ -148,7 +148,7 @@ const onNewCarClick = () => { |
| 148 | 148 | ||
| 149 | // 生命周期钩子 | 149 | // 生命周期钩子 |
| 150 | useDidShow(() => { | 150 | useDidShow(() => { |
| 151 | - console.warn('index onShow') | 151 | + // console.warn('index onShow') |
| 152 | }) | 152 | }) |
| 153 | 153 | ||
| 154 | useReady(async () => { | 154 | useReady(async () => { | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-19 14:11:06 | 2 | * @Date: 2022-09-19 14:11:06 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2025-07-28 15:35:05 | 4 | + * @LastEditTime: 2025-07-28 16:23:21 |
| 5 | * @FilePath: /jgdl/src/pages/myOrders/index.vue | 5 | * @FilePath: /jgdl/src/pages/myOrders/index.vue |
| 6 | * @Description: 订单管理页面 | 6 | * @Description: 订单管理页面 |
| 7 | --> | 7 | --> |
| ... | @@ -1148,8 +1148,8 @@ const performConfirmReceive = async (orderId) => { | ... | @@ -1148,8 +1148,8 @@ const performConfirmReceive = async (orderId) => { |
| 1148 | wx.openBusinessView({ | 1148 | wx.openBusinessView({ |
| 1149 | businessType: 'weappOrderConfirm', | 1149 | businessType: 'weappOrderConfirm', |
| 1150 | extraData: { | 1150 | extraData: { |
| 1151 | - // merchant_id: '1230000109', | 1151 | + merchant_id: order.merchant_id || '', |
| 1152 | - // merchant_trade_no: order.id, | 1152 | + merchant_trade_no: order.id, |
| 1153 | transaction_id: order.transaction_id || '' | 1153 | transaction_id: order.transaction_id || '' |
| 1154 | }, | 1154 | }, |
| 1155 | success() { | 1155 | success() { |
| ... | @@ -1310,7 +1310,7 @@ const handleConfirmReceiveSuccess = async ({ merchantId, transactionId, merchant | ... | @@ -1310,7 +1310,7 @@ const handleConfirmReceiveSuccess = async ({ merchantId, transactionId, merchant |
| 1310 | if (order) { | 1310 | if (order) { |
| 1311 | try { | 1311 | try { |
| 1312 | // 调用买家查询收货状态接口 | 1312 | // 调用买家查询收货状态接口 |
| 1313 | - const response = await receiptOrderStatusAPI({ id: merchantTradeNo }) | 1313 | + const response = await receiptOrderStatusAPI({ order_id: merchantTradeNo }) |
| 1314 | 1314 | ||
| 1315 | if (response.code && response.data && response.data.status === 11) { | 1315 | if (response.code && response.data && response.data.status === 11) { |
| 1316 | // 接口返回状态为11,确认收货成功 | 1316 | // 接口返回状态为11,确认收货成功 | ... | ... |
-
Please register or login to post a comment