Compare commits

...

3 Commits

Author SHA1 Message Date
e763f707cc Merge branch 'main' of http://git.echol.cn/loser/JM-MiniApp 2024-01-30 23:38:18 +08:00
0b62426169 注意事项图片2 2024-01-30 23:37:28 +08:00
0a8512f9e2 注意事项图片 2024-01-30 23:36:29 +08:00

View File

@ -154,9 +154,9 @@
const handle_info = ref(null) const handle_info = ref(null)
const handle_info_index = ref(0) const handle_info_index = ref(0)
function handle_func(item,i) { function handle_func(item,i) {
handle_info.value = item // handle_info.value = item
handle_info_index.value = i // handle_info_index.value = i
inputDialog.value.open() // inputDialog.value.open()
} }
function finishFunc() { function finishFunc() {
// api.todoFinished // api.todoFinished
@ -191,17 +191,27 @@
<view class="todoBox page-box"> <view class="todoBox page-box">
<cc-newsTabs :tabArr="tabArr" :o_index="c_index" @tabChange="tabChange"></cc-newsTabs> <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 :current="c_index" @change="scroll_func" :style="{'--size':swiper_h+'px'}" class="swiper" circular :indicator-dots="false" :autoplay="false" >
<swiper-item v-for="(item1,i1) in list_box"> <swiper-item v-for="(item1) in list_box" :key="item1">
<view class="todoBox"> <view class="todoBox">
<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"> <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"> <view class="td-content text-ellipsis-2">
{{item.content}} <!-- {{item.content}} -->
<image
style="width: 100%;"
:src="item.content"
mode="widthFix"
/>
</view> </view>
<view class="td-info small-text"> <view class="td-info small-text">
{{util.timestampToDate(item.CreatedAt)}} {{util.timestampToDate(item.CreatedAt)}}
</view> </view>
</view> </view>
<emptyCard v-else></emptyCard> </template>
<template v-else>
<emptyCard />
</template>
</view> </view>
</swiper-item> </swiper-item>
</swiper> </swiper>