diff --git a/components/defaultcell/index.vue b/components/defaultcell/index.vue index e0c1200..6d09b06 100644 --- a/components/defaultcell/index.vue +++ b/components/defaultcell/index.vue @@ -268,12 +268,11 @@ } }, created() { - console.log(this.signPerson) + }, methods: { reload(list) { this.list = list - console.log('list', list) this.$forceUpdate() }, //服务完成 @@ -333,12 +332,10 @@ }, // 失败回调 fail: (res) => { - console.log('调用失败!', JSON.stringify(res)) } }) }, searchLbg(){ - console.log('变化',this.searchStr) this.getCondition(); }, //跳转导航 @@ -355,7 +352,6 @@ }, //一键复制地址 getAddress(type){ - console.log('地址',this.addressData) let data; if(type == 'send'){ data = this.addressData.shopName+'-'+this.addressData.mobile+'-河北省沧州市运河区明珠商贸城'+this.addressData.getOrderAddress @@ -374,7 +370,6 @@ }, //转单 transferOrder(data){ - console.log('转单',data) this.data = data this.getCondition(); this.$refs.popup.open('center') @@ -407,16 +402,9 @@ var farray = this.NB.wgs84togcj02(lng, lat) lng = farray[0] lat = farray[1] - console.log(farray) uni.openLocation({ latitude: parseFloat(lat), - longitude: parseFloat(lng), - success: function() { - console.log('success'); - }, - fail(err) { - console.log(err); - } + longitude: parseFloat(lng) }); } } diff --git a/components/phoneinput/index.vue b/components/phoneinput/index.vue index 91f3725..10bac5f 100644 --- a/components/phoneinput/index.vue +++ b/components/phoneinput/index.vue @@ -64,7 +64,6 @@ }, codeinput2(e) { - console.log(e.detail.value) this.num2 = e.detail.value if (this.num2.length == 1) { this.focus1 = false diff --git a/components/phoneinput/indexn.nvue b/components/phoneinput/indexn.nvue index 19614e8..1d2d3f8 100644 --- a/components/phoneinput/indexn.nvue +++ b/components/phoneinput/indexn.nvue @@ -63,7 +63,6 @@ }, codeinput2(e) { - console.log(e.detail.value) this.num2 = e.detail.value if (this.num2.length == 1) { this.focus1 = false diff --git a/components/phoneset/index.vue b/components/phoneset/index.vue index dbb30fe..524157b 100644 --- a/components/phoneset/index.vue +++ b/components/phoneset/index.vue @@ -53,7 +53,6 @@ this.$emit('colseset') }, voicechanging(e) { - console.log(e.detail.value) this.voicevalue = e.detail.value plus.device.setVolume(this.voicevalue / 100); }, diff --git a/components/print/bluetooth.js b/components/print/bluetooth.js index 24995ee..fc8c136 100644 --- a/components/print/bluetooth.js +++ b/components/print/bluetooth.js @@ -84,17 +84,14 @@ class Bluetooth { mask: true, title: '设别连接中,请稍候...' }) - console.log(deviceId); return new Promise((resolve, reject) => { uni.createBLEConnection({ deviceId, timeout: 5000, success: (res) => { - console.log(res) resolve(res) }, fail: err => { - console.log(err) if (err.errMsg == "createBLEConnection:fail already connect") { resolve(err) return true; @@ -165,12 +162,9 @@ class Bluetooth { uni.setStorageSync('writeId', self.writeId); } } - console.log("notifyId:" + self.notifyId) - console.log("writeId:" + self.writeId) if (!self.writeId || !self.notifyId) { self.num++ if (self.num == service.length) { - console.log('找不到该读写的特征值') reject('找不到该读写的特征值'); return false; } else { @@ -209,24 +203,17 @@ class Bluetooth { let deviceId = this.deviceId; let serviceId = this.serviceId; let characteristicId = this.notifyId; - console.log('----notifyBLECharacteristicValue----') - console.log(characteristicId) - console.log(serviceId) - console.log(deviceId) + uni.notifyBLECharacteristicValueChange({ state: true, // 启用 notify 功能 deviceId, serviceId, characteristicId, success(res) { - console.log(res); + uni.onBLECharacteristicValueChange(function(res) { - console.log(res); + }); - }, - fail(res) { - console.log('notifyBLECharacteristicValueChange failed:' + res.errMsg); - } }); } @@ -235,11 +222,7 @@ class Bluetooth { let deviceId = this.deviceId; let serviceId = this.serviceId; let characteristicId = this.writeId; - console.log('----writeBLECharacteristicValue----') - console.log(characteristicId) - console.log(serviceId) - console.log(deviceId) - console.log("this: " + JSON.stringify(this)); + return new Promise((resolve, reject) => { uni.writeBLECharacteristicValue({ deviceId, @@ -247,11 +230,9 @@ class Bluetooth { characteristicId, value: buffer, success(res) { - console.log('message发送成功', JSON.stringify(res)); resolve(res); }, fail(err) { - console.log('message发送失败', JSON.stringify(err)); reject(err); } }); @@ -261,7 +242,7 @@ class Bluetooth { closeBluetoothAdapter() { uni.closeBluetoothAdapter({ success: res => { - console.log(res) + } }); } @@ -274,17 +255,14 @@ class Bluetooth { this.serviceId = this.serviceId || uni.getStorageSync("serviceId"); let result1 = await this.createBLEConnection(); - console.log("createBLEConnection: " + JSON.stringify(result1)); let result2 = await this.getBLEDeviceServices(); - console.log("getBLEDeviceServices: " + JSON.stringify(result2)); let result3 = await this.getBLEDeviceCharacteristics(); - console.log("getBLEDeviceCharacteristics: " + JSON.stringify(result3)); } catch (err) { - console.log("err: " + JSON.stringify(err)); + } })(); diff --git a/components/tab-bar/delivery.vue b/components/tab-bar/delivery.vue index 4117f22..916b3ee 100644 --- a/components/tab-bar/delivery.vue +++ b/components/tab-bar/delivery.vue @@ -218,7 +218,6 @@ this.getList() }, onReachPage(){ - console.log("11111") if (this.searchForm.pageNum >= this.totalPages) return; this.searchForm.pageNum++; this.getList(); diff --git a/components/tab-bar/myCenter.vue b/components/tab-bar/myCenter.vue index bad47ef..208abfa 100644 --- a/components/tab-bar/myCenter.vue +++ b/components/tab-bar/myCenter.vue @@ -107,7 +107,7 @@ keys.forEach(key => { data[key] = uni.getStorageSync(key); }); - console.log('所有的缓存',data) + }, logOut() { uni.clearStorage() @@ -120,9 +120,9 @@ getRegistrationID() { //获取registerID jpushModule.getRegistrationID(result => { let registerID = result.registerID - console.log("看这里", result) + uni.setStorageSync("registerID", registerID) - // uni.setStorageSync("signPerson", result.signPerson) + }) }, navigatorTo(e){ diff --git a/components/tui-chat/message-elements/audio-message/index.vue b/components/tui-chat/message-elements/audio-message/index.vue index 94c0fd0..b5e98fe 100644 --- a/components/tui-chat/message-elements/audio-message/index.vue +++ b/components/tui-chat/message-elements/audio-message/index.vue @@ -39,13 +39,13 @@ export default { beforeMount() { this.audio = uni.createInnerAudioContext(); this.audio.onPlay(() => { - console.log('开始播放'); + }); this.audio.onEnded(() => { - console.log('停止播放'); + }); this.audio.onError(e => { - console.error(e, 'onError'); + // ios 音频播放无声,可能是因为系统开启了静音模式 uni.showToast({ icon: 'none', diff --git a/components/tui-chat/message-elements/file-message/index.vue b/components/tui-chat/message-elements/file-message/index.vue index 8d704e3..05ea555 100644 --- a/components/tui-chat/message-elements/file-message/index.vue +++ b/components/tui-chat/message-elements/file-message/index.vue @@ -63,7 +63,7 @@ export default { filePath, success() { - console.log('打开文档成功'); + } }); } diff --git a/components/tui-chat/message-input/index.vue b/components/tui-chat/message-input/index.vue index 4cc0a2b..4ccbeb9 100644 --- a/components/tui-chat/message-input/index.vue +++ b/components/tui-chat/message-input/index.vue @@ -305,7 +305,7 @@ export default { }, error(e) { - console.log(e.detail); + }, handleSendPicture() { @@ -452,7 +452,7 @@ export default { type: value }, res => { - console.log(JSON.stringify(res)); + } ); } @@ -575,11 +575,11 @@ export default { }, inputBindFocus() { - console.log('占位:函数 inputBindFocus 未声明'); + }, inputBindBlur() { - console.log('占位:函数 inputBindBlur 未声明'); + } } }; diff --git a/components/tui-chat/message-list/index.vue b/components/tui-chat/message-list/index.vue index 4dc76ff..bf2ef02 100644 --- a/components/tui-chat/message-list/index.vue +++ b/components/tui-chat/message-list/index.vue @@ -166,7 +166,7 @@ for (let i = 0; i < messageList.length; i++) { var item = messageList[i] if(item.payload.text.indexOf('TUIKit-kami') != -1){ - console.log('messageList',item.payload.text) + }else{ newList.push(item) @@ -233,7 +233,7 @@ } }, doFanyiItem(item) { - console.log(item.payload.text) + uni.showLoading({ title: ' ' }) @@ -254,18 +254,18 @@ toLag + '&q=' + item.payload.text, success: function(res) { uni.hideLoading(); - console.log(res.data[0][0][0]) + item.fanyi = res.data[0][0][0] that.$forceUpdate() }, fail: function(error) { - console.log(error) + uni.hideLoading(); }, complete:function(res){ - console.log(res.data[0][0]) + uni.hideLoading(); } }) diff --git a/components/tui-conversation/conversation-item/index.vue b/components/tui-conversation/conversation-item/index.vue index be3027d..7808487 100644 --- a/components/tui-conversation/conversation-item/index.vue +++ b/components/tui-conversation/conversation-item/index.vue @@ -159,15 +159,15 @@ }); }, touchS: function(e) { - // console.log('touchS') + if (e.touches.length == 1) { //设置触摸起始点水平方向位置 this.startX = e.touches[0].clientX - // console.log(this.startX) + } }, touchM: function(e) { - // console.log('touchM') + if (e.touches.length == 1) { //手指移动时水平方向位置 var moveX = e.touches[0].clientX; @@ -190,7 +190,7 @@ } }, touchE: function(e) { - // console.log('touchE') + if (e.changedTouches.length == 1) { //手指移动结束后水平位置 var endX = e.changedTouches[0].clientX; diff --git a/components/z-calendar/z-calendar.vue b/components/z-calendar/z-calendar.vue index 3b01a83..9e132c4 100644 --- a/components/z-calendar/z-calendar.vue +++ b/components/z-calendar/z-calendar.vue @@ -188,7 +188,7 @@ this.emitMonthChange(); }, dateClick(e) { - console.log(e) + const { dateObj, isPreMonth,