lex 8 ماه پیش
والد
کامیت
beb565f129
2فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 1 1
      src/views/member-center/index.tsx
  2. 4 1
      src/views/order-detail/index.tsx

+ 1 - 1
src/views/member-center/index.tsx

@@ -807,7 +807,7 @@ export default defineComponent({
 
             <div class={[styles.dialogBtnGroup, styles.orderGroup]}>
               <Button round type="default" plain block onClick={onCancelOrder}>
-                取消
+                取消订单
               </Button>
               <Button
                 round

+ 4 - 1
src/views/order-detail/index.tsx

@@ -61,6 +61,7 @@ export default defineComponent({
       orderAmount: 0, // 订单金额,用于使用优惠券,余额,优惠等
       orderPrice: 0, // 支付金额,最后支付金额
       dataLoading: true,
+      disabledCoupon: false, // 是否禁用优惠券
       exists: false, // 是否签署过用户注册协议
       bottomHeight: 0,
       paymentVendor: '', //支付厂商
@@ -140,6 +141,8 @@ export default defineComponent({
 
     this.orderAmount = orderStatus.orderObject.actualPrice || 0
     this.orderPrice = orderStatus.orderObject.actualPrice || 0
+
+    this.disabledCoupon = orderStatus.orderObject.orderNo ? true : false
     this.dataLoading = false
     // 0元支付特别处理
     if (this.orderPrice === 0 && orderStatus.orderObject.orderType) {
@@ -557,7 +560,7 @@ export default defineComponent({
                 orderType={this.orderType}
                 orderAmount={this.orderAmount}
                 onCouponSelect={this.onCouponSelect}
-                disabled={orderStatus.orderObject.orderNo ? true : false}
+                disabled={this.disabledCoupon}
               />
             )}