Commit 78ed60987acddc7fd4a81580ac27bb1dfce614d9

Authored by BigBoss
1 parent 3fb0f5bf46
Exists in master

build下单修改

src/components/BottomSheet/BottomSheet.vue
... ... @@ -480,9 +480,8 @@ import store from '@/store'
480 480 methods: {
481 481 checkGlassInfo(){
482 482 const glassInfoArr = Object.values(this.glassInfo)
483   - // console.log(glassInfoArr)
484 483 if(glassInfoArr.find(item => item == '0') !=='undefind'){
485   - uni.showToast({
  484 + uni.showModal({
486 485 title:'请完善镜框数据~'
487 486 })
488 487 }
... ... @@ -744,7 +743,7 @@ import store from '@/store'
744 743 }
745 744 },
746 745 toComfirmOrder() {
747   -
  746 + this.checkGlassInfo()
748 747 this.updateMylove()
749 748 // 先处理验光部分的逻辑,如果ok在跳转
750 749 let flag = 0
... ...
src/pages/confirmOrder/confirmOrder.vue
... ... @@ -383,7 +383,7 @@ export default {
383 383 const checkedGoods = []
384 384 const sk_id_arr = []
385 385 this.checkedCartLst.map(item => {
386   - checkedGoods.push(item.pid)
  386 + checkedGoods.push(item.cart_id)
387 387 sk_id_arr.push(item.sk_id)
388 388 })
389 389 store.dispatch('order/build', {
... ...