diff --git a/src/components/BottomSheet/BottomSheet.vue b/src/components/BottomSheet/BottomSheet.vue index 4dfd7e2..a1a9695 100644 --- a/src/components/BottomSheet/BottomSheet.vue +++ b/src/components/BottomSheet/BottomSheet.vue @@ -480,9 +480,8 @@ import store from '@/store' methods: { checkGlassInfo(){ const glassInfoArr = Object.values(this.glassInfo) - // console.log(glassInfoArr) if(glassInfoArr.find(item => item == '0') !=='undefind'){ - uni.showToast({ + uni.showModal({ title:'请完善镜框数据~' }) } @@ -744,7 +743,7 @@ import store from '@/store' } }, toComfirmOrder() { - + this.checkGlassInfo() this.updateMylove() // 先处理验光部分的逻辑,如果ok在跳转 let flag = 0 diff --git a/src/pages/confirmOrder/confirmOrder.vue b/src/pages/confirmOrder/confirmOrder.vue index fa608ca..bfc6901 100644 --- a/src/pages/confirmOrder/confirmOrder.vue +++ b/src/pages/confirmOrder/confirmOrder.vue @@ -383,7 +383,7 @@ export default { const checkedGoods = [] const sk_id_arr = [] this.checkedCartLst.map(item => { - checkedGoods.push(item.pid) + checkedGoods.push(item.cart_id) sk_id_arr.push(item.sk_id) }) store.dispatch('order/build', {