Commit f93b46bf by 李伟康

commit

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