From 6927ef30be08fe3e283474d0b83839b11beec586 Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Sat, 5 Mar 2022 10:51:44 +0800 Subject: [PATCH] 注释清理 --- pages/cart/cart2_inte/cart2_inte.js | 13 ------------- pages/team/team_ping/team_ping.js | 7 ------- utils/filter.wxs | 19 +------------------ 3 files changed, 1 insertion(+), 38 deletions(-) diff --git a/pages/cart/cart2_inte/cart2_inte.js b/pages/cart/cart2_inte/cart2_inte.js index 75f3330..389ee79 100644 --- a/pages/cart/cart2_inte/cart2_inte.js +++ b/pages/cart/cart2_inte/cart2_inte.js @@ -161,19 +161,6 @@ Page({ } else { this.getuser_addr(function (ie) { - /*-- - //地址切换要把包邮券清空 - if( !th.data.user_addr || !ie || th.data.user_addr.address_id!=ie.address_id){ - var using_quan=th.data.using_quan; - for(var i in using_quan){ - var item=using_quan[i]; - if(item.isby==1){ - var ob={},txt="using_quan["+i+"]";ob[txt]={}; - th.setData(ob); - } - } - - }--*/ //th.data.prom_goods_map={}; //更换地址回来要重新调用计算价钱的接口 diff --git a/pages/team/team_ping/team_ping.js b/pages/team/team_ping/team_ping.js index 590cf9c..5217980 100644 --- a/pages/team/team_ping/team_ping.js +++ b/pages/team/team_ping/team_ping.js @@ -90,13 +90,6 @@ Page({ order_goods=null;//订单商品表 //获取订单表的信息根据活动user_id,pt_prom_id>0 AND pay_time>0 - /*--- - await getApp().request.promiseGet("/api/weshop/order/page?"+where, { - data: { is_pt:1,store_id: os.stoid, user_id: user_id, pageSize: 6, page: this.data.currentPage,} - }).then(res => { - order = res.data.data.pageData; - this.data.currentPage++; - })--*/ await getApp().request.promiseGet("/api/weshop/order/pageTuan?"+where, { data: { is_pt:1,store_id: os.stoid, user_id: user_id, pageSize: 6, page: this.data.currentPage,} diff --git a/utils/filter.wxs b/utils/filter.wxs index 83bdcfa..52cd24a 100644 --- a/utils/filter.wxs +++ b/utils/filter.wxs @@ -82,24 +82,7 @@ var filters = { } }, - - // show_default: function (value, placeholder, multiple) { - // if(typeof value === 'number') { - // if(isNaN(value) || value === 0) { - // return placeholder || '0'; - // } else { - // if(multiple) { - // return value / multiple; - // } else { - // return value; - // } - // }; - // } else if(value === '' || value === undefined || value === null) { - // return placeholder || '-'; - // } else { - // return value; - // } - // }, + show_default: function (value, placeholder, multiple) { if(typeof value === 'number') { if(isNaN(value)) { -- libgit2 0.21.4