From da13b6a89ef2befe4de152e4b1eb6a24a835bb70 Mon Sep 17 00:00:00 2001 From: duanzhijiang Date: Thu, 5 Jan 2023 20:46:16 +0800 Subject: [PATCH] swiper remove log --- src/components/swiper/swiper.ts | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/components/swiper/swiper.ts b/src/components/swiper/swiper.ts index e56ea24..ade1699 100644 --- a/src/components/swiper/swiper.ts +++ b/src/components/swiper/swiper.ts @@ -190,7 +190,7 @@ export class StarLockNumber extends StarBaseElement { } ulWidth(enlarge: Boolean) { if (enlarge) { - console.log('预览') + /* 预览 */ this.cur_ul_width = (this.figure_arr.length + 1) * (this.cur_li_width + this.cur_li_margin_right) * @@ -198,16 +198,12 @@ export class StarLockNumber extends StarBaseElement { this.cur_ul.style.setProperty('width', this.cur_ul_width + 'px') this.cur_ul.style.setProperty('left', 487 - 124 * this.index + 'vw') } else { - console.log('非预览') + /* 非预览 */ this.cur_ul_width = (this.figure_arr.length + 1) * (this.cur_li_width + this.cur_li_margin_right) this.cur_ul.style.setProperty('width', this.cur_ul_width + 'px') this.cur_ul.style.setProperty('left', 28.4 - 53.6 * this.index + 'vw') - console.log('this.cur_li_width', this.cur_li_width) - console.log('this.cur_li_margin_right', this.cur_li_margin_right) - console.log('this.figure_arr.length + 1', this.figure_arr.length + 1) - console.log('this.cur_ul_width', this.cur_ul_width) } } touchStart(e: TouchEvent) { @@ -253,7 +249,6 @@ export class StarLockNumber extends StarBaseElement { 'transition', 'left .3s cubic-bezier(.05,.62,.42,.9)' ) - console.log('index', this.index) //清零移动距离 this.distanceX = 0 } else { @@ -283,7 +278,6 @@ export class StarLockNumber extends StarBaseElement { 'transition', 'left .3s cubic-bezier(.05,.62,.42,.9)' ) - console.log('index', this.index) //清零移动距离 this.distanceX = 0 } @@ -342,7 +336,7 @@ export class StarLockNumber extends StarBaseElement { touchStartMenu(e: TouchEvent) { this.type = data.type[this.index] if ((e.target as Element).id === 'onlyStyle') { - console.log('onlyStyle') + // console.log('onlyStyle') this.menu.removeAttribute('style') // this.menu.style.setProperty('animation', 'sliderBack .5s') // this.menu.style.setProperty('animation-fill-mode', 'forwards') @@ -360,7 +354,7 @@ export class StarLockNumber extends StarBaseElement { //预览时点击应用会保存预览变大的状态 this.enlarge ? this.preview() : '' } else if ((e.target as Element).id === 'styleAndWallpaper') { - console.log('styleAndWallpaper') + // console.log('styleAndWallpaper') this.menu.removeAttribute('style') // this.menu.style.setProperty('animation', 'sliderBack .5s') // this.menu.style.setProperty('animation-fill-mode', 'forwards') @@ -378,7 +372,7 @@ export class StarLockNumber extends StarBaseElement { //预览时点击应用会保存预览变大的状态 this.enlarge ? this.preview() : '' } else if ((e.target as Element).id === 'menuCancel') { - console.log('menuCancel') + // console.log('menuCancel') this.menu.removeAttribute('style') this.menu.style.setProperty('animation', 'sliderBack .5s') this.menu.style.setProperty('animation-fill-mode', 'forwards')