shish 6 лет назад
Родитель
Сommit
e9210be402
1 измененных файлов с 1 добавлено и 21 удалено
  1. 1 21
      mall/src/components/app-coupon-sel.vue

+ 1 - 21
mall/src/components/app-coupon-sel.vue

@@ -67,13 +67,7 @@ import { userDiscount } from "@/api/member";
 import { getShopUser } from "@/utils/auth";
 export default {
   name: "coupon-sel",
-  props: {
-    // 金额
-    price: {
-      type: [String, Number],
-      default: 0
-    }
-  },
+  props: {},
   data() {
     return {
       constant: this.$constant,
@@ -101,18 +95,6 @@ export default {
         newArr.push("coupon");
       }
       return newArr;
-    },
-    // 优惠金额
-    totalDiscountPrice() {
-      if (this.price) {
-        return (
-          (this.price * 1000000 -
-            ((this.price * this.shopUser.userAsset.discount) / 10) * 1000000) /
-          1000000
-        );
-      } else {
-        return 0;
-      }
     }
   },
   mounted() {},
@@ -127,8 +109,6 @@ export default {
     },
     checkChange(e) {
       this.selIndex = e.detail.value;
-      console.log('radio')
-      console.log(this.selIndex)
       if (this.selIndex == 1) {
         this.couponId = 0;
       }