Commit f93b46bf by 李伟康

commit

1 parent befb265f
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
.detail { .detail {
border-bottom: 1px solid rgba(195, 195, 195, 0.3); border-bottom: 1px solid rgba(195, 195, 195, 0.3);
position: relative;
&:last-of-type { &:last-of-type {
border-bottom: none; border-bottom: none;
} }
...@@ -98,9 +98,12 @@ ...@@ -98,9 +98,12 @@
padding: 0 12px; padding: 0 12px;
display: inline-flex; display: inline-flex;
} }
.del{
position: absolute;
top: 8px;
right: 0;
}
.coupon-disabled { .coupon-disabled {
position: relative;
.detail-list { .detail-list {
color: #999999; color: #999999;
...@@ -112,11 +115,6 @@ ...@@ -112,11 +115,6 @@
color: #999999; color: #999999;
} }
} }
.del{
position: absolute;
top: 8px;
right: 0;
}
} }
} }
} }
......
...@@ -57,9 +57,7 @@ ...@@ -57,9 +57,7 @@
<div class="price">¥{{centsToyuan(i.couponAnticipatedCost * i.couponAmount)}}</div> <div class="price">¥{{centsToyuan(i.couponAnticipatedCost * i.couponAmount)}}</div>
</div> </div>
</div> </div>
<template v-if="i.status != 2">
<div class="del sprite-icon icon-gift-del" @click="delCoupon(index)"></div> <div class="del sprite-icon icon-gift-del" @click="delCoupon(index)"></div>
</template>
</div> </div>
</template> </template>
</div> </div>
...@@ -233,11 +231,12 @@ export default { ...@@ -233,11 +231,12 @@ export default {
if (i.status == 2) total += i.couponAnticipatedCost * i.couponAmount if (i.status == 2) total += i.couponAnticipatedCost * i.couponAmount
}) })
this.total = total this.total = total
this.checkData()
}, },
submit () { submit () {
const phoneRex = /^[1]([3-9])[0-9]{9}$/ const phoneRex = /^[1]([3-9])[0-9]{9}$/
if (disabled) return
let { obj, disabled, id } = this let { obj, disabled, id } = this
if (disabled) return
if (obj.receiveWay == 1) { if (obj.receiveWay == 1) {
if (!phoneRex.test(obj.phone)) { if (!phoneRex.test(obj.phone)) {
this.showToast('请输入正确的手机号') this.showToast('请输入正确的手机号')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!