|
|
|
@ -61,6 +61,18 @@
|
|
|
|
|
const res = await api.todayTodoList({userId:user_info.userId})
|
|
|
|
|
if(res.code == 0) {
|
|
|
|
|
todayTodoList.value = res.data
|
|
|
|
|
// 测试开始
|
|
|
|
|
// let o = [
|
|
|
|
|
// {
|
|
|
|
|
// remindTime: '2024.1.1',
|
|
|
|
|
// content: '测试'
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// remindTime: '2024.1.1',
|
|
|
|
|
// content: '快去测试343232423快去测试快去测试快去测试快去测试快去测试'
|
|
|
|
|
// }]
|
|
|
|
|
// todayTodoList.value.push(...o)
|
|
|
|
|
// 测试结束
|
|
|
|
|
if(todayTodoList.value.length > 0) {
|
|
|
|
|
showTodo()
|
|
|
|
|
}
|
|
|
|
@ -76,7 +88,7 @@
|
|
|
|
|
}
|
|
|
|
|
todayTodoListShow.value = todayTodoList.value[start_num]
|
|
|
|
|
start_num++
|
|
|
|
|
}, 1000)
|
|
|
|
|
}, 2000)
|
|
|
|
|
}
|
|
|
|
|
function subscribeFunc() {
|
|
|
|
|
uni.requestSubscribeMessage({
|
|
|
|
@ -243,10 +255,7 @@
|
|
|
|
|
<uni-icons type="sound-filled" color="#fc9467" size="30"></uni-icons>
|
|
|
|
|
<view class="tlb-item-box">
|
|
|
|
|
<view class="tlb-item" @tap="todoFunc(1)">
|
|
|
|
|
<view class="tlb-time">
|
|
|
|
|
{{todayTodoListShow.remindTime}}:
|
|
|
|
|
</view>
|
|
|
|
|
<view class="tlb-content">{{todayTodoListShow.content}}</view>
|
|
|
|
|
<view class="tlb-content text-ellipsis-1">{{todayTodoListShow.remindTime}}: {{todayTodoListShow.content}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
@ -348,8 +357,11 @@
|
|
|
|
|
.todayTodoListBox{
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
margin-top: 1vh;
|
|
|
|
|
.tlb-item-box{
|
|
|
|
|
color: gray;
|
|
|
|
|
color: #f97a44;
|
|
|
|
|
font-weight: 900;
|
|
|
|
|
font-size: 4.2vw;
|
|
|
|
|
.tlb-item{
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|