Commit a2d8ab6832afc2c41aa0939f1e422668f9928db7

Authored by 前端开发-罗建龙
1 parent c74d8634

搭配购预存款使用优化

packageE/pages/cart/cart2/cart2.js
@@ -363,7 +363,7 @@ Page({ @@ -363,7 +363,7 @@ Page({
363 this.setData({ [txt]: 2 }) 363 this.setData({ [txt]: 2 })
364 } 364 }
365 //搭配购直接购买特殊处理 365 //搭配购直接购买特殊处理
366 - if(this.data.collocation_goods){ 366 + if(this.data.collocation_goods && this.data.cartlist){
367 let txt = 'cartlist[0].yck_off'; 367 let txt = 'cartlist[0].yck_off';
368 let txt1 = 'old_cartlist[0].yck_off'; 368 let txt1 = 'old_cartlist[0].yck_off';
369 if (this.data.cartlist[0].yck_off == 2) { 369 if (this.data.cartlist[0].yck_off == 2) {