Commit 0ea2820547200357d58b81022f6cb73b621d0db3
1 parent
2badbe81
预存是否能够使用优化
Showing
5 changed files
with
28 additions
and
7 deletions
packageC/pages/luckyGo/luckyGo_cart_ct/luckyGo_cart_ct.js
... | ... | @@ -74,6 +74,7 @@ Page({ |
74 | 74 | show_card: null, //显示的等级卡 |
75 | 75 | card_name: '', //显示的卡的名称 |
76 | 76 | card_cut_price: null, //减价多少钱 |
77 | + is_pre_cut:0, //是否可以使用预存 0是不可以1的可以 | |
77 | 78 | }, |
78 | 79 | |
79 | 80 | onLoad: function (t) { |
... | ... | @@ -240,6 +241,9 @@ Page({ |
240 | 241 | // let cartList= this.data.cartlist |
241 | 242 | // let cartList= arr |
242 | 243 | // let length = cartList.length |
244 | + if(this.data.is_pre_cut==0){ | |
245 | + return {} | |
246 | + } | |
243 | 247 | wx.showLoading({ |
244 | 248 | title: '加载中', |
245 | 249 | mask: true |
... | ... | @@ -606,6 +610,7 @@ Page({ |
606 | 610 | var is_same_city = json_d.is_same_city; |
607 | 611 | |
608 | 612 | th.setData({ |
613 | + is_pre_cut:json_d.is_pre_cut,//预存是否可以使用0是不可以 ,1是可以 | |
609 | 614 | is_close_quan: json_d.is_close_quan, |
610 | 615 | sales_rules: ee.sales_rules, |
611 | 616 | rank_switch: json_d.rank_switch, | ... | ... |
packageC/pages/presell/cart/cart2_pre.js
... | ... | @@ -53,7 +53,8 @@ Page({ |
53 | 53 | isclose: 1, |
54 | 54 | is_express: 0,//选择物流的控制器 |
55 | 55 | yuer: 0, |
56 | - agree_no_ref: 0 | |
56 | + agree_no_ref: 0, | |
57 | + is_pre_cut:0, //是否可以使用预存 0是不可以1的可以 | |
57 | 58 | }, |
58 | 59 | onLoad: function (t) { |
59 | 60 | wx.setNavigationBarTitle({ |
... | ... | @@ -277,7 +278,7 @@ Page({ |
277 | 278 | th.data.ispt_goods = json_d.ispt_goods; //是不是平摊到单品的控制参数赋值 |
278 | 279 | var is_default_logistics = json_d.is_default_logistics; |
279 | 280 | |
280 | - th.setData({ is_close_quan: json_d.is_close_quan, sales_rules: ee.sales_rules, rank_switch: json_d.rank_switch, is_default_logistics: is_default_logistics }); | |
281 | + th.setData({is_pre_cut:json_d.is_pre_cut, is_close_quan: json_d.is_close_quan, sales_rules: ee.sales_rules, rank_switch: json_d.rank_switch, is_default_logistics: is_default_logistics }); | |
281 | 282 | |
282 | 283 | var rank_switch = json_d.rank_switch; |
283 | 284 | var max_price = -1; |
... | ... | @@ -370,6 +371,9 @@ Page({ |
370 | 371 | // let cartList= this.data.cartlist |
371 | 372 | // let cartList= arr |
372 | 373 | // let length = cartList.length |
374 | + if(this.data.is_pre_cut==0){ | |
375 | + return {} | |
376 | + } | |
373 | 377 | wx.showLoading({ |
374 | 378 | title: '加载中', |
375 | 379 | mask: true | ... | ... |
packageE/pages/cart/cart2/cart2.js
... | ... | @@ -145,6 +145,7 @@ Page({ |
145 | 145 | //订单所有搭配购的 |
146 | 146 | all_collocation_list: [], |
147 | 147 | appoint_pick_keyid: '', |
148 | + is_pre_cut:0, //是否可以使用预存 0是不可以1的可以 | |
148 | 149 | }, |
149 | 150 | onLoad: function (t) { |
150 | 151 | wx.setNavigationBarTitle({ title: "填写订单", }) |
... | ... | @@ -259,8 +260,9 @@ Page({ |
259 | 260 | th.data.ispt_goods = json_d.ispt_goods; //是不是平摊到单品的控制参数赋值 |
260 | 261 | var is_default_logistics = json_d.is_default_logistics; |
261 | 262 | var is_same_city = json_d.is_same_city; |
262 | - | |
263 | + | |
263 | 264 | th.setData({ |
265 | + is_pre_cut:json_d.is_pre_cut,//预存是否可以使用0是不可以 ,1是可以 | |
264 | 266 | is_close_quan: json_d.is_close_quan, |
265 | 267 | sales_rules: ee.sales_rules, |
266 | 268 | rank_switch: json_d.rank_switch, |
... | ... | @@ -377,6 +379,9 @@ Page({ |
377 | 379 | // let cartList= this.data.cartlist |
378 | 380 | // let cartList= arr |
379 | 381 | // let length = cartList.length |
382 | + if(this.data.is_pre_cut==0){ | |
383 | + return {} | |
384 | + } | |
380 | 385 | wx.showLoading({ |
381 | 386 | title: '加载中', |
382 | 387 | mask: true | ... | ... |
pages/cart/cart2_inte/cart2_inte.js
... | ... | @@ -77,6 +77,7 @@ Page({ |
77 | 77 | order_prom: {}, |
78 | 78 | show_submit: 0, //提交按钮变正常显示 |
79 | 79 | udata: null,//用户预存值,数据 |
80 | + is_pre_cut:0, //是否可以使用预存 0是不可以1的可以 | |
80 | 81 | }, |
81 | 82 | onLoad: function (t) { |
82 | 83 | wx.setNavigationBarTitle({ title: "填写订单", }) |
... | ... | @@ -96,7 +97,7 @@ Page({ |
96 | 97 | th.data.ispt_goods = json_d.ispt_goods; //是不是平摊到单品的控制参数赋值 |
97 | 98 | var is_default_logistics = json_d.is_default_logistics; |
98 | 99 | var is_same_city = json_d.is_same_city; |
99 | - th.setData({ is_close_quan: json_d.is_close_quan, sales_rules: ee.sales_rules, | |
100 | + th.setData({is_pre_cut:json_d.is_pre_cut, is_close_quan: json_d.is_close_quan, sales_rules: ee.sales_rules, | |
100 | 101 | rank_switch: json_d.rank_switch, is_default_logistics: is_default_logistics,is_same_city:is_same_city }); |
101 | 102 | |
102 | 103 | var rank_switch = json_d.rank_switch; |
... | ... | @@ -241,6 +242,9 @@ Page({ |
241 | 242 | // let cartList= this.data.cartlist |
242 | 243 | // let cartList= arr |
243 | 244 | // let length = cartList.length |
245 | + if(this.data.is_pre_cut==0){ | |
246 | + return {} | |
247 | + } | |
244 | 248 | wx.showLoading({ |
245 | 249 | title: '加载中', |
246 | 250 | mask: true | ... | ... |
pages/cart/cart2_pt/cart2_pt.js
... | ... | @@ -67,8 +67,8 @@ Page({ |
67 | 67 | show_btn: 0, |
68 | 68 | udata: null,//用户预存值,数据 |
69 | 69 | dis_config: null, |
70 | - bn_use_commission: 0 //是不是使用佣金 | |
71 | - | |
70 | + bn_use_commission: 0, //是不是使用佣金 | |
71 | + is_pre_cut:0, //是否可以使用预存 0是不可以1的可以 | |
72 | 72 | }, |
73 | 73 | onLoad: function (t) { |
74 | 74 | console.log("onLoad_pt_cart"); |
... | ... | @@ -195,6 +195,9 @@ Page({ |
195 | 195 | // let cartList= this.data.cartlist |
196 | 196 | // let cartList= arr |
197 | 197 | // let length = cartList.length |
198 | + if(this.data.is_pre_cut==0){ | |
199 | + return {} | |
200 | + } | |
198 | 201 | wx.showLoading({ |
199 | 202 | title: '加载中', |
200 | 203 | mask: true |
... | ... | @@ -539,7 +542,7 @@ Page({ |
539 | 542 | var is_same_city = json_d.is_same_city; |
540 | 543 | |
541 | 544 | th.setData({ |
542 | - is_close_quan: json_d.is_close_quan, sales_rules: ee.sales_rules, is_same_city: is_same_city, | |
545 | + is_pre_cut:json_d.is_pre_cut,is_close_quan: json_d.is_close_quan, sales_rules: ee.sales_rules, is_same_city: is_same_city, | |
543 | 546 | rank_switch: json_d.rank_switch, is_default_logistics: is_default_logistics |
544 | 547 | }); |
545 | 548 | ... | ... |