|
|
@@ -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;
|
|
|
}
|