Commit 25afed5d57e3c420b1caa1c39478e6c855c27aae
1 parent
cf77c4c5
把log日志删除掉
Showing
3 changed files
with
0 additions
and
25 deletions
pages/goods/categoryList/categoryList.js
@@ -215,8 +215,6 @@ Page({ | @@ -215,8 +215,6 @@ Page({ | ||
215 | } | 215 | } |
216 | 216 | ||
217 | } | 217 | } |
218 | - | ||
219 | - console.log("现在是1级与2级所有的数据", arr) | ||
220 | t.setData({one_level_classify:arr}); | 218 | t.setData({one_level_classify:arr}); |
221 | 219 | ||
222 | } | 220 | } |
@@ -303,8 +301,6 @@ Page({ | @@ -303,8 +301,6 @@ Page({ | ||
303 | lettersPosition = this.data.lettersPosition, | 301 | lettersPosition = this.data.lettersPosition, |
304 | eachLetterHeight = this.data.eachLetterHeight, | 302 | eachLetterHeight = this.data.eachLetterHeight, |
305 | letters = this.data.letters; | 303 | letters = this.data.letters; |
306 | - console.log(lettersPosition); | ||
307 | - console.log(y); | ||
308 | // 判断触摸点是否在字母导航栏上 | 304 | // 判断触摸点是否在字母导航栏上 |
309 | if (x >= lettersPosition[0][0]) { | 305 | if (x >= lettersPosition[0][0]) { |
310 | for (let i = 0, len = lettersPosition.length; i < len; i++) { | 306 | for (let i = 0, len = lettersPosition.length; i < len; i++) { |
@@ -358,7 +354,6 @@ Page({ | @@ -358,7 +354,6 @@ Page({ | ||
358 | }, | 354 | }, |
359 | success: function (e) { | 355 | success: function (e) { |
360 | var dda = e.data.data.pageData; | 356 | var dda = e.data.data.pageData; |
361 | - console.log("国家的数据", dda); | ||
362 | s.setData({ nationlist:dda}) | 357 | s.setData({ nationlist:dda}) |
363 | } | 358 | } |
364 | }); | 359 | }); |
@@ -388,7 +383,6 @@ Page({ | @@ -388,7 +383,6 @@ Page({ | ||
388 | success: function (e) { | 383 | success: function (e) { |
389 | var arr=new Array(); | 384 | var arr=new Array(); |
390 | var dda = e.data.data.pageData; | 385 | var dda = e.data.data.pageData; |
391 | - console.log("商品数据",dda); | ||
392 | s.setData({brand_list:dda}); | 386 | s.setData({brand_list:dda}); |
393 | for (var i = 0; i < dda.length; i++) { | 387 | for (var i = 0; i < dda.length; i++) { |
394 | 388 | ||
@@ -414,7 +408,6 @@ Page({ | @@ -414,7 +408,6 @@ Page({ | ||
414 | } | 408 | } |
415 | //进行排序 | 409 | //进行排序 |
416 | arr.sort(compare("zm")); | 410 | arr.sort(compare("zm")); |
417 | - console.log(arr); | ||
418 | s.setData({ groups: arr }); | 411 | s.setData({ groups: arr }); |
419 | 412 | ||
420 | } | 413 | } |
@@ -452,8 +445,6 @@ Page({ | @@ -452,8 +445,6 @@ Page({ | ||
452 | //图片失败,默认图片 | 445 | //图片失败,默认图片 |
453 | bind_bnerr2: function (e) { | 446 | bind_bnerr2: function (e) { |
454 | var _errImg = e.target.dataset.errorimg; | 447 | var _errImg = e.target.dataset.errorimg; |
455 | - console.log('bind_bnerr2'); | ||
456 | - console.log(_errImg); | ||
457 | var _errObj = {}; | 448 | var _errObj = {}; |
458 | _errObj[_errImg] = "/public/images/category.png"; | 449 | _errObj[_errImg] = "/public/images/category.png"; |
459 | this.setData(_errObj) //注意这里的赋值方式,只是将数据列表中的此项图片路径值替换掉 ; | 450 | this.setData(_errObj) //注意这里的赋值方式,只是将数据列表中的此项图片路径值替换掉 ; |
@@ -507,7 +498,6 @@ Page({ | @@ -507,7 +498,6 @@ Page({ | ||
507 | select_more:function(e){ | 498 | select_more:function(e){ |
508 | var cid = e.currentTarget.dataset.cid; | 499 | var cid = e.currentTarget.dataset.cid; |
509 | var pid = e.currentTarget.dataset.pid; | 500 | var pid = e.currentTarget.dataset.pid; |
510 | - console.log("选择更多"+cid); | ||
511 | var lurl = "/pages/goods/goodsList/goodsList?cat_id=" + cid + "&pid=" + pid; | 501 | var lurl = "/pages/goods/goodsList/goodsList?cat_id=" + cid + "&pid=" + pid; |
512 | wx.navigateTo({ url: lurl }); | 502 | wx.navigateTo({ url: lurl }); |
513 | 503 |
pages/goods/goodsInfo/goodsInfo.js
@@ -2622,8 +2622,6 @@ Page({ | @@ -2622,8 +2622,6 @@ Page({ | ||
2622 | 2622 | ||
2623 | //---产品名称--- | 2623 | //---产品名称--- |
2624 | //文本换行 参数:1、canvas对象,2、文本 3、距离左侧的距离 4、距离顶部的距离 5、6、文本的宽度 | 2624 | //文本换行 参数:1、canvas对象,2、文本 3、距离左侧的距离 4、距离顶部的距离 5、6、文本的宽度 |
2625 | - console.log("ssssssss", th.data.data.goods_name); | ||
2626 | - | ||
2627 | context.setFillStyle("black"); | 2625 | context.setFillStyle("black"); |
2628 | context.setFontSize(21.3 * unit) | 2626 | context.setFontSize(21.3 * unit) |
2629 | th.draw_Text(context, th.data.data.goods_name, | 2627 | th.draw_Text(context, th.data.data.goods_name, |
@@ -3127,9 +3125,6 @@ Page({ | @@ -3127,9 +3125,6 @@ Page({ | ||
3127 | var index = th.data.sec_pick_index; | 3125 | var index = th.data.sec_pick_index; |
3128 | item = th.data.sec_sto.s_arr[index]; | 3126 | item = th.data.sec_sto.s_arr[index]; |
3129 | } | 3127 | } |
3130 | - | ||
3131 | - //th.setData({fir_pick_index:0}); | ||
3132 | - console.log("选择门店刷新", "def_pick_store", item); | ||
3133 | th.setData({ | 3128 | th.setData({ |
3134 | def_pick_store: item, | 3129 | def_pick_store: item, |
3135 | sto_sele_name: item.pickup_name, | 3130 | sto_sele_name: item.pickup_name, |
@@ -3212,10 +3207,8 @@ Page({ | @@ -3212,10 +3207,8 @@ Page({ | ||
3212 | if (th.data.choice_sort_store == 0) th.setData({ | 3207 | if (th.data.choice_sort_store == 0) th.setData({ |
3213 | fir_pick_index: 0 | 3208 | fir_pick_index: 0 |
3214 | }); | 3209 | }); |
3215 | - //s.showWarning("设置门店地址成功", null, 500, !1); | ||
3216 | getApp().globalData.pk_store = item; | 3210 | getApp().globalData.pk_store = item; |
3217 | } else { | 3211 | } else { |
3218 | - console.log("门店地址失败"); | ||
3219 | //s.showWarning("设置默认门店地址失败", null, 500, !1); | 3212 | //s.showWarning("设置默认门店地址失败", null, 500, !1); |
3220 | getApp().my_warnning("设置默认门店地址失败",0,th) | 3213 | getApp().my_warnning("设置默认门店地址失败",0,th) |
3221 | } | 3214 | } |
pages/goods/search/search.js
@@ -25,8 +25,6 @@ Page({ | @@ -25,8 +25,6 @@ Page({ | ||
25 | onLoad: function(t) { | 25 | onLoad: function(t) { |
26 | var th=this; | 26 | var th=this; |
27 | a.getConfig2(function(rs){ | 27 | a.getConfig2(function(rs){ |
28 | - console.log("onload"); | ||
29 | - console.log(rs); | ||
30 | var arr=new Array(),arr2=new Array(); | 28 | var arr=new Array(),arr2=new Array(); |
31 | if (rs.hot_keywords != null && ut.trim(rs.hot_keywords)!="" ){ | 29 | if (rs.hot_keywords != null && ut.trim(rs.hot_keywords)!="" ){ |
32 | var arr1 = rs.hot_keywords.split('|'); | 30 | var arr1 = rs.hot_keywords.split('|'); |
@@ -96,9 +94,6 @@ Page({ | @@ -96,9 +94,6 @@ Page({ | ||
96 | changeTab: function(t) { | 94 | changeTab: function(t) { |
97 | var ord = t.currentTarget.dataset.href; | 95 | var ord = t.currentTarget.dataset.href; |
98 | var ad = t.currentTarget.dataset.ad; | 96 | var ad = t.currentTarget.dataset.ad; |
99 | - | ||
100 | - console.log("changeTab"); | ||
101 | - console.log(ord + ":" + ad + ":" + this.data.requestUrl); | ||
102 | 97 | ||
103 | var url = this.data.requestUrl; | 98 | var url = this.data.requestUrl; |
104 | 99 | ||
@@ -115,8 +110,6 @@ Page({ | @@ -115,8 +110,6 @@ Page({ | ||
115 | //-----------真的调用地址进行搜索------------ | 110 | //-----------真的调用地址进行搜索------------ |
116 | requestSearch: function(t) { | 111 | requestSearch: function(t) { |
117 | var a = this; | 112 | var a = this; |
118 | - console.log('requestSearch'); | ||
119 | - console.log(t,"扫描商品的搜索商品1111111111111111111111111111"); | ||
120 | 113 | ||
121 | this.data.requestUrl = t, | 114 | this.data.requestUrl = t, |
122 | //t += "&orderField=" + a.data.tabname; | 115 | //t += "&orderField=" + a.data.tabname; |
@@ -179,7 +172,6 @@ Page({ | @@ -179,7 +172,6 @@ Page({ | ||
179 | 172 | ||
180 | //-----点击搜索按钮---- | 173 | //-----点击搜索按钮---- |
181 | search: function(t) { | 174 | search: function(t) { |
182 | - console.log(t,"是什么的"); | ||
183 | if ("string" != typeof t || "" == t) return a.showWarning("请输入搜索关键词"); | 175 | if ("string" != typeof t || "" == t) return a.showWarning("请输入搜索关键词"); |
184 | this.resetData(), this.requestSearch(this.data.baseUrl + "&key_str=" + encodeURIComponent(t)); | 176 | this.resetData(), this.requestSearch(this.data.baseUrl + "&key_str=" + encodeURIComponent(t)); |
185 | }, | 177 | }, |