瀏覽代碼

支付成功,请前往我的订单查看!

lifanagju_citu 5 月之前
父節點
當前提交
841456e09f
共有 1 個文件被更改,包括 1 次插入19 次删除
  1. 1 19
      src/views/mall/components/details/order/confirm.vue

+ 1 - 19
src/views/mall/components/details/order/confirm.vue

@@ -154,23 +154,6 @@
     await getOrderInfo()
   }
 
-
-  // ========== 积分 ==========
-  /**
-   * 使用积分抵扣
-   */
-  const changeIntegral = async () => {
-    state.pointStatus = !state.pointStatus;
-    await getOrderInfo();
-  };
-
-  // 选择优惠券
-  async function onSelectCoupon(couponId) {
-    state.orderPayload.couponId = couponId;
-    await getOrderInfo();
-    state.showCoupon = false;
-  }
-
   // 提交订单
   function onConfirm() {
     if (addressState.value.deliveryType === 1 && !addressState.value.addressInfo.id) {
@@ -215,7 +198,7 @@
     };
     const res = await payOrderSubmit(obj)
     console.log('提交支付订单payOrderSubmit:', res)
-    Snackbar.warning('支付成功!')
+    Snackbar.warning('支付成功,请前往我的订单查看!')
     emit('paySuccess')
     userStore.getUserInfos()
   }
@@ -277,7 +260,6 @@
     //     id: data.id,
     //   });
     // }
-
   }
 
   // 检查库存 & 计算订单价格