tianyi 3 days ago
parent
commit
5405a6a84e
  1. 16
      components/defaultcell/index.vue
  2. 1
      components/phoneinput/index.vue
  3. 1
      components/phoneinput/indexn.nvue
  4. 1
      components/phoneset/index.vue
  5. 34
      components/print/bluetooth.js
  6. 1
      components/tab-bar/delivery.vue
  7. 6
      components/tab-bar/myCenter.vue
  8. 6
      components/tui-chat/message-elements/audio-message/index.vue
  9. 2
      components/tui-chat/message-elements/file-message/index.vue
  10. 8
      components/tui-chat/message-input/index.vue
  11. 10
      components/tui-chat/message-list/index.vue
  12. 8
      components/tui-conversation/conversation-item/index.vue
  13. 2
      components/z-calendar/z-calendar.vue

16
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)
});
}
}

1
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

1
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

1
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);
},

34
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));
}
})();

1
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();

6
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){

6
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',

2
components/tui-chat/message-elements/file-message/index.vue

@ -63,7 +63,7 @@ export default {
filePath,
success() {
console.log('打开文档成功');
}
});
}

8
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 未声明');
}
}
};

10
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();
}
})

8
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;

2
components/z-calendar/z-calendar.vue

@ -188,7 +188,7 @@
this.emitMonthChange();
},
dateClick(e) {
console.log(e)
const {
dateObj,
isPreMonth,

Loading…
Cancel
Save