mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-18 13:28:12 +00:00
fix: 修复已知问题
This commit is contained in:
parent
c8b96a8bce
commit
865dc61cd1
@ -137,7 +137,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--跳转提示-->
|
<!--跳转提示-->
|
||||||
<div v-if="positionStatus && positionMsg" class="dialog-position" :class="{'down': tagShow}">
|
<div v-if="listPreparedStatus && positionMsg" class="dialog-position" :class="{'down': tagShow}">
|
||||||
<div class="position-label" @click="onPositionMark">
|
<div class="position-label" @click="onPositionMark">
|
||||||
<Icon v-if="positionLoad > 0" type="ios-loading" class="icon-loading"></Icon>
|
<Icon v-if="positionLoad > 0" type="ios-loading" class="icon-loading"></Icon>
|
||||||
<i v-else class="taskfont"></i>
|
<i v-else class="taskfont"></i>
|
||||||
@ -733,7 +733,6 @@ export default {
|
|||||||
positionLoad: 0, // 定位跳转加载中
|
positionLoad: 0, // 定位跳转加载中
|
||||||
firstMsgLength: 0, // 首次加载消息数量
|
firstMsgLength: 0, // 首次加载消息数量
|
||||||
isFirstShowTag: false, // 是否首次显示标签
|
isFirstShowTag: false, // 是否首次显示标签
|
||||||
positionStatus: false, // 定位跳转状态
|
|
||||||
msgPreparedStatus: false, // 消息准备完成
|
msgPreparedStatus: false, // 消息准备完成
|
||||||
listPreparedStatus: false, // 消息准备完成
|
listPreparedStatus: false, // 消息准备完成
|
||||||
selectedTextStatus: false, // 是否选择文本
|
selectedTextStatus: false, // 是否选择文本
|
||||||
@ -1091,7 +1090,6 @@ export default {
|
|||||||
this.searchShow = false
|
this.searchShow = false
|
||||||
this.unreadMsgId = 0
|
this.unreadMsgId = 0
|
||||||
this.firstMsgLength = this.allMsgList.length || 1
|
this.firstMsgLength = this.allMsgList.length || 1
|
||||||
this.positionStatus = false
|
|
||||||
this.listPreparedStatus = false
|
this.listPreparedStatus = false
|
||||||
this.scrollToBottomAndRefresh = false
|
this.scrollToBottomAndRefresh = false
|
||||||
//
|
//
|
||||||
@ -1341,12 +1339,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
readEnabled(val) {
|
|
||||||
if (!this.positionStatus && val) {
|
|
||||||
this.positionStatus = true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
32
resources/assets/js/store/actions.js
vendored
32
resources/assets/js/store/actions.js
vendored
@ -2767,23 +2767,12 @@ export default {
|
|||||||
dispatch("saveDialogMsg", msg)
|
dispatch("saveDialogMsg", msg)
|
||||||
});
|
});
|
||||||
} else if ($A.isJson(data)) {
|
} else if ($A.isJson(data)) {
|
||||||
let delay = false
|
|
||||||
if (typeof data.__delay__ !== "undefined") {
|
|
||||||
delete data.__delay__
|
|
||||||
delay = true
|
|
||||||
}
|
|
||||||
const index = state.dialogMsgs.findIndex(({id}) => id == data.id);
|
const index = state.dialogMsgs.findIndex(({id}) => id == data.id);
|
||||||
data = Object.assign({}, state.dialogMsgs[index], data)
|
data = Object.assign({}, state.dialogMsgs[index], data)
|
||||||
if (index > -1) {
|
if (index > -1) {
|
||||||
state.dialogMsgs.splice(index, 1, data);
|
state.dialogMsgs.splice(index, 1, data);
|
||||||
} else {
|
} else {
|
||||||
if (delay) {
|
state.dialogMsgs.push(data);
|
||||||
setTimeout(_ => {
|
|
||||||
state.dialogMsgs.push(data);
|
|
||||||
}, 100)
|
|
||||||
} else {
|
|
||||||
state.dialogMsgs.push(data);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
$A.IDBSave("dialogMsgs", state.dialogMsgs, 600)
|
$A.IDBSave("dialogMsgs", state.dialogMsgs, 600)
|
||||||
//
|
//
|
||||||
@ -3317,16 +3306,25 @@ export default {
|
|||||||
Store.set('dialogMsgPush', data);
|
Store.set('dialogMsgPush', data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 更新消息列表
|
const saveMsg = (data, count) => {
|
||||||
dispatch("saveDialogMsg", Object.assign(data, {__delay__: true}))
|
if (count > 5 || state.dialogMsgs.find(({id}) => id == data.id)) {
|
||||||
// 更新最后消息
|
// 更新消息列表
|
||||||
dispatch("updateDialogLastMsg", data);
|
dispatch("saveDialogMsg", data)
|
||||||
|
// 更新最后消息
|
||||||
|
dispatch("updateDialogLastMsg", data);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
setTimeout(_ => {
|
||||||
|
saveMsg(data, ++count)
|
||||||
|
}, 20);
|
||||||
|
}
|
||||||
|
saveMsg(data, 0);
|
||||||
break;
|
break;
|
||||||
case 'update':
|
case 'update':
|
||||||
case 'readed':
|
case 'readed':
|
||||||
const updateMsg = (data, count) => {
|
const updateMsg = (data, count) => {
|
||||||
if (state.dialogMsgs.find(({id}) => id == data.id)) {
|
if (state.dialogMsgs.find(({id}) => id == data.id)) {
|
||||||
dispatch("saveDialogMsg", Object.assign(data, {__delay__: true}))
|
dispatch("saveDialogMsg", data)
|
||||||
// 更新待办
|
// 更新待办
|
||||||
if (typeof data.todo !== "undefined") {
|
if (typeof data.todo !== "undefined") {
|
||||||
dispatch("getDialogTodo", dialog_id)
|
dispatch("getDialogTodo", dialog_id)
|
||||||
|
|||||||
4
resources/assets/sass/dark.scss
vendored
4
resources/assets/sass/dark.scss
vendored
@ -499,10 +499,6 @@ body.dark-mode-reverse {
|
|||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mention {
|
|
||||||
color: #333;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1449,7 +1449,7 @@
|
|||||||
opacity: 0;
|
opacity: 0;
|
||||||
transform: translateX(100%);
|
transform: translateX(100%);
|
||||||
animation: position-in-animation 200ms ease-out forwards;
|
animation: position-in-animation 200ms ease-out forwards;
|
||||||
animation-delay: 300ms;
|
animation-delay: 600ms;
|
||||||
|
|
||||||
.position-label {
|
.position-label {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user