Commit cd96ca24 authored by 潘永坪's avatar 潘永坪

组合下单开发

parent 2d5c647d
...@@ -261,7 +261,7 @@ ...@@ -261,7 +261,7 @@
</view> </view>
</view> </view>
</view> </view>
<calendar ref="calendar" @dateConfig="dateConfig" :dateList="dateList" v-if="dateList.length > 0"></calendar> <calendar ref="calendar" @dateConfig="dateConfig" :dateList="dateList" v-show="dateList.length > 0"></calendar>
<buyKnow ref="buyKnow" :buyKnowData="buyKnowData"></buyKnow> <buyKnow ref="buyKnow" :buyKnowData="buyKnowData"></buyKnow>
<detail <detail
ref="detail" ref="detail"
...@@ -281,7 +281,7 @@ ...@@ -281,7 +281,7 @@
:sortArr="sortArr" :sortArr="sortArr"
:defaultAreaCode="defaultAreaCode" :defaultAreaCode="defaultAreaCode"
></chooseArea> ></chooseArea>
<times ref="times" :chooseTimeList="timeList" @timeConfig="timeConfig" :chooseTimeData="chooseTimeData" :timeActive="timeActive"></times> <times ref="times" :chooseTimeList="chooseTimeList" @timeConfig="timeConfig" :chooseTimeData="chooseTimeData" :timeActive="timeActive"></times>
<editContacts ref="editContacts" :editContact="editContact" :contactTotal="contactTotal"></editContacts> <editContacts ref="editContacts" :editContact="editContact" :contactTotal="contactTotal"></editContacts>
<contactList <contactList
ref="contactList" ref="contactList"
...@@ -514,7 +514,8 @@ export default { ...@@ -514,7 +514,8 @@ export default {
uni.$u.throttle(this.getTimeStock(item), 3000) uni.$u.throttle(this.getTimeStock(item), 3000)
} }
// this.initCoupon(Item.id,Item.buyNum,Item.sellingPrice,Item.merchantId,Index) // this.initCoupon(Item.id,Item.buyNum,Item.sellingPrice,Item.merchantId,Index)
// this.$forceUpdate() //解决点击日期无反应的情况
this.$forceUpdate()
}, },
//---日历确认事件---还未改完 //---日历确认事件---还未改完
dateConfig(data) { dateConfig(data) {
...@@ -605,7 +606,8 @@ export default { ...@@ -605,7 +606,8 @@ export default {
}) })
chooseList.splice(index, 1) //删除数组 chooseList.splice(index, 1) //删除数组
} }
this.$forceUpdate() //先注释
// this.$forceUpdate()
}, },
//---订单数量变化 //---订单数量变化
buyNumChange(e) { buyNumChange(e) {
...@@ -790,6 +792,8 @@ export default { ...@@ -790,6 +792,8 @@ export default {
this.payBackground = '#C0C0C0' this.payBackground = '#C0C0C0'
} }
}) })
//解决初始化日期不显示的情况
this.$forceUpdate()
// this.dateList = res.data //日期列表 // this.dateList = res.data //日期列表
// if (this.dateList.length > 0) { // if (this.dateList.length > 0) {
...@@ -942,7 +946,8 @@ export default { ...@@ -942,7 +946,8 @@ export default {
item2.copyLast='售罄' item2.copyLast='售罄'
} }
}) })
// this.$forceUpdate() //解决初始化班次不显示的情况
this.$forceUpdate()
} else { } else {
uni.showToast({ uni.showToast({
title: res.message, title: res.message,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment