1229 10:50修改
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
import uniIcons from '@/uni_modules/uni-icons/components/uni-icons/uni-icons.vue'
|
||||
import ccNewsTabs from '@/uni_modules/cc-newsTabs/components/cc-newsTabs/cc-newsTabs.vue'
|
||||
const store = useStore()
|
||||
import emptyCard from "@/components/emptyCard.vue"
|
||||
// 生命周期
|
||||
onLoad((e) => {
|
||||
if(uni.getStorageSync('userInfo')) {
|
||||
@@ -89,6 +90,7 @@
|
||||
uni.showLoading({
|
||||
mask:true
|
||||
})
|
||||
list_box.value[c_index.value].queryParams.userId = user_info.value?.userId || 0
|
||||
const res = await api.getTodoist(list_box.value[c_index.value].queryParams,user_info.value?.userId || 0)
|
||||
uni.hideLoading();
|
||||
if(res.code === 0) {
|
||||
@@ -172,7 +174,7 @@
|
||||
<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">
|
||||
<view class="todoBox">
|
||||
<view v-for="(item,i) in item1.list" @tap="handle_func(item,i)" class="td-item swiper-item uni-bg-green">
|
||||
<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>
|
||||
@@ -180,6 +182,7 @@
|
||||
{{util.timestampToDate(item.CreatedAt)}}
|
||||
</view>
|
||||
</view>
|
||||
<emptyCard v-else></emptyCard>
|
||||
</view>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
|
@@ -190,7 +190,7 @@
|
||||
<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">
|
||||
<view class="todoBox">
|
||||
<view v-for="(item,i) in item1.list" @tap="handle_func(item,i)" class="td-item swiper-item uni-bg-green">
|
||||
<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>
|
||||
@@ -198,6 +198,7 @@
|
||||
{{util.timestampToDate(item.CreatedAt)}}
|
||||
</view>
|
||||
</view>
|
||||
<emptyCard v-else></emptyCard>
|
||||
</view>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
|
Reference in New Issue
Block a user