|
|
|
@ -14,18 +14,17 @@
|
|
|
|
|
const h_index = ref(0)
|
|
|
|
|
onShow((e) => {
|
|
|
|
|
getLbtList()
|
|
|
|
|
// console.log("store:",store)
|
|
|
|
|
// if(!store.userInfo && !store.operation_info) { //没登录过 且 未填写手术信息
|
|
|
|
|
if(!store.userInfo) { //没登录过
|
|
|
|
|
// console.log("没有store.userInfo",store.userInfo)
|
|
|
|
|
// getHospitalList()
|
|
|
|
|
// setTimeout(()=>{
|
|
|
|
|
// inputDialog.value.open()
|
|
|
|
|
// },0)
|
|
|
|
|
} else {
|
|
|
|
|
setTimeout(()=>{
|
|
|
|
|
inputDialog.value.close()
|
|
|
|
|
},0)
|
|
|
|
|
// setTimeout(()=>{
|
|
|
|
|
// inputDialog.value.close()
|
|
|
|
|
// },0)
|
|
|
|
|
getTodayTodoList()
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
@ -51,7 +50,34 @@
|
|
|
|
|
pageSize:1000,
|
|
|
|
|
key:''
|
|
|
|
|
})
|
|
|
|
|
const todayTodoList = ref([])
|
|
|
|
|
const todayTodoListShow = ref({})
|
|
|
|
|
// 函数
|
|
|
|
|
async function getTodayTodoList() {
|
|
|
|
|
const userInfo = uni.getStorageSync('userInfo')
|
|
|
|
|
if(userInfo) {
|
|
|
|
|
let user_info = JSON.parse(userInfo)
|
|
|
|
|
if(user_info.userId) {
|
|
|
|
|
const res = await api.todayTodoList({userId:user_info.userId})
|
|
|
|
|
if(res.code == 0) {
|
|
|
|
|
todayTodoList.value = res.data
|
|
|
|
|
if(todayTodoList.value.length > 0) {
|
|
|
|
|
showTodo()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function showTodo() {
|
|
|
|
|
let start_num = 0
|
|
|
|
|
setInterval(() => {
|
|
|
|
|
if(!(start_num < todayTodoList.value.length)) {
|
|
|
|
|
start_num = 0
|
|
|
|
|
}
|
|
|
|
|
todayTodoListShow.value = todayTodoList.value[start_num]
|
|
|
|
|
start_num++
|
|
|
|
|
}, 1000)
|
|
|
|
|
}
|
|
|
|
|
function subscribeFunc() {
|
|
|
|
|
uni.requestSubscribeMessage({
|
|
|
|
|
tmplIds: ['PgxoZOOSDgBcmIGd_EVLDnYUmL3eu6NQTAZCsHQeuWY'],
|
|
|
|
@ -212,6 +238,18 @@
|
|
|
|
|
<uni-icons type="forward" color="#9bc027" size="20"></uni-icons>
|
|
|
|
|
</view>
|
|
|
|
|
</view> -->
|
|
|
|
|
<!-- 提示弹幕 -->
|
|
|
|
|
<view class="todayTodoListBox" v-if="todayTodoList.length>0">
|
|
|
|
|
<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>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="attention-card">
|
|
|
|
|
<!-- <view class="part-title">
|
|
|
|
|
测试记录
|
|
|
|
@ -307,6 +345,17 @@
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
.todayTodoListBox{
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
.tlb-item-box{
|
|
|
|
|
color: gray;
|
|
|
|
|
.tlb-item{
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.buy-btn{
|
|
|
|
|
display: block;
|
|
|
|
|
margin-top:1rem;
|
|
|
|
|