tianyi 4 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() { created() {
console.log(this.signPerson)
}, },
methods: { methods: {
reload(list) { reload(list) {
this.list = list this.list = list
console.log('list', list)
this.$forceUpdate() this.$forceUpdate()
}, },
// //
@ -333,12 +332,10 @@
}, },
// //
fail: (res) => { fail: (res) => {
console.log('调用失败!', JSON.stringify(res))
} }
}) })
}, },
searchLbg(){ searchLbg(){
console.log('变化',this.searchStr)
this.getCondition(); this.getCondition();
}, },
// //
@ -355,7 +352,6 @@
}, },
// //
getAddress(type){ getAddress(type){
console.log('地址',this.addressData)
let data; let data;
if(type == 'send'){ if(type == 'send'){
data = this.addressData.shopName+'-'+this.addressData.mobile+'-河北省沧州市运河区明珠商贸城'+this.addressData.getOrderAddress data = this.addressData.shopName+'-'+this.addressData.mobile+'-河北省沧州市运河区明珠商贸城'+this.addressData.getOrderAddress
@ -374,7 +370,6 @@
}, },
// //
transferOrder(data){ transferOrder(data){
console.log('转单',data)
this.data = data this.data = data
this.getCondition(); this.getCondition();
this.$refs.popup.open('center') this.$refs.popup.open('center')
@ -407,16 +402,9 @@
var farray = this.NB.wgs84togcj02(lng, lat) var farray = this.NB.wgs84togcj02(lng, lat)
lng = farray[0] lng = farray[0]
lat = farray[1] lat = farray[1]
console.log(farray)
uni.openLocation({ uni.openLocation({
latitude: parseFloat(lat), latitude: parseFloat(lat),
longitude: parseFloat(lng), longitude: parseFloat(lng)
success: function() {
console.log('success');
},
fail(err) {
console.log(err);
}
}); });
} }
} }

1
components/phoneinput/index.vue

@ -64,7 +64,6 @@
}, },
codeinput2(e) { codeinput2(e) {
console.log(e.detail.value)
this.num2 = e.detail.value this.num2 = e.detail.value
if (this.num2.length == 1) { if (this.num2.length == 1) {
this.focus1 = false this.focus1 = false

1
components/phoneinput/indexn.nvue

@ -63,7 +63,6 @@
}, },
codeinput2(e) { codeinput2(e) {
console.log(e.detail.value)
this.num2 = e.detail.value this.num2 = e.detail.value
if (this.num2.length == 1) { if (this.num2.length == 1) {
this.focus1 = false this.focus1 = false

1
components/phoneset/index.vue

@ -53,7 +53,6 @@
this.$emit('colseset') this.$emit('colseset')
}, },
voicechanging(e) { voicechanging(e) {
console.log(e.detail.value)
this.voicevalue = e.detail.value this.voicevalue = e.detail.value
plus.device.setVolume(this.voicevalue / 100); plus.device.setVolume(this.voicevalue / 100);
}, },

34
components/print/bluetooth.js

@ -84,17 +84,14 @@ class Bluetooth {
mask: true, mask: true,
title: '设别连接中,请稍候...' title: '设别连接中,请稍候...'
}) })
console.log(deviceId);
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
uni.createBLEConnection({ uni.createBLEConnection({
deviceId, deviceId,
timeout: 5000, timeout: 5000,
success: (res) => { success: (res) => {
console.log(res)
resolve(res) resolve(res)
}, },
fail: err => { fail: err => {
console.log(err)
if (err.errMsg == "createBLEConnection:fail already connect") { if (err.errMsg == "createBLEConnection:fail already connect") {
resolve(err) resolve(err)
return true; return true;
@ -165,12 +162,9 @@ class Bluetooth {
uni.setStorageSync('writeId', self.writeId); uni.setStorageSync('writeId', self.writeId);
} }
} }
console.log("notifyId:" + self.notifyId)
console.log("writeId:" + self.writeId)
if (!self.writeId || !self.notifyId) { if (!self.writeId || !self.notifyId) {
self.num++ self.num++
if (self.num == service.length) { if (self.num == service.length) {
console.log('找不到该读写的特征值')
reject('找不到该读写的特征值'); reject('找不到该读写的特征值');
return false; return false;
} else { } else {
@ -209,24 +203,17 @@ class Bluetooth {
let deviceId = this.deviceId; let deviceId = this.deviceId;
let serviceId = this.serviceId; let serviceId = this.serviceId;
let characteristicId = this.notifyId; let characteristicId = this.notifyId;
console.log('----notifyBLECharacteristicValue----')
console.log(characteristicId)
console.log(serviceId)
console.log(deviceId)
uni.notifyBLECharacteristicValueChange({ uni.notifyBLECharacteristicValueChange({
state: true, // 启用 notify 功能 state: true, // 启用 notify 功能
deviceId, deviceId,
serviceId, serviceId,
characteristicId, characteristicId,
success(res) { success(res) {
console.log(res);
uni.onBLECharacteristicValueChange(function(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 deviceId = this.deviceId;
let serviceId = this.serviceId; let serviceId = this.serviceId;
let characteristicId = this.writeId; 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) => { return new Promise((resolve, reject) => {
uni.writeBLECharacteristicValue({ uni.writeBLECharacteristicValue({
deviceId, deviceId,
@ -247,11 +230,9 @@ class Bluetooth {
characteristicId, characteristicId,
value: buffer, value: buffer,
success(res) { success(res) {
console.log('message发送成功', JSON.stringify(res));
resolve(res); resolve(res);
}, },
fail(err) { fail(err) {
console.log('message发送失败', JSON.stringify(err));
reject(err); reject(err);
} }
}); });
@ -261,7 +242,7 @@ class Bluetooth {
closeBluetoothAdapter() { closeBluetoothAdapter() {
uni.closeBluetoothAdapter({ uni.closeBluetoothAdapter({
success: res => { success: res => {
console.log(res)
} }
}); });
} }
@ -274,17 +255,14 @@ class Bluetooth {
this.serviceId = this.serviceId || uni.getStorageSync("serviceId"); this.serviceId = this.serviceId || uni.getStorageSync("serviceId");
let result1 = await this.createBLEConnection(); let result1 = await this.createBLEConnection();
console.log("createBLEConnection: " + JSON.stringify(result1));
let result2 = await this.getBLEDeviceServices(); let result2 = await this.getBLEDeviceServices();
console.log("getBLEDeviceServices: " + JSON.stringify(result2));
let result3 = await this.getBLEDeviceCharacteristics(); let result3 = await this.getBLEDeviceCharacteristics();
console.log("getBLEDeviceCharacteristics: " + JSON.stringify(result3));
} catch (err) { } catch (err) {
console.log("err: " + JSON.stringify(err));
} }
})(); })();

1
components/tab-bar/delivery.vue

@ -218,7 +218,6 @@
this.getList() this.getList()
}, },
onReachPage(){ onReachPage(){
console.log("11111")
if (this.searchForm.pageNum >= this.totalPages) return; if (this.searchForm.pageNum >= this.totalPages) return;
this.searchForm.pageNum++; this.searchForm.pageNum++;
this.getList(); this.getList();

6
components/tab-bar/myCenter.vue

@ -107,7 +107,7 @@
keys.forEach(key => { keys.forEach(key => {
data[key] = uni.getStorageSync(key); data[key] = uni.getStorageSync(key);
}); });
console.log('所有的缓存',data)
}, },
logOut() { logOut() {
uni.clearStorage() uni.clearStorage()
@ -120,9 +120,9 @@
getRegistrationID() { //registerID getRegistrationID() { //registerID
jpushModule.getRegistrationID(result => { jpushModule.getRegistrationID(result => {
let registerID = result.registerID let registerID = result.registerID
console.log("看这里", result)
uni.setStorageSync("registerID", registerID) uni.setStorageSync("registerID", registerID)
// uni.setStorageSync("signPerson", result.signPerson)
}) })
}, },
navigatorTo(e){ navigatorTo(e){

6
components/tui-chat/message-elements/audio-message/index.vue

@ -39,13 +39,13 @@ export default {
beforeMount() { beforeMount() {
this.audio = uni.createInnerAudioContext(); this.audio = uni.createInnerAudioContext();
this.audio.onPlay(() => { this.audio.onPlay(() => {
console.log('开始播放');
}); });
this.audio.onEnded(() => { this.audio.onEnded(() => {
console.log('停止播放');
}); });
this.audio.onError(e => { this.audio.onError(e => {
console.error(e, 'onError');
// ios // ios
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',

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

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

8
components/tui-chat/message-input/index.vue

@ -305,7 +305,7 @@ export default {
}, },
error(e) { error(e) {
console.log(e.detail);
}, },
handleSendPicture() { handleSendPicture() {
@ -452,7 +452,7 @@ export default {
type: value type: value
}, },
res => { res => {
console.log(JSON.stringify(res));
} }
); );
} }
@ -575,11 +575,11 @@ export default {
}, },
inputBindFocus() { inputBindFocus() {
console.log('占位:函数 inputBindFocus 未声明');
}, },
inputBindBlur() { inputBindBlur() {
console.log('占位:函数 inputBindBlur 未声明');
} }
} }
}; };

10
components/tui-chat/message-list/index.vue

@ -166,7 +166,7 @@
for (let i = 0; i < messageList.length; i++) { for (let i = 0; i < messageList.length; i++) {
var item = messageList[i] var item = messageList[i]
if(item.payload.text.indexOf('TUIKit-kami') != -1){ if(item.payload.text.indexOf('TUIKit-kami') != -1){
console.log('messageList',item.payload.text)
}else{ }else{
newList.push(item) newList.push(item)
@ -233,7 +233,7 @@
} }
}, },
doFanyiItem(item) { doFanyiItem(item) {
console.log(item.payload.text)
uni.showLoading({ uni.showLoading({
title: ' ' title: ' '
}) })
@ -254,18 +254,18 @@
toLag + '&q=' + item.payload.text, toLag + '&q=' + item.payload.text,
success: function(res) { success: function(res) {
uni.hideLoading(); uni.hideLoading();
console.log(res.data[0][0][0])
item.fanyi = res.data[0][0][0] item.fanyi = res.data[0][0][0]
that.$forceUpdate() that.$forceUpdate()
}, },
fail: function(error) { fail: function(error) {
console.log(error)
uni.hideLoading(); uni.hideLoading();
}, },
complete:function(res){ complete:function(res){
console.log(res.data[0][0])
uni.hideLoading(); uni.hideLoading();
} }
}) })

8
components/tui-conversation/conversation-item/index.vue

@ -159,15 +159,15 @@
}); });
}, },
touchS: function(e) { touchS: function(e) {
// console.log('touchS')
if (e.touches.length == 1) { if (e.touches.length == 1) {
// //
this.startX = e.touches[0].clientX this.startX = e.touches[0].clientX
// console.log(this.startX)
} }
}, },
touchM: function(e) { touchM: function(e) {
// console.log('touchM')
if (e.touches.length == 1) { if (e.touches.length == 1) {
// //
var moveX = e.touches[0].clientX; var moveX = e.touches[0].clientX;
@ -190,7 +190,7 @@
} }
}, },
touchE: function(e) { touchE: function(e) {
// console.log('touchE')
if (e.changedTouches.length == 1) { if (e.changedTouches.length == 1) {
// //
var endX = e.changedTouches[0].clientX; var endX = e.changedTouches[0].clientX;

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

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

Loading…
Cancel
Save