@lancom/shared 0.0.175 → 0.0.176
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -48,7 +48,15 @@
|
|
|
48
48
|
<div
|
|
49
49
|
v-if="isValidPricing"
|
|
50
50
|
class="lc_h4">
|
|
51
|
-
|
|
51
|
+
<span v-if="value.showCouponIsApplied">
|
|
52
|
+
COUPON APPLIED
|
|
53
|
+
</span>
|
|
54
|
+
<span v-else>
|
|
55
|
+
{{ value.value | price }} OFF
|
|
56
|
+
</span>
|
|
57
|
+
<span
|
|
58
|
+
class="CouponSelect__clear"
|
|
59
|
+
@click="clearCoupon()">remove</span>
|
|
52
60
|
</div>
|
|
53
61
|
<div
|
|
54
62
|
v-else
|
|
@@ -108,6 +116,10 @@ export default {
|
|
|
108
116
|
}
|
|
109
117
|
},
|
|
110
118
|
methods: {
|
|
119
|
+
clearCoupon() {
|
|
120
|
+
this.model = null;
|
|
121
|
+
this.code = null;
|
|
122
|
+
},
|
|
111
123
|
async validateCoupon() {
|
|
112
124
|
this.notValidCoupon = false;
|
|
113
125
|
if (this.code) {
|