Commit 95d91059 authored by spc's avatar spc

fixed

parent 68d362c0
...@@ -103,8 +103,4 @@ export const fetchOrderExpressRoute = (data) => api.get('/c/order/express/route' ...@@ -103,8 +103,4 @@ export const fetchOrderExpressRoute = (data) => api.get('/c/order/express/route'
* @returns {Promise} API响应 * @returns {Promise} API响应
* @description 取消订单 * @description 取消订单
*/ */
export const fetchOrderCancel = (data) => api.post('/c/order/cancel', data, { export const fetchOrderCancel = (data) => api.post('/c/order/cancel', data);
headers: {
'Content-Type': 'form-data'
}
});
...@@ -1078,7 +1078,7 @@ export default { ...@@ -1078,7 +1078,7 @@ export default {
left: 0; left: 0;
right: 0; right: 0;
background-color: #fff; background-color: #fff;
padding: 20rpx 30rpx; padding: 80rpx 30rpx;
box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.1); box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.1);
z-index: 100; z-index: 100;
/* 实物商品按钮使用flex布局,将按钮推到右侧 */ /* 实物商品按钮使用flex布局,将按钮推到右侧 */
......
...@@ -141,14 +141,14 @@ export default { ...@@ -141,14 +141,14 @@ export default {
this.nextId = response.data.nextId || null; this.nextId = response.data.nextId || null;
this.hasMore = !!this.nextId; this.hasMore = !!this.nextId;
} else { } else {
// API调用失败 // API调用失败
console.warn('API调用失败:', response.msg); console.warn('API调用失败:', response.msg);
this.orderList = []; this.orderList = [];
} }
} catch (error) { } catch (error) {
console.error('加载兑换记录失败:', error); console.error('加载兑换记录失败:', error);
this.orderList = []; this.orderList = [];
} finally { } finally {
this.loading = false; this.loading = false;
} }
}, },
...@@ -173,10 +173,10 @@ export default { ...@@ -173,10 +173,10 @@ export default {
description: item.bizDesc || '', description: item.bizDesc || '',
points: item.credits || 0, points: item.credits || 0,
creditsTypeName: item.creditsTypeName || '积分', creditsTypeName: item.creditsTypeName || '积分',
exchangeTime: this.formatTime(item.createTime), exchangeTime: item.createTime,
productImage: item.bizIcon || '', productImage: item.bizIcon || '',
countdown: this.calculateCountdown(item.expireTime), countdown: this.calculateCountdown(item.expireTime),
validUntil: item.expireTime ? this.formatTime(item.expireTime) : null validUntil: item.expireTime ? item.expireTime : null
})); }));
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment