lex 1 년 전
부모
커밋
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]}>
             <div class={[styles.dialogBtnGroup, styles.orderGroup]}>
               <Button round type="default" plain block onClick={onCancelOrder}>
               <Button round type="default" plain block onClick={onCancelOrder}>
-                取消
+                取消订单
               </Button>
               </Button>
               <Button
               <Button
                 round
                 round

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

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