From ec68235a777c84a11cbe756a6fdebf38968d8764 Mon Sep 17 00:00:00 2001 From: "442384644@qq.com" <442384644@qq.com> Date: Sat, 22 Jan 2022 15:53:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=E7=9A=84co?= =?UTF-8?q?nsole=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cus-previewImg/cus-previewImg.vue | 3 +-- .../goodsWaterfall/goodsWaterfall.vue | 4 ++-- template/uni-app/components/guide/index.vue | 1 - .../components/lottery/js/grids_lottery.js | 8 +++---- .../uni-app/components/skeleton/index.vue | 1 - .../goods_combination_details/index.vue | 22 ++++++++--------- .../activity/goods_seckill_details/index.vue | 24 +++++++++---------- .../pages/activity/lottery/grids/index.vue | 1 - .../pages/activity/presell_details/index.vue | 9 +++---- template/uni-app/pages/customer_list/chat.vue | 5 ++-- template/uni-app/pages/guide/index.vue | 1 - .../points_mall/integral_goods_details.vue | 10 ++++---- 12 files changed, 37 insertions(+), 52 deletions(-) diff --git a/template/uni-app/components/cus-previewImg/cus-previewImg.vue b/template/uni-app/components/cus-previewImg/cus-previewImg.vue index 6829b3dc7..f9c35649e 100644 --- a/template/uni-app/components/cus-previewImg/cus-previewImg.vue +++ b/template/uni-app/components/cus-previewImg/cus-previewImg.vue @@ -46,13 +46,12 @@ }, watch: { list(val) { - // console.log('图片预览', val) + } }, methods: { // 左右切换 changeSwiper(e) { - console.log(e.target.current) this.currentIndex = e.target.current; this.$emit('changeSwitch',e.target.current) }, diff --git a/template/uni-app/components/goodsWaterfall/goodsWaterfall.vue b/template/uni-app/components/goodsWaterfall/goodsWaterfall.vue index 176c42ff3..878941b67 100644 --- a/template/uni-app/components/goodsWaterfall/goodsWaterfall.vue +++ b/template/uni-app/components/goodsWaterfall/goodsWaterfall.vue @@ -105,7 +105,7 @@ that.lists2 = [] } this.tmp_data.map((da, di) => { - console.log(that.list1Height,that.list2Height) + if (that.list1Height > that.list2Height) { that.list2Height += da.img_height that.lists2.push(da) @@ -118,7 +118,7 @@ }, //图片加载完成补齐数据 imgLoad(e) { - console.log(e.target.id,e.detail.width,e.detail.height) + this.loaded.push(e.target.id) //存储数据 // this.tmp_data[e.target.id]['img_width'] = e.detail.width diff --git a/template/uni-app/components/guide/index.vue b/template/uni-app/components/guide/index.vue index d1965e34e..abb9fdcdb 100644 --- a/template/uni-app/components/guide/index.vue +++ b/template/uni-app/components/guide/index.vue @@ -42,7 +42,6 @@ } }, mounted() { - console.log(this.advData) this.timer() }, methods: { diff --git a/template/uni-app/components/lottery/js/grids_lottery.js b/template/uni-app/components/lottery/js/grids_lottery.js index 599a004c1..e224068f5 100644 --- a/template/uni-app/components/lottery/js/grids_lottery.js +++ b/template/uni-app/components/lottery/js/grids_lottery.js @@ -14,16 +14,16 @@ function LotteryDraw(obj, callback) { LotteryDraw.prototype = { rollFn: function() { var that = this; - // console.log(`获奖位置:${this.winingIndex}`) + // 活动index值增加,即移动到下一个格子 this.startIndex++; - + //startIndex是最后一个时一圈走完,重新开始 if (this.startIndex >= this.domData.length - 1) { this.startIndex = 0; this.count++; } - + // 当跑的圈数等于设置的圈数,且活动的index值是奖品的位置时停止 if (this.count >= this.totalCount && this.startIndex === this.winingIndex) { if (typeof this.callback === 'function') { @@ -44,4 +44,4 @@ LotteryDraw.prototype = { } } -module.exports = LotteryDraw; \ No newline at end of file +module.exports = LotteryDraw; diff --git a/template/uni-app/components/skeleton/index.vue b/template/uni-app/components/skeleton/index.vue index ae490128f..8e0d40717 100644 --- a/template/uni-app/components/skeleton/index.vue +++ b/template/uni-app/components/skeleton/index.vue @@ -93,7 +93,6 @@ const that = this; uni.createSelectorQuery().selectAll(`.${this.selector}-radius`).boundingClientRect().exec(function(res) { - console.log(res) that.skeletonCircleLists = res[0]; }); } diff --git a/template/uni-app/pages/activity/goods_combination_details/index.vue b/template/uni-app/pages/activity/goods_combination_details/index.vue index d482c584f..72443bf75 100644 --- a/template/uni-app/pages/activity/goods_combination_details/index.vue +++ b/template/uni-app/pages/activity/goods_combination_details/index.vue @@ -480,7 +480,7 @@ try { uni.setStorageSync('comGoodsId', options.id); } catch (e) {} - // #endif + // #endif this.$Cache.set('login_back_url', `/pages/activity/goods_combination_details/index?id=${options.id}`); toLogin(); @@ -554,7 +554,7 @@ }, /** * 购物车手动填写 - * + * */ iptCartNum: function(e) { this.$set(this.attribute.productSelect, 'cart_num', e); @@ -691,7 +691,7 @@ // }, /** * 默认选中属性 - * + * */ DefaultSelect: function() { @@ -803,7 +803,7 @@ }, /** * 购物车数量加和数量减 - * + * */ ChangeCartNum: function(changeValue) { //changeValue:是否 加|减 @@ -867,7 +867,7 @@ }, /** * 属性变动赋值 - * + * */ ChangeAttr: function(res) { this.$set(this, 'cart_num', 1); @@ -957,7 +957,7 @@ /** * 分享打开 - * + * */ listenerActionSheet: function() { if (this.isLogin == false) { @@ -1022,7 +1022,7 @@ /** * 获取产品分销二维码 * @param function successFn 下载完成回调 - * + * */ downloadFilePromotionCode: function(successFn) { let that = this; @@ -1245,11 +1245,9 @@ }, //滑动轮播图选择商品 changeSwitch(e) { - console.log(this.skuArr[e]) let productSelect = this.skuArr[e]; this.$set(this, "selectSku", productSelect); var skuList = productSelect.suk.split(","); - console.log(this.attribute.productAttr) this.$set(this.attribute.productAttr[0], "index", skuList[0]); if (skuList.length == 2) { this.$set(this.attribute.productAttr[0], "index", skuList[0]); @@ -1766,7 +1764,7 @@ display: block; margin-right: 14rpx; } - + .switchTxt { height: 60rpx; flex: 1; @@ -1777,7 +1775,7 @@ border-radius: 8rpx; text-align: center; } - + .attribute { padding: 10rpx 30rpx; .line1 { @@ -1792,7 +1790,7 @@ .flexs { display: flex; } - + .attr-txt { display: flex; flex-wrap: nowrap; diff --git a/template/uni-app/pages/activity/goods_seckill_details/index.vue b/template/uni-app/pages/activity/goods_seckill_details/index.vue index 30907c29c..a8c8b2d09 100644 --- a/template/uni-app/pages/activity/goods_seckill_details/index.vue +++ b/template/uni-app/pages/activity/goods_seckill_details/index.vue @@ -163,7 +163,7 @@ /> - + @@ -469,7 +469,7 @@ // #endif /** * 购物车手动填写 - * + * */ iptCartNum: function(e) { this.$set(this.attribute.productSelect, 'cart_num', e); @@ -580,7 +580,7 @@ }, /** * 默认选中属性 - * + * */ DefaultSelect: function() { let self = this @@ -661,7 +661,7 @@ }, /** * 购物车数量加和数量减 - * + * */ ChangeCartNum: function(changeValue) { //changeValue:是否 加|减 @@ -727,7 +727,7 @@ }, /** * 属性变动赋值 - * + * */ ChangeAttr: function(res) { this.$set(this, 'cart_num', 1); @@ -875,7 +875,7 @@ }, /** * 分享打开 - * + * */ listenerActionSheet: function() { if (this.isLogin === false) { @@ -924,7 +924,7 @@ /** * 获取产品分销二维码 * @param function successFn 下载完成回调 - * + * */ downloadFilePromotionCode: function(successFn) { let that = this; @@ -1114,11 +1114,9 @@ }, //滑动轮播图选择商品 changeSwitch(e) { - console.log(this.skuArr[e]) let productSelect = this.skuArr[e]; this.$set(this, "selectSku", productSelect); var skuList = productSelect.suk.split(","); - console.log(this.attribute.productAttr) this.$set(this.attribute.productAttr[0], "index", skuList[0]); if (skuList.length == 2) { this.$set(this.attribute.productAttr[0], "index", skuList[0]); @@ -1263,7 +1261,7 @@ padding: 0 30rpx; box-sizing: border-box; } - + .product-con .nav /deep/.time .styleAll { padding: 0 6rpx; font-size: 22rpx; @@ -1551,7 +1549,7 @@ display: block; margin-right: 14rpx; } - + .switchTxt { height: 60rpx; flex: 1; @@ -1562,7 +1560,7 @@ border-radius: 8rpx; text-align: center; } - + .attribute { padding: 10rpx 30rpx; .line1 { @@ -1577,7 +1575,7 @@ .flexs { display: flex; } - + .attr-txt { display: flex; flex-wrap: nowrap; diff --git a/template/uni-app/pages/activity/lottery/grids/index.vue b/template/uni-app/pages/activity/lottery/grids/index.vue index e6a2ff451..30abc042a 100644 --- a/template/uni-app/pages/activity/lottery/grids/index.vue +++ b/template/uni-app/pages/activity/lottery/grids/index.vue @@ -283,7 +283,6 @@ luck_draw_finish(param) { this.aleartType = 2 this.aleartStatus = true - // console.log(`抽到第${param+1}个方格的奖品`) }, qrR(res) { this.codeSrc = res diff --git a/template/uni-app/pages/activity/presell_details/index.vue b/template/uni-app/pages/activity/presell_details/index.vue index 37b3f003e..b98e33abd 100644 --- a/template/uni-app/pages/activity/presell_details/index.vue +++ b/template/uni-app/pages/activity/presell_details/index.vue @@ -720,7 +720,6 @@ let obj = res.data.productValue[key]; that.skuArr.push(obj); } - console.log(that.skuArr) that.$set(that, "selectSku", that.skuArr[0]); var navList = ['商品', '评价', '详情']; if (goodArray.length) { @@ -1317,12 +1316,10 @@ }, //滑动轮播图选择商品 changeSwitch(e) { - console.log(this.skuArr,e) let productSelect = this.skuArr[e]; this.$set(this, "selectSku", productSelect); var skuList = productSelect.suk.split(","); this.$set(this.attr.productAttr[0], "index", skuList[0]); - console.log(this.skuList) if (skuList.length == 2) { this.$set(this.attr.productAttr[0], "index", skuList[0]); this.$set(this.attr.productAttr[1], "index", skuList[1]); @@ -1921,7 +1918,7 @@ display: block; margin-right: 14rpx; } - + .switchTxt { height: 60rpx; flex: 1; @@ -1932,7 +1929,7 @@ border-radius: 8rpx; text-align: center; } - + .attribute { padding: 10rpx 30rpx; .line1 { @@ -1947,7 +1944,7 @@ .flexs { display: flex; } - + .attr-txt { display: flex; flex-wrap: nowrap; diff --git a/template/uni-app/pages/customer_list/chat.vue b/template/uni-app/pages/customer_list/chat.vue index 10e7da28a..e316bece5 100644 --- a/template/uni-app/pages/customer_list/chat.vue +++ b/template/uni-app/pages/customer_list/chat.vue @@ -236,7 +236,6 @@ // #endif // 初始化 if (app.globalData.isWsOpen) { - console.log('2222') this.$socket.send({ data: { token: this.$store.state.app.token, @@ -275,13 +274,13 @@ }); this.$nextTick(e => { this.getChatList(); - }) + }) }); // 监听客服转接 uni.$on('to_transfer', data => { this.toUid = data.toUid; this.$socket.send({ - + data: { id: this.toUid }, diff --git a/template/uni-app/pages/guide/index.vue b/template/uni-app/pages/guide/index.vue index 01aafdce3..c77f6eb09 100644 --- a/template/uni-app/pages/guide/index.vue +++ b/template/uni-app/pages/guide/index.vue @@ -33,7 +33,6 @@ return } getOpenAdv().then(res => { - console.log(res) if (!res.data.length) { uni.switchTab({ url: '/pages/index/index' diff --git a/template/uni-app/pages/points_mall/integral_goods_details.vue b/template/uni-app/pages/points_mall/integral_goods_details.vue index 07406009f..1433768c0 100644 --- a/template/uni-app/pages/points_mall/integral_goods_details.vue +++ b/template/uni-app/pages/points_mall/integral_goods_details.vue @@ -319,7 +319,7 @@ // #endif /** * 购物车手动填写 - * + * */ iptCartNum: function(e) { this.$set(this.attribute.productSelect, 'cart_num', e); @@ -394,7 +394,7 @@ }, /** * 默认选中属性 - * + * */ DefaultSelect: function() { let self = this @@ -475,7 +475,7 @@ }, /** * 购物车数量加和数量减 - * + * */ ChangeCartNum: function(changeValue) { //changeValue:是否 加|减 @@ -519,7 +519,7 @@ }, /** * 属性变动赋值 - * + * */ ChangeAttr: function(res) { this.$set(this, 'cart_num', 1); @@ -585,11 +585,9 @@ }, //滑动轮播图选择商品 changeSwitch(e) { - console.log(this.skuArr[e]) let productSelect = this.skuArr[e]; this.$set(this, "selectSku", productSelect); var skuList = productSelect.suk.split(","); - console.log(this.attribute.productAttr) this.$set(this.attribute.productAttr[0], "index", skuList[0]); if (skuList.length == 2) { this.$set(this.attribute.productAttr[0], "index", skuList[0]);