diff --git a/components/informations/notice/notice.vue b/components/informations/notice/notice.vue index b212e45..712914a 100644 --- a/components/informations/notice/notice.vue +++ b/components/informations/notice/notice.vue @@ -1,11 +1,11 @@ @@ -76,7 +76,7 @@ export default { }, searchValue() { uni.navigateTo({ - url: '/pageB/search/index?type=1' + url: '/pageB/search/index?type=2' }) }, }, diff --git a/pages/information/information.vue b/pages/information/information.vue index f44ad09..8a4444d 100644 --- a/pages/information/information.vue +++ b/pages/information/information.vue @@ -10,7 +10,7 @@ - + diff --git a/static/imservice.js b/static/imservice.js index f2d1e6f..098524d 100644 --- a/static/imservice.js +++ b/static/imservice.js @@ -297,7 +297,8 @@ IMService.prototype.initialIMListeners = function () { friend.text = message.type != "text" ? "其他消息" : message.payload.text let time = new Date(message.timestamp) friend.date = message.timestamp - friend.time = time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds() + friend.time = (time.getHours() < 10 ? '0' + time.getHours() : time.getHours()) + ":" + (time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes()) + ":" + (time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds()) + console.log(that.friends) that.friendsarr = [] for(let i in that.friends){ @@ -322,7 +323,7 @@ IMService.prototype.initialIMListeners = function () { friend.text = message.type != "text" ? "其他消息" : message.payload.text let time = new Date(message.timestamp) friend.date = message.timestamp - friend.time = time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds() + friend.time = (time.getHours() < 10 ? '0' + time.getHours() : time.getHours()) + ":" + (time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes()) + ":" + (time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds()) console.log(this.friends) that.friendsarr = [] for(let i in this.friends){ @@ -537,7 +538,9 @@ IMService.prototype.sendMessagesSetStorage = function (friendId,message){ friend.text = message let time = new Date() friend.date = time.getTime() - friend.time = time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds() + friend.time = (time.getHours() < 10 ? '0' + time.getHours() : time.getHours()) + ":" + (time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes()) + ":" + (time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds()) + + console.log(that.friends) that.friendsarr = [] for(let i in that.friends){ @@ -561,7 +564,9 @@ IMService.prototype.sendMessagesSetStorage = function (friendId,message){ friend.text = message let time = new Date() friend.date = time.getTime() - friend.time = time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds() + friend.time = (time.getHours() < 10 ? '0' + time.getHours() : time.getHours()) + ":" + (time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes()) + ":" + (time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds()) + + console.log(this.friends) that.friendsarr = [] for(let i in this.friends){