|
@@ -86,7 +86,10 @@
|
|
|
<div class="module-com coupon-wrap" v-if="!$util.isEmpty(discountArr)">
|
|
<div class="module-com coupon-wrap" v-if="!$util.isEmpty(discountArr)">
|
|
|
<div class="module-tit">优惠信息</div>
|
|
<div class="module-tit">优惠信息</div>
|
|
|
<div class="module-det">
|
|
<div class="module-det">
|
|
|
- <app-coupon-sel ref="couponSel" :price="data.prePrice * data.goodsNum" :discountArr="['member', 'coupon']" />
|
|
|
|
|
|
|
+ <app-coupon-sel
|
|
|
|
|
+ ref="couponSel"
|
|
|
|
|
+ :price="data.prePrice * data.goodsNum"
|
|
|
|
|
+ :discountArr="['member', 'coupon']" />
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</block>
|
|
</block>
|
|
@@ -160,12 +163,16 @@
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
init() {
|
|
init() {
|
|
|
- this._getDet()
|
|
|
|
|
- getShopUser().then(res => {
|
|
|
|
|
- this.$refs.couponSel._getUserDiscount().then(status => {
|
|
|
|
|
|
|
+ this._getDet().then(()=>{
|
|
|
|
|
+ getShopUser().then(res => {
|
|
|
|
|
+ console.log(this.$refs)
|
|
|
|
|
+ this.$refs.couponSel._getUserDiscount()
|
|
|
|
|
+ .then(status => {
|
|
|
this.discountArr = status
|
|
this.discountArr = status
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
_getDet() {
|
|
_getDet() {
|
|
|
let form = {}
|
|
let form = {}
|