Compare commits

..

No commits in common. "e763f707cca890d80f847fb6ee237655205e7808" and "26f57ccf5ea9e01faaa8d40194767f2523d43737" have entirely different histories.

View File

@ -154,9 +154,9 @@
const handle_info = ref(null)
const handle_info_index = ref(0)
function handle_func(item,i) {
// handle_info.value = item
// handle_info_index.value = i
// inputDialog.value.open()
handle_info.value = item
handle_info_index.value = i
inputDialog.value.open()
}
function finishFunc() {
// api.todoFinished
@ -185,33 +185,23 @@
}
}
})
}
</script>
}
</script>
<template>
<view class="todoBox page-box">
<cc-newsTabs :tabArr="tabArr" :o_index="c_index" @tabChange="tabChange"></cc-newsTabs>
<swiper :current="c_index" @change="scroll_func" :style="{'--size':swiper_h+'px'}" class="swiper" circular :indicator-dots="false" :autoplay="false" >
<swiper-item v-for="(item1) in list_box" :key="item1">
<swiper-item v-for="(item1,i1) in list_box">
<view class="todoBox">
<template v-if="item1.list.length>0" >
<view v-for="(item,i) in item1.list" @tap="handle_func(item,i)" :key="i" class="td-item swiper-item uni-bg-green">
<view class="td-content text-ellipsis-2">
<!-- {{item.content}} -->
<image
style="width: 100%;"
:src="item.content"
mode="widthFix"
/>
</view>
<view class="td-info small-text">
{{util.timestampToDate(item.CreatedAt)}}
</view>
<view v-for="(item,i) in item1.list" v-if="item1.list.length>0" @tap="handle_func(item,i)" class="td-item swiper-item uni-bg-green">
<view class="td-content text-ellipsis-2">
{{item.content}}
</view>
</template>
<template v-else>
<emptyCard />
</template>
<view class="td-info small-text">
{{util.timestampToDate(item.CreatedAt)}}
</view>
</view>
<emptyCard v-else></emptyCard>
</view>
</swiper-item>
</swiper>
@ -236,8 +226,8 @@
</view>
</uni-popup>
</view>
</template>
</view>
</template>
<style scoped lang="scss">
.swiper{
height: var(--size);
@ -299,5 +289,5 @@
.uni-popup__wrapper{
width: 100%;
}
}
}
</style>