Showing
1 changed file
with
8 additions
and
13 deletions
| 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-14 14:51:17 | 4 | + * @LastEditTime: 2025-07-14 16:13:28 |
| 5 | * @FilePath: /jgdl/src/pages/myOrders/index.vue | 5 | * @FilePath: /jgdl/src/pages/myOrders/index.vue |
| 6 | * @Description: 订单管理页面 | 6 | * @Description: 订单管理页面 |
| 7 | --> | 7 | --> |
| ... | @@ -685,19 +685,14 @@ const submitRate = async () => { | ... | @@ -685,19 +685,14 @@ const submitRate = async () => { |
| 685 | } | 685 | } |
| 686 | order.status = 5 | 686 | order.status = 5 |
| 687 | } | 687 | } |
| 688 | - Toast.success(response.message || '评价提交成功') | 688 | + Toast.success(response.msg || '评价提交成功') |
| 689 | closeRatePopup() | 689 | closeRatePopup() |
| 690 | } else { | 690 | } else { |
| 691 | - throw new Error(response.message || '提交失败') | 691 | + throw new Error(response.msg || '提交失败') |
| 692 | } | 692 | } |
| 693 | 693 | ||
| 694 | } catch (error) { | 694 | } catch (error) { |
| 695 | - // console.error('提交评价失败:', error) | 695 | + console.error('提交评价失败:', error) |
| 696 | - Taro.showToast({ | ||
| 697 | - title: error.message || '提交失败,请重试', | ||
| 698 | - icon: 'error', | ||
| 699 | - duration: 2000 | ||
| 700 | - }) | ||
| 701 | } finally { | 696 | } finally { |
| 702 | submittingRate.value = false | 697 | submittingRate.value = false |
| 703 | } | 698 | } |
| ... | @@ -775,13 +770,13 @@ const performCancelOrder = async (orderId) => { | ... | @@ -775,13 +770,13 @@ const performCancelOrder = async (orderId) => { |
| 775 | }) | 770 | }) |
| 776 | } | 771 | } |
| 777 | } else { | 772 | } else { |
| 778 | - throw new Error(response.message || '取消失败') | 773 | + throw new Error(response.msg || '取消失败') |
| 779 | } | 774 | } |
| 780 | } catch (error) { | 775 | } catch (error) { |
| 781 | // console.error('取消订单失败:', error) | 776 | // console.error('取消订单失败:', error) |
| 782 | 777 | ||
| 783 | Taro.showToast({ | 778 | Taro.showToast({ |
| 784 | - title: error.message || '取消订单失败,请重试', | 779 | + title: error.msg || '取消订单失败,请重试', |
| 785 | icon: 'error', | 780 | icon: 'error', |
| 786 | duration: 2000 | 781 | duration: 2000 |
| 787 | }) | 782 | }) |
| ... | @@ -832,13 +827,13 @@ const performDeleteOrder = async (orderId) => { | ... | @@ -832,13 +827,13 @@ const performDeleteOrder = async (orderId) => { |
| 832 | orders.value.splice(orderIndex, 1) | 827 | orders.value.splice(orderIndex, 1) |
| 833 | 828 | ||
| 834 | Taro.showToast({ | 829 | Taro.showToast({ |
| 835 | - title: response.message || '订单删除成功', | 830 | + title: response.msg || '订单删除成功', |
| 836 | icon: 'success', | 831 | icon: 'success', |
| 837 | duration: 2000 | 832 | duration: 2000 |
| 838 | }) | 833 | }) |
| 839 | } | 834 | } |
| 840 | } else { | 835 | } else { |
| 841 | - throw new Error(response.message || '删除失败') | 836 | + throw new Error(response.msg || '删除失败') |
| 842 | } | 837 | } |
| 843 | 838 | ||
| 844 | } catch (error) { | 839 | } catch (error) { | ... | ... |
-
Please register or login to post a comment